About enhancement


ClassCastException: cannot be cast to com.objectdb.spi.TrackableUserType

Hello, I have a class TherapeauticDrugScreenRqst with two other nested subclasses - all using Groovy. My first attempt to persist TherapeauticDrugScreenRqst to Objectdb 2.2.8 is successfully. However, although my method to store the method is shown below: ... The ClassCastException might be the result of partial enhancement. Try rebuilding the project and re-enhancement of all the persistable classes. If you still get the exception ...


Blocked by find

I have a container object which wraps an objectdb database. There is a "putIfAbsent(String id, Object obj)" method which is synchronized and attempts to load an object by id using the EntityManager "find" method. If nothing is returned from the db the passed object is persisted to the db. I have 5 threads which use this method. In a run today one of the threads seems to have got stuck somewhere in the find. The thread dump looks like: ... Regarding performance: Make sure you use enhancement. Strings, particularly when used for IDs, are usually ... still halts the test though. My main app is using enhancement so we're ok on that front. String ids are part of the app (and ...


Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

This topic is for those considering migrating from EclipseLink JPA or TopLink to ObjectDB JPA. ... after the EM has closed I would recommend filing an enhancement request in GlassFish. The upshot for ObjectDB users is ...


Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't store separate entity for given event. Right now I'm using BaseEntity which contains #1 2011-07-20 12:49 Hi, Currently I'm playing with entity listener to implement auditing with difference between values i ...


NullPointerException when using multithreading

[ObjectDB 2.4.4_08] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) Client VM 1.6.0_29 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException at com.objectdb.o.ENT.C(ENT.java:557) at com.objectdb.o.OBM.bz(OBM.java:385) at com.objectdb.o.OBM.bz(OBM.java:261) at com.objectdb.jpa.EMImpl.persist(EMImpl.java:377) at ... Bug Version: Priority: Normal Status: Fixed Replies: 8 Type:  Bug ...



This class is a helper class for JDO implementations.(Class of JDO)


First query takes 4+ minutes to complete

Hi, we are evaluating ObjectDB 2.5.1_04 in embedded mode hoping to replace SQLite in our application. We observed that in our case it takes on average more than 4 minutes to complete the first SELECT query that we run on the DB which contains about 320,000 records of a single type of object. SQLite in comparison responds within few seconds on average with the same number of records. We hope to receive your recommendation on how to improve this result with this post.   Test System ... >   <entities > <enhancement agent = "false" reflection = "warning" /> ...


newbie - lots of exeptions

Hi  I'm very new to objectdb . I have bought a server and really want to use it. Our code works well with eclipselink and postgresql - until we stress it which is why I'm trying to get objected to work.   realy wierd things are going on ... we are using hessian to connect our remote clients to glass fish and invoke methods there (fine with postgresql) . here is our log (part of it at least .... exceptions are happening all the time when we're working with objected). ... The stack trace in #9 may represent a partial enhancement or incomplete build. Please try rebuilding and enhancing all your ...


Removing an entity throws exception

Hi all, I'm testing ObjectDB for my project, but I have troubles with it. At this time I'm not able to remove customer entity, when it's read by a query (it's attached), it throws this exception: Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: com.objectdb.o._RollbackException: Failed to commit transaction: 51 ... ... object images (used mainly to detected changes when enhancement is not in use) - after schema evolution. Therefore, ...


Query results are not up to date for entities, not primitives

When using the CriteriaBuilder to query, the retrieved list are not refreshed according to the latest updates. But, when using the JPQL Query, the list are refreshed. What is the problem? ... > < / database>   <entities> <enhancement agent = "true" reflection = "warning" / > ...