Configuring Java support
Posted in 2007
Topics: Installation, Setup & Upgrades, Storage & Space Management, Connectivity: ODBC / JDBC / .NET, Server Administration, Java & JDBC Development
I'm having a hard time getting Java support to work with IDS10 (10.00.UC4) on
RHES4. I'm using the $INFORMIXDIR/extend/krakatoa/examples to test this. I
first went through the steps of creating the sbspace and setting up the Java
properties. However, when I try to run the examples [specifically, this line
from the Env.sql: execute procedure install_jar(
"file:/u/ids10/extend/krakatoa/examples/Env.jar", "env_jar", 0);], the CPU
usage goes to 100%. I don't get anything in my Java logs. In the online.log,
all I see is this:
20:35:20 Booting Language <java> from module
<$INFORMIXDIR/extend/krakatoa/lmjava.so>
20:35:20 Loading Module <$INFORMIXDIR/extend/krakatoa/lmjava.so>
20:35:21 The C Language Module </u/ids10/extend/krakatoa/lmjava.so> loaded
20:35:21 Loading Module <informix.jvp.dbapplet.impl.JarHandler>
20:35:21 Got the mutex
20:35:21 VM args[0]= -Xss512k
20:35:21 VM args[1]= -Djava.security.policy=/u/ids10/JVM_security
20:35:21 VM args[2]= -Xms16m
20:35:21 VM args[3]= -Xmx16m
20:35:21 VM args[4]= exit
20:35:21 VM args[5]= abort
20:35:21 VM args[6]=
-Djava.class.path=/u/ids10/extend/krakatoa/krakatoa_g.jar:/u/ids10/extend/krakat
oa/jdbc_g.jar:/u/ids10/extend/krakatoa
Killing the SQL command that installs the jar doesn't affect the CPU usage; it
stays at 100%. I have to shut the server down and even then onmode -ky
produces a message about getting no response after 120 seconds.
Any ideas about what I might be doing wrong or things to look at?
Thanks
The JRE that shipped with IDS 10 before UC6 contained a buggy JRE. The solution is to install a newer version of the JRE. http://www-1.ibm.com/support/docview.wss?rs=0&q1=IC49819&uid=swg1IC49819&loc=en_ US&cs=utf-8&cc=us=en