1 2 Previous Next 17 Replies Latest reply on Sep 22, 2008 12:30 PM by jfachal Go to original post
      • 15. Re: Accesing Stateless Session Bean through IIOP
        jfachal

        Oh no..., i'm back.

        A few minutes later than I test with the RecoveryManager startup manually on the client, I got this stacktrace:

        [18 sep 10:53:59,637] INFO -
         [java] --- Start RecoveryActivators
         [java] [18 sep 10:53:59,799] INFO - [com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit_6] [com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit_6] - Starting RecoveryServer ORB on port 4711 and address
         [java] [18 sep 10:53:59,803] INFO - [com.arjuna.orbportability.internal.utils.InitLoader.loading] Loading PreInitLoader class - com.arjuna.ats.internal.jts.context.ContextPropagationManager
         [java] [18 sep 10:54:00,028] INFO - [com.arjuna.orbportability.internal.utils.InitLoader.loading] Loading PostInitLoader class - com.arjuna.ats.internal.jts.recovery.RecoveryInit
         [java] [18 sep 10:54:00,029] INFO - [com.arjuna.orbportability.internal.utils.InitLoader.loading] Loading PostInitLoader class - com.arjuna.ats.jts.utils.ORBSetup
         [java] [jacorb.poa] FATAL_E : Cannot create a persistent poa. The implname property has not been set.
         [java] [18 sep 10:54:07,068] WARN - [com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit_1] [com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit_1] - Failed to create poa for recoverycoordinators
         [java] org.omg.PortableServer.POAPackage.InvalidPolicy: IDL:omg.org/PortableServer/POA/InvalidPolicy:1.0
         [java] at org.jacorb.poa.POA.create_POA(Unknown Source)
         [java] at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit.getRCPOA(JacOrbRCServiceInit.java:223)
         [java] at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit.startRCservice(JacOrbRCServiceInit.java:240)
         [java] at com.arjuna.ats.internal.jts.orbspecific.recovery.RecoveryEnablement.startRCservice(RecoveryEnablement.java:154)
         [java] at com.arjuna.ats.internal.arjuna.recovery.RecActivatorLoader.startRecoveryActivators(RecActivatorLoader.java:86)
         [java] at com.arjuna.ats.internal.arjuna.recovery.RecActivatorLoader.<init>(RecActivatorLoader.java:65)
         [java] at com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple.<init>(RecoveryManagerImple.java:153)
         [java] at com.arjuna.ats.arjuna.recovery.RecoveryManager.<init>(RecoveryManager.java:373)
         [java] at com.arjuna.ats.arjuna.recovery.RecoveryManager.manager(RecoveryManager.java:132)
         [java] at com.arjuna.ats.arjuna.recovery.RecoveryManager.manager(RecoveryManager.java:113)
         [java] at com.arjuna.ats.arjuna.recovery.RecoveryManager.main(RecoveryManager.java:359)
         [java] at es.tic.springclient.Main.main(Main.java:15)
         [java] [18 sep 10:54:07,350] WARN - [com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit_3] [com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit_3] - JacOrbRCServiceInit - Failed to start RC service
         [java] java.lang.NullPointerException
         [java] at com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit.startRCservice(JacOrbRCServiceInit.java:250)
         [java] at com.arjuna.ats.internal.jts.orbspecific.recovery.RecoveryEnablement.startRCservice(RecoveryEnablement.java:154)
         [java] at com.arjuna.ats.internal.arjuna.recovery.RecActivatorLoader.startRecoveryActivators(RecActivatorLoader.java:86)
         [java] at com.arjuna.ats.internal.arjuna.recovery.RecActivatorLoader.<init>(RecActivatorLoader.java:65)
         [java] at com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple.<init>(RecoveryManagerImple.java:153)
         [java] at com.arjuna.ats.arjuna.recovery.RecoveryManager.<init>(RecoveryManager.java:373)
         [java] at com.arjuna.ats.arjuna.recovery.RecoveryManager.manager(RecoveryManager.java:132)
         [java] at com.arjuna.ats.arjuna.recovery.RecoveryManager.manager(RecoveryManager.java:113)
         [java] at com.arjuna.ats.arjuna.recovery.RecoveryManager.main(RecoveryManager.java:359)
         [java] at es.tic.springclient.Main.main(Main.java:15)
         [java] [18 sep 10:54:10,936] INFO - [com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 49963
         [java] [18 sep 10:54:11,011] INFO - TransactionStatusManagerItem - host: 192.168.10.199 port: 49963
         [java] [18 sep 10:54:11,440] INFO - [com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - TransactionStatusManager started on port 49963 and host 192.168.10.199 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
         [java] [18 sep 10:54:11,822] INFO -
         [java] --- ExpiredEntryMonitor ----jue, 18 sep 2008 10:54:11----
         [java] [18 sep 10:54:13,620] INFO - [com.arjuna.ats.internal.jta.recovery.noxanodes] No XA recovery nodes specified. Will only recover saved states.
         [java] [18 sep 10:54:14,205] INFO - [com.arjuna.ats.internal.jta.recovery.noxanodes] No XA recovery nodes specified. Will only recover saved states.
         [java] [18 sep 10:54:14,361] INFO - [com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery_13] - Recovery manager listening on endpoint 192.168.10.199:4.712
         [java] [18 sep 10:54:14,362] INFO - [com.arjuna.ats.internal.arjuna.recovery.ready] RecoveryManagerImple is ready on port 4.712
         [java] [18 sep 10:54:14,449] INFO - [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
         [java] Ready
         [java] [18 sep 10:54:14,602] INFO - [com.arjuna.ats.internal.jts.recovery.transactions.TopLevelTransactionRecoveryModule_3] [com.arjuna.ats.internal.jts.recovery.transactions.TopLevelTransactionRecoveryModule_3] - TopLevelTransactionRecoveryModule First Pass
         [java] [18 sep 10:54:14,602] INFO - TransactionRecoveryModule.periodicWorkFirstPass()
         [java] [18 sep 10:54:14,629] INFO - [com.arjuna.ats.internal.jts.recovery.transactions.ServerTransactionRecoveryModule_3] [com.arjuna.ats.internal.jts.recovery.transactions.ServerTransactionRecoveryModule_3] - ServerTransactionRecoveryModule - First Pass
         [java] [18 sep 10:54:14,629] INFO - TransactionRecoveryModule.periodicWorkFirstPass()
         [java] [18 sep 10:54:14,630] INFO - [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
         [java] [18 sep 10:54:14,951] INFO - [com.arjuna.orbportability.internal.utils.InitLoader.loading] Loading PreInitLoader class - com.arjuna.ats.internal.jts.context.ContextPropagationManager
         [java] [18 sep 10:54:15,042] INFO - [com.arjuna.ats.internal.jta.recovery.info.firstpass] JTS XARecoveryModule - first pass
         [java] [18 sep 10:54:15,367] INFO - [com.arjuna.orbportability.internal.utils.InitLoader.loading] Loading PostInitLoader class - com.arjuna.ats.internal.jts.recovery.RecoveryInit
         [java] [18 sep 10:54:15,368] INFO - [com.arjuna.orbportability.internal.utils.InitLoader.loading] Loading PostInitLoader class - com.arjuna.ats.jts.utils.ORBSetup
         [java] [18 sep 10:54:16,539] INFO - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@19360e2: display name [org.springframework.context.support.ClassPathXmlApplicationContext@19360e2]; startup date [Thu Sep 18 10:54:16 CEST 2008]; root of context hierarchy
         [java] [18 sep 10:54:20,328] INFO - Loading XML bean definitions from class path resource [applicationContext.xml]
         [java] [18 sep 10:54:22,227] INFO - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@19360e2]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6295eb
         [java] [18 sep 10:54:24,081] INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6295eb: defining beans [jbossTransactionManager,jbossUserTransaction,transactionManager,client]; root of factory hierarchy
         [java] [18 sep 10:54:24,560] INFO - [com.arjuna.ats.internal.arjuna.recovery.TransactionStatusConnector_6] - Failed to establish connection to server
         [java] [18 sep 10:54:24,693] INFO - [com.arjuna.ats.internal.arjuna.recovery.ExpiredTransactionStatusManagerScanner_3] - Removing old transaction status manager item -2121fe9a:c0b2:48d177b5:0
         [java] [18 sep 10:54:25,374] INFO - [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
         [java] [18 sep 10:54:25,374] INFO - [com.arjuna.ats.internal.jts.recovery.transactions.TopLevelTransactionRecoveryModule_4] [com.arjuna.ats.internal.jts.recovery.transactions.TopLevelTransactionRecoveryModule_4] - TopLevelTransactionRecoveryModule Second Pass
         [java] [18 sep 10:54:25,374] INFO - TransactionRecoveryModule.periodicWorkSecondPass()
         [java] [18 sep 10:54:25,374] INFO - [com.arjuna.ats.internal.jts.recovery.transactions.ServerTransactionRecoveryModule_4] [com.arjuna.ats.internal.jts.recovery.transactions.ServerTransactionRecoveryModule_4] - ServerTransactionRecoveryModule - Second Pass
         [java] [18 sep 10:54:25,374] INFO - [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
         [java] [18 sep 10:54:25,382] INFO - [com.arjuna.ats.internal.jta.recovery.info.secondpass] JTS XARecoveryModule - second pass
         [java] [18 sep 10:54:27,636] INFO - Using JTA UserTransaction: com.arjuna.ats.internal.jta.transaction.jts.UserTransactionImple@401369
         [java] [18 sep 10:54:27,636] INFO - Using JTA TransactionManager: com.arjuna.ats.internal.jta.transaction.jts.TransactionManagerImple@ba5bdb
         [java] *** Using 'EJBHomeLocatorJNDIInitialContext.properties' file for JNDI InitialContext in EJBHomeLocator ***
         [java] Exception in thread "main" javax.transaction.TransactionRequiredException: CORBA TRANSACTION_REQUIRED 0 No; nested exception is:
         [java] org.omg.CORBA.TRANSACTION_REQUIRED: Server-side Exception: javax.transaction.TransactionRequiredException: Transaction Required vmcid: 0x0 minor code: 0 completed: No
         [java] at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:203)
         [java] at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
         [java] at org.jboss.proxy.ejb.DynamicIIOPStub.invoke(DynamicIIOPStub.java:149)
         [java] at es.tic.echo._EchoService_Stub.echo(Unknown Source)
         [java] at es.tic.springclient.ClientBean.executeTx(ClientBean.java:50)
         [java] at es.tic.springclient.Main.main(Main.java:30)
         [java] Caused by: org.omg.CORBA.TRANSACTION_REQUIRED: Server-side Exception: javax.transaction.TransactionRequiredException: Transaction Required vmcid: 0x0 minor code: 0 completed: No
         [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         [java] at org.jacorb.orb.SystemExceptionHelper.read(Unknown Source)
         [java] at org.jacorb.orb.ReplyReceiver.getReply(Unknown Source)
         [java] at org.jacorb.orb.Delegate.invoke_internal(Unknown Source)
         [java] at org.jacorb.orb.Delegate.invoke(Unknown Source)
         [java] at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
         [java] at org.jboss.proxy.ejb.DynamicIIOPStub.invoke(DynamicIIOPStub.java:124)
         [java] ... 3 more
        


        This is unbelievable, I don't change anything. :-(

        • 16. Re: Accesing Stateless Session Bean through IIOP
          jfachal

           

          "jhalliday" wrote:
          Well assuming the recovery manager is running in the app server, the client needs to be sharing an ObjectStore with the server, or using some other discovery mechanism to find the recovery manager.



          Ok, I've shared the ObjectStore's Server (i.e. C:\Java\jboss-5.0.0.CR1\server\all\data\tx-object-store) with the client and now it seems is fine.

          I've changed this property in the client's configuration

          <property name="com.arjuna.ats.arjuna.objectstore.objectStoreDir" value="\\xuliana\tx-object-store"/>


          Is it the right way?

          Now, I'll check how to add XA Resources. :-)

          Thanks.



          • 17. Re: Accesing Stateless Session Bean through IIOP
            jfachal

            Finally, my simple example has worked with XA Resources on both sides.

            But, my next question is about the need to share the object-store between the client and server... I think that it is a poor solution...and not interoperable with other servers. Is it really necessary share the object-store? Any idea for this problem?

            Thanks.

            1 2 Previous Next