About console

forum_thread

Out of memory

Hi, Today in the middle of the night ODB just crashed leaving this on console screen: ... the middle of the night ODB just crashed leaving this on console screen: ObjectDB Server started on port 7136. Exception in thread ...

 
forum_thread

Slow performance on Mac

- This code is tested on Windows and Mac. Windows is working great, Mac is very slow (read is 11 seconds on Mac, and 100 milliseconds on Windows). - Application is using Spring Boot console application (for JPA implementation) - MacOS Sierra 10.12.3, Core i7 CPU, 16GB RAM, SSD drive java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)   Running sample jar: ... on Windows). - Application is using Spring Boot console application (for JPA implementation) - MacOS Sierra 10.12.3, ...

 
forum_thread

Unable to persist TreeMap

import java.util.SortedMap; import java.util.TreeMap; import javax.persistence.Entity; //---------------- @Entity class Person { public SortedMap<String, String> memberships = new TreeMap<String, String>(); } //Person   ... } //Test Produces console output: Created memberships: { Bar Association=President ...

 
forum_thread

Trouble viewing db in Explorer.

I am having trouble with the Explorer.  I can open the db just fine. I can open a few simple extents and view/navigate fine also.  The problem occurs when I view the more complex extents. The Explorer will not repaint the right pane.  I drag off screen to force repaint and get(right pane):     (column1)=[n]     (column2)="Exception"     (column3)= "com.***.businessObjects.*myClass*.__odbSetTracker(Lcom/objectdb/spi/Tracker;)V" ... errors. -I have debug on, here is a sample of the console:     [2012-06-07 11:08:06 #47186 query.manager] ...

 
forum_thread

Enhancement API - NullPointerException

Hi! I am trying to use the Enhancement API from within my application like this: com.objectdb.Enhancer.enhance("my.package.Foo"); However, I get the following NullPointerException: ... is no more information than what is also printed to the console (see error above). I'm not sure what is happening, the class exists ...

 
forum_thread

Query debugging configuration from class

Is there a way to show what queries are actually being executed from within a Java class? I'm getting the exception: Exception in thread "main" [ObjectDB 2.5.4_05] javax.persistence.NonUniqueResultException However, I'm unable to debug it because I don't know what the query's actually searching for. I would like to show what it's actually executing without setting it in xml but rather through Java if possible? ... actually searching for. I would like to log (in the console or in a separate log file) what it's actually executing without ...

 
forum_thread

UPDATE query to set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save the changes to the DB via file->save. But when I execute a select on the DB I see that the field is still "null" for all instances. How do I initialize the field? ... The workaround is to write some code (even in a simple console application) that update the objects in a loop within an active ...

 
forum_thread

Java fails to run when using JMX Remote + ODB agent

Hi, When using both JMX Remote and ODB as agent, there is a problem to run JVM at all. All this is on Debian linux with two different JVM's. Let me show you some logs from console: - pure java  homplex@homplex01:~$ java -version java version "1.6.0_18" OpenJDK Runtime Environment (IcedTea6 1.8.7) (6b18-1.8.7-2~squeeze1) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) - pure java + agent ... two different JVM's. Let me show you some logs from console: - pure java  homplex@homplex01:~$ java ...

 
forum_thread

Unable to run NetBeans/JPA Web Application Tutorial

I followed each and every step of NetBeans/JPA Web Application Tutorial but when i am trying to the web application the following error is prompted on the run console: Start is in progress... start?path=/GuestBook FAIL - Application at context path /GuestBook could not be started C:\GuestBook\nbproject\build-impl.xml:1050: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 2 minutes 13 seconds)   ... web application the following error is prompted on the run console: Start is in progress... start?path=/GuestBook FAIL - ...

 
issue

UPDATE query cannot set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save the changes to the DB via file->save. But when I execute a select on the DB I see that the field is still "null" for all instances. How do I initialize the field? ... The workaround is to write some code (even in a simple console application) that updates the objects in a loop within an active ...