You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Steven La Corte (JIRA)" <ji...@apache.org> on 2007/01/08 17:41:27 UTC

[jira] Commented: (WSCOMMONS-144) Axiom having problem when serializing name spaces with null nameSpaceUri

    [ 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


Re: [jira] Commented: (WSCOMMONS-144) Axiom having problem when serializing name spaces with null nameSpaceUri

Posted by Deepal jayasinghe <de...@gmail.com>.
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org