About null

forum_thread

zip file or JAR manifest missing

I found the message: Error opening zip file or JAR manifest missing: /E:/projects/ObjectDB/bin/objectdb.jar Some of projects can read the DB, but others can not read or write the DB. ... 2 , sName ) ; ItemList item = null ; try { item = ( ItemList ) ...

 
forum_thread

Calendar in Criteria Querys

Hi, i am having troubles creating criteria querys for Calendar objects. As far as I can see CriteriaBuilder has no methods for checking if one Calendar is bevor or after another. Javas Calendar Class got such methods, but i dont know how to use those in my query. ... java.lang.NullPointerException: null java.lang.NullPointerException at com.objectdb.o.EXR$e.c(EXR.java:190) at ...

 
forum_thread

Problem to use find method on an abstract Class: AbstractMethodError is thrown

Hi, I'm using JBoss AS 7 WildFly with ObjectDB installed as a module ( also Java 7, Eclipse Juno) In my db there are objects of type SentenceStatement which inherit from type LogicalObject  When I use find method mentioning SentenceStatement everything works just fine but when I use this method mentioning LogicalObject I get AbstractMethodError Please see services.Tester class with the 2 options for a better ease    this is the stack trace when I try to find LogicalObject: ... I use: em.find(AbstractGuest.class,id) I get Null. no Exception or Error is thrown though    ... describe different issues (an exception in the first, null returned in the second). ObjectDB Support ...

 
forum_thread

LAZY @ManyToOne field functions as EAGER

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2]"cLazy"
 b.cEager:{C}[3]"cEager" ... b.cLazy: { C } [ 2 ] "null" b.cEager: { C } [ 3 ] "cEager" But ...

 
forum_thread

Distinct Error

Hi, I'm getting a NullPointerException thrown on using DISTINCT. The query works fine if I don't have distinct. However thats NOT a solution as the code generating the query is used for other queries, and some of them do need the distinct. Its only a simple query: QUERY: SELECT DISTINCT $1 FROM CDI $1 JOIN $1.attributeList $2 WHERE ($2.name='firstname') AND ($2.valueAsString='Alex') ... frames omitted Caused by: java.lang.NullPointerException: null at com.objectdb.o.BQI.Vf(BQI.java:140) ~[objectdb-2.2.8.jar:na] at ...

 
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   ... . The only reference in that line can never be null as far as I can tell - unless the EntityManager  is in a special ...

 
forum_thread

ODB should auto-restart if it detects it's necessary

Hi! I find very tricky the need to restart ObjectDB server after schema modifications in a distributed environment. Moreover, not doing it does sometimes trigger ugly errors, which mean application downtime. It might be very useful to have an additional feature (that could be enabled/disabled in objectdb.config) that each time ObjectDB detects a schema change that requires restart, it should automatically restart itself. This way we save a lot of headaches from our dev. ops. Currently we have to manually do: ... ) ; com.objectdb.o.InternalException: null at com.objectdb.o.BYR.s(BYR.java:113) at ...

 
forum_thread

Failing to read entities under load in multithreaded tests

Hi, We are experiencing an issue in our application that only occurs under load - we sometimes fail to read entities from the database. ... null com.objectdb.o.InternalException at com.objectdb.o.PRG.ag(PRG.java:611) at ...

 
issue

Exception in thread "ODB-StoreHandler-5094" java.lang.NullPointerException

Hi, ... What is happening when we hit the null pointer exception in a version prior to 2.7.0?  Are transactions ...

 
forum_thread

Failed to validate XML

[ObjectDB 2.6.7_05] javax.persistence.PersistenceException Failed to validate xml file /{erased-by-me}/tiro/lib-core/build/resources/test/META-INF/persistence.xml: (error 211) at com.objectdb.jpa.Provider.createEntityManagerFactory(Provider.java:88) at com.objectdb.jpa.Provider.createEntityManagerFactory(Provider.java:32) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)... throws Exception { if ( null != em ) { em. close ( ) ; ...