You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Martin Genhart (JIRA)" <ji...@apache.org> on 2007/10/18 15:24:51 UTC

[jira] Created: (AXIS2-3285) NullpointerException in AbstractHTTPHeader

NullpointerException in AbstractHTTPHeader
------------------------------------------

                 Key: AXIS2-3285
                 URL: https://issues.apache.org/jira/browse/AXIS2-3285
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.3
         Environment: Windows 32, Java 1.5_11
            Reporter: Martin Genhart


The nullpointer happens in the following method if a cookie does not have any parameters:

    private String processCookieHeader(HeaderElement element) {
        String cookie = element.getName() + "=" + element.getValue();
        NameValuePair[] parameters =  element.getParameters();
        for (int j = 0; j < parameters.length; j++) {
            NameValuePair parameter = parameters[j];
            cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
        }
        return cookie;
    }


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


[jira] Updated: (AXIS2-3285) NullpointerException in AbstractHTTPHeader

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

Martin Genhart updated AXIS2-3285:
----------------------------------

    Attachment: AbstractHTTPSender.java

Fixed version of AbstractHTTPSender:

    private String processCookieHeader(HeaderElement element) {
        String cookie = element.getName() + "=" + element.getValue();
        NameValuePair[] parameters =  element.getParameters();
        for (int j = 0; parameters != null && j < parameters.length; j++) {
            NameValuePair parameter = parameters[j];
            cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
        }
        return cookie;
    }


> NullpointerException in AbstractHTTPHeader
> ------------------------------------------
>
>                 Key: AXIS2-3285
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3285
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows 32, Java 1.5_11
>            Reporter: Martin Genhart
>         Attachments: AbstractHTTPSender.java
>
>
> The nullpointer happens in the following method if a cookie does not have any parameters:
>     private String processCookieHeader(HeaderElement element) {
>         String cookie = element.getName() + "=" + element.getValue();
>         NameValuePair[] parameters =  element.getParameters();
>         for (int j = 0; j < parameters.length; j++) {
>             NameValuePair parameter = parameters[j];
>             cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
>         }
>         return cookie;
>     }

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


[jira] Commented: (AXIS2-3285) NullpointerException in AbstractHTTPHeader

Posted by "Keith Godwin Chapman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535921 ] 

Keith Godwin Chapman commented on AXIS2-3285:
---------------------------------------------

Martin,

Can you attach a patch (Not the whole file) so that we can apply it to the codebase.

> NullpointerException in AbstractHTTPHeader
> ------------------------------------------
>
>                 Key: AXIS2-3285
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3285
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows 32, Java 1.5_11
>            Reporter: Martin Genhart
>         Attachments: AbstractHTTPSender.java
>
>
> The nullpointer happens in the following method if a cookie does not have any parameters:
>     private String processCookieHeader(HeaderElement element) {
>         String cookie = element.getName() + "=" + element.getValue();
>         NameValuePair[] parameters =  element.getParameters();
>         for (int j = 0; j < parameters.length; j++) {
>             NameValuePair parameter = parameters[j];
>             cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
>         }
>         return cookie;
>     }

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


[jira] Updated: (AXIS2-3285) NullpointerException in AbstractHTTPHeader

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

Martin Genhart updated AXIS2-3285:
----------------------------------

    Attachment: AbstractHTTPSender.diff

Attached the patch as desired with earlier comments.

> NullpointerException in AbstractHTTPHeader
> ------------------------------------------
>
>                 Key: AXIS2-3285
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3285
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows 32, Java 1.5_11
>            Reporter: Martin Genhart
>            Assignee: Deepal Jayasinghe
>         Attachments: AbstractHTTPSender.diff, AbstractHTTPSender.java
>
>
> The nullpointer happens in the following method if a cookie does not have any parameters:
>     private String processCookieHeader(HeaderElement element) {
>         String cookie = element.getName() + "=" + element.getValue();
>         NameValuePair[] parameters =  element.getParameters();
>         for (int j = 0; j < parameters.length; j++) {
>             NameValuePair parameter = parameters[j];
>             cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
>         }
>         return cookie;
>     }

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


