0 Replies Latest reply on Aug 8, 2007 4:28 PM by waynebaylor

    NullPointerException When Re-joining a Cluster

    waynebaylor

      I'm running JBossAS 4.2.0GA and using the farm-service.

      I have clustered two app. servers and the farming is working for the most part, but I get a NPE when the following sequence happens:

      1) Kill one of the servers manually (server A).
      2) Manually remove all archives in the farm/ dir of server A.
      3) Restart server A
      4) server A pulls deployments
      5) server A attempts to deploy, gets NPE

      Here's a partial stack trace from the log:

      2007-08-08 14:50:33,372 INFO [org.jboss.ejb3.EJBContainer] STOPPED EJB: cluster1.bean.HelloWorldBean ejbName: HelloWorldBean
      2007-08-08 14:50:33,387 DEBUG [org.jboss.ejb3.stateless.StatelessDelegateWrapper] Starting failed jboss.j2ee:ear=Cluster1.ear,jar=ejb.jar,name=HelloWorldBean,service=EJB3

      java.lang.NullPointerException
      at org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:165)
      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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy30.listTimerHandles(Unknown Source)


      Any idea what's causing this?