Version mismatch, driver version is 4 but server version is 5 [90047-76]

466 views
Skip to first unread message

Jezzper

unread,
Aug 4, 2008, 3:32:11 PM8/4/08
to H2 Database
Hi

When I try to a simple test to connect to a H2 (H2 1.0.76 ) database
by:

Class.forName("org.h2.Driver");
conn = DriverManager.getConnection("jdbc:h2:tcp://
localhost/test", "SA", "");

I get an error

"Version mismatch, driver version is 4 but server version is 5
[90047-76]"

Why is that?

regards
Jesper Kiær

Thomas Mueller

unread,
Aug 4, 2008, 8:51:53 PM8/4/08
to h2-da...@googlegroups.com
Hi,

It looks like you are using a very old version of H2 on the client
side, but the newest version on the server side. This was changed in
version 1.0.65 from January this year as far as I know, so it looks
like you use version 1.0.64 or older on the client side.

Of course it would be better if older clients can connect to newer
servers and vice versa. This feature is now implemented, but was not
implemented in older versions however. So I am sorry, you will need to
upgrade in this case.

Regards,
Thomas

Jezzper

unread,
Aug 5, 2008, 4:35:43 PM8/5/08
to H2 Database
You are right, found another old H2.jar in the system.

On Aug 5, 2:51 am, "Thomas Mueller" <thomas.tom.muel...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages