History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-720
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Tomasz Sztelak
Reporter: David Schaefgen
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XFire

WsGen Fails to generate client code

Created: 19/Oct/06 11:34 AM   Updated: 02/Jan/07 12:18 PM
Component/s: Generator
Affects Version/s: 1.2.2
Fix Version/s: 1.2.4

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive sample.zip (2.42 Mb)

Environment: Microsoft Windows XP SP2, Sun JDK 1.5.0_09-b01, XFire 1.2.2


 Description  « Hide
I ran the following commands from a batch file resulting in the error noted further below:

set XFIRE_HOME=C:\development\tools\xfire-1.2.2

rem set the classes
setlocal EnableDelayedExpansion
rem loop through the libs and add them to the class path
set XFIRE_CLASS_PATH=%XFIRE_HOME%
FOR %%c in ("%XFIRE_HOME%\lib*.jar") DO set XFIRE_CLASS_PATH=Unable to render embedded object: File (XFIRE_CLASS_PATH) not found.;%%c

set ANT_CLASS_PATH=C:\development\tools\apache-ant-1.6.5\lib\ant.jar

set CDS_CLASS_PATH=C:\development\src\libs\SyncCustomerPartyMaster.jar

java -cp %XFIRE_HOME%\xfire-all-1.2.2.jar;%XFIRE_CLASS_PATH%;%CDS_CLASS_PATH%;%ANT_CLASS_PATH% org.codehaus.xfire.gen.WsGen -wsdl "foo\syncCustomerPartyMaster.wsdl" -o . -overwrite true

XFire WsGen Error:
java.lang.NullPointerException
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLServiceBuilder.java:539)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:377)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java:187)
at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:102)
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:122)
Exception in thread "main" java.lang.NullPointerException
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:126)
Caused by: java.lang.NullPointerException
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLServiceBuilder.java:539)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:377)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java:187)
at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:102)
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:122)
— Nested Exception —
java.lang.NullPointerException
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped(WSDLServiceBuilder.java:539)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:377)
at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java:187)
at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:102)
at org.codehaus.xfire.gen.WsGen.main(WsGen.java:122)

I've added an attachement that contains the schemas and the wsdl that uses them so that you can reproduce the error.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse - 02/Jan/07 12:18 PM
Just fixed this in SVN. Thanks! A new release is coming Thurs/Fri.