RE: NullPointerException running WSDL2Java

2006-07-24 Thread Derek
I'd like to point out that WSDL2Java should not throw a NullPointerException
under any circumstances. Please file a JIRA so someone else doesn't stumble
on this bug due to a typo of their own.

Thanks.

Derek

 -Original Message-
 From: Matt Magoffin [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, July 23, 2006 2:40 PM
 To: axis-user@ws.apache.org
 Subject: Re: NullPointerException running WSDL2Java
 
 
 Thank you for spotting that typo, that solved the problem.
 
 -- m@
 
 
  You have a typo in the ProcessMessageOut message definition:
 
   The header part is named responeHeader instead of 
  responseHeader.
 
  Anne
 
  On 7/22/06, Martin Gainty [EMAIL PROTECTED] wrote:
  Matt-
 
  Straight from the horses mouth--
  I fed this wsdl into a validator located at 
  
 http://www.soapclient.com/soapclient?template=%2Fclientform.htmlfn=s
  
 oapformSoapTemplate=%2FSoapResult.htmlSoapWSDL=http://apps.gotdotne
  t.com/xws/wsdlverifier/wsdlverify.asmx?WSDL|
 
ErrorOutputError: Unable to import binding 
 'StarTransport' from 
  namespace 
  
 'http://www.starstandards.org/webservices/2003/12/transport/bindings'
  .
  - Unable to import operation 'ProcessMessage'. - Missing 
 message part
  'responseHeader' for message 'ProcessMessageOut' from namespace
  
 'http://www.starstandards.org/webservices/2003/12/transport/bindings'.
  Parameter name: partName/ErrorOutput
ErrorHintsI was unable to diagnose why this WSDL 
 didn't work. You
  may want to verify that you are using the 2001 XSD Schema (although
  this isn't requried by the WSDL spec, it is the only schema version
  supported by many SOAP SDKs./ErrorHints
 
  As a quick test I could'nt locate your import located at
 
  
 'http://www.starstandards.org/webservices/2003/12/transport/bindings'
  Martin --
 
  
 *
  This email message and any files transmitted with it contain 
  confidential information intended only for the person(s) 
 to whom this 
  email message is
  addressed.  If you have received this email message in 
 error, please
  notify
  the sender immediately by telephone or email and destroy 
 the original
  message without making a copy.  Thank you.
 
 
 
  - Original Message -
  From: Matt Magoffin [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Sent: Friday, July 21, 2006 8:37 PM
  Subject: NullPointerException running WSDL2Java
 
 
   Hello,
  
   I am trying to use Axis2 to generate classes from WSDL. I get the
  below
   exception, however. I've attached my WSDL. This is 
 occurring with 
   the latest nightly build, as well as the 1.0 release. Is there 
   something
  wrong
   with the WSDL by chance?
  
   [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
  Error
   parsing WSDL
   [java] at
   
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(Code
 GenerationEngine.java:123)
   [java] at
  org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
   [java] at
  org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
   [java] at 
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
   Method)
   [java] at
   
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39)
   [java] at
   
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl.java:25)
   [java] at 
 java.lang.reflect.Method.invoke(Method.java:585)
   [java] at
   
 org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
   [java] at
   
 org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.
 java:130)
   [java] at
  org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
   [java] at
   org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
   [java] at
  org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
   [java] at
   
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
   [java] at 
 org.apache.tools.ant.Task.perform(Task.java:364)
   [java] at 
 org.apache.tools.ant.Target.execute(Target.java:341)
   [java] at
  org.apache.tools.ant.Target.performTasks(Target.java:369)
   [java] at
   org.apache.tools.ant.Project.executeTarget(Project.java:1214)
   [java] at
   org.apache.tools.ant.Project.executeTargets(Project.java:1062)
   [java] at 
 org.apache.tools.ant.Main.runBuild(Main.java:673)
   [java] at 
 org.apache.tools.ant.Main.startAnt(Main.java:188)
   [java] at
   org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
   [java] at
   org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
   [java] Caused by: org.apache.axis2.AxisFault: null; nested
  exception is:
   [java] java.lang.NullPointerException
   [java] at
   
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.popula
 teService(WSDL11ToAxisServiceBuilder.java:234)
   [java

Re: NullPointerException running WSDL2Java

2006-07-23 Thread Anne Thomas Manes

You have a typo in the ProcessMessageOut message definition:

The header part is named responeHeader instead of responseHeader.

Anne

On 7/22/06, Martin Gainty [EMAIL PROTECTED] wrote:

Matt-

Straight from the horses mouth--
I fed this wsdl into a validator located at
http://www.soapclient.com/soapclient?template=%2Fclientform.htmlfn=soapformSoapTemplate=%2FSoapResult.htmlSoapWSDL=http://apps.gotdotnet.com/xws/wsdlverifier/wsdlverify.asmx?WSDL|

  ErrorOutputError: Unable to import binding 'StarTransport' from namespace 
'http://www.starstandards.org/webservices/2003/12/transport/bindings'. - Unable to import 
operation 'ProcessMessage'. - Missing message part 'responseHeader' for message 
'ProcessMessageOut' from namespace 
'http://www.starstandards.org/webservices/2003/12/transport/bindings'. Parameter name: 
partName/ErrorOutput
  ErrorHintsI was unable to diagnose why this WSDL didn't work. You may want to 
verify that you are using the 2001 XSD Schema (although this isn't requried by the WSDL 
spec, it is the only schema version supported by many SOAP SDKs./ErrorHints

As a quick test I could'nt locate your import located at
   'http://www.starstandards.org/webservices/2003/12/transport/bindings'
Martin --

*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: Matt Magoffin [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Friday, July 21, 2006 8:37 PM
Subject: NullPointerException running WSDL2Java


 Hello,

 I am trying to use Axis2 to generate classes from WSDL. I get the below
 exception, however. I've attached my WSDL. This is occurring with the
 latest nightly build, as well as the 1.0 release. Is there something wrong
 with the WSDL by chance?

 [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
 parsing WSDL
 [java] at
 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:123)
 [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
 [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 [java] at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:585)
 [java] at
 org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
 [java] at
 org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
 [java] at
 org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
 [java] at
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [java] at org.apache.tools.ant.Task.perform(Task.java:364)
 [java] at org.apache.tools.ant.Target.execute(Target.java:341)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [java] at
 org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 [java] at
 org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 [java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
 [java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
 [java] at
 org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 [java] at
 org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 [java] Caused by: org.apache.axis2.AxisFault: null; nested exception is:
 [java] java.lang.NullPointerException
 [java] at
 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:234)
 [java] at
 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:114)
 [java] ... 21 more
 [java] Caused by: java.lang.NullPointerException
 [java] at
 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:1554)
 [java] at
 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:439)
 [java] at
 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:228)
 [java] ... 22 more







 -
 

Re: NullPointerException running WSDL2Java

2006-07-23 Thread Matt Magoffin
Thank you for spotting that typo, that solved the problem.

-- m@


 You have a typo in the ProcessMessageOut message definition:

  The header part is named responeHeader instead of responseHeader.

 Anne

 On 7/22/06, Martin Gainty [EMAIL PROTECTED] wrote:
 Matt-

 Straight from the horses mouth--
 I fed this wsdl into a validator located at
 http://www.soapclient.com/soapclient?template=%2Fclientform.htmlfn=soapformSoapTemplate=%2FSoapResult.htmlSoapWSDL=http://apps.gotdotnet.com/xws/wsdlverifier/wsdlverify.asmx?WSDL|

   ErrorOutputError: Unable to import binding 'StarTransport' from
 namespace
 'http://www.starstandards.org/webservices/2003/12/transport/bindings'.
 - Unable to import operation 'ProcessMessage'. - Missing message part
 'responseHeader' for message 'ProcessMessageOut' from namespace
 'http://www.starstandards.org/webservices/2003/12/transport/bindings'.
 Parameter name: partName/ErrorOutput
   ErrorHintsI was unable to diagnose why this WSDL didn't work. You
 may want to verify that you are using the 2001 XSD Schema (although
 this isn't requried by the WSDL spec, it is the only schema version
 supported by many SOAP SDKs./ErrorHints

 As a quick test I could'nt locate your import located at
'http://www.starstandards.org/webservices/2003/12/transport/bindings'
 Martin --

 *
 This email message and any files transmitted with it contain
 confidential
 information intended only for the person(s) to whom this email message
 is
 addressed.  If you have received this email message in error, please
 notify
 the sender immediately by telephone or email and destroy the original
 message without making a copy.  Thank you.



 - Original Message -
 From: Matt Magoffin [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Friday, July 21, 2006 8:37 PM
 Subject: NullPointerException running WSDL2Java


  Hello,
 
  I am trying to use Axis2 to generate classes from WSDL. I get the
 below
  exception, however. I've attached my WSDL. This is occurring with the
  latest nightly build, as well as the 1.0 release. Is there something
 wrong
  with the WSDL by chance?
 
  [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
 Error
  parsing WSDL
  [java] at
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:123)
  [java] at
 org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
  [java] at
 org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
  [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
  [java] at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [java] at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [java] at java.lang.reflect.Method.invoke(Method.java:585)
  [java] at
  org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
  [java] at
  org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
  [java] at
 org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
  [java] at
  org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
  [java] at
 org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
  [java] at
  org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  [java] at org.apache.tools.ant.Task.perform(Task.java:364)
  [java] at org.apache.tools.ant.Target.execute(Target.java:341)
  [java] at
 org.apache.tools.ant.Target.performTasks(Target.java:369)
  [java] at
  org.apache.tools.ant.Project.executeTarget(Project.java:1214)
  [java] at
  org.apache.tools.ant.Project.executeTargets(Project.java:1062)
  [java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
  [java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
  [java] at
  org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
  [java] at
  org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
  [java] Caused by: org.apache.axis2.AxisFault: null; nested
 exception is:
  [java] java.lang.NullPointerException
  [java] at
  org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:234)
  [java] at
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:114)
  [java] ... 21 more
  [java] Caused by: java.lang.NullPointerException
  [java] at
  org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:1554)
  [java] at
  org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:439)
  [java] at
  org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:228)
  [java] ... 22 more
 
 


Re: NullPointerException running WSDL2Java

2006-07-22 Thread Martin Gainty
Matt-

Straight from the horses mouth--
I fed this wsdl into a validator located at 
http://www.soapclient.com/soapclient?template=%2Fclientform.htmlfn=soapformSoapTemplate=%2FSoapResult.htmlSoapWSDL=http://apps.gotdotnet.com/xws/wsdlverifier/wsdlverify.asmx?WSDL|

  ErrorOutputError: Unable to import binding 'StarTransport' from namespace 
'http://www.starstandards.org/webservices/2003/12/transport/bindings'. - Unable 
to import operation 'ProcessMessage'. - Missing message part 'responseHeader' 
for message 'ProcessMessageOut' from namespace 
'http://www.starstandards.org/webservices/2003/12/transport/bindings'. 
Parameter name: partName/ErrorOutput 
  ErrorHintsI was unable to diagnose why this WSDL didn't work. You may want 
to verify that you are using the 2001 XSD Schema (although this isn't requried 
by the WSDL spec, it is the only schema version supported by many SOAP 
SDKs./ErrorHints 

As a quick test I could'nt locate your import located at 
   'http://www.starstandards.org/webservices/2003/12/transport/bindings'
Martin --

*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Matt Magoffin [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Friday, July 21, 2006 8:37 PM
Subject: NullPointerException running WSDL2Java


 Hello,
 
 I am trying to use Axis2 to generate classes from WSDL. I get the below
 exception, however. I've attached my WSDL. This is occurring with the
 latest nightly build, as well as the 1.0 release. Is there something wrong
 with the WSDL by chance?
 
 [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error
 parsing WSDL
 [java] at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:123)
 [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
 [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 [java] at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 [java] at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:585)
 [java] at
 org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
 [java] at
 org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
 [java] at
 org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
 [java] at
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [java] at org.apache.tools.ant.Task.perform(Task.java:364)
 [java] at org.apache.tools.ant.Target.execute(Target.java:341)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [java] at
 org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 [java] at
 org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 [java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
 [java] at org.apache.tools.ant.Main.startAnt(Main.java:188)
 [java] at
 org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 [java] at
 org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 [java] Caused by: org.apache.axis2.AxisFault: null; nested exception is:
 [java] java.lang.NullPointerException
 [java] at
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:234)
 [java] at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:114)
 [java] ... 21 more
 [java] Caused by: java.lang.NullPointerException
 [java] at
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:1554)
 [java] at
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:439)
 [java] at
 org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:228)
 [java] ... 22 more
 






 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]