users@glassfish.java.net

Re: SfSb Replication problem causes NullPointerException on GF

From: vivekanandh sedhumadhavan <Vivekanandh.Sedhumadhavan_at_Sun.COM>
Date: Wed, 11 Mar 2009 09:52:49 -0700

On Mar 6, 2009, at 8:28 AM, glassfish_at_javadesktop.org wrote:

> 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?
Hi
this is a bug and the fix is already in v2.1 branch. If you need this
fix pls build glassfish from the SJSAS91_UR1_BRANCH
http://wiki.glassfish.java.net/Wiki.jsp?page=BuildInformation
thanks
-vivek

>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>