users@glassfish.java.net

Re: Glassfish v3 with mod_jk

From: <noreply_at_java.net>
Date: Fri, 05 Nov 2010 04:34:13 -0700

Hi Bhakti.

 

You were right, it does work with 3.1.

But as I expected when I did load balance without cluster support I get some
errors, related to the JPA Cache, as all my EJBs are stateless.

I tryied creating a cluster but couldn't step further. Instead of creating a
cluster I just tryied to create a local instance and deploy my application
there, but I get this exception

#|2010-11-05T12:11:08.011+0100|SEVERE|glassfish3.1|javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.inbound|_ThreadID=16;_ThreadName=Thread-1;|RAR8504:
Exception during inbound recovery
java.lang.NullPointerException
    at
com.sun.enterprise.connectors.inbound.InboundRecoveryHandler.getEjbDescriptors(InboundRecoveryHandler.java:261)
    at
com.sun.enterprise.connectors.inbound.InboundRecoveryHandler.recoverInboundTransactions(InboundRecoveryHandler.java:125)
    at
com.sun.enterprise.connectors.inbound.InboundRecoveryHandler.loadXAResourcesAndItsConnections(InboundRecoveryHandler.java:99)
    at
com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.getAllRecoverableResources(ResourceRecoveryManagerImpl.java:204)
    at
com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.recoverXAResources(ResourceRecoveryManagerImpl.java:228)
    at
com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.recoverXAResources(ResourceRecoveryManagerImpl.java:325)
    at
com.sun.enterprise.transaction.jts.ResourceRecoveryManagerImpl.postConstruct(ResourceRecoveryManagerImpl.java:100)
    at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:128)
    at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:88)
    at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:79)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:64)
    at
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:136)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:73)
    at org.jvnet.hk2.component.Habitat.getByContract(Habitat.java:1037)
    at
com.sun.enterprise.transaction.startup.TransactionRecoveryWrapper.postConstruct(TransactionRecoveryWrapper.java:73)
    at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:128)
    at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:88)
    at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:79)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:64)
    at
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:136)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:73)
    at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:326)
    at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
    at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:78)
    at
com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:119)
    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.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:99)
    at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
|#]

I think once I'm able to deploy to my local instance I'll be able to deploy
to the cluster and then use Load Balance.

 

Do you have any ideias why this bug happens?

 

Thanks


--
[Message sent by forum member 'rudibravo']
View Post: http://forums.java.net/node/711093