Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT ACCESS
java.sql.SQLException
F.Javier Almeida
2009-12-18 03:48:28.0
Good morning,
we are using de Access driver (AccessJDBC_4.0.jar) to access to remote data. We have just downloaded the last version of the drivers.
Our software access to remote data constantly and, though not always, quite often we have the next exception:
"
...
2009-12-18 12:40:43[ERROR][TelevisUtilBase.getDispositivosInstalacion()] Error 1 al recuperar los dispositivos de GMAMPOSTA
java.sql.SQLException: Timeout Interrupted Exception: beyond 1000 msecs to open a database of setup.
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.access.av.a(Unknown Source)
at com.hxtt.sql.access.r.a(Unknown Source)
at com.hxtt.concurrent.x.a(Unknown Source)
at com.hxtt.sql.access.bb.a(Unknown Source)
at com.hxtt.sql.access.ae.a(Unknown Source)
at com.hxtt.sql.bp.if(Unknown Source)
at com.hxtt.sql.di.a(Unknown Source)
at com.hxtt.sql.di.a(Unknown Source)
at com.hxtt.sql.bp.a(Unknown Source)
at com.hxtt.sql.bp.a(Unknown Source)
at com.hxtt.sql.ah.a(Unknown Source)
at com.hxtt.sql.ah.a(Unknown Source)
at com.hxtt.sql.ah.executeQuery(Unknown Source)
at com.systemfrost.cc.TelevisUtilBase.getDispositivosInstalacion(TelevisUtilBase.java:182)
at com.systemfrost.cc.TelevisUtilMac.getDispositivosInstalacion(TelevisUtilMac.java:39)
at com.systemfrost.cc.LectorCambiosCfg.run(LectorCambiosCfg.java:228)
Timeout Interrupted Exception: beyond 1000 msecs to open a database of setup.
Error Code:721152
SQL State:S1T00
java.sql.SQLException: Timeout Interrupted Exception: beyond 1000 msecs to open a database of setup.
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.access.av.a(Unknown Source)
at com.hxtt.sql.access.r.a(Unknown Source)
at com.hxtt.concurrent.x.a(Unknown Source)
at com.hxtt.sql.access.bb.a(Unknown Source)
at com.hxtt.sql.access.ae.a(Unknown Source)
at com.hxtt.sql.bp.if(Unknown Source)
at com.hxtt.sql.di.a(Unknown Source)
at com.hxtt.sql.di.a(Unknown Source)
at com.hxtt.sql.bp.a(Unknown Source)
at com.hxtt.sql.bp.a(Unknown Source)
at com.hxtt.sql.ah.a(Unknown Source)
at com.hxtt.sql.ah.a(Unknown Source)
at com.hxtt.sql.ah.executeQuery(Unknown Source)
at com.systemfrost.cc.TelevisUtilBase.getDispositivosInstalacion(TelevisUtilBase.java:182)
at com.systemfrost.cc.TelevisUtilMac.getDispositivosInstalacion(TelevisUtilMac.java:39)
at com.systemfrost.cc.LectorCambiosCfg.run(LectorCambiosCfg.java:228)
...
"

How could we solve this problem?
Thank you very much,
Kiko.



Re:java.sql.SQLException
HXTT Support
2009-12-18 04:28:10.0
>How could we solve this problem?
Try lockTimeout connection with a bigger value.
Re:Re:java.sql.SQLException
HXTT Support
2009-12-18 07:49:47.0
I did it using the method setQueryTimeout( seconds ) for my Statement Object.
I setted the timeout to 25 seconds, but I still had the message.
"java.sql.SQLException: Timeout Interrupted Exception: beyond 1000 msecs to open a database of setup. "
I saw "1000 msecs" instead of "25000 msecs" so I though it was not the problem.
And I printed out the times and, although I had setted the time to 25 secs., the error still was happening after 1 second.
The method setQueryTimeout() is the correct way to lockTimeout connection, isnt it?
Thank you very much.
Re:Re:Re:java.sql.SQLException
HXTT Support
2009-12-18 17:40:08.0
>I did it using the method setQueryTimeout( seconds ) for my Statement Object.
That method hasn't relation with lockTimeout connection property now.
Re:Re:Re:Re:java.sql.SQLException
HXTT Support
2009-12-21 02:34:30.0
Thank you very much. I've solved the problem setting the lockTimeout connection property in the correct way.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap