-
Bug
-
Resolution: Done
-
Major
-
jboss-ws4ee-4.0.1
-
None
The following piece of code fails:
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage soapMessage = messageFactory.createMessage();
SOAPPart sp = soapMessage.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody main = se.getBody();
main.addDocument(body);
where body is a org.w3c.dom.Document (created with XMLBeans)
the stack trace is:
2005-02-18 14:13:42,958 INFO [STDOUT] java.lang.NullPointerException
2005-02-18 14:13:42,959 INFO [STDOUT] at org.xml.sax.helpers.AttributesImpl.getIndex(Unknown Source)
2005-02-18 14:13:42,959 INFO [STDOUT] at org.apache.axis.message.SOAPElementAxisImpl.setAttribute(SOAPElementAxisImpl.java:1170)
2005-02-18 14:13:42,960 INFO [STDOUT] at org.apache.axis.message.SOAPBodyAxisImpl.importDOMElement(SOAPBodyAxisImpl.java:329)
2005-02-18 14:13:42,960 INFO [STDOUT] at org.apache.axis.message.SOAPBodyAxisImpl.importDOMElement(SOAPBodyAxisImpl.java:339)
2005-02-18 14:13:42,960 INFO [STDOUT] at org.apache.axis.message.SOAPBodyAxisImpl.addDocument(SOAPBodyAxisImpl.java:265)