|
I think the key issue is the IncompatibleClassChangeError that is being
thrown. Are you sure the jars you compiled with are the same ones you
are using at runtime? I'd have to go poking through the MySQL JDBC
driver code but it looks like signature of your runtime method isn't
matching what you compiled with.
Since this IS a java issue, you might find someone more knowledgeable
over at JAVA400.
Pete
Chamara Withanachchi wrote:
Dear All,program
Im trying to connect to MySql server in my PC using Scott's JDBC/RPG
(jdbcr4). I have set the class path as and compiled testMySql.java file(Throwable.java:85)
successfully but when I tried to run the java program gave me following
error
java testMySql
java.lang.NoSuchMethodError: valueOf (Z)Ljava/lang/Boolean;
java/lang/Throwable.<init>(Ljava/lang/String;)V+4
java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:41)java/lang/IncompatibleClassChangeError.<init>(Ljava/lang/String;)V+1
(IncompatibleClassChangeError.java:34)com/mysql/jdbc/ConnectionPropertiesImpl$BooleanConnectionProperty.<init>(Lcom/mysql/jdbc/ConnectionPropertiesImpl;Ljava/lan
java/lang/NoSuchMethodError.<init>(Ljava/lang/String;)V+1
(NoSuchMethodError.java:37)
g/String;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V+4com/mysql/jdbc/ConnectionImpl.<init>(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Ljava/lang/String;)V+1
(ConnectionPropertiesImpl.java:73)
com/mysql/jdbc/ConnectionPropertiesImpl.<init>()V+25
(ConnectionPropertiesImpl.java:686)
(Concom/mysql/jdbc/ConnectionImpl.getInstance(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Ljava/lang/String;)Lco
nectionImpl.java:628)
m/mysql/jdbc/Connection;+16 (ConnectionImpl.java:298)com/mysql/jdbc/NonRegisteringDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+68
(NonRegisterijava/sql/DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+
ngDriver.java:282)
144 (DriverManager.java:512)java/sql/DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+37
(Drive--
rManager.java:172)
testMySql.main([Ljava/lang/String;)V+25 (testMySql.java:16)
can some one help me to over come this issue.
This is the RPG programming on the IBM i / System i (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.
As an Amazon Associate we earn from qualifying purchases.
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.