Re: [jibx-users] Error trying to use precompiled bindings and extended classes
I have one more question that will hopefully be easier to answer. Is there any way to get the BindGen tool to be aware of which classes that are in separate JARs? It would be great if it could generate bindings with appropriate include elements/namespace declarations either by default or by using a customization/parameters to specify which classes are in dependant jars. If not currently supported, is that functionality planned for any future releases? Thanks, Josh Landry -- View this message in context: http://www.nabble.com/Error-trying-to-use-precompiled-bindings-and-extended-classes-tp25355028p25707422.html Sent from the jibx-users mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] Error trying to use precompiled bindings and extended classes
There's currently no support for BindGen breaking up the bindings in this way. It could certainly be done, but at this point it seems like there are a lot more people using CodeGen so that's where I've been adding most of the enhancements. If you're interested in adding this type of functionality to BindGen I'd be able to offer some direction, but that's probably about all. - Dennis Josh L wrote: I have one more question that will hopefully be easier to answer. Is there any way to get the BindGen tool to be aware of which classes that are in separate JARs? It would be great if it could generate bindings with appropriate include elements/namespace declarations either by default or by using a customization/parameters to specify which classes are in dependant jars. If not currently supported, is that functionality planned for any future releases? Thanks, Josh Landry -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] Error trying to use precompiled bindings and extended classes
That's a strange one. Are you sure the binding used with the jar code is the same one you're using with the include? It looks like there's an abstract mapping in the include which was not in the binding used for the code in the jar. I've added a check for this condition in the current code which should supply the details of what's different. Can you download the latest build jars from the Maven(1) repository, at http://jibx.sourceforge.net/maven/jibx/jars/ and give that a try (look for the 1.2.2-SNAPSHOT jars)? Thanks, - Dennis Dennis M. Sosnoski XML and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Josh L wrote: Thanks for the reply, Dennis. I made the changes you suggested to my bindings.xml, that seems to have fixed the previous issue but now I am receiving another error: [java] Running binding compiler version jibx_1_2_1 [java] Error running binding compiler [java] java.lang.ArrayIndexOutOfBoundsException: -2147483648 [java] at org.jibx.binding.def.PrecompiledBinding.init(PrecompiledBinding.java:125) [java] at org.jibx.binding.def.PrecompiledAbstractMapping.init(PrecompiledAbstractMapping.java:92) [java] at org.jibx.binding.def.BindingBuilder.unmarshalPrecompiledMappings(BindingBuilder.java:1925) [java] at org.jibx.binding.def.BindingBuilder.unmarshalInclude(BindingBuilder.java:2036) [java] at org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(BindingBuilder.java:2108) [java] at org.jibx.binding.Utility.loadBinding(Utility.java:320) [java] at org.jibx.binding.Utility.loadFileBinding(Utility.java:437) [java] at org.jibx.binding.Compile.compile(Compile.java:217) [java] at org.jibx.binding.Compile.compile(Compile.java:184) [java] at org.jibx.binding.Compile.main(Compile.java:379) And here is my updated binding.xml: binding xmlns:tns0=http://accenture.com/apsp/domain; xmlns:ns0=http://accenture.com/apsp/integration/CustomerService; name=binding package=com.accenture.apsp.domain force-classes=true add-constructors=true namespace uri=http://accenture.com/apsp/domain; default=elements/ namespace uri=http://accenture.com/apsp/integration/CustomerService; prefix=ns0/ namespace uri=http://accenture.com/apsp/domain; prefix=tns0/ include path=file:///D:/Projects/APSP_integration/CrossJarDependency/gen/person-binding.xml precompiled=true/ mapping abstract=true type-name=customer class=com.accenture.apsp.domain.Customer xmlns:tns1=http://accenture.com/apsp/crossjardepend; namespace uri=http://accenture.com/apsp/crossjardepend; default=elements prefix=tns1/ structure type=com.accenture.apsp.crossjardepend.Person map-as=tns1:Person / value style=element name=firstName field=firstName usage=optional/ value style=element name=lastName field=LastName usage=optional/ value style=element name=phone field=phone usage=optional/ /mapping /binding Thanks again for your assistance! - Josh DSosnoski wrote: Hi Josh, The problem here is that your binding.xml doesn't just reference the binding defined for Person in person-binding.xml - it creates a new binding for Person, in the form of the embedded structure type=com.mycompany.apsp.crossjardepend.Person. To use the precompiled binding version, change this to structure type=com.mycompany.apsp.crossjardepend.Person map-as=tns1:person/, where tns1 is defined as http://accenture.com/apsp/crossjardepend;. - Dennis -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users
Re: [jibx-users] Error trying to use precompiled bindings and extended classes
Thanks for the reply, Dennis. I made the changes you suggested to my bindings.xml, that seems to have fixed the previous issue but now I am receiving another error: [java] Running binding compiler version jibx_1_2_1 [java] Error running binding compiler [java] java.lang.ArrayIndexOutOfBoundsException: -2147483648 [java] at org.jibx.binding.def.PrecompiledBinding.init(PrecompiledBinding.java:125) [java] at org.jibx.binding.def.PrecompiledAbstractMapping.init(PrecompiledAbstractMapping.java:92) [java] at org.jibx.binding.def.BindingBuilder.unmarshalPrecompiledMappings(BindingBuilder.java:1925) [java] at org.jibx.binding.def.BindingBuilder.unmarshalInclude(BindingBuilder.java:2036) [java] at org.jibx.binding.def.BindingBuilder.unmarshalBindingDefinition(BindingBuilder.java:2108) [java] at org.jibx.binding.Utility.loadBinding(Utility.java:320) [java] at org.jibx.binding.Utility.loadFileBinding(Utility.java:437) [java] at org.jibx.binding.Compile.compile(Compile.java:217) [java] at org.jibx.binding.Compile.compile(Compile.java:184) [java] at org.jibx.binding.Compile.main(Compile.java:379) And here is my updated binding.xml: binding xmlns:tns0=http://accenture.com/apsp/domain; xmlns:ns0=http://accenture.com/apsp/integration/CustomerService; name=binding package=com.accenture.apsp.domain force-classes=true add-constructors=true namespace uri=http://accenture.com/apsp/domain; default=elements/ namespace uri=http://accenture.com/apsp/integration/CustomerService; prefix=ns0/ namespace uri=http://accenture.com/apsp/domain; prefix=tns0/ include path=file:///D:/Projects/APSP_integration/CrossJarDependency/gen/person-binding.xml precompiled=true/ mapping abstract=true type-name=customer class=com.accenture.apsp.domain.Customer xmlns:tns1=http://accenture.com/apsp/crossjardepend; namespace uri=http://accenture.com/apsp/crossjardepend; default=elements prefix=tns1/ structure type=com.accenture.apsp.crossjardepend.Person map-as=tns1:Person / value style=element name=firstName field=firstName usage=optional/ value style=element name=lastName field=LastName usage=optional/ value style=element name=phone field=phone usage=optional/ /mapping /binding Thanks again for your assistance! - Josh DSosnoski wrote: Hi Josh, The problem here is that your binding.xml doesn't just reference the binding defined for Person in person-binding.xml - it creates a new binding for Person, in the form of the embedded structure type=com.mycompany.apsp.crossjardepend.Person. To use the precompiled binding version, change this to structure type=com.mycompany.apsp.crossjardepend.Person map-as=tns1:person/, where tns1 is defined as http://accenture.com/apsp/crossjardepend;. - Dennis -- View this message in context: http://www.nabble.com/Error-trying-to-use-precompiled-bindings-and-extended-classes-tp25355028p25459139.html Sent from the jibx-users mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users