aspose file tools*
The moose likes Web Services and the fly likes Running jibx2wsdl using maven plugin leads to NPE: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Running jibx2wsdl using maven plugin leads to NPE:" Watch "Running jibx2wsdl using maven plugin leads to NPE:" New topic
Author

Running jibx2wsdl using maven plugin leads to NPE:

Honey Swaro
Greenhorn

Joined: Aug 06, 2012
Posts: 1
Hi,
I was trying to generate wsdl from the java classes using jibx and maven. So we have maven plugin jibx2wsl to generate the wsdl. And i have followed the same way as in this url:
http://jibx.sourceforge.net/maven-jibx-plugin/jibx2wsdl.html

My pom.xml is:

<profile>
<id>jibx-2-wsdl</id>
<!--Plugin to generate WSDL and binding.xml -->
<build>
<plugins>
<plugin>
<groupId>org.jibx</groupId>
<artifactId>jibx-maven-plugin</artifactId>
<version>1.2.4.5</version>
<!-- dependencies>

<dependency>
<groupId>org.jibx</groupId>
<artifactId>jibx-run</artifactId>
<version>1.2.3</version>
</dependency>
<dependency>
<groupId>org.jibx</groupId>
<artifactId>jibx-extras</artifactId>
<version>1.2.3</version>
</dependency>
</dependencies-->
<executions>
<execution>
<id>jibx-2-wsdl</id>
<phase>process-classes</phase>
<goals>
<goal>jibx2wsdl</goal>
</goals>
</execution>
</executions>
<configuration>
<customizations>
<customizations>${basedir}/src/main/webapp/WEB-INF/schema/custom.xml</customizations>
</customizations>
<!--<outputDirectory>${basedir}/src/main/webapp/WEB-INF/schema</outputDirectory> -->
<outputDirectory>${project.build.directory}/generated-sources/jibx</outputDirectory>
<interfaceClassNames>
<interfaceClassName>com.jpmchase.tss.jpma.cd.webservice.endpoint.CashDecisionService</interfaceClassName>
</interfaceClassNames>
<verbose>yes</verbose>
</configuration>
</plugin>
</plugins>
</build>
</profile>

Am getting the following exception:

[INFO] [jibx:jibx2wsdl {execution: jibx-2-wsdl}]
[INFO] Running JiBX binding compiler (single-module mode) on 1 interface file(s)
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at org.jibx.custom.classes.SharedValueBase.fillType(SharedValueBase.java:357)
at org.jibx.custom.classes.ValueCustom.fillDetails(ValueCustom.java:316)
at org.jibx.custom.classes.ClassCustom.apply(ClassCustom.java:800)
at org.jibx.custom.classes.GlobalCustom.addClassCustomization(GlobalCustom.java:377)
at org.jibx.binding.generator.BindGen.checkInclude(BindGen.java:163)
at org.jibx.binding.generator.BindGen.expandReferences(BindGen.java:208)
at org.jibx.binding.generator.BindGen.findReferences(BindGen.java:1010)
at org.jibx.binding.generator.BindGen.generateSpecified(BindGen.java:1161)
at org.jibx.ws.wsdl.tools.Jibx2Wsdl.generate(Jibx2Wsdl.java:633)
at org.jibx.ws.wsdl.tools.Jibx2Wsdl.main(Jibx2Wsdl.java:895)
at org.jibx.maven.AbstractJibx2WsdlMojo.execute(AbstractJibx2WsdlMojo.java:222)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------

Can anybody thow some light on me regarding this.

Thanks in advance.
 
Don't get me started about those stupid light bulbs.
 
subject: Running jibx2wsdl using maven plugin leads to NPE: