You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by "Yevgeny Rouban (JIRA)" <ji...@apache.org> on 2006/04/09 03:50:23 UTC

[jira] Created: (WSS-41) WSDoAllReceiver throws NPE if older WssNS is used

WSDoAllReceiver throws NPE if older WssNS is used
-------------------------------------------------

         Key: WSS-41
         URL: http://issues.apache.org/jira/browse/WSS-41
     Project: WSS4J
        Type: Bug

    Reporter: Yevgeny Rouban
 Assigned to: Davanum Srinivas 
    Priority: Minor


In the following part of the WSDoAllReceiver I encountered a NullPointerException (headerElement == null
ath the last command) because my SOAP envelope had wsseNS other than WSConstants.WSSE_NS.
Actually that was set to WSSE_NS_OASIS_2003_06. So I suggest to change 

hE.getNamespaceURI().equals(WSConstants.WSSE_NS)  
to 
hE.getNamespaceURI().equals(reqData.getWssConfig().getWsseNS())

---------------------------------------- WSDoAllReceiver.java
           Iterator headers = sHeader.examineHeaderElements(actor);

            SOAPHeaderElement headerElement = null;
            while (headers.hasNext()) {
                org.apache.axis.message.SOAPHeaderElement hE = (org.apache.axis.message.SOAPHeaderElement) headers.next();
                if (hE.getLocalName().equals(WSConstants.WSSE_LN)
                        && hE.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
                    headerElement = hE;
                    break;
                }
            }
            ((org.apache.axis.message.SOAPHeaderElement) headerElement)
                    .setProcessed(true);
---------------------------------------- 


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


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


[jira] Commented: (WSS-41) WSDoAllReceiver throws NPE if older WssNS is used

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635378#action_12635378 ] 

Colm O hEigeartaigh commented on WSS-41:
----------------------------------------


Does one of the Axis devs feel like tackling this one?

> WSDoAllReceiver throws NPE if older WssNS is used
> -------------------------------------------------
>
>                 Key: WSS-41
>                 URL: https://issues.apache.org/jira/browse/WSS-41
>             Project: WSS4J
>          Issue Type: Bug
>            Reporter: Yevgeny Rouban
>            Priority: Minor
>             Fix For: 1.5.5
>
>
> In the following part of the WSDoAllReceiver I encountered a NullPointerException (headerElement == null
> ath the last command) because my SOAP envelope had wsseNS other than WSConstants.WSSE_NS.
> Actually that was set to WSSE_NS_OASIS_2003_06. So I suggest to change 
> hE.getNamespaceURI().equals(WSConstants.WSSE_NS)  
> to 
> hE.getNamespaceURI().equals(reqData.getWssConfig().getWsseNS())
> ---------------------------------------- WSDoAllReceiver.java
>            Iterator headers = sHeader.examineHeaderElements(actor);
>             SOAPHeaderElement headerElement = null;
>             while (headers.hasNext()) {
>                 org.apache.axis.message.SOAPHeaderElement hE = (org.apache.axis.message.SOAPHeaderElement) headers.next();
>                 if (hE.getLocalName().equals(WSConstants.WSSE_LN)
>                         && hE.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
>                     headerElement = hE;
>                     break;
>                 }
>             }
>             ((org.apache.axis.message.SOAPHeaderElement) headerElement)
>                     .setProcessed(true);
> ---------------------------------------- 

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


[jira] Updated: (WSS-41) WSDoAllReceiver throws NPE if older WssNS is used

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh updated WSS-41:
-----------------------------------

    Fix Version/s:     (was: 1.5.5)


Leaving this one for a future release.

> WSDoAllReceiver throws NPE if older WssNS is used
> -------------------------------------------------
>
>                 Key: WSS-41
>                 URL: https://issues.apache.org/jira/browse/WSS-41
>             Project: WSS4J
>          Issue Type: Bug
>            Reporter: Yevgeny Rouban
>            Priority: Minor
>
> In the following part of the WSDoAllReceiver I encountered a NullPointerException (headerElement == null
> ath the last command) because my SOAP envelope had wsseNS other than WSConstants.WSSE_NS.
> Actually that was set to WSSE_NS_OASIS_2003_06. So I suggest to change 
> hE.getNamespaceURI().equals(WSConstants.WSSE_NS)  
> to 
> hE.getNamespaceURI().equals(reqData.getWssConfig().getWsseNS())
> ---------------------------------------- WSDoAllReceiver.java
>            Iterator headers = sHeader.examineHeaderElements(actor);
>             SOAPHeaderElement headerElement = null;
>             while (headers.hasNext()) {
>                 org.apache.axis.message.SOAPHeaderElement hE = (org.apache.axis.message.SOAPHeaderElement) headers.next();
>                 if (hE.getLocalName().equals(WSConstants.WSSE_LN)
>                         && hE.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
>                     headerElement = hE;
>                     break;
>                 }
>             }
>             ((org.apache.axis.message.SOAPHeaderElement) headerElement)
>                     .setProcessed(true);
> ---------------------------------------- 

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


