× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



this question will show my ignorance...
in my interactive job, the first time a java routine is executed, the
classpath is set.
I believe it is loaded from the CLASSPATH environment variable...
currently my SYS (and user for that case) CLASSPATH is:

'.:/java/jdbc/mysql-connector-java-5.1.36-bin.jar:/java/jdbc/jtds-1.2.5.jar:/java/jdbc/sqljdbc.jar'

(MySQL Driver, and (2) different drivers for microsoftSQL)

Once the JVM is started, what would change the JVM's classpath?
I have made sure the EscapeProcessor class is in the .jar file...

those jobs that show a problem, have been in and out of these routines all
day.... it is almost
like a time out occurs...

pardon a 2nd question:

If you are using the mySQL jdbc drivers via Scott's JDBCR4 programs,,, do
you
call them within the interactive job, or do you pass data between jobs?






On Tue, Nov 22, 2016 at 4:40 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
wrote:

Gerald,

What this tells you is that when calling the prepareStatement Java method
(a routine in the JDBC driver) it is internally trying to call something
named "com.mysql.jdbc.EscapeProcessor", but can't find it.

This is all happening inside the JDBC driver. JDBCR4 calls the
prepareStatement method of whichever driver you've loaded, but cannot
control what the prepareStatement method does under the covers.

Possibly you are missing some JAR file in your CLASSPATH? Or possibly
this is a bug in the MySQL JDBC driver you're using?

-SK


On 11/22/2016 1:45 PM, Gerald Magnuson wrote:

wait, I found an exception error above this...
Message . . . . : Java exception received when calling Java method.

Cause . . . . . : RPG procedure JDBC_PREPS in program JDBC2LIB/JDBCR4

received Java exception "java.lang.NoClassDefFoundError:

com.mysql.jdbc.EscapeProcessor" when calling method "prepareStatement"
with
signature "(Ljava.lang.String;)Ljava.sql.PreparedStatement;" in class

"java.sql.Connection".

On Tue, Nov 22, 2016 at 1:25 PM, Gerald Magnuson <
gmagqcy.midrange@xxxxxxxxx

wrote:


strangely this problem seems to come and go, and I can't figure out how to
replicate for testing.

I have a MCH3601 "pointer not set" error which appears to be in QXJ9INI
program
"AttachCurrentThread__FP7JavaVM_PP7JNIEnv_Pv" procedure...
called from JDBCR4 program, JDBC_Properties procedure...

does anyone know how I can trace or catch these errors?



--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.