axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph LeVan (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-2729) NullPointerException in MessageElement.copyNode for DOM Documents with Processing Instructions
Date Fri, 14 Mar 2008 17:52:25 GMT
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message