I am getting a null pointer exception when trying to generate a web service
client from a wsdl generated from WCF under .NET 3

I found similar issue at
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-16512.html

Caused by: java.lang.NullPointerException
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:72)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)
        ... 19 more
Caused by: java.lang.NullPointerException
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLServiceBuilder.java:545)
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:392)
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java:195)
        at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:133)
        at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:68)
        ... 23 more

I am using maven2 to generate stubs

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <configuration>
                            <tasks>
                                <!-- START SNIPPET: client -->
                                <taskdef name="wsgen"
classname="org.codehaus.xfire.gen.WsGenTask"
                                    classpathref="maven.compile.classpath"
/>
                                <wsgen
outputDirectory="${basedir}/target/generated-source" binding="jaxb"
                                   
wsdl="http://kirlia.liquid.com/wcfAssetManager/AssetManagerService.svc?wsdl";
                                    package="com.liquid.assetmanager.client"
overwrite="true" />
                                <!-- END SNIPPET: client -->
                            </tasks>
                           
<sourceRoot>${basedir}/target/generated-source</sourceRoot>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

-- 
View this message in context: 
http://www.nabble.com/Null-Pointer-Exception-generating-client-stubs-from-WCF-under-.NET-3-tf3868214.html#a10959206
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to