About run

forum_thread

java.io.IOException: Illegal seek

The Exception throws between whiles, is a bug?(ObjectDB 2.3.4_05) #1 2012-01-31 02:08 The Exception throws between whiles, is a bug? ( ObjectDB 2.3.4_05 ) [09:44:46.992] Caused by: co ...

 
forum_thread

Conditional Selection

I have an Employee class that holds... private String firstName = "-"; private String middleName = "-"; private String lastName = "-"; I do not require that an Employee's middle name be provided so when I use... SELECT firstName + " " + middleName + " " + lastName FROM Employee     ORDER BY lastname, firstname, middleName I may end up with the result list of... #1 2017-07-26 20:05 I have an Employee class that holds... private String firstName = "-"; private String middleName = "- ...

 
forum_thread

Index on map key

Is there a way to create an Index with @Index on the key of a map? #1 2013-10-02 06:10 Is there a way to create an Index with @Index on the key of a map? ...

 
forum_thread

pesimistic Lock semantic

Hi   I have tested pesimistic lock and the result was for me unexpected. In the first transaction i modified one object and in the second transaction i wanted to the same and  I got an exceptopn that lock could not be granted, quite nice but in that moment I wanted commit the first transaction and I also got lock exception. this the test:   public void testPesimisticLock() {   PersistenceManager pm1 = null;   PersistenceManager pm2 = null; ... guess - but I think that you should have a problem if you run this code without enhancement. JDO (unlike JPA) requires enhancement to ...

 
forum_thread

CASE WHEN...THEN...ELSE...END not working using JPQL/JDOQL

When I try to use the "case...when...then...else...end" like in the following query "SELECTCASE WHEN g.name="a" THEN "e" ELSE "o" END g from Guest g", I get the issue: Unexpected query token 'CASE' SELECT  ==> CASE <==  WHEN g.name="a" THEN "e" ELSE "o" END g from Guest g Have I mismatched something or is it an issue with ObjectDB? Anyone could help me on how to use the "case" in JPQL? Thank you in advance. #1 2016-07-29 06:59 When I try to use the "case...when...then...else...end" like in the following query "SELECTCASE WHEN g.name="a" T ...

 
forum_thread

Multiple joins did not return expected result

Hello, I have 3 entity classes: Event - String title Calendar - List<Event> @OneToMany SharedCalendar extends Calendar - Calendar original Now I want to retrieve all events from a specific calendar by its id like: #1 2017-10-27 07:49 Hello, I have 3 entity classes: Event - String title   Calendar - List<Event> ...

 
forum_thread

ODB with Netbeans

ODB2 allows JPA attributes to be public (which is great), but JPA does not. So, in Netbeans, with attributes like this: @Entity class A { public String name; } I get compile time errors "Instance variable for persistent attribute must not be public" How does one switch that off in Netbeans? ... are not compilation errors, so you can still build and run the project. ObjectDB Support ObjectDB - Fast ...

 
forum_thread

Connection is closed Caused by: java.io.EOFException

I am getting this exception on a regular basis, after a period of time of repeating the same code execution.  I don't understand why.  I restart the DB server and my code works again for another period of time until same exception is encountered again.  I cannot pin down a pattern e.g. after a certain period of time,  because the time  periods between exceptions are not regular, although frequent.  Any test case  I use will pass most of the time but will fail after an undetermined period. ... after use in a finally{} clause  Have I run out of connections? Or is there something obvious that I am not seeing? ... com.objectdb.o.SMR.n(SMR.java:166) at com.objectdb.o.TOL.run(TOL.java:115) at com.objectdb.Server.runCommand(Server.java:194) at ...

 
forum_thread

Multithreading Test and Deadlock

I move on to testing the multi threaded part of ObjectDB. From the same code (MyMain.java), I set the thread count from 1 to 4 and not only do I found it's slower overall (each thread only needs to insert 250K entities) but the threads are stuck with a deadlock. All threads share the same EntityManagerFactory but they have their own EntityManager. The stack trace is attached. #1 2011-05-04 00:27 I move on to testing the multi threaded part of ObjectDB. From the same code (MyMain.java), I set the thread coun ...

 
issue

Exception Failed to read from file

Hello, we have found several these exceptions in our log ... ysoft.sqpro.queue.SecuredPrintQue.run(SecuredPrintQue.java:350) Caused by: com.objectdb.o.UserException: Failed ... Is there any workaround? We need to finally run our application without futher problems. Thanks Marta ...