[jira] Updated: (WSS-41) WSDoAllReceiver throws NPE if older WssNS is used

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh updated WSS-41:
-----------------------------------

    Fix Version/s: 1.5.5

> WSDoAllReceiver throws NPE if older WssNS is used
> -------------------------------------------------
>
>                 Key: WSS-41
>                 URL: https://issues.apache.org/jira/browse/WSS-41
>             Project: WSS4J
>          Issue Type: Bug
>            Reporter: Yevgeny Rouban
>            Priority: Minor
>             Fix For: 1.5.5
>
>
> In the following part of the WSDoAllReceiver I encountered a NullPointerException (headerElement == null
> ath the last command) because my SOAP envelope had wsseNS other than WSConstants.WSSE_NS.
> Actually that was set to WSSE_NS_OASIS_2003_06. So I suggest to change 
> hE.getNamespaceURI().equals(WSConstants.WSSE_NS)  
> to 
> hE.getNamespaceURI().equals(reqData.getWssConfig().getWsseNS())
> ---------------------------------------- WSDoAllReceiver.java
>            Iterator headers = sHeader.examineHeaderElements(actor);
>             SOAPHeaderElement headerElement = null;
>             while (headers.hasNext()) {
>                 org.apache.axis.message.SOAPHeaderElement hE = (org.apache.axis.message.SOAPHeaderElement) headers.next();
>                 if (hE.getLocalName().equals(WSConstants.WSSE_LN)
>                         && hE.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
>                     headerElement = hE;
>                     break;
>                 }
>             }
>             ((org.apache.axis.message.SOAPHeaderElement) headerElement)
>                     .setProcessed(true);
> ---------------------------------------- 

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


[jira] Updated: (WSS-41) WSDoAllReceiver throws NPE if older WssNS is used

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated WSS-41:
--------------------------------

    Assignee:     (was: Davanum Srinivas)

> WSDoAllReceiver throws NPE if older WssNS is used
> -------------------------------------------------
>
>                 Key: WSS-41
>                 URL: https://issues.apache.org/jira/browse/WSS-41
>             Project: WSS4J
>          Issue Type: Bug
>            Reporter: Yevgeny Rouban
>            Priority: Minor
>
> In the following part of the WSDoAllReceiver I encountered a NullPointerException (headerElement == null
> ath the last command) because my SOAP envelope had wsseNS other than WSConstants.WSSE_NS.
> Actually that was set to WSSE_NS_OASIS_2003_06. So I suggest to change 
> hE.getNamespaceURI().equals(WSConstants.WSSE_NS)  
> to 
> hE.getNamespaceURI().equals(reqData.getWssConfig().getWsseNS())
> ---------------------------------------- WSDoAllReceiver.java
>            Iterator headers = sHeader.examineHeaderElements(actor);
>             SOAPHeaderElement headerElement = null;
>             while (headers.hasNext()) {
>                 org.apache.axis.message.SOAPHeaderElement hE = (org.apache.axis.message.SOAPHeaderElement) headers.next();
>                 if (hE.getLocalName().equals(WSConstants.WSSE_LN)
>                         && hE.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
>                     headerElement = hE;
>                     break;
>                 }
>             }
>             ((org.apache.axis.message.SOAPHeaderElement) headerElement)
>                     .setProcessed(true);
> ---------------------------------------- 

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


[jira] Closed: (WSS-41) WSDoAllReceiver throws NPE if older WssNS is used

Posted by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh closed WSS-41.
----------------------------------

    Resolution: Won't Fix


Closing this, due to a lack of interest in fixing it.

> WSDoAllReceiver throws NPE if older WssNS is used
> -------------------------------------------------
>
>                 Key: WSS-41
>                 URL: https://issues.apache.org/jira/browse/WSS-41
>             Project: WSS4J
>          Issue Type: Bug
>            Reporter: Yevgeny Rouban
>            Priority: Minor
>
> In the following part of the WSDoAllReceiver I encountered a NullPointerException (headerElement == null
> ath the last command) because my SOAP envelope had wsseNS other than WSConstants.WSSE_NS.
> Actually that was set to WSSE_NS_OASIS_2003_06. So I suggest to change 
> hE.getNamespaceURI().equals(WSConstants.WSSE_NS)  
> to 
> hE.getNamespaceURI().equals(reqData.getWssConfig().getWsseNS())
> ---------------------------------------- WSDoAllReceiver.java
>            Iterator headers = sHeader.examineHeaderElements(actor);
>             SOAPHeaderElement headerElement = null;
>             while (headers.hasNext()) {
>                 org.apache.axis.message.SOAPHeaderElement hE = (org.apache.axis.message.SOAPHeaderElement) headers.next();
>                 if (hE.getLocalName().equals(WSConstants.WSSE_LN)
>                         && hE.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
>                     headerElement = hE;
>                     break;
>                 }
>             }
>             ((org.apache.axis.message.SOAPHeaderElement) headerElement)
>                     .setProcessed(true);
> ---------------------------------------- 

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