[ http://jira.codehaus.org/browse/JIBX-57?page=all ]
Dennis Sosnoski updated JIBX-57:
--------------------------------
Fix Version: (was: CVS)
1.0-RC1
> <include> tag won't work on Windows
> -----------------------------------
>
> Key: JIBX-57
> URL: http://jira.codehaus.org/browse/JIBX-57
> Project: JiBX
> Type: Bug
> Components: core
> Versions: 1.0-RC0
> Environment: WinNT
> Reporter: Arnaud Lenfant
> Assignee: Dennis Sosnoski
> Fix For: 1.0-RC1
>
>
> The following binding
> <?xml version='1.0' encoding='UTF-8'?>
> <binding>
> <include path="contact/Contact.jibx.xml"/>
> <mapping name="customer" class="Customer">
> <structure field="contact"/>
> </mapping>
> </binding>
> Produces the following error:
> Using bindings:
> config/Customer.jibx.xml
> Running binding compiler version jibx-rc0
> java.net.UnknownHostException: C
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
> at java.net.Socket.connect(Socket.java:452)
> ...
> at java.net.URL.openStream(URL.java:913)
> ...
> at org.jibx.binding.Utility.loadFileBinding(Utility.java:389)
> at org.jibx.binding.Compile.compile(Compile.java:294)
> at org.jibx.binding.Compile.main(Compile.java:382)
> The problem seems to be the way the base url is constructed, in
> Utility.java:389
> return loadBinding(fname, sname, new FileInputStream(file), new
> URL("file://" + file.getAbsolutePath()), valid);
> the resulting url file://C:/xxx appears to be
> badly escaped, resulting in incorrect URL.
> The following change seems to work
> return loadBinding(fname, sname, new FileInputStream(file),
> file.toURL(), valid);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs