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 "Srinath Perera (JIRA)" <ji...@apache.org> on 2005/07/21 17:54:26 UTC

[jira] Resolved: (AXIS2-89) NPE in AxisServlet

     [ http://issues.apache.org/jira/browse/AXIS2-89?page=all ]
     
Srinath Perera resolved AXIS2-89:
---------------------------------

    Resolution: Fixed

I revert the code .. Sorry my mistake .. forget that I change it  among other commits

> NPE in AxisServlet
> ------------------
>
>          Key: AXIS2-89
>          URL: http://issues.apache.org/jira/browse/AXIS2-89
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: core
>  Environment: Tomcat5.0 servlet container
>     Reporter: Jayachandra Sekhara Rao Sunkara
>     Priority: Blocker

>
> I built the latest svn sources and replaced the axis2 jar of 0.9 release with the latest jar. And restarted Tomcat. Strangely the services didn't get deployed (even the default Version service) and the servlet container logs show the following NPE
> java.lang.NullPointerException
> 	javax.servlet.GenericServlet.getServletContext(GenericServlet.java:159)
> 	org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:80)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> Looks the following line newly added in AxisServlet.java doesn't check for nullity.
> ConfigurationContext configContext =
>             (ConfigurationContext) getServletContext().getAttribute(CONFIGURATION_CONTEXT);
> Can someone fix this at the earliest.
> Thank you
> Jayachandra

-- 
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