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 bu...@apache.org on 2002/11/14 22:15:11 UTC
DO NOT REPLY [Bug 14570] New: -
NullPointer on getBodyByName call
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=14570>.
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=14570
NullPointer on getBodyByName call
Summary: NullPointer on getBodyByName call
Product: Axis
Version: current (nightly)
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: Basic Architecture
AssignedTo: axis-dev@xml.apache.org
ReportedBy: tarass@grandcentral.com
If a body element does not have a namespace defined, you will get a
NullPointerException when you try to search bodies by name.
Ex soap to reproduce the problem:
<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>
<testResponse></testResponse>
</soapenv:Body>
</soapenv:Envelope>
java.lang.NullPointerException
at org.apache.axis.message.SOAPBody.findElement(SOAPBody.java:211)
at org.apache.axis.message.SOAPBody.getBodyByName(SOAPBody.java:196)
at org.apache.axis.message.SOAPEnvelope.getBodyByName
(SOAPEnvelope.java:328)
In SOAPHeader.java similar problem is seen on line 274