Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 13:12:54 EDT 2025

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

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

Back to the top