ws-wsrf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Schreiner <e9902...@student.tuwien.ac.at>
Subject Re: wsdl2java NullPointerException
Date Thu, 15 Sep 2005 14:14:14 GMT
i'm sending you the debug ouput as attachment and here's the stack trace


BUILD FAILED
H:\CURRENT\desktop\apache\wsrf-1.0\template\build.xml:54:
java.lang.NullPointerE
xception
        at
org.apache.ws.resource.tool.Wsdl2JavaTask.execute(Wsdl2JavaTask.java:
232)
        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.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException
        at org.apache.ws.util.WsdlUtils.equals(WsdlUtils.java:156)
        at org.apache.ws.util.WsdlUtils.equals(WsdlUtils.java:121)
        at org.apache.ws.util.WsdlUtils.equals(WsdlUtils.java:105)
        at
org.apache.ws.util.WsrfWsdlUtils.implementsPortType(WsrfWsdlUtils.jav
a:273)
        at
org.apache.ws.resource.impl.ResourceCapabilityImpl.initImplementedPor
tTypes(ResourceCapabilityImpl.java:549)
        at
org.apache.ws.resource.impl.ResourceCapabilityImpl.<init>(ResourceCap
abilityImpl.java:73)
        at
org.apache.ws.resource.impl.ResourceDefinitionImpl.<init>(ResourceDef
initionImpl.java:56)
        at
org.apache.ws.resource.tool.Wsdl2Java.processWsdlFile(Wsdl2Java.java:
904)
        at
org.apache.ws.resource.tool.Wsdl2Java.generate(Wsdl2Java.java:179)
        at
org.apache.ws.resource.tool.Wsdl2JavaTask.execute(Wsdl2JavaTask.java:
228)
        ... 12 more
--- Nested Exception ---
java.lang.NullPointerException
        at org.apache.ws.util.WsdlUtils.equals(WsdlUtils.java:156)
        at org.apache.ws.util.WsdlUtils.equals(WsdlUtils.java:121)
        at org.apache.ws.util.WsdlUtils.equals(WsdlUtils.java:105)
        at
org.apache.ws.util.WsrfWsdlUtils.implementsPortType(WsrfWsdlUtils.jav
a:273)
        at
org.apache.ws.resource.impl.ResourceCapabilityImpl.initImplementedPor
tTypes(ResourceCapabilityImpl.java:549)
        at
org.apache.ws.resource.impl.ResourceCapabilityImpl.<init>(ResourceCap
abilityImpl.java:73)
        at
org.apache.ws.resource.impl.ResourceDefinitionImpl.<init>(ResourceDef
initionImpl.java:56)
        at
org.apache.ws.resource.tool.Wsdl2Java.processWsdlFile(Wsdl2Java.java:
904)
        at
org.apache.ws.resource.tool.Wsdl2Java.generate(Wsdl2Java.java:179)
        at
org.apache.ws.resource.tool.Wsdl2JavaTask.execute(Wsdl2JavaTask.java:
228)
        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.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 5 seconds




Sal Campana wrote:

> Wolfgang Schreiner wrote:
>
>> hi *,
>>
>> I was going through the WSRF tutorial and trying to deploy the Web
>> service as described, but encountered a NullPointerException thrown by
>> the "ant generate" task.
>> Here is the complete build output:
>>
>> Buildfile: build.xml
>>
>> init:
>>     [echo] Using webapp dir: c:\programme\apache software
>> foundation\tomcat 5.0
>> /webapps/wsrf
>>
>> generate:
>>     [copy] Copying 1 file to C:\programme\apache software
>> foundation\tomcat 5.0
>> \webapps\wsrf\_tmp_
>> [wsdl2Java] Processing WSDL file "C:\programme\apache software
>> foundation\tomcat
>> 5.0\webapps\wsrf\_tmp_\Converter.wsdl"...
>> [wsdl2Java] Retrieving document at 'C:\programme\apache software
>> foundation\tomc
>> at 5.0\webapps\wsrf\_tmp_\Converter.wsdl'.
>> [wsdl2Java] Retrieving document at
>> '../spec/wsrf/WS-ResourceProperties-1_2-Draft
>> _01.wsdl', relative to 'file:/C:/programme/apache software
>> foundation/tomcat 5.0
>> /webapps/wsrf/_tmp_/Converter.wsdl'.
>> [wsdl2Java] Retrieving document at
>> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_0
>> 1.wsdl', relative to 'file:/C:/programme/apache software
>> foundation/tomcat 5.0/w
>> ebapps/wsrf/_tmp_/Converter.wsdl'.
>> [wsdl2Java] Retrieving document at
>> '../spec/wsx/WS-MetadataExchange-2004_09.wsdl
>> ', relative to 'file:/C:/programme/apache software foundation/tomcat
>> 5.0/webapps
>> /wsrf/_tmp_/Converter.wsdl'.
>> [wsdl2Java] Generating XMLBeans for WSDL file "C:\programme\apache
>> software foun
>> dation\tomcat 5.0\webapps\wsrf\_tmp_\Converter.wsdl"...
>> [wsdl2Java] Found existing generated xmlbean jar in the classpath at
>> location: H
>> :\CURRENT\desktop\apache\wsrf-1.0\template\generated\.xmlbeans\lib\Converter-xbe
>>
>> ans.jar ...This will be removed from the classpath sent to Scomp in
>> order to reg
>> enerate all imports.
>> [wsdl2Java] Loading wsdl file C:\programme\apache software
>> foundation\tomcat 5.0
>> \webapps\wsrf\_tmp_\Converter.wsdl
>> [wsdl2Java] Processing 1 schema(s) in C:\programme\apache software
>> foundation\to
>> mcat 5.0\webapps\wsrf\_tmp_\Converter.wsdl
>>
>> BUILD FAILED
>> H:\CURRENT\desktop\apache\wsrf-1.0\template\build.xml:54:
>> java.lang.NullPointerE
>> xception
>>
>> Total time: 5 seconds
>>
>> What is missing here?
>>
>> regards,
>> Wolfgang
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: wsrf-user-help@ws.apache.org
>>
>>
>>  
>>
> Try running with -debug when calling ant...This will provide more
> information and hopefully lead us to what went wrong...
>
> -S
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: wsrf-user-help@ws.apache.org
>
>


Mime
View raw message