[jira] Commented: (AXIS2-3285) NullpointerException in AbstractHTTPHeader

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541865 ] 

Deepal Jayasinghe commented on AXIS2-3285:
------------------------------------------

To create a patch ,
 first get a svn update and then do you changes. Once you done with your changes you can get the svn diff. so that will be the patch.

Thanks
Deepal

> NullpointerException in AbstractHTTPHeader
> ------------------------------------------
>
>                 Key: AXIS2-3285
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3285
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows 32, Java 1.5_11
>            Reporter: Martin Genhart
>         Attachments: AbstractHTTPSender.java
>
>
> The nullpointer happens in the following method if a cookie does not have any parameters:
>     private String processCookieHeader(HeaderElement element) {
>         String cookie = element.getName() + "=" + element.getValue();
>         NameValuePair[] parameters =  element.getParameters();
>         for (int j = 0; j < parameters.length; j++) {
>             NameValuePair parameter = parameters[j];
>             cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
>         }
>         return cookie;
>     }

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


[jira] Assigned: (AXIS2-3285) NullpointerException in AbstractHTTPHeader

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

Deepal Jayasinghe reassigned AXIS2-3285:
----------------------------------------

    Assignee: Deepal Jayasinghe

> NullpointerException in AbstractHTTPHeader
> ------------------------------------------
>
>                 Key: AXIS2-3285
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3285
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows 32, Java 1.5_11
>            Reporter: Martin Genhart
>            Assignee: Deepal Jayasinghe
>         Attachments: AbstractHTTPSender.java
>
>
> The nullpointer happens in the following method if a cookie does not have any parameters:
>     private String processCookieHeader(HeaderElement element) {
>         String cookie = element.getName() + "=" + element.getValue();
>         NameValuePair[] parameters =  element.getParameters();
>         for (int j = 0; j < parameters.length; j++) {
>             NameValuePair parameter = parameters[j];
>             cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
>         }
>         return cookie;
>     }

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


[jira] Commented: (AXIS2-3285) NullpointerException in AbstractHTTPHeader

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576859#action_12576859 ] 

Davanum Srinivas commented on AXIS2-3285:
-----------------------------------------

Fixed in svn revision 635431

> NullpointerException in AbstractHTTPHeader
> ------------------------------------------
>
>                 Key: AXIS2-3285
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3285
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows 32, Java 1.5_11
>            Reporter: Martin Genhart
>            Assignee: Deepal Jayasinghe
>         Attachments: AbstractHTTPSender.diff, AbstractHTTPSender.java
>
>
> The nullpointer happens in the following method if a cookie does not have any parameters:
>     private String processCookieHeader(HeaderElement element) {
>         String cookie = element.getName() + "=" + element.getValue();
>         NameValuePair[] parameters =  element.getParameters();
>         for (int j = 0; j < parameters.length; j++) {
>             NameValuePair parameter = parameters[j];
>             cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
>         }
>         return cookie;
>     }

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


[jira] Resolved: (AXIS2-3285) NullpointerException in AbstractHTTPHeader

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

Davanum Srinivas resolved AXIS2-3285.
-------------------------------------

    Resolution: Fixed

> NullpointerException in AbstractHTTPHeader
> ------------------------------------------
>
>                 Key: AXIS2-3285
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3285
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows 32, Java 1.5_11
>            Reporter: Martin Genhart
>            Assignee: Deepal Jayasinghe
>         Attachments: AbstractHTTPSender.diff, AbstractHTTPSender.java
>
>
> The nullpointer happens in the following method if a cookie does not have any parameters:
>     private String processCookieHeader(HeaderElement element) {
>         String cookie = element.getName() + "=" + element.getValue();
>         NameValuePair[] parameters =  element.getParameters();
>         for (int j = 0; j < parameters.length; j++) {
>             NameValuePair parameter = parameters[j];
>             cookie = cookie + "; " + parameter.getName() + "=" + parameter.getValue();
>         }
>         return cookie;
>     }

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