Home » Search

About main

111-120 of 200Refresh
Forum
1

Intermittent Exception "Attempt to update types in read only mode"

I have a master/slave(s) setup and I am finding on the slaves that the slave client will get this message when trying to establish an EntityManager to the slave: Exception in thread "main ... .(Test.java:46) at com.x.Main.start(Main.java:79) at com.x.Main.main(Main
Forum
1

Schema-Update: Rename superclass and remove one subclass

Database public static void main(String[] args) { EntityManagerFactory emf = Persistence ... main(String[] args) { // no drop - reuse the existing file EntityManagerFactory emf ... we get the described error message.   If we try to ecexute a Query (in the second main method): TypedQuery
Issue
1

Schema-Update: Rename superclass and remove one subclass

Database public static void main(String[] args) { EntityManagerFactory emf = Persistence ... main(String[] args) { // no drop - reuse the existing file EntityManagerFactory emf ... we get the described error message.   If we try to ecexute a Query (in the second main method): TypedQuery
Forum
1

Should derived fields of an EmbeddedId be manually maintained by app code?

.runEmbeddedContainTest(MainCompoundKeys.java:92) at uk.co.his.test.MainCompoundKeys.main(MainCompoundKeys ... one main class with a runnable main method and use static inner classes for the persistable types ... separate files apart from the top container entity which has the main method and this make the whole thing
Forum
1

JPA - ExceptionInInitializerError when creating EntityManager

Please see my code of fragment from my project.   public class Main { final private static ... (); } //Empty Constructor public void Main() { } public static void main(String[] args) { new Main(); } My project was was running successfully but All of sudden, it is showing
Forum
1

"Attempt to lock a non entity object" error

:     Test Stored: Ron After find and first lock: Ron Exception in thread "main" [ObjectDB 2.4.7_15 ... .objectdb.jpa.EMImpl.lock(EMImpl.java:783) at com.objectdb.jpa.EMImpl.lock(EMImpl.java:753) at Test.main(Test.java:34) at Enhance.main(Enhance.java:7) import javax.persistence.Entity
Forum
1

@Unique member combination not working

.getTransaction().rollback();             }             em.close();         }     } } Main public static void main(String[] args) {     Person p1 = new Person("John", "Doe");     Person p2 ... :$objectdb/db/test.tmp;drop");     public static void main(String[] args) {         Person p1 = new
Forum
1

Broken @ManyToOne reference

the main() in the testobjectdb.Main class. In this method: # in a transaction, two instances are created ... should be adjusted:     // Child child = em.find(Child.class, Main.CHILD_ID);     Child child = em.createQuery("SELECT  e FROM Child e", Child.class).getSingleResult(); because Main.CHILD_ID
Forum
1

Bug: ClassCastException by retrieval

args   */ public static void main(String[] args) {   EntityManagerFactory emf = Persistence ... ] Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Character; at test.TestGeneric.main(TestGeneric.java:43) Hi, I believe the ObjectDB stores
Forum
1

em.flush(); em.clear(); loosing data and not persisting managed objects

.createEntityManager(); } public static void main(String[] args) { Test t = new Test(); t.doit ... thread "main" [ObjectDB 2.2.3_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64 ... .objectdb.o.OBM.flush(OBM.java:732) at Test.doit(Test.java:38) at Test.main(Test.java:19)   Thank