简体   繁体   English

HIBERNATE和HSQLDB-在PC上运行-在Linux上出错

[英]HIBERNATE AND HSQLDB - Works on PC - Error on Linux

I've created a test application on my PC to get familiar with Hibernate on an HSQLDB. 我已经在PC上创建了一个测试应用程序,以熟悉HSQLDB上的Hibernate。

I made an executable JAR and moved the application on to a Linux VM. 我制作了一个可执行的JAR并将应用程序移至Linux VM。 When I run the same program after set up, my HSQLDB throws the following message when I try to run the test app: 设置后运行同一程序时,当我尝试运行测试应用程序时,我的HSQLDB会抛出以下消息:

A pre-9.0 client attemtped to connect. 9.0之前的客户端会尝试连接。 We rejected them. 我们拒绝了他们。

This occurs when I try to create the SessionFactory. 当我尝试创建SessionFactory时会发生这种情况。

Any idea what I'm over looking? 知道我在看什么吗?

Thanks, 谢谢,

Trev 特雷夫

The message indicates that you are using the client / server mode. 该消息表明您正在使用客户端/服务器模式。 The server is running the HSQLDB 2.0 jar, but the client is using an earlier jar, probably version 1.8. 服务器正在运行HSQLDB 2.0 jar,但是客户端使用的是早期的jar,可能是1.8版本。

In order to use HSQLDB 2.0 with Hibernate, you should use the HSQLDB snapshot jar from http://hsqldb.org/support/ (both on the client and server) together with the latest Hibernate version 3.5.6. 为了将HSQLDB 2.0与Hibernate一起使用,您应该将http://hsqldb.org/support/ (在客户端和服务器上)的HSQLDB快照jar与最新的Hibernate版本3.5.6一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM