About Java

forum_thread

Upgrade to Java 8 won't run

I've been using ObjectDB with Groovy 2.1 and Java 7 for nearly a year.  Today, I updated everything to the latest revs (Groovy 2.3.6, Java 1.8.0_25, and ObjectDB 2.5.7_05), and now my application fails when opening the database. It's dying on one of these lines:   emf = Persistence.createEntityManagerFactory (dbName)   em = emf.createEntityManager()   em.setFlushMode(FlushModeType.AUTO)   ObjectDB.em = em   ... I've been using ObjectDB with Groovy 2.1 and Java 7 for nearly a year.  Today, I updated everything to the latest revs (Groovy 2.3.6, Java 1.8.0_25, and ObjectDB 2.5.7_05), and now my application fails when ...

 
faq

Can I use ObjectDB with languages other than Java?

ObjectDB can be used by Java Virtual Machine (JVM) languages, such as Java, Groovy and Scala. It can also be used with other languages, such as ...

 
forum_thread

Java 8 Enhancer Problem

Hello! I am currently migrating my project to Java 8. I'm using Spring and AspectJ load time weaving. Unluckily the LTW option of Spring is global. If it's enabled it also tries to find other class transformers on the classpath. This is normaly not a problem because the ObjectDB enhancer ignores non @Entity or already enhanced classes but in conjunction with new Java 8 class files it throws an exception which causes Spring to stop weaving.  ... Hello! I am currently migrating my project to Java 8. I'm using Spring and AspectJ load time weaving. Unluckily the LTW ... or already enhanced classes but in conjunction with new Java 8 class files it throws an exception which causes Spring to stop ...

 
issue

New Java 8 (JDK 1.8) Collection Methods

ObjectDB version 2.5.5 (and above) supports Java 8 (JDK 1.8). Tracking changes to collections and maps using some new Java 8 methods is currently not fully supported. The main known issue is that orphan removal does not happen as a result of removing a reference to an object (which becomes an orphan) using the new methods: removeIf(predicate) and remove(key, value). ... ObjectDB version 2.5.5 (and above) supports Java 8 (JDK 1.8). Tracking changes to collections and maps using some new Java 8 methods is currently not fully supported. The main known ...

 
forum_thread

What is the lowest version of Java, ObjectDB will run on?

I have a legacy production environment that is running "jre1.6.0_16". I am trying to upgrade from 1.0.4 to the latest.   Thanks for your time. ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) edit ... To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then ...

 
forum_thread

Java EE JPA (GLassfish) tutorial throws ClassCastException

When launching the Guestbook tutorial for the second time (after a server restart) I get a ClassCastException: java.lang.ClassCastException: guest.Guest cannot be cast to guest.Guest The first time (when the db is created) persisting and retrieving works fine. Using the explorer on the db file shows the objects I persisted. I followed the exact steps as descriped in the tutorial. Did I miss something? - Java 1.7.0_03 - ObjectDB 2.4.5_06 - GlassFish Server Open Source Edition 3.1.2.2 ... a server restart) I get a ClassCastException: java.lang.ClassCastException: guest.Guest cannot be cast to guest.Guest ... described in the tutorial. Did I miss something? - Java 1.7.0_03 - ObjectDB 2.4.5_06 - GlassFish Server Open Source ...

 
doc

getStackTrace()

Provides programmatic access to the stack trace information printed by printStackTrace().(Method of java.lang.Throwable)

 
doc

fillInStackTrace()

Fills in the execution stack trace.(Method of java.lang.Throwable)

 
doc

printStackTrace(s)

Prints this throwable and its backtrace to the specified print stream.(Method of java.lang.Throwable)

 
doc

Throwable(message)

Constructs a new throwable with the specified detail message.(Constructor of java.lang.Throwable)