About activation code

issue

ObjectDb Doctor : Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection (error 316)

Hello everyone ! I have just launched the ObjectDb Doctor for testing purposes. But while inspecting my base, the Doctor throws me a strange error : [ObjectDB 2.4.6] Invalid ID class com.test.Video$VideoId for type com.test.Video (Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection) (error 316) It seems that the Doctor can't find the SourceId, that is a part of my primary key. There is a description of my Video bean :   ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
forum_thread

Problems Running ODB Explorer

When ODB is run in embedded mode (Eclipse), it is fine but the explorer throws the following exception:-   ... Apparently you added the activation code to the objectdb.conf file that is in use by your application (and this ...

 
issue

Exception occurs on Linux during commit

I wrote and tested my code on Windows 7 in a tomcat environment. When deployed on Linux (under tomcat) I get the following exception during a call to commit. Code: pm.currentTransaction().begin(); pm.makePersistent(p); pm.currentTransaction().commit();   Stacktrace: ... I wrote and tested my code on Windows 7 in a tomcat environment. When deployed on Linux (under ... the following exception during a call to commit. Code: pm.currentTransaction().begin(); pm.makePersistent(p); ...

 
forum_thread

Not able to update records

Hi,   I am tring to update the simple object by using Update query by i am getting following exception [ObjectDB 2.4.4_15] javax.persistence.TransactionRequiredException Attempt to run update query when no transaction is active (error 611) at com.objectdb.jpa.JpaQuery.executeUpdate(JpaQuery.java:758) Following is the code i am executing   ... Following is the code i am executing   EntityManagerFactory emFactory = ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
forum_thread

Rollback after commit fail

Hi, I have question regarding transaction management in ObjectDB. Consider following scenario: Thread 1: try{ EntityManager em = emf.createEntityManager(); em.getTransaction.begin() persist object1 em.getTransaction().commit(); } catch(...){ em.getTransaction().rollback(); }   Thread 2: ... commit . But consider using the following code: } catch ( ... ) { if ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ...

 
issue

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

Environment: Mac OS X JVM: Java 1.8 u 20 Steps to reproduce Use the following classes: /** Account Class **/ ... Your issue cannot be reproduced, since the posted code is not runnable. Particularly the invocation of find in your code does not compile. The following code included an attempt to reproduce your ...

 
forum_thread

Adding indexes on existing entities.

Is it safe to add indexes on an existing entity class? Thanks. ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
issue

evalution limit error on digital ocean ubuntu

Trying to run the code on Digital Ocean Ubuntu instance. Generated license and set key in objectdb conf file. It gives below exceeds evaluation error when we try to run the code. Caused by: com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit at com.objectdb.o.MSG.d(MSG.java:61) ~[objectdb-2.5.4.jar:na] at com.objectdb.o.MST.UC(MST.java:1090) ~[objectdb-2.5.4.jar:na] at com.objectdb.o.WRA.UC(WRA.java:213) ~[objectdb-2.5.4.jar:na] at com.objectdb.o.TYS.x(TYS.java:768) ~[objectdb-2.5.4.jar:na]... Trying to run the code on Digital Ocean Ubuntu instance. Generated license and set key in ... Usually this is the result of setting the activation key in the wrong objectdb.conf file, i.e. in an objectdb.conf ...

 
issue

Tutorial Typo

I was going through the Eclipse Spring tutorial as part of my training, and I noticed this.  On the page: http://www.objectdb.com/tutorial/jpa/eclipse/spring/entity The tutorial first says: Enter META-INF as a new folder name and click Finish. Then, after the picture, it says: Right click the new MATA-INF folder... Unless I'm mistaken, that should be: Right click the new META-INF folder... ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ... Avoid overflow of published source code examples by breaking long lines . You may mark in paragraph ...

 
forum_thread

Pessimistic lock

Dear Sir or Madam, In the past we used the default Options in the JDO 1.0. See below for reference: javax.jdo.option.Optimistic=false javax.jdo.option.NontransactionalRead=true javax.jdo.option.NontransactionalWrite=false javax.jdo.option.RetainValues=true javax.jdo.option.RestoreValues=false Now we use the following options in DB2: ... Is there a workaround to refloat our old source code? Hope to hear from you. Yours Faithfully ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ...