You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Christopher Blythe <cj...@gmail.com> on 2007/08/22 01:28:45 UTC

Problems performing remote EJB client call

All...

I'm working with DayTrader and one of the dev builds of GMO 2.0. I'm trying
to convert the Streamer client over to access an EJB3 based remote session
bean. From the server traces, it looks like the method is being executed
(see below).

19:21:33,125 INFO  [OpenEJB] invoking method create on dt-ejb.jar
/TradeSLSBBean
19:21:33,671 INFO  [Transaction] TX Required: Started transaction
org.apache.geronimo.transaction.manager.TransactionImpl@33fc33fc
19:21:33,687 INFO  [Transaction] TX Required: Committing transaction
org.apache.geronimo.transaction.manager.TransactionImpl@33fc33fc
19:21:33,687 INFO  [remote] EJB RESPONSE: EJB_OK:
org.apache.openjpa.kernel.DelegatingResultList@43da43da

However, on the client, I get the following. Anyone have any guesses? Am I
missing something in the module dependencies?

19:21:34,484 ERROR [GBeanInstance] Problem in doStop of
org.apache.geronimo.conf
igs/client-corba-yoko/2.0-SNAPSHOT/car?ServiceModule=
org.apache.geronimo.configs
/client-corba-yoko/2.0-SNAPSHOT/car,j2eeType=CORBABean,name=Server
java.lang.NoSuchMethodError:
org.omg.PortableInterceptor.IORInterceptor_3_0.adapter_manager_state_changed
(Ljava/lang/String;S)V
        at org.apache.yoko.orb.OB.PIManager.adapterManagerStateChange(
PIManager.java:532)
        at org.apache.yoko.orb.OBPortableServer.POAManager_impl.deactivate
(POAManager_impl.java:360)
        at
org.apache.yoko.orb.OBPortableServer.POAManagerFactory_impl._OB_deactivate
(POAManagerFactory_impl.java:342)
        at org.apache.yoko.orb.OB.ORBControl.completeServerShutdown(
ORBControl.java:100)
        at org.apache.yoko.orb.OB.ORBControl.shutdownServer(ORBControl.java
:427)
        at org.apache.yoko.orb.OB.ORBControl.shutdownServerClient(
ORBControl.java:455)
        at org.apache.yoko.orb.OBCORBA.ORB_impl.destroy(ORB_impl.java:1390)
        at org.apache.geronimo.corba.CORBABean.doStop(CORBABean.java:260)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance(
GBeanInstance.java:1159)
        at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop(
GBeanInstanceState.java:339)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(
GBeanInstanceState.java:188)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.stop(
GBeanInstance.java:561)
        at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(
BasicKernel.java:423)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(
GBeanInstanceState.java:180)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.stop(
GBeanInstance.java:561)
        at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(
BasicKernel.java:423)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop(
GBeanInstanceState.java:180)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.stop(
GBeanInstance.java:561)
        at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean(
BasicKernel.java:423)
        at
org.apache.geronimo.kernel.config.KernelConfigurationManager$ShutdownHook.run
(KernelConfigurationManager.java:316)
        at org.apache.geronimo.kernel.basic.BasicKernel.notifyShutdownHooks(
BasicKernel.java:668)
        at org.apache.geronimo.kernel.basic.BasicKernel.shutdown(
BasicKernel.java:645)
        at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper$1.run(
MainConfigurationBootstrapper.java:76)
Exception in thread "Yoko:Server:StarterThread"
java.lang.NoClassDefFoundError: org/apache/yoko/orb/OB/MessageQueue
        at org.apache.yoko.orb.OB.GIOPConnection.<init>(GIOPConnection.java
:129)
        at org.apache.yoko.orb.OB.GIOPConnectionThreaded.<init>(
GIOPConnectionThreaded.java:312)
        at org.apache.yoko.orb.OB.GIOPServerStarterThreaded.starterRun(
GIOPServerStarterThreaded.java:243)
        at
org.apache.yoko.orb.OB.GIOPServerStarterThreaded$StarterThread.run(
GIOPServerStarterThreaded.java:34)

Thanks...

Chris

-- 
"I say never be complete, I say stop being perfect, I say let... lets
evolve, let the chips fall where they may." - Tyler Durden

Re: Problems performing remote EJB client call

Posted by Christopher Blythe <cj...@gmail.com>.
david...

thanks for the hint... i dug into the geronimo.bat files and including the
endorsed directories much like it does. started up without a problem
(although running into some others at the moment). anyway, just wanted to
make a suggestion...

might be a good idea to include a launcher script for the client as well
and/or document the need to include the endorsed directories when launching
an ejb client.


On 8/21/07, David Jencks <da...@yahoo.com> wrote:
>
> just a guess... but are you sure the java.endorsed.dirs property is
> set properly when you start the app client?  this looks a bit like
> the corba specs classes are coming from the jdk rather than yoko/
> geronimo.
>
> thanks
> david jencks
> On Aug 21, 2007, at 4:28 PM, Christopher Blythe wrote:
>
> > All...
> >
> > I'm working with DayTrader and one of the dev builds of GMO 2.0.
> > I'm trying to convert the Streamer client over to access an EJB3
> > based remote session bean. From the server traces, it looks like
> > the method is being executed (see below).
> >
> > 19:21:33,125 INFO  [OpenEJB] invoking method create on dt-ejb.jar/
> > TradeSLSBBean
> > 19:21:33,671 INFO  [Transaction] TX Required: Started transaction
> > org.apache.geronimo.transaction.manager.TransactionImpl@33fc33fc
> > 19:21:33,687 INFO  [Transaction] TX Required: Committing
> > transaction
> > org.apache.geronimo.transaction.manager.TransactionImpl@33fc33fc
> > 19:21:33,687 INFO  [remote] EJB RESPONSE:
> > EJB_OK:org.apache.openjpa.kernel.DelegatingResultList@43da43da
> >
> > However, on the client, I get the following. Anyone have any
> > guesses? Am I missing something in the module dependencies?
> >
> > 19:21:34,484 ERROR [GBeanInstance] Problem in doStop of
> > org.apache.geronimo.conf
> > igs/client-corba-yoko/2.0-SNAPSHOT/car?ServiceModule=
> > org.apache.geronimo.configs
> > /client-corba-yoko/2.0-SNAPSHOT/car,j2eeType=CORBABean,name=Server
> > java.lang.NoSuchMethodError:
> > org.omg.PortableInterceptor.IORInterceptor_3_0.adapter_manager_state_c
> > hanged(Ljava/lang/String;S)V
> >         at
> > org.apache.yoko.orb.OB.PIManager.adapterManagerStateChange
> > (PIManager.java:532)
> >         at
> > org.apache.yoko.orb.OBPortableServer.POAManager_impl.deactivate
> > (POAManager_impl.java:360)
> >         at
> > org.apache.yoko.orb.OBPortableServer.POAManagerFactory_impl._OB_deacti
> > vate (POAManagerFactory_impl.java:342)
> >         at org.apache.yoko.orb.OB.ORBControl.completeServerShutdown
> > (ORBControl.java:100)
> >         at org.apache.yoko.orb.OB.ORBControl.shutdownServer
> > (ORBControl.java:427)
> >         at org.apache.yoko.orb.OB.ORBControl.shutdownServerClient
> > (ORBControl.java:455)
> >         at org.apache.yoko.orb.OBCORBA.ORB_impl.destroy
> > (ORB_impl.java:1390)
> >         at org.apache.geronimo.corba.CORBABean.doStop
> > (CORBABean.java :260)
> >         at
> > org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance
> > (GBeanInstance.java:1159)
> >         at
> > org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop
> > (GBeanInstanceState.java:339)
> >         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop
> > (GBeanInstanceState.java:188)
> >         at org.apache.geronimo.gbean.runtime.GBeanInstance.stop
> > (GBeanInstance.java:561)
> >         at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean
> > (BasicKernel.java:423)
> >         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop
> > (GBeanInstanceState.java:180)
> >         at org.apache.geronimo.gbean.runtime.GBeanInstance.stop
> > (GBeanInstance.java:561)
> >         at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean
> > (BasicKernel.java:423)
> >         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop
> > (GBeanInstanceState.java:180)
> >         at org.apache.geronimo.gbean.runtime.GBeanInstance.stop
> > (GBeanInstance.java:561)
> >         at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean
> > (BasicKernel.java:423)
> >         at
> > org.apache.geronimo.kernel.config.KernelConfigurationManager
> > $ShutdownHook.run(KernelConfigurationManager.java :316)
> >         at
> > org.apache.geronimo.kernel.basic.BasicKernel.notifyShutdownHooks
> > (BasicKernel.java:668)
> >         at org.apache.geronimo.kernel.basic.BasicKernel.shutdown
> > (BasicKernel.java:645)
> >         at
> > org.apache.geronimo.kernel.util.MainConfigurationBootstrapper$1.run
> > (MainConfigurationBootstrapper.java:76)
> > Exception in thread "Yoko:Server:StarterThread"
> > java.lang.NoClassDefFoundError: org/apache/yoko/orb/OB/MessageQueue
> >         at org.apache.yoko.orb.OB.GIOPConnection.<init>
> > ( GIOPConnection.java:129)
> >         at org.apache.yoko.orb.OB.GIOPConnectionThreaded.<init>
> > (GIOPConnectionThreaded.java:312)
> >         at
> > org.apache.yoko.orb.OB.GIOPServerStarterThreaded.starterRun
> > (GIOPServerStarterThreaded.java :243)
> >         at org.apache.yoko.orb.OB.GIOPServerStarterThreaded
> > $StarterThread.run(GIOPServerStarterThreaded.java:34)
> >
> > Thanks...
> >
> > Chris
> >
> > --
> > "I say never be complete, I say stop being perfect, I say let...
> > lets evolve, let the chips fall where they may." - Tyler Durden
>
>


-- 
"I say never be complete, I say stop being perfect, I say let... lets
evolve, let the chips fall where they may." - Tyler Durden

Re: Problems performing remote EJB client call

