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 "Jayachandra Sekhara Rao Sunkara (JIRA)" <ji...@apache.org> on 2005/07/21 13:08:13 UTC

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

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


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

Posted by jayachandra <ja...@gmail.com>.
Hi Deepal!
Thanks for the reply. But looks like Srinath already fixed that one.

Bye
Jaya

On 7/22/05, Deepal Jayasinghe <de...@opensource.lk> wrote:
> can up please build a war file and check , I mean rather than replacing  0.9
> jar.
> 
> Thanks,
>  Deepal
> ................................................................
> ~Future is Open~
> 
> 
> 
> ----- Original Message -----
> From: "Jayachandra Sekhara Rao Sunkara (JIRA)" <ji...@apache.org>
> To: <ax...@ws.apache.org>
> Sent: Thursday, July 21, 2005 5:08 PM
> Subject: [jira] Created: (AXIS2-89) NPE in AxisServlet
> 
> 
> > 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
> >
> >
> >
> 
> 
> 


-- 
-- Jaya

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

Posted by Deepal Jayasinghe <de...@opensource.lk>.
can up please build a war file and check , I mean rather than replacing  0.9 
jar.

Thanks,
 Deepal
................................................................
~Future is Open~



----- Original Message ----- 
From: "Jayachandra Sekhara Rao Sunkara (JIRA)" <ji...@apache.org>
To: <ax...@ws.apache.org>
Sent: Thursday, July 21, 2005 5:08 PM
Subject: [jira] Created: (AXIS2-89) NPE in AxisServlet


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



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

Posted by "Srinath Perera (JIRA)" <ji...@apache.org>.
     [ 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