|Select via JPA (eclipselink) hangs on java.net.SocketInputStream.socketRead0(Native Method) [message #671258]
||Tue, 17 May 2011 10:05
Registered: May 2011
I've created an application which uses an executor to fetch data. At random times the application tends to stop from working. After the needed debugging (using jconsole) I found out that the threads hang on java.net.SocketInputStream.socketRead0(Native Method). I'm executing regular database fetches/selects, there are no updates involved. The data that is fetched is based on a view containing database links.
I've set up a <property name="javax.persistence.query.timeout" value="10"/> in the persistence.xml file. But it seems to be ignored (the behaviour reoccured after I set up the timeout). Threads weren't released after the 10s timeout.
It's a desktop app using:
- java: 1.6.0_18
- eclipselink: javax.persistence_2.0.1.v201006031150.jar
- oracle jdbc driver: ojdbc6.jar
- oracle db: oracle 220.127.116.11.0
I'm looking forward to your replies.
[Updated on: Tue, 17 May 2011 10:46]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01988 seconds