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 08:37 Go to next message
Ahmed El-Zaher is currently offline Ahmed El-Zaher
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 10:15 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1016
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: Mon Jul 28 18:44:29 EDT 2014

Powered by FUDForum. Page generated in 0.01631 seconds