Guest User

- Error happened when I run Weblogic 10.3 + JDK1.6.0 + AIX 6.1.0.0
- jennifer 4.5.0

Hello. I raise a question after finding an error relatied to Jennifer agent.
Please refer to the following list.When I restart the WebLogic, it runs. However,if I add JENNIFER_OPTS,
JENNIFER [INF] JVWS: oracle.jdbc.driver.OracleStatement
JENNIFER [INF] JVWS: oracle.jdbc.driver.T4CStatement
JENNIFER [INF] JVWS: oracle.jdbc.driver.OraclePreparedStatement
JENNIFER [INF] JVWS: oracle.jdbc.driver.T4CPreparedStatement
JENNIFER [INF] JVWS: oracle.jdbc.driver.OracleCallableStatement
JENNIFER [INF] JVWS: oracle.jdbc.driver.T4CCallableStatement
JENNIFER [INF] JVWS: oracle.jdbc.driver.OracleResultSetImpl
JENNIFER [INF] JVWS: oracle.jdbc.driver.T4CConnection
JENNIFER [INF] oracle.jdbc.driver.PhysicalConnection is a JDBC Connection
JENNIFER [INF] JVWS: oracle.jdbc.driver.PhysicalConnection
JENNIFER [INF] oracle.jdbc.driver.OracleConnection don’t have nativeSQL
JENNIFER [INF] JVWS: oracle.jdbc.driver.OracleConnection
<Nov 13, 2010 6:54:28 PM CST> <Unable to set the activation state to true for the application ‘OCJPOOL’.
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 6
at weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub.ensureInitialized(Unknown Source)
at weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
Truncated. see log file for complete stacktrace

Caused By: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 6
at weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub.ensureInitialized(Unknown Source)
at weblogic.jdbc.common.internal.RmiDataSource_1033_WLStub.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:44)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
Truncated. see log file for complete stacktrace

the following error happens.
Please giv eme an answer for my question.

1. libjennifer20_aix43_32_32.so test fail

WAS1:/ocj/apps/jennifer/agent>./preinstall.sh ########################################################

  1. Jennifer Agent Pre-Installation ########
    ########################################################
######################################################## Step 1. Select Java Application Server ######################################################## Send me e-mail at tech@jennnifersoft.com, if you can’t find Java Appication Server you would like to install 1. WebSphere 5.x / 6.x 2. WebLogic 6.x / 7.x / 8.x / 9.x 3. JEUS 4.x / 5.x 4. Oracle AS 10g 5. Tomcat 4.x / 5.x 6. Tomcat 6.x 7. Resin 8. Jboss 3 9. Jboss 4 10. Sun App Server 11. Glassfish Select (Q:Quit) ===>> 2 ######################################################## Step 2. Type Java Application Server Home Directory ######################################################## This process is for configuring the jennifer.jar . Type the exact path of directory for the selected WebLogic Application Server. Do you want to use the default Java Application Server HOME [ /usr/bea/weblogic ]? /ocj/apps/bea/wlserver_10.3 WebLogic Application Server Home Directory : /ocj/apps/bea/wlserver_10.3 Add the /ocj/apps/jennifer/agent/jennifer.jar classpath on the domain startup script ######################################################## Step 3. Type JAVA Home Directory ######################################################## Specify the JAVA_HOME directory which is used by Java Application Server. Do you want to use the default JAVA_HOME [/usr/java6_64] ? /usr/java6_64 [/usr/java6_64] is set as JAVA_HOME Creating lwst.jdk.jar …. lwst.jdk.jar is created successfully ######################################################## Step 4. Jennifer Native library setting ######################################################## Is Web Application Server running with the -d64 option? [y/n] y libjennifer20_aix43_32_32.so test fail ERROR: You’re failed to test all of Jennifer Native Library. If you could not solve this error, send your system enviroment information and other relating data via an email: tech@jennifersoft.com ######################################################## Step 5. Jennifer Agent Configuration setting ######################################################## Do you want to customize an agent configuration file ? [y/n] y Input the Agent Name [exactly 3 char] ex) W11 ===>> d11 license_filename [ /ocj/apps/jennifer/agent/license.txt ] ? /ocj/apps/jennifer/agent/license.txt logfile [ /ocj/apps/jennifer/agent/jennifer_d11.log ] ? lwst_logfile [ /ocj/apps/jennifer/agent/lwst_d11.log ] ? agent_tcp_port [ 7750 ] ? udp_server_host [ localhost ] ? 172.20.49.101 server_udp_runtime_port [ 6901 ] ? server_udp_listen_port [ 6902 ] ? server_udp_lwst_call_stack_port [ 6703 ] ? The Agent configuration is completed… Please, proceed with Post Installation tasks [Pre-Installation is finished] [ Pre-Installation Summary ] Java Application Server Type : WebLogic Application Server Java Application Server Home Directory : /ocj/apps/bea/wlserver_10.3 JDK Home Directory : /usr/java6_64 Jennifer Agent Directory : /ocj/apps/jennifer/agent Agent config file : /ocj/apps/jennifer/agent/d11.conf Jennifer LWST file : lwst.jdk.jar Jennifer Native library file : libjennifer20.so(sl)

2. cp libjennifer20_aix53_64_64.so → libjennifer20.so
test.sh

