-
Feature Request
-
Resolution: Done
-
Major
-
3.0.0.Alpha5
-
None
Hi,
We have tried to follow this example http://docs.jboss.org/modeshape/latest/manuals/reference/html/jcr-query-and-search.html with the version 3.0.0.Alpha5. BUT we get this exception :
java.lang.IllegalArgumentException: The optimizationNanos argument value, -110669015, may not be negative at org.modeshape.common.util.CheckArg.isNonNegative(CheckArg.java:225) at org.modeshape.jcr.query.QueryResults$Statistics.withOptimizationTime(QueryResults.java:498) at org.modeshape.jcr.query.process.QueryEngine.execute(QueryEngine.java:114) at org.modeshape.jcr.query.lucene.LuceneQueryEngine.query(LuceneQueryEngine.java:131) at org.modeshape.jcr.RepositoryQueryManager.query(RepositoryQueryManager.java:101) at org.modeshape.jcr.JcrQueryManager$SessionQueryContext.execute(JcrQueryManager.java:281)Shutting down engine ... at org.modeshape.jcr.query.JcrQuery.execute(JcrQuery.java:109) at org.modeshape.example.sequencing.TestQueryLanguageJcrSql2.main(TestQueryLanguageJcrSql2.java:113)
where the calling code is:
javax.jcr.query.Query query = mgr.createQuery("select * from [nt:unstructured]", Query.JCR_SQL2)
javax.jcr.query.QueryResult result1 = query.execute();
The problem is really strange because sometimes our code works fine and get the results sometimes we get this exception... Moreover in 2 different environment it's not the same behaviour (For example in mine (Windows 7) it work everytime but in my colleague's one (Windows XP SP2) sometimes it works sometimes we get the exception as I said before !!)
So the behaviour is random depending on the environment!
- is related to
-
MODE-1593 java.lang.IllegalArgumentException: The resultFormulationNanos argument value, -1302752, may not be negative
- Closed