About Persistence Context

forum_thread

com.objectdb.o.InternalException: Unexpected internal exception

Hi, I am using objectdb.jar version 2.6.8 (installed via Maven). I am trying to authenticate a user. Initially, the database is empty. I have the following query: @javax.persistence.NamedQuery(   name = "getPersonByName",   query = "SELECT _person FROM metamodel.user.Person as _person WHERE _person.userName = :userName" ) I execute the query as follows: ... I have the following query: @ javax. persistence . NamedQuery (   name = ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Failed to commit transaction: Java heap space (error 613)

Hi, the following exception occurred in our production machine last night: 2013-07-17 20:41:46,665 pdnsrttor3rc42-WSAgent-2-Existing/16 ERROR ObjectDbMessagePipe - Failed to put a message on queue:  pdnsrttor3rc42-ReportDSGroup_Instance-2 retrying = true [ObjectDB 2.4.6_10] javax.persistence.RollbackException Failed to commit transaction: Java heap space (error 613) We are using ObjectDB 2.4.6_10, JDK 7, and a 30GB heap space. ... retrying = true [ObjectDB 2.4.6_10] javax.persistence.RollbackException Failed to commit transaction: Java heap space ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

CASE WHEN...THEN...ELSE...END not working using JPQL/JDOQL

When I try to use the "case...when...then...else...end" like in the following query "SELECTCASE WHEN g.name="a" THEN "e" ELSE "o" END g from Guest g", I get the issue: Unexpected query token 'CASE' SELECT  ==> CASE <==  WHEN g.name="a" THEN "e" ELSE "o" END g from Guest g Have I mismatched something or is it an issue with ObjectDB? Anyone could help me on how to use the "case" in JPQL? Thank you in advance. ... It is efficient for general object persistence, including maps, although for key/value storage only you may want ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Index causes increased memory usage

Hello, ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

Internal exception

Hello. We got the following stacktrace. Can you explain me what this internal exception means and why it was thrown? It only happens when the entities are enhanced. Best regards BTC ES   ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Failed to read the value of field using reflection (error 363)

I have encountered this error from one of the many servers hosting my application. Other servers didn't encounter errors of this kind and running without problems. My system provider said that nearly all of the servers are VM-based including this one which encountered this error. It is the 'youngest' server in deployment. I can get more information as you require. As the application developer, I am perplexed as I have use JPA and ObjectDB for years now. I could use your assistance in overcoming this problem. Thank you. ----- ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

JPQL IN Operator

How can I use the standard JPQL IN operator with ObjectDB? This JPQL query works fine with EclipseLink / postgres but throws an exception in objectDB: select distinct dv.creationtime from DataValue dv where dv.capabilityId.capabilityId ==> in <== :capabilities and dv.creationtime >= :earliest and dv.creationtime <= :latest order by dv.creationtime ASC [ObjectDB 2.2.9] javax.persistence.PersistenceException Unexpected query token 'in' (error 752) ... creationtime ASC [ObjectDB 2.2.9] javax.persistence.PersistenceException Unexpected query token 'in' (error ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

exception thrown when try to run explorer again?

hello , when i try to launch explorer.jar i got this error: ... "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/persistence/EntityManager at com.objectdb.o.CRC.<init>(CRC.java:65) at ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Post-compilation enhancement vs Automatic Run-time enhancement

We are getting massively different results on field loading between explicit post-compile enhancement and automatic run-time enhancement. Testing exactly where and when the results are different for our demo web app is a very time consuming task, and very difficult, it means testing literally 100s of user interfaces (noting we get different results OUTSIDE THE JAVA SERVER FACES BACKING BEAN LAYER depending on the enhancement stragegy). Can you please explain how this could possibly be so ? ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Replication error - parsing objectdb config

I'm trying to replicate a database using the following config: <server>   <connection port="6136" max="100" />   <data path="$objectdb/db-files" />   <replication url="objectdb://localhost:6126/DEV1/NewMessagePipe.odb;user=admin;password=admin" /> </server> ... to the slave database: [ObjectDB 2.2.1_01] javax.persistence.PersistenceException Replicated database ... EntityManagerFactory masterEmf = Persistence . createEntityManagerFactory ( ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...