axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19600] New: - Java2WSDL reports NullPointerException
Date Fri, 02 May 2003 15:59:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19600>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19600

Java2WSDL reports NullPointerException

           Summary: Java2WSDL reports NullPointerException
           Product: Axis
           Version: 1.1rc2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: andrew.harris@intersystems.com


When running Java2WSDL on a Java porttype interface which was previously
generated from a WSDL file using WSDL2Java, a NullPointerException is thrown.
The service is however working, the attached Java code includes a JUnit test
which demonstrates this.

A NullPointerException is also thrown when attempting to view the WSDL generated
using the Axis service URL
http://localhost:8080/axis/services/HelloServiceSoap?wsdl.

Using Axis 1.1 rc2, j2sdk 1.4.1_02.

The Java2WSDL command and stack trace are shown below, and the source code will
be attached.

Stack Trace
-----------

$ java org.apache.axis.wsdl.Java2WSDL -l"generated.wsdl"
helloservice.HelloServi
ceSoap
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.lang.NullPointerException
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:
java.lang.NullPointerException
        at
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerialize
r.java:370)
        at
org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1311)
        at
org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:321)
        at
org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java
:1335)
        at
org.apache.axis.wsdl.fromJava.Emitter.writeResponseMessage(Emitter.ja
va:1228)
        at
org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:882)

        at
org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:839)

        at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:383)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:262)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:334)
        at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:504)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:542)


java.lang.NullPointerException
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
        at
org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1313)
        at
org.apache.axis.wsdl.fromJava.Types.writeTypeForPart(Types.java:321)
        at
org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java
:1335)
        at
org.apache.axis.wsdl.fromJava.Emitter.writeResponseMessage(Emitter.ja
va:1228)
        at
org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:882)

        at
org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:839)

        at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:383)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:262)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:334)
        at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:504)
        at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:542)
Caused by: java.lang.NullPointerException
        at
org.apache.axis.encoding.ser.BeanSerializer.writeSchema(BeanSerialize
r.java:370)
        at
org.apache.axis.wsdl.fromJava.Types.makeTypeElement(Types.java:1311)
        ... 10 more
$

Mime
View raw message