You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Kathy Chan (JIRA)" <ax...@ws.apache.org> on 2005/08/30 23:38:05 UTC
[jira] Updated: (AXIS-2201) NullPointerException when running literal wrap service with complex Java type
[ http://issues.apache.org/jira/browse/AXIS-2201?page=all ]
Kathy Chan updated AXIS-2201:
-----------------------------
Attachment: webservice.zip
Zip file containing the AddressBook beans.
> NullPointerException when running literal wrap service with complex Java type
> -----------------------------------------------------------------------------
>
> Key: AXIS-2201
> URL: http://issues.apache.org/jira/browse/AXIS-2201
> Project: Apache Axis
> Type: Bug
> Versions: 1.2.1
> Environment: Windows 2000
> Reporter: Kathy Chan
> Attachments: webservice.zip
>
> Driver: Axis 1.2.1
> I have a AddressBook service bean that has methods that takes in other Java bean Address and PhoneNumber (I'll include the beans in an attachment).
> If I create a bottom-up Web service with this AddressBook bean, when I invoke a method on the Web service, I got a NullPointerException.
> I verified that the Web service is deployed properly (I can ping the endpoint of the Web service).
> The same AddressBook service bean runs fine if I use rpc/encoded or literal with wrapped on.
> Also, I was able to run Web services from other service bean (one that does not take in other Java bean as parameter in methods) using literal encoding.
> Here's the request I sent:
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:q0="http://addressbook.webservice" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <q0:name>Jane</q0:name>
> <q0:address>
> <q0:city>Toronto</q0:city>
> <q0:phoneNumber>
> <q0:area>416</q0:area>
> <q0:number>123</q0:number>
> <q0:prefix>4567</q0:prefix>
> </q0:phoneNumber>
> <q0:postalCode>L4C 8M9</q0:postalCode>
> <q0:province>Ontario</q0:province>
> <q0:street>Yonge St.</q0:street>
> </q0:address>
> </soapenv:Body>
> </soapenv:Envelope>
> Here's the response I get:
> - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> - <soapenv:Body>
> - <soapenv:Fault>
> <faultcode>soapenv:Server.userException</faultcode>
> <faultstring>java.lang.NullPointerException</faultstring>
> - <detail>
> <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">kathy</ns1:hostname>
> </detail>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira