1 Reply Latest reply on Jan 15, 2007 6:38 AM by Adam Warski

    Possible bug? EJB3 in a .sar

    Adam Warski Master

      Hello,
      I tried deploying an .ejb3 archive in a .sar, and I get the following exception:

      00:43:00,131 ERROR [STDERR] java.lang.NullPointerException
      00:43:00,133 ERROR [STDERR] at org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:164)
      00:43:00,133 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      00:43:00,133 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      00:43:00,134 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,134 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,134 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,134 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,134 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      00:43:00,135 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,135 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,135 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      00:43:00,136 ERROR [STDERR] at $Proxy26.listTimerHandles(Unknown Source)
      00:43:00,136 ERROR [STDERR] at org.jboss.ejb.txtimer.EJBTimerServiceImpl.restoreTimers(EJBTimerServiceImpl.java:408)
      00:43:00,136 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      00:43:00,136 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      00:43:00,136 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,137 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,137 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,137 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,137 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      00:43:00,138 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,138 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,138 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      00:43:00,138 ERROR [STDERR] at $Proxy48.restoreTimers(Unknown Source)
      00:43:00,138 ERROR [STDERR] at org.jboss.ejb3.timerservice.jboss.JBossTimerServiceFactory.restoreTimerService(JBossTimerServiceFactory.java:120)
      00:43:00,142 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:149)
      00:43:00,158 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      00:43:00,158 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      00:43:00,159 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,159 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,159 ERROR [STDERR] at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
      00:43:00,160 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      00:43:00,160 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      00:43:00,160 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      00:43:00,160 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,160 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,161 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,161 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,161 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      00:43:00,161 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,162 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,162 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      00:43:00,162 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      00:43:00,162 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      00:43:00,163 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      00:43:00,278 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,280 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,280 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,281 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,281 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      00:43:00,281 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,281 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,282 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      00:43:00,282 ERROR [STDERR] at $Proxy37.start(Unknown Source)
      00:43:00,282 ERROR [STDERR] at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
      00:43:00,282 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:281)
      00:43:00,283 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:328)
      00:43:00,283 ERROR [STDERR] at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
      00:43:00,283 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      00:43:00,283 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      00:43:00,284 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      00:43:00,284 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,284 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,284 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,284 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,285 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      00:43:00,285 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,285 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,285 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      00:43:00,286 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      00:43:00,286 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      00:43:00,286 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      00:43:00,286 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,286 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,357 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,358 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,358 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      00:43:00,358 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,358 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,360 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      00:43:00,360 ERROR [STDERR] at $Proxy29.start(Unknown Source)
      00:43:00,360 ERROR [STDERR] at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
      00:43:00,360 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      00:43:00,360 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      00:43:00,361 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,361 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,361 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,361 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,362 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      00:43:00,362 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      00:43:00,362 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      00:43:00,362 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      00:43:00,362 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      00:43:00,363 ERROR [STDERR] at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
      00:43:00,363 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      00:43:00,363 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      00:43:00,363 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      00:43:00,364 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,364 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,364 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      00:43:00,364 ERROR [STDERR] at $Proxy30.start(Unknown Source)
      00:43:00,365 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      00:43:00,365 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
      00:43:00,365 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      00:43:00,365 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      00:43:00,366 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      00:43:00,366 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      00:43:00,366 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,366 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,366 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,431 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,431 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      00:43:00,432 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      00:43:00,432 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      00:43:00,432 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      00:43:00,433 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,433 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,434 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      00:43:00,434 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
      00:43:00,434 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      00:43:00,434 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      00:43:00,434 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      00:43:00,695 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      00:43:00,695 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      00:43:00,695 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      00:43:00,695 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      00:43:00,696 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,696 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,696 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,696 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,696 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      00:43:00,696 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,697 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,697 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      00:43:00,697 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      00:43:00,697 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      00:43:00,697 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      00:43:00,697 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,697 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,698 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,698 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,698 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      00:43:00,698 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,698 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,698 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      00:43:00,699 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      00:43:00,699 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      00:43:00,699 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      00:43:00,699 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      00:43:00,699 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      00:43:00,699 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      00:43:00,699 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      00:43:00,700 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      00:43:00,700 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      00:43:00,700 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      00:43:00,700 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      00:43:00,700 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      00:43:00,700 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      00:43:00,700 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      00:43:00,700 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      00:43:00,701 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      00:43:00,701 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      00:43:00,701 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      00:43:00,701 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      00:43:00,701 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      00:43:00,772 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      00:43:00,773 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      00:43:00,774 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      00:43:00,774 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:490)
      00:43:00,775 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      


      The same .ejb3 works when deployed separately.

      --
      Cheers,
      Adam

        • 1. Re: Possible bug? EJB3 in a .sar
          Adam Warski Master

          Hello,
          I forgot to write about the environment :)

          So, I'm using AS 4.0.5 with ejb3 rc9 patch1.

          The exception happens when the .ejb3 contains a @Service annotated class. The start() method compeltes successfully, then the exception is thrown and the service is stopped (the stop() method is called and also completes successfully).

          --
          Cheers,
          Adam