Quote:
Originally Posted by
charu
Hi,
I am kind of new to both tuxedo and cron. I am trying to run a java program, which will talk to middleware tuxedo. When I run the java program from command line, it is working fine. However, when I try to run the same program from cron, it is giving me an exception as stated below:
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
at com.csgsystems.aruba.connection.ConnectionFactory.createConnection(ConnectionFactory.java:45)
at QueryBalance.getBalance(QueryBalance.java:47)
at ExpBalCust.RetExpBalCust(ExpBalCust.java:63)
at ExpBalCust.main(ExpBalCust.java:237)
Caused by: terrapin.tuxedo.FmlError:
at terrapin.tuxedo.Fml32.Fldid(Native Method)
at com.csgsystems.aruba.connection.Connection.<clinit>(Connection.java:60)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
... 4 more
In the script which will run the java program from cron, I am setting the CLASSPATH, PATH and LIBPATH env varibales correctly.
Please help me.
Thanks in advance.
At times, I am getting this exception as well...
Exception in thread "main" java.lang.UnsatisfiedLinkError: tti_tuxedo_wsc (A file or directory in the path name does not exis
t.)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:953)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:922)
at java.lang.System.loadLibrary(System.java:451)
at terrapin.tuxedo.TuxLoaderWsc.<clinit>(TuxLoaderWsc.java:8)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:131)
at com.csgsystems.aruba.connection.PoolableATMI.<clinit>(PoolableATMI.java:29)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:131)
at com.csgsystems.aruba.connection.Connection.class$(Connection.java:57)
at com.csgsystems.aruba.connection.Connection.<clinit>(Connection.java:57)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
at com.csgsystems.aruba.connection.ConnectionFactory.createConnection(ConnectionFactory.java:45)
at PrepaidBalanceQuery.getBalance(PrepaidBalanceQuery.java:44)
at ARLowBalCust.insertLowBalCust(ARLowBalCust.java:59)
at ARLowBalCust.main(ARLowBalCust.java:202)