cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J├╝rgen Bockhorn <Juergen.Bockh...@heuboe.de>
Subject Trouble using jibx databinding in CXF 2.4.0
Date Tue, 26 Jul 2011 11:15:36 GMT
Hi,

we are trying to move from AXIS2 with JiBX databinding to CXF/JiBX. Unforunately we are running
into an error.
Both CXF/JAXB and AXIS2/JiBX are working fine with the example.


wsdl2java with jibx data-binding crashes if the schema contains simpleType definitions (stacktrace
below).

To reproduce this behaviour I attached a maven project including
- pom.xml
- src/main/resources/fooBar.wsdl
- src/main/resources/fooBar.xsd

The fooBar.xsd schema contains a simpleType definition 'EnumErrorType'. If this definition
(and its usage) is removed the compile process works like expected. Using JAXB data binding
the wsdl2java process runs also with the simpleType included.

The fooBar.wsdl passes the wsdlvalidation tool without errors.

Any hints how to make the jibx databinding work would be appreciated.

Thanks



26.07.2011 12:50:47 org.apache.cxf.jibx.tools.JibxToolingProblemHandler handleSevere
SCHWERWIEGEND:
java.lang.NullPointerException
        at org.jibx.binding.model.BindingUtils$1.visit(BindingUtils.java:65)
        at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:161)
        at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:238)
        at org.jibx.binding.model.TreeContext.tourTree(TreeContext.java:124)
        at org.jibx.binding.model.BindingUtils.getDefinitions(BindingUtils.java:71)
        at org.apache.cxf.jibx.tools.JibxToolingDataBinding.generate(JibxToolingDataBinding.java:165)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:592)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:240)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
        at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:283)
        at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
        at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
        at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
        at org.apache.cxf.maven_plugin.WSDL2JavaMojo.callWsdl2Java(WSDL2JavaMojo.java:609)
        at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:435)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)



Mime
View raw message