users@glassfish.java.net

SfSb Replication problem causes NullPointerException on GF

From: <glassfish_at_javadesktop.org>
Date: Fri, 06 Mar 2009 08:28:22 PST

Hi all,
I've a cluster that has two instances on two different machines. I'm using Sun GlassFish Communications Server 1.5 (9.1.1) (build b60g-fcs).

After i deployed an application(with availability) that has a least one statefulSessionBean, i stopped the cluster. after that, i wanted to start one of the instances of the cluster on admin GUI. but there was an exception in server.log file like below. i think, glassfish wants to synchronize itself with other cluster members about statefulSessionBean replication. but other instances are not in running state and thus it causes NullPointerException during creation of ejb container. Because of this, application is now unavailable. If at least one of the other members is available(starting or running state) at that time, there is not any exception like it. Is it an expected behaviour or a bug?

NOTE: My cluster's EJB Container Availability configuration:
Availability Service: enable
HA Persistence Type: replicated
SFSB Persistence Type: file
SFSB Store Pool Name: jdbc/hastore



Exception in the server.log file:

[#|2009-03-06T13:18:16.320+0200|INFO|sun-glassfish-comms-server1.5|com.sun.enterprise.ee.web.sessmgmt.pipe|_ThreadID=16;_ThreadName=Thread-28;|bound pipes: 5 brokenClosedPipes:0 pipepool.size=5 total pipes:5|#]

[#|2009-03-06T13:18:22.430+0200|INFO|sun-glassfish-comms-server1.5|com.sun.enterprise.ee.web.sessmgmt.pipe|_ThreadID=11;_ThreadName=main;|JxtaSenderPipeManager::pipePoolCount decremented = 4|#]

[#|2009-03-06T13:18:23.440+0200|INFO|sun-glassfish-comms-server1.5|com.sun.enterprise.ee.web.sessmgmt.pipe|_ThreadID=11;_ThreadName=main;|JxtaSenderPipeManager::pipePoolCount decremented = 3|#]

[#|2009-03-06T13:18:24.450+0200|INFO|sun-glassfish-comms-server1.5|com.sun.enterprise.ee.web.sessmgmt.pipe|_ThreadID=11;_ThreadName=main;|JxtaSenderPipeManager::pipePoolCount decremented = 2|#]

[#|2009-03-06T13:18:25.460+0200|INFO|sun-glassfish-comms-server1.5|com.sun.enterprise.ee.web.sessmgmt.pipe|_ThreadID=11;_ThreadName=main;|JxtaSenderPipeManager::pipePoolCount decremented = 1|#]

[#|2009-03-06T13:18:26.470+0200|INFO|sun-glassfish-comms-server1.5|com.sun.enterprise.ee.web.sessmgmt.pipe|_ThreadID=11;_ThreadName=main;|JxtaSenderPipeManager::pipePoolCount decremented = 0|#]

[#|2009-03-06T13:18:26.470+0200|WARNING|sun-glassfish-comms-server1.5|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=main;_RequestID=a061229f-b005-48cf-8f69-f4d8ff7aa269;|Out of pipes in JxtaReplicationSender pipepool. Disabling replication.|#]

[#|2009-03-06T13:18:27.481+0200|SEVERE|sun-glassfish-comms-server1.5|javax.enterprise.system.container.ejb|_ThreadID=11;_ThreadName=main;java.lang.NullPointerException;_RequestID=a061229f-b005-48cf-8f69-f4d8ff7aa269;|EJB5090: Exception in creating EJB container [java.lang.NullPointerException]|#]

[#|2009-03-06T13:18:27.482+0200|SEVERE|sun-glassfish-comms-server1.5|javax.enterprise.system.container.ejb|_ThreadID=11;_ThreadName=main;_RequestID=a061229f-b005-48cf-8f69-f4d8ff7aa269;|appId=myApp moduleName=myModule_jar ejbName=MySfsbTrial|#]

[#|2009-03-06T13:18:27.483+0200|SEVERE|sun-glassfish-comms-server1.5|javax.enterprise.system.core.classloading|_ThreadID=11;_ThreadName=main;_RequestID=a061229f-b005-48cf-8f69-f4d8ff7aa269;|LDR5004: UnExpected error occured while creating ejb container
java.lang.NullPointerException
        at com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender.putPipeWrapper(JxtaReplicationSender.java:885)
        at com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender.sendReplicationStateHC(JxtaReplicationSender.java:483)
        at com.sun.enterprise.ee.web.sessmgmt.ReplicationHealthChecker.doTransmit(ReplicationHealthChecker.java:454)
        at com.sun.enterprise.ee.web.sessmgmt.ReplicationHealthChecker.doPipeTest(ReplicationHealthChecker.java:432)
        at com.sun.enterprise.ee.web.sessmgmt.JxtaBiDiPipeWrapper.areCurrentPipesOk(JxtaBiDiPipeWrapper.java:1512)
        at com.sun.enterprise.ee.web.sessmgmt.JxtaBiDiPipeWrapper.testStartupAndReshapeIfNecessary(JxtaBiDiPipeWrapper.java:256)
        at com.sun.enterprise.ee.web.sessmgmt.JxtaBiDiPipeWrapper.start(JxtaBiDiPipeWrapper.java:223)
        at com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationReceiver.doPipeInitialization(JxtaReplicationReceiver.java:338)
        at com.sun.ejb.ee.sfsb.initialization.ReplicatedStrategyBuilder.initializePersistenceStrategy(ReplicatedStrategyBuilder.java:131)
        at com.sun.ejb.containers.builder.StatefulContainerBuilder.buildStoreManager(StatefulContainerBuilder.java:179)
        at com.sun.ejb.containers.builder.StatefulContainerBuilder.buildComponents(StatefulContainerBuilder.java:140)
        at com.sun.ejb.containers.builder.BaseContainerBuilder.buildContainer(BaseContainerBuilder.java:100)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:273)
        at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:527)
        at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:191)
        at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
        at com.sun.enterprise.server.ExtendedApplicationLoader.doLoad(ExtendedApplicationLoader.java:134)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:238)
        at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:226)
        at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:224)
        at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:446)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
        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:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
|#]

[#|2009-03-06T13:18:33.341+0200|INFO|sun-glassfish-comms-server1.5|org.hibernate.impl.SessionFactoryImpl|_ThreadID=11;_ThreadName=main;|closing|#]

[#|2009-03-06T13:18:33.524+0200|WARNING|sun-glassfish-comms-server1.5|javax.enterprise.system.core|_ThreadID=11;_ThreadName=main;mwcore;_RequestID=a061229f-b005-48cf-8f69-f4d8ff7aa269;|CORE5021: Application NOT loaded: [myApp]|#]
[Message sent by forum member 'ssoyut' (ssoyut)]

http://forums.java.net/jive/thread.jspa?messageID=335548