Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 6th Jul 2009, 22:43
tullurir tullurir is offline
Registered Developer
 
Join Date: Jun 2009
Posts: 8
Default socket creation error

I am trying to experiment with SmartGWT enterprise edition modules. While trying to run the ds-hibernate and BuildInDs sample code I am getting the following error. The Hsqldb server is running fine as I can connect to it through a client application. Your help is greatly appreciated.

Thanks

DEBUG PoolableSQLConnectionFactory - [builtinApplication.supplyItem_fetch] DriverManager fetching connection for HSQLDB via jdbc url jdbc:hsqldb:hsql://localhost/isomorphic
=== 2009-07-06 12:19:31,223 [l0-2] WARN RequestContext - dsRequest.execute() failed:
java.sql.SQLException: socket creation error
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)

Last edited by tullurir; 7th Jul 2009 at 02:21..
Reply With Quote
  #2  
Old 7th Jul 2009, 03:19
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,988
Default

Wherever the server is running, it's likely that that machine cannot resolve the name 'localhost'. Try specifying the IP instead if you don't know how to fix this.

Another possibility is that the username or account that is running the server does not have the ability to use the network.
Reply With Quote
  #3  
Old 7th Jul 2009, 07:16
tullurir tullurir is offline
Registered Developer
 
Join Date: Jun 2009
Posts: 8
Default

Thanks for the input.

I tried hard coding the IP in the jdbc URL but got the same issue. However, the problem is gone when I changed the URL to create in-memory database by replacing 'hsql' to 'mem', thereby changing the jdbc URL from 'jdbc:hsqldb:hsql://localhost/isomorphic' to 'jdbc:hsqldb:mem://localhost/isomorphic'.

Now I getting an exception that the table is not found.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved