4 Replies Latest reply on Oct 31, 2003 6:56 AM by Jean-Michel Delsaux

    JBOSS 3.2.2 - javax.naming.CommunicationException when shutD

    Jean-Michel Delsaux Newbie

      Hi,

      I have the next error when i shutdown the JBOSS 3.2.2 server:

      ...
      2003-10-29 09:47:26,234 INFO [org.jboss.invocation.http.server.HttpProxyFactory] Stopping jboss:service=invoker,type=http,target=Naming
      2003-10-29 09:47:26,234 INFO [org.jboss.invocation.http.server.HttpInvokerHA] Stopping jboss:service=invoker,type=httpHA
      2003-10-29 09:47:26,234 INFO [org.jboss.invocation.http.server.HttpInvoker] Stopping jboss:service=invoker,type=http
      2003-10-29 09:47:26,250 WARN [org.jnp.interfaces.NamingContext] Failed to connect to localhost:1099
      javax.naming.CommunicationException: Failed to connect to server localhost:1099. Root exception is java.lang.NullPointerException
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:119)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLoader3.java:169)
      at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:123)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:217)
      at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
      at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
      at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:74)
      at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
      at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:199)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1181)
      at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:669)
      at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:661)
      at javax.naming.InitialContext.unbind(InitialContext.java:371)
      at org.jboss.invocation.http.server.HttpInvoker.stopService(HttpInvoker.java:124)
      at org.jboss.system.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:240)
      at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.stop(Unknown Source)
      at org.jboss.system.ServiceController.stop(ServiceController.java:471)
      at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.stop(Unknown Source)
      at org.jboss.deployment.SARDeployer.stop(SARDeployer.java:373)
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:489)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:472)
      at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:359)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:849)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:824)
      at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:812)
      2003-10-29 09:47:31,265 INFO [org.jboss.deployment.scanner.URLDeploymentScanner] Stopping jboss.deployment:type=DeploymentScanner,flavor=URL
      2003-10-29 09:47:31,265 INFO [org.jboss.varia.deployment.BeanShellSubDeployer] Stopping jboss.scripts:service=BSHDeployer
      ...

      What can i do to solve it?

      My web.xml file is:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

      <web-app>
      <!-- ### Servlets -->

      <servlet-name>IdPyritesClientControlerServlet</servlet-name>
      <servlet-class>com.id.pyrites.servlet.IdPyritesClientControlerServlet</servlet-class>
      <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
      </init-param>
      <init-param>
      <param-name>ejbserverIP</param-name>
      <param-value>localhost</param-value>
      </init-param>
      <init-param>
      <param-name>ejbserverPort</param-name>
      <param-value>1099</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>


      <servlet-mapping>
      <servlet-name>IdPyritesClientControlerServlet</servlet-name>
      <url-pattern>/IdPyritesServlet</url-pattern>
      </servlet-mapping>

      <session-config> <!-- In minutes -->
      <session-timeout>5</session-timeout>
      </session-config>
      </web-app>