Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta3a
-
Fix Version/s: 1.0-beta3b
-
Component/s: core
-
Labels:None
-
Number of attachments :
Description
I'm trying out the runtime binding so that I might be able to debug xsd2jibx in Eclipse. The first thing I noticed is that it doesn't seam to support a file name with multiple periods/dots in the filename. Here is the error:
java.lang.ClassFormatError: org/jibx/xsd2jibx/XsdAttribute (Illegal Method name "JiBX_xsd.jibx_newinstance_3_0")
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
at org.jibx.binding.Loader.findClass(Loader.java:343)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
at java.lang.Class.getDeclaredMethod(Class.java:1254)
at org.jibx.binding.Run.main(Run.java:192)
Exception in thread "main"
I put a jibx_bindings.txt in the classpath:
org/jibx/xsd2jibx/jibx.jibx.xml
org/jibx/xsd2jibx/xsd.jibx.xml
I did not receive that error when I when I changed the names to:
org/jibx/xsd2jibx/jibx.xml
org/jibx/xsd2jibx/xsd.xml
I happen to like the ".jibx.xml" extension.
I was able to get the runtime binding to work just fine when I used the -b options. I'm now able to debug xsd2jibx from within Eclipse, yipee!
-b C:/projects/xsd2jibx/src/org/jibx/xsd2jibx/xsd.jibx.xml
-b C:/projects/xsd2jibx/src/org/jibx/xsd2jibx/jibx.jibx.xml
org.jibx.xsd2jibx.Generator test.xsd
I'll investigate using the "implicit binding definition resources" later.