About Entity

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 ...

 
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

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 ...

 
issue

EOFException

Not sure if you'll be able to help with this but I've had an application get into a state where it cannot access anything from the database - queries fail with the following exception: ... 2.3.3_06] javax.persistence.EntityNotFoundException Entity is not found: ...

 
forum_thread

Storing Images

What is the best way to store images? As external files? In the database as blobs? Are blobs supported?... class could be useful. Maybe as part of a set of common entity classes for general use. ...

 
forum_thread

Failed to read the value of field using reflection

I have recently encountered an issue with reading objects: ... a player, who can have various characters (also an entity). That worked fine. I can manipulate the object fine. Then I saved, ...

 
forum_thread

Custom collection types

Hi   In our project in few places there are used collections from emf framework eg EcoreEMap http://download.eclipse.org/modeling/emf/emf/javadoc/2.5.0/org/eclipse/emf/ecore/util/EcoreEMap.html This is strange map for me, it implements List interface but does not implement Map interface, nevertheless it causes some questions. ... is not supported (unless defined and handled as ordinary entity / persistence capable classes). ObjectDB ...

 
forum_thread

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

Hi,   I don't have a useful test case to expose this issue, but I am getting an intermittent "Attempt to reuse an existing primary key value". In this particular instance, the error is: ... when saving new items, never while updating an existing entity. I'm still working on trying to make a repeatable test, but due to ...