axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3161) NullPointerException using WSDL2Java in Axis2 1.3.
Date Mon, 24 Dec 2007 08:40:43 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amila Chinthaka Suriarachchi resolved AXIS2-3161.
-------------------------------------------------

    Resolution: Cannot Reproduce

We can not reproduce this error without the wsdl. please attach the wsdl and reopen the issue

> NullPointerException using  WSDL2Java in Axis2 1.3.
> ---------------------------------------------------
>
>                 Key: AXIS2-3161
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3161
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb, Tools, wsdl
>         Environment: Debian testing - Java 1.5.0.11, Apache Ant version 1.6.5
>            Reporter: Petr Kremen
>
> I got the NullPointerException on WSDL2Java
> I use ant - both dedicated task (not shown) and direct Java call  (below) result in 
the same error.
>  	<target name="generate.adb.service.cl">
> 		<delete dir="${gen-srv.adb.dir}" />
> 		<java classname="org.apache.axis2.wsdl.WSDL2Java">
> 			<classpath refid="axis2.classpath" />
> 			<arg value="-d" />
> 			<arg value="adb" />
> 			<arg value="-uri" />
> 			<arg file="${wsdl.file}" />
> 			<arg value="-ss" />
> 			<arg value="-sd" />
> 			<arg value="-wv" />
> 			<arg value="${wsdl.file.version}" />
> 			<arg value="-o" />
> 			<arg file="${gen-srv.adb.dir}" />
> 			<arg value="-p" />
> 			<arg value="${gen-srv.adb.pkg}" />
> 		</java>
> The stacktrace is the following 
>      [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
>      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
>      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
>      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
>      [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.executeSortedTargets(Project.java:1216)
>      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>      [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>      [java] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>      [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
>      [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
>      [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
>      [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:137)
>      [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:202)
>      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
>      [java] ... 14 more
>      [java] Caused by: org.apache.axis2.AxisFault
>      [java] at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:227)
>      [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:93)
>      [java] ... 22 more
>      [java] Caused by: java.lang.NullPointerException
>      [java] at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:296)
>      [java] at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:224)
>      [java] ... 23 more
>      [java] --- Nested Exception ---
>      [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
>      [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:137)
>      [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:202)
>      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
>      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
>      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
>      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
>      [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.executeSortedTargets(Project.java:1216)
>      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>      [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>      [java] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>      [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
>      [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
>      [java] Caused by: org.apache.axis2.AxisFault
>      [java] at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:227)
>      [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:93)
>      [java] ... 22 more
>      [java] Caused by: java.lang.NullPointerException
>      [java] at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:296)
>      [java] at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:224)
>      [java] ... 23 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message