About files

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: #1 2011-03-01 22:22 Hi, I have a problem with entity that is using one of JPQL keywords as one of the fields. It's a 'type' f ...

 
issue

NullPointer when accessing entity field

Hello, following exception occurs when using objectdb: Bug Version: 2.5.0 Priority: Normal Status: Active Replies: 3 Type:  Bug ...

 
forum_thread

Adding EntityListener Throws Unexpected Internal Exception

I tried adding EntityListener for a entity class and an exception was thrown. I followed similar as mentioned on the documentation but no luck. My entity class looks like below: #1 2014-10-20 17:46 I tried adding EntityListener for a entity class and an exception was thrown. I followed similar as mentioned on ...

 
issue

Super class' field access fails

I have a base class: public abstract class HotObject extends BaseObject {   private Integer activity;   protected HotObject() {     activity = 1;   }   public Integer getActivity() {     return activity;   }   public void setActivity(Integer activity) {     this.activity = activity;   } Bug Version: 2.4.1 Priority: Normal Status: Closed Replies: 6 Type:  Bug ...

 
forum_thread

Apache Tomee 1.5.2: Failed to use JTA (TransactionManager is not found)

Hello, ObjectDB team! I am struggling with getting ObjectDB 2.5.0 to work with clean Apache Tomee 1.5.2 with transaction-type="JTA". I don't have any configurations in Tomee (objectdb.jar is in Tomee's classpath) nor other parts, excepting the following persistence.xml: #1 2013-05-20 21:55 Hello, ObjectDB team! I am struggling with getting ObjectDB 2.5.0 to work with clean Apache Tomee 1.5.2 w ...

 
forum_thread

java.sql.Time field off by 30 minutes

Hihi, I'm wondering if this is a bug. I have a simple entity with java.sql.Time field. On writing and readback, the field is found to be 30 minutes off. It is observed on objectdb explorer as well. Timestamp works perfectly fine. Ps. dont think its a UTC issue. My system is set at far off UTC+30min time.   #1 2012-03-07 01:28 Hihi, I'm wondering if this is a bug. I have a simple entity with java.sql.Time field. On wri ...

 
forum_thread

Server vs embedded mode in multi-instance scenario

We are creating a web app that will have multiple different clients, each on their own EC2 instance(s). The clients do not need to share any data, so each could have its own ObjectDB. Clients have a user base of about 2,000 to 60,000 users that could possibly be using their application at any given time (100k absolute maximum). We will probably have multiple instances per client for availability concerns as well as auto scale during peak usage, at least for the benefit of our web application if not for objectdb. #1 2013-01-18 22:18 We are creating a web app that will have multiple different clients, each on their own EC2 instance(s). The clien ...

 
forum_thread

InternalError on query of empty database

Hi, I have reasons for sometimes trying to query the database before anything has been created. The problem is the database throws a InternalException when that happens. Is it possible to throw something that identifies that that is the issue, say something like "MissingSchemaException", ie something that clearly shows its because no data of that type has been added? This just makes the exception catching cleaner. Thought thinking about it, it probably needs to be a JPA exception, maybe something like javax.persistence.EntityNotFoundException? #1 2011-07-21 01:39 Hi, I have reasons for sometimes trying to query the database before anything has been created. The probl ...

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

 
forum_thread

@OneToMany(fetch = FetchType.LAZY) list is always null

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related to J2EE. parent.getChildren() returns null. Here is a simple example: Bean: #1 2014-06-05 20:19 Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related to J2 ...