QRNXUTIL _QRNI_getJNIEnv Pointer not set for location referenced
Posted: Wed Feb 14, 2024 7:12 pm
I apologize if this is a newbie question. I've programmed Java on Windows and IBM Unix, but this is my first attempt on the iSeries.
I would appreciate any assistance with the following error.
Situation: iSeries v7r2m0 RPGLE program using JDBCR4, for now just trying to access local DB2 database table (ultimately, will be accessing remote SQL Server database table). I believe Java is set up correctly on iSeries, as we use it for product CommercialWare and IBM MQ Series.
JVMJ9VM007E Command-line option unrecognised: -Djava.compiler=NONE
Unable to create Java Virtual Machine.
QRNXUTIL _QRNI_getJNIEnv MCH3601 Pointer not set for location referenced
CLASSPATH='/java/jdbc/jt400.jar:/CWJava/prod/CWEncryption.jar:/QIBM/ProdData/mqm/java/lib'
RPGLE program having trouble starting JVM as a result of first line in program:
prop = JDBC_Properties();
Service program JDBCR4, subprocedure JDBC_Properties, line causing error:
jdbc_get_jni_env();
Service program JDBCR4, subprocudure jdbc_get_jni_env, line causing error:
wwEnv = start_jvm();
Service program JDBCR4, subprocedure start_jvm, line causing error:
wwStr = s('Temp String');
Job log:
First error: MCH3601 Pointer not set for location referenced.
Second error: Java exception received when calling Java method.
RPG procedure START_JVM in program JDBCR4/JDBCR4 received Java exception "**UNKNOWN ERROR**" when calling method "<init>" with signature "([B)V" in class "java.lang.String".
Screenshots are attached.
Thanks!
I would appreciate any assistance with the following error.
Situation: iSeries v7r2m0 RPGLE program using JDBCR4, for now just trying to access local DB2 database table (ultimately, will be accessing remote SQL Server database table). I believe Java is set up correctly on iSeries, as we use it for product CommercialWare and IBM MQ Series.
JVMJ9VM007E Command-line option unrecognised: -Djava.compiler=NONE
Unable to create Java Virtual Machine.
QRNXUTIL _QRNI_getJNIEnv MCH3601 Pointer not set for location referenced
CLASSPATH='/java/jdbc/jt400.jar:/CWJava/prod/CWEncryption.jar:/QIBM/ProdData/mqm/java/lib'
RPGLE program having trouble starting JVM as a result of first line in program:
prop = JDBC_Properties();
Service program JDBCR4, subprocedure JDBC_Properties, line causing error:
jdbc_get_jni_env();
Service program JDBCR4, subprocudure jdbc_get_jni_env, line causing error:
wwEnv = start_jvm();
Service program JDBCR4, subprocedure start_jvm, line causing error:
wwStr = s('Temp String');
Job log:
First error: MCH3601 Pointer not set for location referenced.
Second error: Java exception received when calling Java method.
RPG procedure START_JVM in program JDBCR4/JDBCR4 received Java exception "**UNKNOWN ERROR**" when calling method "<init>" with signature "([B)V" in class "java.lang.String".
Screenshots are attached.
Thanks!