axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Walsh <>
Subject WSDL packaged with service; useOriginalwsdl and ClassCastException, NullPointerException, & NumberFormatException errors
Date Mon, 19 Apr 2010 18:03:04 GMT

We are working with Axis2 1.5.1 in WebSphere using exploded format and are finding that if
we package the WSDL in the services directory that invocation of the service fails due to
a series of java.lang.ClassCastException, java.lang.NullPointerException, & java.lang.NumberFormatException
errors (attached is a very long stack trace from WebSphere).  This behavior changes slightly
if we include <param name="useOriginalwsdl">true</parameter> in services.xml.
 If we include it with the WSDL the NumberFormatException seems to disappear and if we have
it (false) without the WSDL in the service\<name>\META-INF directory the service still
fails. (Without the WSDL in the META-INF directory the service works fine.) 

I didn't see anything in JIRA or previous threads to match these symptoms, the closest seemed
to be: is still outstanding, but it's for an IllegalArgumentException. is NullPointerException, but specific to
concurrent access, which isn't part of our scenario.

There are two notable differences in the WSDL generated at build time and the WSDL from listServices

            <xs:element name="simpleAdd">
                        <xs:element minOccurs="0" name="toAdd1" type="xs:int"/>
                        <xs:element minOccurs="0" name="toAdd2" type="xs:int"/>

versus (build-time):
                        <xs:element minOccurs="0" name="args0" type="xs:int"/>
                        <xs:element minOccurs="0" name="args1" type="xs:int"/>

Also, the runtime WSDL includes this operation (non-existent) that the build time does not:
            <xs:element name="setSessionContext">
                        <xs:element minOccurs="0" name="sc" nillable="true" type="xs:anyType"/>

setSessionContext appears to be part of Axis2: org.apache.axis2.context.MessageContext.setSessionContext(SessionContext)

Does anyone have any experience/resolution with these symptoms?


The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.

View raw message