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 "david (JIRA)" <ji...@apache.org> on 2007/08/03 20:26:52 UTC
[jira] Created: (AXIS2-3067) NullPointerException from
request.getSession().setAttribute(Constants.SERVICE_MAP, null);
NullPointerException from request.getSession().setAttribute(Constants.SERVICE_MAP, null);
-----------------------------------------------------------------------------------------
Key: AXIS2-3067
URL: https://issues.apache.org/jira/browse/AXIS2-3067
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Affects Versions: 1.2, 1.3, nightly
Environment: RHEL4.0, Netscape Enterprise Server (NES) 6.2, FireFox
Reporter: david
In \axis2\axis2-web\listServices.jsp file, there is a call request.getSession().setAttribute(Constants.SERVICE_MAP, null); this call works in servlet 2.3 specification, but not servlet 2.2 spec, the NES6.2 claimed to be servlet 2.3 compliance, but in its class IWSHttpSession.java(I decompiled their code), which implemented HttpSession interface, and followed servlet 2.2 spec. and throw NullPointerException if a null value passes in, in 2.3 spec, a null value passed in is equal to removeAttribute().
Suggestion:
Change
request.getSession().setAttribute(Constants.SERVICE_MAP, null);
to
request.getSession().removeAttribute(Constants.SERVICE_MAP);
this change will support both 2.2 and 2.3 spec., so the NES6.2 can continue to run.
--
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-3067) NullPointerException from
request.getSession().setAttribute(Constants.SERVICE_MAP, null);
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe resolved AXIS2-3067.
--------------------------------------
Resolution: Fixed
Deploy the service in transport session in order to do this.
Thank you!
Deepal
> NullPointerException from request.getSession().setAttribute(Constants.SERVICE_MAP, null);
> -----------------------------------------------------------------------------------------
>
> Key: AXIS2-3067
> URL: https://issues.apache.org/jira/browse/AXIS2-3067
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.3, 1.2, nightly
> Environment: RHEL4.0, Netscape Enterprise Server (NES) 6.2, FireFox
> Reporter: david
> Assignee: Deepal Jayasinghe
>
> In \axis2\axis2-web\listServices.jsp file, there is a call request.getSession().setAttribute(Constants.SERVICE_MAP, null); this call works in servlet 2.3 specification, but not servlet 2.2 spec, the NES6.2 claimed to be servlet 2.3 compliance, but in its class IWSHttpSession.java(I decompiled their code), which implemented HttpSession interface, and followed servlet 2.2 spec. and throw NullPointerException if a null value passes in, in 2.3 spec, a null value passed in is equal to removeAttribute().
> Suggestion:
> Change
> request.getSession().setAttribute(Constants.SERVICE_MAP, null);
> to
> request.getSession().removeAttribute(Constants.SERVICE_MAP);
> this change will support both 2.2 and 2.3 spec., so the NES6.2 can continue to run.
--
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-3067) NullPointerException from
request.getSession().setAttribute(Constants.SERVICE_MAP, null);
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-3067:
----------------------------------------
Assignee: Deepal Jayasinghe
> NullPointerException from request.getSession().setAttribute(Constants.SERVICE_MAP, null);
> -----------------------------------------------------------------------------------------
>
> Key: AXIS2-3067
> URL: https://issues.apache.org/jira/browse/AXIS2-3067
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Affects Versions: 1.3, 1.2, nightly
> Environment: RHEL4.0, Netscape Enterprise Server (NES) 6.2, FireFox
> Reporter: david
> Assignee: Deepal Jayasinghe
>
> In \axis2\axis2-web\listServices.jsp file, there is a call request.getSession().setAttribute(Constants.SERVICE_MAP, null); this call works in servlet 2.3 specification, but not servlet 2.2 spec, the NES6.2 claimed to be servlet 2.3 compliance, but in its class IWSHttpSession.java(I decompiled their code), which implemented HttpSession interface, and followed servlet 2.2 spec. and throw NullPointerException if a null value passes in, in 2.3 spec, a null value passed in is equal to removeAttribute().
> Suggestion:
> Change
> request.getSession().setAttribute(Constants.SERVICE_MAP, null);
> to
> request.getSession().removeAttribute(Constants.SERVICE_MAP);
> this change will support both 2.2 and 2.3 spec., so the NES6.2 can continue to run.
--
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