[
https://issues.apache.org/jira/browse/XALANJ-2396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526430
]
Dr. Java commented on XALANJ-2396:
----------------------------------
SAAJ ppl say they cannot fix this w/o proper test case.
Since SAAJ relies on Sun-JAXP which is a fork of Xerces2, could it be that this
behaviour is from an older bug in Xerces?
https://saaj.dev.java.net/issues/show_bug.cgi?id=26
> NullPointerException serializing a SOAPPart document
> ----------------------------------------------------
>
> Key: XALANJ-2396
> URL: https://issues.apache.org/jira/browse/XALANJ-2396
> Project: XalanJ2
> Issue Type: Bug
> Components: Serialization
> Affects Versions: 2.7
> Reporter: Dr. Java
> Attachments: serializeAttributes_npe.patch
>
>
> When trying to serialize a SOAPPart document using the SUN "Soap w/
> Attachments API" (saaj 1.3), I get a NullPointerException in
> DOM3TreeWalker.serializeAttList (line 678).
> Sample code looks like this:
> protected void doConversion(final SOAPMessage message)
> throws Exception
> {
> LSSerializer serializer = this.impl.createLSSerializer();
> LSOutput output = impl.createLSOutput();
> StringWriter w = new StringWriter();
> output.setCharacterStream(w);
> serializer.write(message.getSOAPPart(), output);
> }
--
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]