Environment, Environment, Environment

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!

One thought on “Environment, Environment, Environment
  1. Had the same sort of issue in the header of the portal when preforming a new installation PS 8.53. It was not showing anything but java exception errors (java.lang.UnsupportedClassVersionError: Bad version number in .class file …..etc. etc……) and was causing the homepage to load without any layout. After some searching it turned out that the JRE version found in tuxedo 11gR1 was 1.5 as well and that the tuxedo /jre/bin was set before the jre/bin of $PS_HOME in the $PATH and was causing all kinds of issues with the header and homepage. Your article confirmed what we had been thinking based on other posts out there. thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *