Xsd2Jibx is very out dated, and you're probably going to need to do some major work on the output binding in order to make it usable with Axis2.
That said, the particular problem you're seeing below should be fixed in the 1.1.4 JiBX jars, which you can access from maven repository at http://jibx.sourceforge.net/maven/jibx/jars/ Get the jibx-bind-1.1.4.jar and jibx-run-1.1.4.jar and substitute these for the jibx-bind and jibx-run jars in your Axis2 distribution library. That should get you further, anyway. For anyone who's wondering, I haven't officially released 1.1.4 yet, and may actually release a 1.1.5 later this week instead. I froze the 1.1.4 jars so that they can be included in the upcoming Axis2 1.2 RC3 release. - Dennis Dennis M. Sosnoski SOA 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 Serkan Sunel wrote: > > Hi all, > > Anybody know what causes to this exception ? > > I am using the binding file which is generated using xsd2jibx.jar… > > I think there is a problem with the generated binding.xml’s namespaces.. > > Thanks… > > java org.apache.axis2.wsdl.WSDL2Java -uri > ../wsdl/parlayx_payment_reserve_volume_charging_service_2_2.wsdl -ns2p > http://www.csapi.org/wsdl/parlayx/payment/reserve_volume_charging/v2_2/interface=com.telenity.canvas.platform.parlayx.ws.wsdl.payment.reserve_volume_charging.v2_2._interface,http://www.csapi.org/wsdl/parlayx/payment/reserve_volume_charging/v2_2/service=com.telenity.canvas.platform.parlayx.ws.wsdl.payment.reserve_volume_charging.v2_2.service,http://www.csapi.org/schema/parlayx/payment/reserve_volume_charging/v2_2/local=com.telenity.canvas.platform.parlayx.payment.reserve_volume_charging.v2_2.local,http://www.csapi.org/schema/parlayx/payment/v2_1=com.telenity.canvas.platform.parlayx.payment,http://www.csapi.org/schema/parlayx/common/v2_1=com.telenity.util.parlayx.common > > -sd -s -ss -t -ssi -g -u -uw -d jibx -Ebindingfile > ../java/src/org/csapi/schema/parlayx/payment/reserve_volume_charging/v2_2/local/binding.xml > > -o ../java > > Retrieving document at > 'parlayx_payment_reserve_volume_charging_interface_2_2.wsdl', relative > to > 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/bin/../wsdl/'. > > Retrieving document at 'parlayx_common_faults_2_0.wsdl', relative to > 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/parlayx_payment_reserve_volume_charging_interface_2_2.wsdl'. > > Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to > 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/parlayx_common_faults_2_0.wsdl'. > > Retrieving schema at 'parlayx_payment_types_2_1.xsd', relative to > 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/parlayx_payment_reserve_volume_charging_interface_2_2.wsdl'. > > Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to > 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/parlayx_payment_reserve_volume_charging_interface_2_2.wsdl'. > > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: > java.lang.NullPointerException > > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) > > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > > Caused by: java.lang.NullPointerException > > at > org.jibx.runtime.impl.StAXReaderWrapper.getNamespace(StAXReaderWrapper.java:455) > > at > org.jibx.runtime.impl.UnmarshallingContext.getNamespaceUri(UnmarshallingContext.java:3125) > > at org.jibx.runtime.QName.deserialize(QName.java:234) > > at > org.jibx.binding.model.StructureElement.setQualifiedMapAs(StructureElement.java:213) > > at > org.jibx.binding.model.StructureElement.JiBX_binding_unmarshalAttr_5_0(StructureElement.java) > > at org.jibx.binding.model.JiBX_bindingStructureElement_access.unmarshal() > > at > org.jibx.binding.model.NestingElementBase.JiBX_binding_unmarshal_2_0(NestingElementBase.java) > > at > org.jibx.binding.model.ContainerElementBase.JiBX_binding_unmarshal_3_0(ContainerElementBase.java) > > at > org.jibx.binding.model.TemplateElementBase.JiBX_binding_unmarshal_4_0(TemplateElementBase.java) > > at > org.jibx.binding.model.MappingElement.JiBX_binding_unmarshal_5_0(MappingElement.java) > > at org.jibx.binding.model.JiBX_bindingMappingElement_access.unmarshal() > > at > org.jibx.binding.model.BindingElement.JiBX_binding_unmarshal_3_0(BindingElement.java) > > at org.jibx.binding.model.JiBX_bindingBindingElement_access.unmarshal() > > at > org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2538) > > at > org.jibx.binding.model.BindingElement.readBinding(BindingElement.java:609) > > at > org.jibx.binding.model.BindingElement.readBinding(BindingElement.java:625) > > at > org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:240) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:74) > > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:177) > > ... 2 more > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users