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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to