WAS1:/ocj/apps/jennifer/agent/jni/aix5>ls -l
total 408
-rwxr-xr-x 1 ocj ocj 16327 Oct 27 09:51 libjennifer20.64.dual.so
-rwxr-xr-x 1 ocj ocj 17031 Nov 13 19:29 libjennifer20.so
-rwxr-xr-x 1 ocj ocj 12159 Oct 27 09:51 libjennifer20_aix51_32_32.so
-rwxr-xr-x 1 ocj ocj 15590 Oct 27 09:51 libjennifer20_aix51_64_32.so
-rwxr-xr-x 1 ocj ocj 15590 Oct 27 09:51 libjennifer20_aix51_64_64.so
-rwxr-xr-x 1 ocj ocj 16085 Oct 27 09:51 libjennifer20_aix52_32_32.so
-rwxr-xr-x 1 ocj ocj 16357 Oct 27 09:51 libjennifer20_aix52_64_32.so
-rwxr-xr-x 1 ocj ocj 17031 Oct 27 09:51 libjennifer20_aix52_64_64.so
-rwxr-xr-x 1 ocj ocj 16319 Oct 27 09:51 libjennifer20_aix53_32_32.so
-rwxr-xr-x 1 ocj ocj 16381 Oct 27 09:51 libjennifer20_aix53_64_32.so
-rwxr-xr-x 1 ocj ocj 16381 Oct 27 09:51 libjennifer20_aix53_64_64.so
-rwxr-xr-x 1 ocj ocj 20177 Oct 27 09:51 libjennifer20_aix53_64_micropar_ec.so
-rwxr-xr-x 1 ocj ocj 506 Oct 27 09:51 test.sh
WAS1:/ocj/apps/jennifer/agent/jni/aix5>test.sh
_SC_NPROCESSORS_CONF=8, _SC_NPROCESSORS_ONLN(ncpu)=4, ncpu=4, _SC_CLK_TCK=100, _SC_PAGESIZE=4096
JENNIFER TimeZoneOffset:28800000
JENNIFER pid=8585408, ppid=9633958, ncpu=4, cpucluck=100
JENNIFER SysProf libjennifer20.so(sl) shared library loaded successfully.
JENNIFER4.5.0(2010-10-27) libjennifer20.so(sl) shared library loaded successfully.
Process Id = 8585408
Parent Process Id = 9633958
Number of CPU = 4
Cpu Cluck Speed = 100
System Total Mem = 12288 MB
System Free Mem = 5978 MB
Process Mem = 26 MB
Native Thread Id = 258
Current Thread Cpu Time = 52 ms

SYSTEM PROCESS USER SYS NICE WAIT IDLE USER SYS NICE WAIT IDLE 0.0 0.0 0.0 0.0 100.0 0.0 0.0 0.0 0.0 100.0

System Cpu Time = 1969842, 1659559, 0, 876208, 636729234,
Process Cpu Time = 8, 0, 160102560, 0, -1,
Current Thread Cpu Time = 53 ms

SYSTEM PROCESS USER SYS NICE WAIT IDLE USER SYS NICE WAIT IDLE 0.9 0.7 0.0 0.0 98.4 2.0 0.0 0.0 0.0 98.0

System Cpu Time = 1969846, 1659562, 0, 876208, 636729659,
Process Cpu Time = 10, 0, 160102662, 0, -1,
Current Thread Cpu Time = 54 ms

SYSTEM PROCESS USER SYS NICE WAIT IDLE USER SYS NICE WAIT IDLE 0.2 0.0 0.0 0.0 99.8 0.0 0.0 0.0 0.0 100.0

System Cpu Time = 1969847, 1659562, 0, 876208, 636730060,
Process Cpu Time = 10, 0, 160102763, 0, -1,
Current Thread Cpu Time = 54 ms

System.exit(0)
WAS1:/ocj/apps/jennifer/agent/jni/aix5>

3.

  1. JENNIFER SETTING ##############
    export JENNIFER_CONF=“d11.conf”
    export JENNIFER_HOME=“/ocj/apps/jennifer”
    CLASSPATH=“$CLASSPATH:$JENNIFER_HOME/agent/jennifer.jar”
    JENNIFER_OPTS=“-Xbootclasspath/p:$JENNIFER_HOME/agent/lwst.jdk.jar:$JENNIFER_HOME/agent/lwst.boot.jar -Djennifer.config=$JENNIFER_HO
    ME/agent/d11.conf -javaagent:$JENNIFER_HOME/agent/lwst.javaagent.jar”
    LIBPATH=“$JENNIFER_HOME/agent/jni/aix5:$LIBPATH
    export CLASSPATH JENNIFER_OPTS LIBPATH

###############################################

$JAVA_HOME/bin/java -Xms1424m -Xmx1424m $JENNIFER_OPTS ~~~~~~

Khalid Saeed

If you run the WebLogic 10.3, refer to the following installation guide.

1. Rebuild the lwst in lwst40.sh option into build_jdbc=false.
ex) ./lwst40.sh jdk15 /usr/java6_64/jre/lib/rt.jar

2. Add the below option in the agent configuration file.
jdbc_connection_get=weblogic.jdbc.common.internal.RmiDataSource.getConnection();weblogic.jdbc.common.internal.RmiDataSource.getConnection(String, String)

3. Restart Weblogic