Posted by David Jencks <da...@yahoo.com>.
just a guess... but are you sure the java.endorsed.dirs property is  
set properly when you start the app client?  this looks a bit like  
the corba specs classes are coming from the jdk rather than yoko/ 
geronimo.

thanks
david jencks
On Aug 21, 2007, at 4:28 PM, Christopher Blythe wrote:

> All...
>
> I'm working with DayTrader and one of the dev builds of GMO 2.0.  
> I'm trying to convert the Streamer client over to access an EJB3  
> based remote session bean. From the server traces, it looks like  
> the method is being executed (see below).
>
> 19:21:33,125 INFO  [OpenEJB] invoking method create on dt-ejb.jar/ 
> TradeSLSBBean
> 19:21:33,671 INFO  [Transaction] TX Required: Started transaction  
> org.apache.geronimo.transaction.manager.TransactionImpl@33fc33fc
> 19:21:33,687 INFO  [Transaction] TX Required: Committing  
> transaction  
> org.apache.geronimo.transaction.manager.TransactionImpl@33fc33fc
> 19:21:33,687 INFO  [remote] EJB RESPONSE:  
> EJB_OK:org.apache.openjpa.kernel.DelegatingResultList@43da43da
>
> However, on the client, I get the following. Anyone have any  
> guesses? Am I missing something in the module dependencies?
>
> 19:21:34,484 ERROR [GBeanInstance] Problem in doStop of  
> org.apache.geronimo.conf
> igs/client-corba-yoko/2.0-SNAPSHOT/car?ServiceModule=  
> org.apache.geronimo.configs
> /client-corba-yoko/2.0-SNAPSHOT/car,j2eeType=CORBABean,name=Server
> java.lang.NoSuchMethodError:  
> org.omg.PortableInterceptor.IORInterceptor_3_0.adapter_manager_state_c 
> hanged(Ljava/lang/String;S)V
>         at  
> org.apache.yoko.orb.OB.PIManager.adapterManagerStateChange 
> (PIManager.java:532)
>         at  
> org.apache.yoko.orb.OBPortableServer.POAManager_impl.deactivate 
> (POAManager_impl.java:360)
>         at  
> org.apache.yoko.orb.OBPortableServer.POAManagerFactory_impl._OB_deacti 
> vate (POAManagerFactory_impl.java:342)
>         at org.apache.yoko.orb.OB.ORBControl.completeServerShutdown 
> (ORBControl.java:100)
>         at org.apache.yoko.orb.OB.ORBControl.shutdownServer 
> (ORBControl.java:427)
>         at org.apache.yoko.orb.OB.ORBControl.shutdownServerClient 
> (ORBControl.java:455)
>         at org.apache.yoko.orb.OBCORBA.ORB_impl.destroy 
> (ORB_impl.java:1390)
>         at org.apache.geronimo.corba.CORBABean.doStop 
> (CORBABean.java :260)
>         at  
> org.apache.geronimo.gbean.runtime.GBeanInstance.destroyInstance 
> (GBeanInstance.java:1159)
>         at  
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStop 
> (GBeanInstanceState.java:339)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop 
> (GBeanInstanceState.java:188)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.stop 
> (GBeanInstance.java:561)
>         at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean  
> (BasicKernel.java:423)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop 
> (GBeanInstanceState.java:180)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.stop 
> (GBeanInstance.java:561)
>         at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean 
> (BasicKernel.java:423)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.stop 
> (GBeanInstanceState.java:180)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.stop  
> (GBeanInstance.java:561)
>         at org.apache.geronimo.kernel.basic.BasicKernel.stopGBean 
> (BasicKernel.java:423)
>         at  
> org.apache.geronimo.kernel.config.KernelConfigurationManager 
> $ShutdownHook.run(KernelConfigurationManager.java :316)
>         at  
> org.apache.geronimo.kernel.basic.BasicKernel.notifyShutdownHooks 
> (BasicKernel.java:668)
>         at org.apache.geronimo.kernel.basic.BasicKernel.shutdown 
> (BasicKernel.java:645)
>         at  
> org.apache.geronimo.kernel.util.MainConfigurationBootstrapper$1.run  
> (MainConfigurationBootstrapper.java:76)
> Exception in thread "Yoko:Server:StarterThread"  
> java.lang.NoClassDefFoundError: org/apache/yoko/orb/OB/MessageQueue
>         at org.apache.yoko.orb.OB.GIOPConnection.<init> 
> ( GIOPConnection.java:129)
>         at org.apache.yoko.orb.OB.GIOPConnectionThreaded.<init> 
> (GIOPConnectionThreaded.java:312)
>         at  
> org.apache.yoko.orb.OB.GIOPServerStarterThreaded.starterRun 
> (GIOPServerStarterThreaded.java :243)
>         at org.apache.yoko.orb.OB.GIOPServerStarterThreaded 
> $StarterThread.run(GIOPServerStarterThreaded.java:34)
>
> Thanks...
>
> Chris
>
> -- 
> "I say never be complete, I say stop being perfect, I say let...  
> lets evolve, let the chips fall where they may." - Tyler Durden