• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.sql.BatchUpdateException: IO Error: Socket read timed out error

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me as what could be going wrong. My full stackTrace is:



I am a new to this kind of exception but I know its getting timed out. Sometimes same action works fine. any help would be appreciated. Thanks in adv.
 
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This usually means there is a lock on the database somewhere.
The first thing to do is make sure everything is closed. I don't know how to do this in hibernate.
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure about the "forgotten lock". In my experience, a session can wait for many hours for a lock in Oracle. However, I have only tried with SQL*plus, not with JDBC, so I may be wrong.

I'd suggest to check the database logs for possible errors.

This OTN thread mentions the culprit might be an invalid connection handed out by the connection pool; setting the pool to validate the connections could solve the issue.
reply
    Bookmark Topic Watch Topic
  • New Topic