Driver Mismatch

309 views
Skip to first unread message

frubeng

unread,
Mar 24, 2010, 10:12:27 AM3/24/10
to H2 Database
Hi,

I've been running a Java (jar file) program that uses the H@ database
to read and write. It's been running great. Last time i had tried it
was 2 weeks ago and now i run it and I get the following error:

"
Exception in thread "main" org.h2.jdbc.JdbcSQLException: Version
mismatch, driver version is "current client version: 5; minimum
version: 6" but server version is {1} [90047-131]
"

This happens with all my jar files that use the H@ database.
I tried it on a new comupter where I downloaded the latest JDK and
checked that it had JRE6, and I get the same error.

Not sure what is happening, since i definitely have JRE6 on my
computer and it was working fine 2 weeks ago.

Also,running the H2 Console (Command Line) works fine on both machines
- so really not sure where the error could be coming from!


Thanks for any help on this.

Ruben

frubeng

unread,
Mar 25, 2010, 9:36:04 AM3/25/10
to H2 Database
So I tried many many things to resolve this and it turned out the
solution was relatively simple but i am still confused as to why it
was a problem in the first place.
On my project, I replaced the the 1.2.126 H2 file with the 1.2.132 and
the error went away...

Ryan How

unread,
Mar 25, 2010, 10:51:11 AM3/25/10
to h2-da...@googlegroups.com
"
Exception in thread "main" org.h2.jdbc.JdbcSQLException: Version
mismatch, driver version is "current client version: 5; minimum
version: 6" but server version is {1} [90047-131]
"

I'm no expert, but the error code indicates the version is 1.2.131 (the
-131 is the version). So I would say your client and server were running
different versions. You said you replaced a version 126 jar, so perhaps
your client was 131 and server 126? or the other way around...

I have to say the error message is a little cryptic :).


Hope this helps,

Ryan


frubeng

unread,
Mar 25, 2010, 11:52:49 AM3/25/10
to H2 Database
OK, I get it. My jar files were packed with the 1.2.126 and my server
was using the 1.2.131 that i must have downloaded later but never
switched the H2 Jar file in my application's properties!

Thanks.

Thomas Mueller

unread,
Mar 29, 2010, 1:10:42 PM3/29/10
to h2-da...@googlegroups.com
Hi,

The error message is wrong of course. I will fix it. It should be:

Version mismatch, driver version is 5 but server version is 6 [90047-131]

Regards,
Thomas

Reply all
Reply to author
Forward
0 new messages