NullPointerException in MessageElement.copyNode for DOM Documents with 
Processing Instructions
----------------------------------------------------------------------------------------------

                 Key: AXIS-2729
                 URL: https://issues.apache.org/jira/browse/AXIS-2729
             Project: Axis
          Issue Type: Bug
          Components: Serialization/Deserialization
    Affects Versions: 1.4
         Environment: Vista, java 1.6
            Reporter: Ralph LeVan


Trying to create a MessageElement from a DOM Document that contains a 
processing instruction results in a NullPointerException

Here's a trivial demonstration:
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        DocumentBuilder db=dbf.newDocumentBuilder();
        Document domDoc = db.parse(new InputSource(new 
StringReader("<rec><data>stuff</data><?boom?></rec>")));
        Element el = domDoc.getDocumentElement();
        new MessageElement(el);

The root problem is that MessageElement is only prepared to accept nodes of 
type CharacterData.  I have enhanced MessageElement and NodeImpl to accept 
processing instructions.

I will submit the changes to the developers list

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to