tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15077] New: - NPE when reloading servlets in org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:686)
Date Wed, 04 Dec 2002 17:28:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15077>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15077

NPE when reloading servlets in  org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:686)

           Summary: NPE when reloading servlets in
                    org.apache.catalina.core.StandardWrapper.allocate(Standa
                    rdWrapper.java:686)
           Product: Tomcat 4
           Version: 4.1.16
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina:Modules
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: francis.andre@easynet.fr


Hi

Dynamic reloading of a servlet (with or without SingleThreadModel interface) 
leads to a NullPointerException in  
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:686). It 
seems that the instancePool stack is not properly constructed when the 
allocated method is call during a reload. The servlet has nothing really 
special except that it is a second level derivation of HttpServlet and is 
activated thru RequestDispatcher.forward().

2002-12-04 17:42:38 StandardContext[/primer]: Le rechargement de ce contexte a 
démarré
2002-12-04 17:42:38 MYSERVLET01 : MYSERVLET00: DESTROYED
2002-12-04 17:42:38 MYSERVLET01 : MYSERVLET00: DESTROYED
2002-12-04 17:42:38 MYSERVLET00 : MYSERVLET00: DESTROYED
2002-12-04 17:42:38 MYSERVLET00 : MYSERVLET00: DESTROYED
2002-12-04 17:42:38 StandardContext[/primer]: Sending application stop events
2002-12-04 17:42:38 StandardContext[/primer]: Stopping filters
2002-12-04 17:42:38 WebappLoader[/primer]: Deploying class repositories to work 
directory C:\Program Files\Apache Group\Tomcat 4.1.16
\work\Standalone\localhost\primer
2002-12-04 17:42:38 WebappLoader[/primer]: Deploy class files /WEB-INF/classes 
to C:\IWK\MyApp\Primer\WEB-INF\classes
2002-12-04 17:42:38 WebappLoader[/primer]: Deploy JAR /WEB-INF/lib/myapp.jar to 
C:\IWK\MyApp\Primer\WEB-INF\lib\myapp.jar
2002-12-04 17:42:38 WebappLoader[/primer]: Deploy JAR /WEB-INF/lib/percobol.jar 
to C:\IWK\MyApp\Primer\WEB-INF\lib\percobol.jar
2002-12-04 17:42:38 WebappLoader[/primer]: Reloading checks are enabled for 
this Context
2002-12-04 17:42:38 NamingContextListener[/Standalone/localhost/primer]: 
Creating JNDI naming context
2002-12-04 17:42:38 NamingContextListener[/Standalone/localhost/primer]:   
Resource parameters for UserTransaction = null
2002-12-04 17:42:38 StandardContext[/primer]: Configuring application event 
listeners
2002-12-04 17:42:38 StandardContext[/primer]: Sending application start events
2002-12-04 17:42:38 StandardContext[/primer]: Starting filters
2002-12-04 17:42:38 StandardWrapper[/primer:default]: Chargement du conteneur 
(container) de servlet default
2002-12-04 17:42:38 StandardWrapper[/primer:invoker]: Chargement du conteneur 
(container) de servlet invoker
2002-12-04 17:42:38 StandardManager[/primer]: Alimentation de la classe du 
générateur de nombre aléatoire java.security.SecureRandom
2002-12-04 17:42:38 StandardManager[/primer]: L'alimentation du générateur de 
nombre aléatoire est terminé
2002-12-04 17:42:38 StandardContext[/primer]: Le rechargement de ce contexte 
est terminé
2002-12-04 17:42:39 StandardContext[/primer]: Mapping contextPath='/primer' 
with requestURI='/primer/kix' and relativeURI='/kix'
2002-12-04 17:42:39 StandardContext[/primer]:   Trying exact match
2002-12-04 17:42:39 StandardContext[/primer]:  Mapped to servlet 'MyApp 
Executive' with servlet path '/kix' and path info 'null' and update=true
2002-12-04 17:42:39 StandardWrapperValve[MyApp Executive]: Exception lors de 
lallocation pour la servlet {0}
java.lang.NullPointerException
	at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:686)
	at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2407)
	at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex
t(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service
(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:431)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:386)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:537)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message