2 Replies Latest reply on Mar 14, 2006 7:56 AM by marklittle

    Number Format Exception (Phorum)

    marklittle

      Author: BarryM
      Date: 06-24-04 10:10

      Folks

      I wonder if someone could guide me

      While trying to use the transaction service to coordinate my global transaction I'm creating three or four xa session which I tie to the same number of xa resources

      I then try to create a javax.transaction.TransactionManager using the following

      //-=-=-=-=-=-=-=-=
      transManager = com.arjuna.ats.jta.TransactionManager.transactionManager();

      transaction = transManager.getTransaction();
      //-=-=-=-=-=-=-=-=

      that's all fine and good, but when I invoke transManager.begin();

      it falls over with this exception

      java.lang.NumberFormatException: 0ofb54c5

      I have both the transaction service running before I kick of my java prog. Funny thing is when I run the recovery manager I get the same exception but with more detail. here's what I get

      Setting up environment
      JacORB V 2.0 beta 2 Arjuna, www.jacorb.org
      (C) Gerald Brose, FU Berlin/XTRADYNE Technologies, 11 November 2003
      [ POA RootPOA - ready ]
      [ POA RcvCo-RecCoService_sweepeerecovery_coordinator - ready ]
      java.lang.ExceptionInInitializerError
      at com.arjuna.ats.internal.jts.recovery.transactions.ExpiredToplevelScanner.(ExpiredToplevelScanner.java:38)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at java.lang.Class.newInstance0(Class.java:306)
      at java.lang.Class.newInstance(Class.java:259)
      at com.arjuna.ats.internal.arjuna.recovery.ExpiredEntryMonitor.loadScanner(ExpiredEntryMonitor.java:277)
      at com.arjuna.ats.internal.arjuna.recovery.ExpiredEntryMonitor.loadScanners(ExpiredEntryMonitor.java:246)
      at com.arjuna.ats.internal.arjuna.recovery.ExpiredEntryMonitor.startUp(ExpiredEntryMonitor.java:127)
      at com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple.(RecoveryManagerImple.java:98)
      at com.arjuna.ats.arjuna.recovery.RecoveryManager.main(RecoveryManager.java:53)
      Caused by: java.lang.NumberFormatException: For input string: "0ofb54c5"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Long.parseLong(Long.java:332)
      at java.lang.Long.valueOf(Long.java:411)
      at com.hp.mwlabs.lic.utils.Utility.hexStringToLong(Unknown Source)
      at com.hp.mwlabs.lic.LicControl.checkLicense(Unknown Source)
      at com.hp.mwlabs.lic.LicControl.confirm(Unknown Source)
      at com.hp.mwlabs.lic.LicManager.confirm(Unknown Source)
      at com.arjuna.ats.internal.arjuna.common.Lector.confirm(Lector.java:31)
      at com.arjuna.ats.arjuna.coordinator.TxControl.(TxControl.java:181)
      ... 12 more


      can anyone maybe point my in the right direction with this as I can for the life of me work out what I'm doing wrong

      kind regards
      Barry

      Reply To This Message