1 Reply Latest reply on May 18, 2007 12:41 PM by Nick Albion

    @Service and JBoss 4.0.5 + EJB3 rc9 patch 1

    Adam Warski Master

      Hello,
      another problem I encoutered after upgrading from AS 4.0.4 and EJB3 rc8: I have a couple of ejb3 services (declared with @Service). They worked perfectly before, now they are created and immediately after the start() method completes, I get this exception:

      19:13:40,535 ERROR [STDERR] java.lang.NullPointerException
      19:13:40,538 ERROR [STDERR] at org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:164)
      19:13:40,539 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      19:13:40,540 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      19:13:40,540 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,541 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,541 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,542 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,542 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      19:13:40,542 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,542 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,542 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      19:13:40,543 ERROR [STDERR] at $Proxy26.listTimerHandles(Unknown Source)
      19:13:40,543 ERROR [STDERR] at org.jboss.ejb.txtimer.EJBTimerServiceImpl.restoreTimers(EJBTimerServiceImpl.java:408)
      19:13:40,543 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      19:13:40,543 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      19:13:40,543 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,544 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,544 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,544 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,544 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      19:13:40,544 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,547 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,547 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      19:13:40,547 ERROR [STDERR] at $Proxy48.restoreTimers(Unknown Source)
      19:13:40,548 ERROR [STDERR] at org.jboss.ejb3.timerservice.jboss.JBossTimerServiceFactory.restoreTimerService(JBossTimerServiceFactory.java:120)
      19:13:40,548 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:149)
      19:13:40,548 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      19:13:40,548 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      19:13:40,548 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,549 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,549 ERROR [STDERR] at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
      19:13:40,549 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      19:13:40,549 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      19:13:40,549 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      19:13:40,550 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,550 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,555 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,555 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,555 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      19:13:40,556 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,556 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,556 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      19:13:40,556 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      19:13:40,559 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      19:13:40,560 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      19:13:40,560 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,560 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,560 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,560 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,561 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      19:13:40,561 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,561 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,561 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      19:13:40,562 ERROR [STDERR] at $Proxy37.start(Unknown Source)
      19:13:40,562 ERROR [STDERR] at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
      19:13:40,562 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:281)
      19:13:40,562 ERROR [STDERR] at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:328)
      19:13:40,562 ERROR [STDERR] at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
      19:13:40,563 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      19:13:40,563 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      19:13:40,563 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      19:13:40,563 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,563 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,564 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,564 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,564 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      19:13:40,564 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,565 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,565 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      19:13:40,565 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      19:13:40,566 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      19:13:40,566 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      19:13:40,566 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,567 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,567 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,567 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,568 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      19:13:40,568 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,568 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,568 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      19:13:40,579 ERROR [STDERR] at $Proxy29.start(Unknown Source)
      19:13:40,579 ERROR [STDERR] at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
      19:13:40,579 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      19:13:40,579 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      19:13:40,579 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,580 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,580 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,580 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,580 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      19:13:40,581 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      19:13:40,581 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      19:13:40,581 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      19:13:40,581 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      19:13:40,581 ERROR [STDERR] at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
      19:13:40,582 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      19:13:40,582 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      19:13:40,582 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      19:13:40,582 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,582 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,583 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      19:13:40,583 ERROR [STDERR] at $Proxy30.start(Unknown Source)
      19:13:40,583 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      19:13:40,583 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
      19:13:40,584 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      19:13:40,584 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      19:13:40,584 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      19:13:40,584 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      19:13:40,585 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,585 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,585 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,585 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,585 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      19:13:40,586 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      19:13:40,586 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      19:13:40,587 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      19:13:40,587 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,587 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,587 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      19:13:40,588 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
      19:13:40,588 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      19:13:40,592 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      19:13:40,593 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      19:13:40,593 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      19:13:40,593 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      19:13:40,593 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      19:13:40,593 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      19:13:40,593 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,594 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,594 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,594 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,594 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      19:13:40,595 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,595 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,595 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      19:13:40,595 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      19:13:40,595 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      19:13:40,596 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      19:13:40,596 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,596 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,596 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,596 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,597 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      19:13:40,597 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,597 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,597 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      19:13:40,597 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      19:13:40,597 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      19:13:40,598 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      19:13:40,598 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      19:13:40,598 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      19:13:40,606 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      19:13:40,606 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      19:13:40,606 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      19:13:40,606 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      19:13:40,606 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      19:13:40,607 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      19:13:40,607 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      19:13:40,607 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      19:13:40,607 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      19:13:40,607 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      19:13:40,608 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      19:13:40,608 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      19:13:40,608 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      19:13:40,608 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      19:13:40,608 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      19:13:40,609 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      19:13:40,609 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      19:13:40,609 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      19:13:40,609 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:490)
      19:13:40,609 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      


      And the service gets stopped. Any ideas why? :)

      --
      Cheers,
      Adam