: MIDRANGE dot COM Mailing List Archive

Re: Scott's JDBC/RPG program


AddThis Feed Button


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,
Im trying to connect to MySql server in my PC using Scott's JDBC/RPG program
(jdbcr4). I have set the class path as and compiled testMySql.java file
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 (Throwable.java:85)
java/lang/Error.<init>(Ljava/lang/String;)V+1 (Error.java:41)
java/lang/IncompatibleClassChangeError.<init>(Ljava/lang/String;)V+1
(IncompatibleClassChangeError.java:34)
java/lang/NoSuchMethodError.<init>(Ljava/lang/String;)V+1
(NoSuchMethodError.java:37)

com/mysql/jdbc/ConnectionPropertiesImpl$BooleanConnectionProperty.<init>(Lcom/mysql/jdbc/ConnectionPropertiesImpl;Ljava/lan
g/String;ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V+4
(ConnectionPropertiesImpl.java:73)
com/mysql/jdbc/ConnectionPropertiesImpl.<init>()V+25
(ConnectionPropertiesImpl.java:686)

com/mysql/jdbc/ConnectionImpl.<init>(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Ljava/lang/String;)V+1
(Con
nectionImpl.java:628)


com/mysql/jdbc/ConnectionImpl.getInstance(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Ljava/lang/String;)Lco
m/mysql/jdbc/Connection;+16 (ConnectionImpl.java:298)


com/mysql/jdbc/NonRegisteringDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+68
(NonRegisteri
ngDriver.java:282)


java/sql/DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+
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.








Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2010 by MIDRANGE dot 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 here. If you have questions about this, please contact