Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-127

NullPointerException in SOAPBodyAxisImpl.addDocument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-ws4ee-4.0.2
    • jboss-ws4ee-4.0.1
    • jbossws-native
    • 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)

            tdiesler@redhat.com Thomas Diesler
            agdolla_jira Gabor Dolla (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: