Thursday, March 12, 2009

Weblogic Erroneous Handlers Error

When running applications in a Weblogic server you might get this error reported on one of your pages or in one of your log files:

     java.lang.InternalError: erroneous handlers

There is a "real" error behind this error but the BEA JRockit version of java is not showing it. To find the real error you need to switch WLS to use Sun's Java.

(1) Open up setDomainEnv.sh (in the bin dir or your domain)

(2) Set SUN_JAVA_HOME to the root dir of your Java  (find this out by typing which java on cmd line)
Eg: SUN_JAVA_HOME="/scratch/me/apps/oracle/jdk"

(3) Create new env var for JAVA_VENDOR and set it to Sun
Eg:
JAVA_VENDOR="Sun"
export JAVA_VENDOR

(4) Bounce WLS

Now you'll get the real error.

2 comments:

  1. It was very useful..... Thanks! :)

    Santosh

    ReplyDelete
  2. Your post helped me convert a mystery without a clue into an error message I could do something about. Good Riddance jrocket. Thank you for taking the time to make this post. You saved me a headache.

    Steve

    ReplyDelete