About Time

forum_thread

NullPointerException while setting a new property value

Hello, we are using ObjectDB version 2.4.4 and we are unable to resolve following NPE on enhanced entity: java.lang.NullPointerException at com.objectdb.o.ENT.beforeModifyMember(ENT.java:1099) at model.PluginMetaData.__odbSet_maxAllowedDownloads(PluginMetaData.java:1) at model.PluginMetaData.setMaxAllowedDownloads(PluginMetaData.java:268) at model.PluginMetaData.setPluginDescriptor(PluginMetaData.java:94) PluginMetaData looks like this (nothing extraordinary, no relationship to other @entities): ... No problem. We will try it tomorrow. Time to sleep for now :-). Thank you for your support. ...

 
forum_thread

Cascading makeTransient

Hi! We have a memory leak in our app because of ObjectDBs __odbTracker fields. The situation is that we read the objects from the DB (many and large objects of class A) and then keep in the application cache only some embedded parts of those objects (let's call them class B). This application cache should work independently on the DB as if it contained transient objects. ... effective solution when we need to use it almost all the time when reading the DB. Our target is to simply get an instance of an ...

 
issue

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: ... trouble, so i retried 2.3.3 and it also passed 10k this time :( I'll keep working to recreate it. My objectdb.conf is ...

 
issue

ArrayIndexOutOfBounds with Critera API and function call

Hello, This is getting really frustrating sorry but we're close before delivering our app to our customer and went against a show-stopper again. We're building a simple query with the criteria api. What we have is something like (pseudo code) ... yet another sample as creating samples takes quite some time and I hope it can be resolved by you without as we're so short before ...

 
forum_thread

Queries are slow on a large database

Hi, I have a 12GB database with 787603 entries. It is much larger than usual and there are performances issues. I am doing small queries and they take much longer than I expect, i.e.: Get the total number of entries Get 25 consecutive entries (i.e. 0-25) Get one specific entry On average each query needs 4 to 5 minutes to return a result. I have been adviced to use indexes but they are already used through the JDO Metadata file. For instance I use this class: ... Reference Page... , with very fast execution time. Similarly to get MAX/MIN values: SELECT MAX ( m ...

 
forum_thread

Missing Data on Retrieval (0, null values)

I try  to export all Objects in an Flatfile-Hiearchy (.csv). But only the first exported Table contains all necessary Data. Most of the others  contains all  Object-Rows', but most Values of the Columns are missing. With a  em.clear() inside the Loop, all tables are exported correctly but the Enity-Keys do not match. I can't get the point - what am i doing wrong?   emf = Persistence.createEntityManagerFactory(dbFile); em = emf.createEntityManager(); ... So i don't have to take my Laptop with me every time. edit ...

 
forum_thread

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town; public ETown getTown() { return town; } public void setTown(ETown town) { this.town = town; } } And: ... I need to know the answer as soon as possible due to time constraints and submission deadline. The error log is as follows: ...

 
issue

Enhanced classes problem

Hell, we have problem with the OEM enhancement licencing. When we used runtime licencing using machine activation code, everything works fine. But when we enhanced our classes with OEM licence, following errors occurs: ... need help with this, because we have already spent much time with the OEM licencing and we are really confused with this. ...

 
forum_thread

CriteriaQuery using isNotNull with other conditions results in InternalException

When I try to execute the following criteria query   ... 45 more The only time I get the exception is when I combine the isNotNull with other conditions. ...

 
issue

Sometimes the ObjectDB throws an internal expeption if a persist() was executed

[ObjectDB 2.6.6_08] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_51 (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.OBM.bE(OBM.java:395) at com.objectdb.o.OBM.bE(OBM.java:269) at com.objectdb.jpa.EMImpl.persist(EMImpl.java:442) Bug Version: 1.04 Priority: Low Status: Closed Replies: 7 Type:  Bug ...