Hi Steven; Oh , I didnt see that , seem we need to fix that too .
Thanks Deepal > [ > 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); >> } >> } >> } >> >> > > > -- Thanks, Deepal ................................................................ "The highest tower is built one brick at a time" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
