1 2 Previous Next 15 Replies Latest reply on Jan 9, 2007 3:13 AM by Mark Little

    Unable to start examples

    Baron Davis Newbie

      I am really desperate. I have spent 10 hours in a row trying to start the examples(Hello example) that ship with the jbossts-full-4.2.1GA. I have read all the documentation and followed all instructions, compiled examples, put everything needed on the classpath, and I am able to start both the recovery manager and transaction service .bat files which both are able to locate orb properties files, and I am able to start HelloServer , but when I start HelloClient I get the following exception and I think that it is because of the OTSManager.get_current() method call, but not sure. Any helo appreciated since I really have tried everything possible.
      Thanks in advance!

      E:\resource\jbossts-full-4.2.1GA\bin>java com.arjuna.demo.simpe.HelloClient
      [jacorb.orb] INFO :
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      JacORB V 2.2.2, www.jacorb.org
      (C) The JacORB project 1-Jun-2005
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      [jacorb.orb.intercept] INFO : InterceptorManager started with 0 SIs, 0 CIs and
      IORIs
      Creating a transaction !
      Exception in thread "main" com.arjuna.ats.arjuna.exceptions.FatalError
      at com.arjuna.ats.internal.jts.ORBManager.getPOA(ORBManager.java:97)
      at com.arjuna.ats.internal.jts.OTSImpleManager.(OTSImpleManager
      java:344)
      at com.arjuna.ats.jts.OTSManager.get_current(OTSManager.java:85)
      at com.arjuna.demo.simple.HelloClient.main(Unknown Source)

        • 1. Re: Unable to start examples
          Mark Little Master

          Can you try with the latest GA? It probably won't make a difference to you, but if we have to come to looking at lines in a stack trace, it will make a difference to that.

          • 2. Re: Unable to start examples
            Baron Davis Newbie

             

            "mark.little@jboss.com" wrote:
            Can you try with the latest GA? It probably won't make a difference to you, but if we have to come to looking at lines in a stack trace, it will make a difference to that.

            Sorry for late reply.
            I have downloaded the latest version jbossts-full-4.2.2GA, followed all instructions and I get the same exception as shown above.
            The nightmare continues and any help appreciated.
            Thanks!

            • 3. Re: Unable to start examples
              Mark Little Master

              Please post the latest stack trace here.

              • 4. Re: Unable to start examples
                Baron Davis Newbie

                Here it is:

                HelloServer:
                ------------------------------------------------------------------------------------
                E:\frameworks\latest\jbossts\jbossts-full-4.2.2GA\bin>java com.arjuna.
                emo.simple.HelloServer
                [jacorb.orb] INFO :
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                JacORB V 2.2.2, www.jacorb.org
                (C) The JacORB project 1-Jun-2005
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                [jacorb.orb.intercept] INFO : InterceptorManager started with 0 SIs, 0 CIs and 1
                IORIs
                [jacorb.poa] INFO : oid:
                00 15 00 02 0C 4C 01 2D 02 1E 38 .....L.-..8
                object is activated
                The Hello server is now ready...
                [jacorb.orb] INFO : ORB run
                ------------------------------------------------------------------------------------



                HelloClient:
                ------------------------------------------------------------------------------------
                E:\frameworks\latest\jbossts\jbossts-full-4.2.2GA\bin>java com.arjuna.d
                emo.simple.HelloClient
                [jacorb.orb] INFO :
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                JacORB V 2.2.2, www.jacorb.org
                (C) The JacORB project 1-Jun-2005
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                [jacorb.orb.intercept] INFO : InterceptorManager started with 0 SIs, 0 CIs and 1
                IORIs
                Creating a transaction !
                Exception in thread "main" com.arjuna.ats.arjuna.exceptions.FatalError
                at com.arjuna.ats.internal.jts.ORBManager.getPOA(ORBManager.java:97)
                at com.arjuna.ats.internal.jts.OTSImpleManager.(OTSImpleManager.
                java:344)
                at com.arjuna.ats.jts.OTSManager.get_current(OTSManager.java:85)
                at com.arjuna.demo.simple.HelloClient.main(Unknown Source)
                ------------------------------------------------------------------------------------

                • 5. Re: Unable to start examples
                  Baron Davis Newbie

                  Here is my entire configuration, hope this provides insight.
                  In one cmd window I run setClasspath.bat followed by start-recovery-manager.bat. In another cmd window I run again setClasspath.bat followed by start-transaction-service.bat (I also tried the reverse order), and then I execute above mentioned examples.

                  setClasspath.bat content
                  --------------------------------------------------------------------------------
                  set JBOSSTS_HOME=E:\resource\jbossts-full-4.2.1GA
                  set CLASSPATH=%JBOSSTS_HOME%\lib\jbossjts.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\jbossts-common.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\trail_map\lib\jbossts-demo.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\jbossjts-integration.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\commons-logging.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\connector-api.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\jdbc2_0-stdext.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\jmxri.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\jndi.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\jta-spec1_0_1.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\log4j-1.2.8.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\ext\wrapper.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\lib\jbossjts-jacorb.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\jacorb\lib\jacorb.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\jacorb\lib\idl.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\jacorb\lib\logkit-1.2.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\jacorb\lib\avalon-framework-4.1.5.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\jacorb\lib\antlr-2.7.2.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\jacorb\lib\concurrent-1.3.2.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%\jacorb\lib\picocontainer-1.2-021105.jar
                  set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%E:\resource\jacorb_2_2_1\etc
                  --------------------------------------------------------------------------------

                  In start-recovery-manager.bat and start-transaction-service.bat I uncommented the line where setup-env.bat was called since I replaced this call with my setClasspath.bat

                  I left jbossjts-properties.xml and jacorb.properties untouched and changed orb.properties only to point key jacorb.config.dir to the location where JacORB is located, E:\resource\jacorb_2_2_1\etc in this case.
                  orb.properties and jacorb.properties are in E:\resource\jacorb_2_2_1\etc location.

                  Thank you guys for any kind of help since I spent yet another entire day figuring this out.

                  • 6. Re: Unable to start examples
                    Kevin Conner Master

                    Are you sure about the following?

                    set CLASSPATH=%CLASSPATH%;%JBOSSTS_HOME%E:\resource\jacorb_2_2_1\etc

                    Surely this should be
                    set CLASSPATH=%CLASSPATH%;E:\resource\jacorb_2_2_1\etc



                    • 7. Re: Unable to start examples
                      Mark Little Master

                       

                      set JBOSSTS_HOME=E:\resource\jbossts-full-4.2.1GA


                      ??

                      • 8. Re: Unable to start examples
                        Baron Davis Newbie

                        Classpath fixed still does not work.

                        @Mark
                        I am testing on both version, 4.2.1 and 4.2.2 hust in case and both do not work.

                        • 9. Re: Unable to start examples
                          Mark Little Master

                          Can you modify the HelloClient and print out the content of ORBManager.getThePOA

                          • 10. Re: Unable to start examples
                            Baron Davis Newbie

                             

                            "mark.little@jboss.com" wrote:
                            Can you modify the HelloClient and print out the content of ORBManager.getThePOA

                            I get the following exception

                            ------asdfaksjdhakjsdhakjshdk
                            Exception in thread "main" com.arjuna.ats.arjuna.exceptions.FatalError
                            at com.arjuna.ats.internal.jts.ORBManager.getPOA(ORBManager.java:97)
                            at com.arjuna.demo.simple.HelloClient.main(Unknown Source)


                            This previous println text is just before my println that should print ORBManager.getThePOA

                            • 11. Re: Unable to start examples
                              Mark Little Master

                              Can you just verify that both getThePOA and getTheORB return non-null values from ORBManager?

                              • 12. Re: Unable to start examples
                                Baron Davis Newbie

                                 

                                "mark.little@jboss.com" wrote:
                                Can you just verify that both getThePOA and getTheORB return non-null values from ORBManager?

                                There is an axception when I call getXXX methods

                                Source from HelloClient.java
                                ------------------------------------------------------------------------------
                                System.out.println("Before check...");
                                System.out.println("is ORB null " + (com.arjuna.ats.internal.jts.ORBManager.getORB() == null));
                                System.out.println("is ORB null " + (com.arjuna.ats.internal.jts.ORBManager.getPOA() == null));
                                ------------------------------------------------------------------------------


                                Output when I run HelloClient.java
                                ------------------------------------------------------------------------------
                                Before check...
                                Exception in thread "main" com.arjuna.ats.arjuna.exceptions.FatalError
                                at com.arjuna.ats.internal.jts.ORBManager.getORB(ORBManager.java:63)
                                at com.arjuna.demo.simple.HelloClient.main(Unknown Source)
                                ------------------------------------------------------------------------------

                                • 13. Re: Unable to start examples
                                  Mark Little Master

                                   

                                  "mark.little@jboss.com" wrote:
                                  Can you just verify that both getThePOA and getTheORB return non-null values from ORBManager?


                                  getThePOA
                                  getTheORB

                                  • 14. Re: Unable to start examples
                                    Baron Davis Newbie

                                     

                                    "mark.little@jboss.com" wrote:

                                    getThePOA
                                    getTheORB

                                    I am little consufed now. My Eclipse tells me there are no such methods defined.
                                    com.arjuna.ats.internal.jts.ORBManager has only following methods defined:
                                    getORB()
                                    getPOA()
                                    getServices()
                                    isInitialised()
                                    and setters for ORB and POA. All those methods are static and instance of the ORBManager has only those methods inherited from the Object class.
                                    Am I missing something here?
                                    Thanks in advance


                                    1 2 Previous Next