Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Problem in running QueryHints.READ_ONLY on GF 3.0
Problem in running QueryHints.READ_ONLY on GF 3.0 [message #903953] Mon, 27 August 2012 12:37 Go to next message
Ahmed El-Zaher is currently offline Ahmed El-ZaherFriend
Messages: 1
Registered: August 2012
Junior Member
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 14:15 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
Registered: July 2009
Senior Member
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
Previous Topic:Force Insert Query when calling persist()?
Next Topic:View as JoinTable causes delete problem
Goto Forum:
  


Current Time: Thu Apr 18 02:42:40 GMT 2024

Powered by FUDForum. Page generated in 0.02394 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top