Problem in running QueryHints.READ_ONLY on GF 3.0 [message #903953] |
Mon, 27 August 2012 08:37  |
Eclipse User |
|
|
|
Hello All,
I faced a problem using EclipseLink 2.5.0 in enterprise application on Glassfish 3 server.
The problem is:-
String query;
query = "SELECT entity FROM " + entityName + " entity ";
List baseEntities = null;
Query queryL = em.createQuery(query);
queryL.setHint(QueryHints.READ_ONLY, HintValues.TRUE);
baseEntities = queryL.getResultList();
before adding the line: "queryL.setHint(QueryHints.READ_ONLY, HintValues.TRUE);"
there is no problem, but after adding it the server suddenly closed when running the line: "baseEntities = queryL.getResultList();" & nothing was written to the log.
|
|
|
Re: Problem in running QueryHints.READ_ONLY on GF 3.0 [message #903997 is a reply to message #903953] |
Mon, 27 August 2012 10:15  |
Eclipse User |
|
|
|
Sounds like a JVM crash, in which case there should be a JVM error dump somewhere that might have more information. The EclipseLink log might show here in the query processing the error is occuring, assuming it gets that far and EclipseLink logging is turned on. Are you able to use other query hints successfully?
Also, how did you change the EclipseLink jars, and which 2.5 EclipseLink build are you using?
Best Regards,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.07216 seconds