Are you using JAXB bindings or XMLBeans? If you are using XMLBeans then you
must create your beans first.

http://xfire.codehaus.org/Client+and+Server+Stub+Generation+from+WSDL

On 1/26/07, jmdev <[EMAIL PROTECTED]> wrote:


I am hoping someone can help me with this.  I am attempting to create the
client stubs for the WS-Notification spec provided by servicemix


servicemix-3.1\deployables\serviceengines\servicemix-wsn2005\src\main\resources\org\apache\servicemix\wsn\notificationBroker.wsdl

(Note: To generate the notificationBroker.wsdl I deployed servicemix's wsn
example)

Running the wsgen task I receive the exception provided below (similar to

http://www.nabble.com/problem-with-client-gen-from-wsdl-for-BookService-tf929892.html#a2431446
this post ).  I have used the command line version of wsgen and the ant
task, versions 1.2.4 and the latest from SVN.  Any idea as to what might
be
causing this problem?

java.lang.NullPointerException
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLSer
viceBuilder.java:532)
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLService
Builder.java:387)
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLService
Builder.java:192)
        at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:
130)
        at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
Exception in thread "main" java.lang.NullPointerException
        at org.codehaus.xfire.gen.WsGen.main(WsGen.java:136)
Caused by: java.lang.NullPointerException
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLSer
viceBuilder.java:532)
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLService
Builder.java:387)
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLService
Builder.java:192)
        at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:
130)
        at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)
--- Nested Exception ---
java.lang.NullPointerException
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLSer
viceBuilder.java:532)
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLService
Builder.java:387)
        at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLService
Builder.java:192)
        at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:
130)
        at org.codehaus.xfire.gen.WsGen.main(WsGen.java:132)






--
View this message in context:
http://www.nabble.com/wsgen-NullPointerException-tf3124049.html#a8655291
Sent from the XFire - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email




--
Dave Kallstrom

Reply via email to