About JPA

forum_thread

Error reading UTF string

Good day, I have many errors like this, when try to use java.util.UUID as string in querys. #1 2013-10-03 15:21 Good day, I have many errors like this, when try to use java.util.UUID as string in querys. 16:18:4 ...

 
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>   ... of "Guestbook.war" 04:56:02,893 INFO [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011401: Read persistence.xml for ... JBAS011466: PersistenceProvider 'com.objectdb.jpa.Provider' not found at ...

 
issue

Error in production. Failed to commit transaction: Unexpected database state: BTree -152 is not found

2014-06-16 11:52:26,684 ERROR cl.intelidata.servlet.Fact .respondeRut (122 ): Unexpected internal exception [ObjectDB 2.5.5] Unexpected exception (Error 990) Generated by OpenJDK 64-Bit Server VM 1.7.0_25 (on Linux 3.11.0-12-generic). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException ... -152 is not found (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:302) at ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... . Type: * Bug JPA Feature JDO Feature Feature Request Documentation Website ...

 
forum_thread

Explorer in 2.3

First, the new Explorer in ObjectDB is fantastic! This is exactly what we've needed - an easy way to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive data and Strings. After playing with it for a while, here is a list of additional features I'd love to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy text to the clipboard or save to a file (csv, html, etc..). (There appear to be copy menu options, but I cannot get them to work.) ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Possible issue with timestamps

Hi, If I query doing something like: select c from CDI c where c.creationDate > {ts '2012-03-29 11:00:00} and c.creationDate < {ts '2012-03-29 12:00:00'} the test fails. Its ONLY for 12:00:00. When I started digging I found that if I queried 00:00:00 to 00:25:00 and then did 12:00:00 to 12:25:00 I got IDENTICAL results. For some reason 12:00:00 is being treated the same as 00:00:00. All other hours seem to be fine. ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

UserException: Invalid configuration in 'internal' - Check permissions

Hi all,   I have a master/slave code so that each slave reads a subset of points of the same database. ObjectDB entities do not allow serialization and so I have sent, to each slave, the file path. With such information I have tried to create an entityManager, in each slave, as follows: EntityManagerFatory entityManagerFactory = Persistence.createEntityManagerFactory(filePath); EntityManager = entityManagerFactory.createEntityManager(); However I get the following error ... ( UNM. java :75 ) at com.objectdb.jpa.Provider.createEntityManagerFactory ( Provider. java :57 ) ... ComputePCA. java :129 ) at com.objectdb.jpa.Provider.createEntityManagerFactory ( Provider. java :32 ) ...

 
forum_thread

CriteriaQuery using isNotNull with other conditions results in InternalException

When I try to execute the following criteria query   ... com.objectdb.o.QRR.b(QRR.java:143) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:586) at ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ...

 
forum_thread

Activation Issue

Hi, We bought a site license the yesterday. I ran the activation class this morning. That generated the activation key. I took that key as per the instructions, added it to the objectdb.conf inside the jar, and everything was happy. (this was with 2.3.7). However after a reboot I'm now getting the evaluation license restriction message again at compile time (which was I was seeing before putting the activation key in objectdb.conf). I tried upgrading to 2.3.7_02 and updating objectdb.conf with the activation key, but get the same behaviour. ... - exceeds evaluation limit (error 1011) at com.objectdb.jpa.EMImpl.find(EMImpl.java:556) at com.objectdb.jpa.EMImpl.find(EMImpl.java:474) at ...

 
forum_thread

Searching lists within objects

Hi everyone,  I've a problem with searching on lists. I'm uncertain as to what the best form is, so I've created a maven project with all the classes and a unit test showing my issue. Pretty much I want to search using cb.isMember passing an object. This however does NOT work. I'm uncertain how the database is doing its matching, but it looks to me like it matches using objectids, which means you can only match isMember if you have a database object. This does not help as I'm never going to have the real object at search time. ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... QRR. java : 143 ) at com. objectdb . jpa . JpaQuery . getResultList ( JpaQuery. java : 618 ...

 
forum_thread

ClassCastException of same object type

I have ObjectDB partially working with my project. At the moment it seems to be saving objects and retrieving objects ok in the main project. However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: java.lang.ClassCastException: org.sportscoring.ssv.xc.core.XCCompetitorCount cannot be cast to org.sportscoring.ssv.xc.core.XCCompetitorCount ... Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... using enhanced method (error 362) at com.objectdb.jpa.EMImpl.persist(EMImpl.java:376) at ... com.objectdb.o.OBM.bv(OBM.java:249) at com.objectdb.jpa.EMImpl.persist(EMImpl.java:373) ... 4 more Caused by: ...