[ 
https://issues.apache.org/jira/browse/WSCOMMONS-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463067
 ] 

Steven La Corte commented on WSCOMMONS-144:
-------------------------------------------

Thank you Deepal!

Does the method serializeElement(XMLStreamReader reader, XMLStreamWriter writer)
of org.apache.axiom.om.impl.serialize.StreamingOMSerializer also require the 
above change?

I am looking at axiom 1.2.1src. I had to also change StreamingOMSerializer to 
get the NPE to go away.

> Axiom having problem when serializing name spaces with null nameSpaceUri
> ------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-144
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-144
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Deepal Jayasinghe
>            Priority: Blocker
>
> As I can see its a problem in OMSerializerUtil , changing serializeStartpart 
> method will solve the issue.
> if (writePrefixList != null) {
>          for (int i=0; i<writePrefixList.size(); i++) {
>          String prefix = (String) writePrefixList.get(i);
>          String namespace = (String) writeNSList.get(i);
>          if (prefix != null) {
>                     if(namespace==null){
>                         writer.writeNamespace(prefix, "");
>                     } else{
>                         writer.writeNamespace(prefix, namespace);
>                     }
>              } else {
>              writer.writeDefaultNamespace(namespace);
>              }
>          }
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to