ws-wsrf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Campana Jr., Salvatore J" <sal.camp...@hp.com>
Subject RE: wsdl2java NullPointerException
Date Fri, 16 Sep 2005 13:18:50 GMT
You don't have to, we recommend it though so that if you are offline
everything will just work...

There are a few minor circumstances where we may have needed to repair a
spec wsdl or schema (sometimes there are mistakes), and in those cases
we're made those fixes in our copies....but ultimately it is up to
you...

-S

-----Original Message-----
From: Wolfgang Schreiner [mailto:e9902261@student.tuwien.ac.at] 
Sent: Thursday, September 15, 2005 7:25 PM
To: wsrf-user@ws.apache.org
Subject: Re: wsdl2java NullPointerException

one more question:
when working with wsrf, is it necessary to download and reference xsds
and wsdls locally as it is done in the _TEMPLATE_.wsdl for instance?
<import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex"
location="../spec/wsx/WS-MetadataExchange-2004_09.wsdl"/>
thanks,

wol.


Campana Jr., Salvatore J wrote:

>Well its an easy mistake and now I've added logic to check for this 
>sort of thing...
>
>Thanks!!
>
>-Sal
>
>-----Original Message-----
>From: Wolfgang Schreiner [mailto:e9902261@student.tuwien.ac.at]
>Sent: Thursday, September 15, 2005 12:40 PM
>To: wsrf-user@ws.apache.org
>Subject: Re: wsdl2java NullPointerException
>
>that's it ... thanks a lot!
>(should be more careful when modifying templates)
>
>
>Campana Jr., Salvatore J wrote:
>
>  
>
>>Your binding does not point to the defined portType in the WSDL....If 
>>you fix that it will work..
>>
>>I'll try to add some logic to check for this and add some debug to 
>>avoid this confusion...
>>
>>-Sal
>>
>>-----Original Message-----
>>From: Wolfgang Schreiner [mailto:e9902261@student.tuwien.ac.at]
>>Sent: Thursday, September 15, 2005 11:52 AM
>>To: wsrf-user@ws.apache.org
>>Subject: Re: wsdl2java NullPointerException
>>
>>here it is ... I just changed definition, service and portType name to

>>see if a get it running with its basics regards, wol.
>>
>>
>>
>>Campana Jr., Salvatore J wrote:
>>
>> 
>>
>>    
>>
>>>Can you send Converter.wsdl...It has something to do with that (not 
>>>to
>>>      
>>>
>
>  
>
>>>say its not a bug)...So with it I can see whats happening...
>>>
>>>Thx!!
>>>
>>>-Sal
>>>
>>>-----Original Message-----
>>>From: Wolfgang Schreiner [mailto:e9902261@student.tuwien.ac.at]
>>>Sent: Thursday, September 15, 2005 10:14 AM
>>>To: wsrf-user@ws.apache.org
>>>Subject: Re: wsdl2java NullPointerException
>>>
>>>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\
>>>>>C
>>>>>o
>>>>>nverter-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
>>>>
>>>>
>>>>  
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>>>For additional commands, e-mail: wsrf-user-help@ws.apache.org
>>>
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: wsrf-user-help@ws.apache.org
>>
>>
>> 
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: wsrf-user-help@ws.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: wsrf-user-help@ws.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: wsrf-user-unsubscribe@ws.apache.org
For additional commands, e-mail: wsrf-user-help@ws.apache.org


---------------------------------------------------------------------
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