FileOutputStream throws FileNotFoundException with long file name

I am using FileOutputStream to writng to a file and the whole path is 253 characters. But the FileNotFoundException is thrown. I met this issue with JDK1.5.0.06 but not with 1.5.0.04. Does anyone met this like me? If this is a bug of JDK1.5.0.06?

FileOutputStream fo = new FileOutputStream("D:\\weblogic\\localinstall\\bea_home\\weblogic92\\samples\\domains\\wl_server\\.\\servers\\examplesServer\\tmp\\_WL_user\\webservicesReliableClientEar\\m0ga5u\\war\\WEB-INF\\schemacom_bea_xml\\element\\http_3A_2F_2Fexamples_2Fwebservices_2Freliable\\callHelloWorldResponse.xsb");

[583 byte] By [supernavya] at [2007-10-3 4:30:45]
# 1

And you are sure that this error is only because of the long filename?

Does the directory you want to write to already exist?

Can you write to the directory outside of your Java Program?

Does the file already exist, but is write protected?

The FileNotFoundException will be thrown anytime the file cannot be opened, regardless of what the reason was that it could not be opened. I find it a little lame that no attemp is made to provide a better error, but that's the way it is.

masijade.a at 2007-7-14 22:34:03 > top of Java-index,Core,Core APIs...