About Entity

forum_thread

NullpointerException when execute a merge

How can we analyze the cause of an "Unexpected internal exception"?   We create an object tree that is persisted with "merge()". Then we want to persist “merge()” an new object of a different type.   [we use ObjectDb 2.6.0_3] ... with PK before persisting the first instance of this entity type to the database. Please try build 2.6.0_04 that includes a ...

 
forum_thread

Eclipse/JPA database tutorial

Hello Sir/Madam, I followed all the steps correctly as given in the tutorial. But when i run it , I'm getting an error saying, the resource not available. Please help regarding the issue as soon as possible. Thank you. ... except that i have added a field message in my Guest entity. Please also note that I am using jdk1.8 and tomcat8. Error Message ...

 
forum_thread

Time Sequence Object Command DB

We (www.s2ssystems.com) have a time-sequential object command database.  I would like to see if it can be built and run efficiently on ObjectDB.   The requirements that drive the design of this database are: ... to manage this command database. You need a few entity classes, e.g. Transaction, Command (and possibly subclasses for ...

 
forum_thread

find repeated records by JPQL

Hi, I know a single command in MySQL can find repeated records: Select * from TTT t where id in (select id from TTT s group id having count(id)>1) I dont know how to do this using JPQL, but I use query from 430,000 records and put them into hashmap, finally it cost one hour and failed: ... an OutOfMemoryError while trying to load all the entity objects into a memory data structure is expected. You may try ...

 
forum_thread

Where Does ObjectDB Block/Lock?

These are questions asked in the context of the proposed architecture described in the forum thread titled, "Sample JDO Architecture for Follow Up Questions".   Questions about blocking/locking.  With my PersistenceManager multiThreaded=true architecture, I desire to know where ObjectDB is actually blocking/locking so I might adapt to achieve better concurrency. 1) Where are locks when accessing PersistenceManager by multiple threads? 2) Does it lock at PersistenceManager.currentTransaction()? ... locking, the call to transaction.commit() is where entity object locking actually happens.  Does this mean that all other ...

 
forum_thread

InternalException & UserException using objectdb with Jboss AS 7.1.1 final

Hello. We are currently using ObjectDB in application server Jboss as 7.1.1.final. ObjectDB version is 2.5.3_02. The following errors occur when multiple ajax requests are executed: Caused by: com.objectdb.o.InternalException: Error reading UTF string Caused by: com.objectdb.o.UserException: Mismatch client-server protocol prefix Our current settings: Persistence.xml: ... check your application with a database in which all the entity types have already been registered? ObjectDB ...

 
issue

Server NPE

I'm getting the following NPE when attempting to persist an object to a server based database: ... db, one reading. I had added an index to a property of the Entity object saved in the database but had mis-deployed this change to one of ...

 
issue

NullPointerException on initial database creation

I'm getting the following exception on initial creation of a database.  There's no indication as to what's wrong and there's nothing in the log.   ... with @Startup or @ApplicationScoped that references an entity class that hasn't been created in the DB yet.  I will try ...

 
forum_thread

@ElementCollection Set<Integer> is emptied sometimes

Hi! I'm facing a really strange behavior, which I can't yet reproduce, but it happened 3-4 times already. ObjectDB seems to clear some fields that are @ElementCollection Set<Integer> of my objects. They appear HashSet<Integer> in ObjectDB Explorer. The only common thing I've seen is that this MAY happen when schema changes, even though nothing is changed in that Object's class. Any ideas why would this happen and how could it be avoided? Thanks (version 2.5.3 & Tomee & NetBeans) ... class that does that, a @Singleton EJB, plus the affected entity. MarketSubscriptionsC.java ...

 
issue

Unexpected Exception during commit

I'm testing code that otherwise has been working with a clean database. I have seen several examples of the following exception. It never seems to happen in the same place twice, though. If you can give me a hint as to what would internally cause this, I'll try to reproduce it. Carl   Bug Version: Priority: Normal Status: Fixed Replies: 5 Type:  Bug ...