About not

forum_thread

how to query by properties of onetomany relations? (Error 990)

the following code fails em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName) stacktrace: ... name = :n AND b2 . value = :v and not: SELECT f FROM Foo f JOIN f . bars b WHERE b . ...

 
issue

Error on commit

I get the following on commit:  (v2.3.7_15) Let me know if you need more info. ... may be solved by running the Doctor in fix mode, but not by running it in diagnosis mode. Anyway, since the problem is ...

 
forum_thread

Working with a cleared cache

I'm working on trying to improve the performance of our database processing class and I'm attempting to keep the L1 cache within the PersistenceManager cleared in an effort to reduce its memory footprint. The code snippet below is part of a Callable task that is run repeatedly with a given list of commands. When I run the code as written I start getting the stack traces that are listed.  However, if I comment out the calls to makeTransactionalAll() and evictAll() everything works.... callback method - the solution should be based on using it not in a callback method. ObjectDB Support ...

 
forum_thread

ArrayIndexOutOfBoundsException

Hi, I've been getting the following exception when trying to query ObjectDB in server mode version 2.3.4_05. ... only newer schema be accepted. Maybe schema changes should not be allowed without restarting the server. ObjectDB ...

 
forum_thread

Criteria Query results in a NoResultException instead of returning object

When I run the following code    ... My issue is that the CriteriaQuery version does not return anything while the JPQL version returns the object.   ...

 
forum_thread

Spring Data JPA

Hello! When i configure Spring Data JPA to use ObjectDB 2.4.0_03 i get an exception when the context starts. ... EntityManagerFactory ) username and password  have not been used. Build 2.4.0_04 includes a fix and now the username and ...

 
forum_thread

JPQL keyword in entity - what to do?

Hi, I have a problem with entity that is using one of JPQL keywords as one of the fields. It's a 'type' field. When I try to build a query that looks for example like this: select new ResultData(p.type.name, count(p.id)) from Product as p group by p.type.name I got this exception: ... It seems that the constructor is not found - try changing the 2nd argument from Long to long. ...

 
forum_thread

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 ... method and it looks like it works, but not the way I was hoping for. @ PreUpdate public void ...

 
forum_thread

How to deploy an Objectdb project with Jboss AS 7?

Hi, I cannot deploy Guestbook project to Jboss AS 7. I followed the previous threads concerning the issue of deploying it to Jboss 6 but still cannot do it right. It still cannot find the provider. Is there an instruction how to deploy objectdb project to Jboss AS 7 step by step?   I used objectdb-jee.jar instead of objectdb.jar I used persistence.xml with the sentence <jta-data-source>java:/DefaultDS</jta-data-source>   ... PersistenceProvider 'com.objectdb.jpa.Provider' not found at ...

 
issue

InternalException using 2.3.7_12

Sorry can't shed any light on this, other than the code where this came out of, worked fine with 2.3.7_02. I had to upgrade to 2.3.7_12 to pickup the fix for wildcard search on index, and now get this. [ObjectDB 2.3.7_12] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_21 (on Linux 3.0.0-16-generic). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException... last builds is unclear (these specific lines of code have not been changed recently). A test case that demonstrates the exception ...