About Enhancer

forum_thread

JVM crash when using IBM JDK 1.6.0

The FAQ states in the system requirements only that a JDK/JRE 1.5 or 1.6(prefered) is required. When I try to use the IBM JDK 1.6.0 I get a GPF exception while creating the entity manager. Looks like a call to putInt on sun.misc.Unsafe object Does this mean there is a BUG in the IBM JDK or are not all JDK's supported? #1 2011-06-07 02:03 The FAQ states in the system requirements only that a JDK/JRE 1.5 or 1.6(prefered) is required. When I tr ...

 
issue

Use temporary files to enable very large transactions

We have transactions in which many objects are created. These objects are no longer needed in the current transaction after creation. Unfortunately, we will receive an OutOfMemory exception because the objects are kept in the first level cache of ObjectDB. In the forum thread http://www.objectdb.com/database/forum/921 on post #4 you wrote, that ObjectDB should support very large transactions in further version. Can you implement it that ObjectDB used temporary files? Bug Version: 1.04 Priority: Critical Status: Fixed Replies: 27 Type:  Bug ...

 
issue

NullPointer when accessing persistent field

I am afraid this is a large and complex example, and I do not encounter the problem in simple cases, therefore there is no example attached. I appreciate this may make the bug unreproduceable from your end.   ... ( ) ; As before Enhancer is being run on code before test runs. Thanks again. ...

 
forum_thread

Cascading makeTransient

Hi! We have a memory leak in our app because of ObjectDBs __odbTracker fields. The situation is that we read the objects from the DB (many and large objects of class A) and then keep in the application cache only some embedded parts of those objects (let's call them class B). This application cache should work independently on the DB as if it contained transient objects. #1 2015-07-03 10:50 Hi! We have a memory leak in our app because of ObjectDBs __odbTracker fields. The situation is t ...

 
forum_thread

Failed to validate XML

[ObjectDB 2.6.7_05] javax.persistence.PersistenceException Failed to validate xml file /{erased-by-me}/tiro/lib-core/build/resources/test/META-INF/persistence.xml: (error 211) at com.objectdb.jpa.Provider.createEntityManagerFactory(Provider.java:88) at com.objectdb.jpa.Provider.createEntityManagerFactory(Provider.java:32) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)... // register all entities com. objectdb . Enhancer . enhance ( ALL_MODEL_PACKAGES ) ;   ...

 
forum_thread

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

I have a simple task to validate the sample code will switch over to the slave database when the master is unavailable. I simulate the master unavailable by stopping the master server; which generates the following exception below. What am I doing wrong? It appears the connection manager fails to try the second URL in the list: objectdb://10.9.2.15:9998//10.9.2.15:9999/test.odb;user=admin;password=password Thank you in advance. #1 2013-05-06 20:16 I have a simple task to validate the sample code will switch over to the slave database when the master is unavai ...

 
forum_thread

Cannot sort descending, when ordering by caluculated float in a method

Hi, I have found an issue in ordering by a method. I have two entities : Invoice and InvoiceItem. public class InvoiceItem{ ..     private float price;     private float amount; .. }   public class Invoice{ ... args ) { com. objectdb . Enhancer . enhance ( "javaapplication.*" ) ;   ...

 
forum_thread

Fantom

  Hi, so far I've been able to get ObjectDb to persist objects from many JVM languages, eg.: Java/Groovy/Scala/Kotlin. However, I can't seem to get Fantom to work. Anyone tried this yet? Dave     #1 2012-03-23 19:24 Hi, so far I've been able to get ObjectDb to persist objects from many JVM languages, eg.: Java/Groovy/Scala/ ...

 
forum_thread

Problem with @Basic(fetch = FetchType.LAZY)

I have a class where two fields are annotated with @Basic(fetch = FetchType.LAZY) due to them containing quite long Strings and me loading ALL entities of the database on application startup (swing app) This class should hopefully demonstrate the problem: #1 2012-02-01 14:38 I have a class where two fields are annotated with  @Basic(fetch = FetchType.LAZY) due to them containing ...

 
forum_thread

Unable to convert 1.x odb file to 2.x

Hi, my company is just about to switch from ObjectDB 1.04.2487 (SE) to ObjectDB 2. So I downloaded the objectdb-2.5.5_02, activated it with our licence, enhancing went well, but then on converting 1 of the DB files I got this error: #1 2014-05-05 15:21 Hi, my company is just about to switch from ObjectDB 1.04.2487 (SE) to ObjectDB 2. So I downloaded t ...