I’ve seen truck loads of environment problems over the years. This one was one of the more recent ones. We start out with reports failing to post with the following error in the PSDSTSRV log.
PostReport](3) PSJNI: Created a Java VM instance
PostReport](1) PSJNI: Java exception thrown: java.lang.UnsupportedClassVersionError: Bad version number in .class file
PostReport](3) HTTP transfer error.
PostReport](3) Post Report Elapsed Time: 0.1800
The message log for the process shows the following error:
PSUNX failed to post files to the report repository. Server scheduled to try again on... See log
HTTP Status Code is: 905 (63,72)
“Bad version number in .class file” is a mismatch between current java version and version used to compile the source
$ which java
/opt/apps/tuxedo10gR3/jre/bin/java
$ java -version
java version "1.5.0_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_08-b03, mixed mode)
looked at .bash_profile, tux.env was being sourced after psconfig.sh which was updating PATH variable with tux info last swapped order of sourcing of files and retested
$ which java
/opt/apps/psoft/fin851/jre/bin/java
$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
Resubmit and… Posting success!
Leave a Reply