Kbase 21734: SonicMQ: Broker Down With Severe NullPointerException Error
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/31/2002 |
|
SUMMARY:
Applicable to SonicMQ version 4.0, this Solution describes a situation where the Broker shuts down during startup due to a severe error and NullPointerException.
The java.lang.NullPointerException can occur when starting the SonicMQ broker. Or, it might occur while running the script, dbtool /c all, to create all database tables -- including the security and interbroker tables after recreating the cloudscape database on a Windows 2000 Server.
EXPLANATION:
On the Windows 2000 platform with the Cloudscape database and the bundled JRE as the broker's JVM, the startbr or dbtool script might occasionally fail during startup with a NullPointerException. This behavior has been traced to problems with the JIT compiler. It is further documented in release note [3369].
SOLUTION:
Modify the setenv.bat script to disable the JIT compiler. This can be done by adding:
-Djava.compiler=none
to the line:
set BROKER_JVM_ARGS=
For example, the setenv.bat script might look like this:
set BROKER_JVM_ARGS=-Xms32m -Xmx256m -Djava.compiler=none
The broker will then output the warning:
JIT compiler "none" not found.
It will now use interpreter.
References to Written Documentation:
SonicMQ version 4.0 Documentation Release Notes (local HTML)