Dear all,
I am experiencing a problem with Unmarshaller.unmarshal(File).
Unmarshaller.unmarshal(File) fails to unmarshal from a File with "?" in
its path.
For example if I try to unmarshal a file called "foo?bar/baz" I get:
java.io.FileNotFoundException: foo (No such file or directory)
I am using code that looks like this:
Unmarshaller unmarshaller;
File file = new File("foo?bar/baz");
unmarshaller.unmarshal(file);
If I use a FileInputStream and Unmarshaller.unmarshal(InputStream)
instead the file is unmarshalled correctly:
InputStream in = new FileInputStream(file);
unmarshaller.unmarshal(in);
I have not investigated this further. For example I have not tested if
the same problem occurs with characters other than "?".
Before I investigate further could you tell me if this sounds like a
known issue with JAXB or perhaps my Java installation?
Version details:
JAXB from WSDP 1.3
$ java -version
java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
$ uname -a
Linux foo 2.4.20-18.7smp #1 SMP Thu May 29 07:49:23 EDT 2003 i686 unknown
$ cat /proc/version
Linux version 2.4.20-18.7smp (bhcompile_at_stripples.devel.redhat.com) (gcc
version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)) #1 SMP Thu May 29
07:49:23 EDT 2003
Thanks a lot and best wishes,
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net