Select via JPA (eclipselink) hangs on java.net.SocketInputStream.socketRead0(Native Method) [message #671258] |
Tue, 17 May 2011 06:05  |
Eclipse User |
|
|
|
Hi,
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 11.1.0.7.0
I'm looking forward to your replies.
Regards
Frederik
[Updated on: Tue, 17 May 2011 06:46] by Moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05220 seconds