-
Bug
-
Resolution: Done
-
Major
-
jboss-ws4ee-4.0.1
-
None
-
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
linux - 2.4.18-14 - Red Hat Linux release 8.0 (Psyche)
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)