As clearly stated in the reason for the exception:
Caused by: java.net.SocketException: Socket operation timed out: The API call remote_socket.CreateSocket() took too long to respond and was cancelled.
So that he waited until he could connect, but he could not, so he reached the timeout and stopped waiting for the connection.
If you can connect to other software, it means that you have problems with hibernation configuration.
You need to fix hibernate configuration files.
A typical hibernate configuration file:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property> <property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost/xdb</property> <property name="hibernate.connection.username">sa</property> <property name="connection.password">krishna</property> <property name="connection.pool_size">1</property> <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property> <property name="show_sql">true</property> <property name="hbm2ddl.auto">create</property> <mapping resource="com/vaannila/student/Student.hbm.xml"/> <mapping resource="com/vaannila/student/Address.hbm.xml"/> </session-factory> </hibernate-configuration>
Try starting the database in server mode:
org.hsqldb.server.Server -database.0 file:mydb -dbname.0 xdb // <- Notice what is here
user3667171
source share