0 Replies Latest reply on Jan 10, 2007 3:16 AM by Bartosz Baranowski

    Resource Adapter undeploy

    Bartosz Baranowski Newbie

      Hi. I have encountered strange error during undeploy of Resource adapter.

      Here it is: java.lang.NullPointerException
      at org.jboss.resource.RARDeployer.destroy(RARDeployer.java:199)
      at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:531)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:472)
      at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:358)
      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.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:903)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:878)
      at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:865)

      Im running jb 3.2.6 . Except that everything is fine. RA is deployed, MBean is created and is accessible. RARMetaData is visible (it looks like this is somehow set to null) until server is being shut down.
      Line 199 looks as follows:
      ((RARMetaData) rdi.metaData).setClassLoader(null);

      rdi is used before so its not null.

      What could be the problem?