Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.1
-
None
-
None
-
Any tomcat platform and version and axis2-1.1.x in scope=application
Description
Hi Team,
I am running myService5 in application scope! axis2-1.1
when stop is called from http://alpha1:8080/manager/html/start?path=/axis2
myService5.destroy() is called too late and an exception is raised
2007-01-17 08:01:54,518 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying module : addressing-1.1
2007-01-17 08:01:54,518 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying module : logging
2007-01-17 08:01:54,549 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying module : soapmonitor-1.1
2007-01-17 08:01:54,908 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service Library.aar
2007-01-17 08:01:54,940 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyService.aar
2007-01-17 08:01:54,971 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyService1.aar
2007-01-17 08:01:55,705 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyService4.aar
2007-01-17 08:01:56,143 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyService5.aar
2007-01-17 08:01:56,174 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyServiceWithModule.aar
2007-01-17 08:01:56,190 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service version.aar
2007-01-17 08:01:56,205 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service WsaMappingService.aar
2007-01-17 08:01:56,221 INFO userguide.example5.MyService - MyService5.init() called ********************************
So far the stdout_20070117.log of tomcat running on my PC
BUG: calling myService5.destroy(sc) in scope=application is called too late up on receiving the stop signal from the tomcat manager
The exception logged is
2007-01-17 08:07:32,808 INFO org.apache.axis2.engine.DependencyManager - Exception trying to call destroy
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.engine.DependencyManager.destroyServiceObject(DependencyManager.java:127)
at org.apache.axis2.context.ConfigurationContext.cleanupServiceContexts(ConfigurationContext.java:356)
at org.apache.axis2.context.ConfigurationContext.cleanupContexts(ConfigurationContext.java:370)
at org.apache.axis2.engine.ListenerManager.stop(ListenerManager.java:177)
at org.apache.axis2.transport.http.AxisServlet.destroy(AxisServlet.java:114)
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1326)
at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1654)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4345)
at org.apache.catalina.manager.ManagerServlet.stop(ManagerServlet.java:1226)
at org.apache.catalina.manager.HTMLManagerServlet.stop(HTMLManagerServlet.java:545)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at userguide.example5.MyService.destroy(MyService.java:98)
... 35 more
2007-01-17 08:07:32,823 INFO org.apache.axis2.context.ConfigurationContext - null; nested exception is:
java.lang.reflect.InvocationTargetException
Now clicking start in at http://localhost:8080/manager/html/stop?path=/axis2 the following happens, which seams to
be working correct. on the PC, but start() failed yesterday flat on a OpenVMS platform. (maybe a resource problem)
2007-01-17 08:17:03,229 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying module : addressing-1.1
2007-01-17 08:17:03,244 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying module : logging
2007-01-17 08:17:03,260 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying module : soapmonitor-1.1
2007-01-17 08:17:03,557 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service Library.aar
2007-01-17 08:17:03,588 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyService.aar
2007-01-17 08:17:03,619 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyService1.aar
2007-01-17 08:17:04,057 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyService4.aar
2007-01-17 08:17:04,494 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyService5.aar
2007-01-17 08:17:04,510 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service MyServiceWithModule.aar
2007-01-17 08:17:04,525 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service version.aar
2007-01-17 08:17:04,541 INFO org.apache.axis2.deployment.DeploymentEngine - Deploying Web service WsaMappingService.aar
2007-01-17 08:17:04,557 INFO userguide.example5.MyService - MyService5.init() called ****************************
Josef.Stadelmann
@winterthur.ch
Josef.Stadelmann
@winterthur.ch