About Time

forum_thread

Memory consumption of empty Strings

After doing some memory related research in my program, I found a possible place for an enhancement of objectdb: My program has several entities which contain many String. Often some of these String are empty (""). To avoid unnecessary memory consumption, the String within the entities are initialized like: String firstName = ""; ... dump" ) ;   // used to have some time to create a heap dump try { Thread. sleep ... dump" ) ;   // used to have some time to create a heap dump try { Thread. sleep ...

 
release

2.2.3

... Changed log format to include date and time . Changed class loader management. Fixed ...

 
forum_thread

Connection is closed (error 526)

Serval times I found the c/s method will close by unknown reason, when I read only the db. ... { System. out . printf ( "getSons time @ %f %n" , ( System. currentTimeMillis ( ) - ... System. out . printf ( "%nIterator time @ %f %n%n" , ( System. currentTimeMillis ( ) - ...

 
forum_thread

OutofMemory error with Object DB 2.0

Hi, I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0 The application works with 256MB heap size with objectdb 1.0  But on 2.0 even with max heap size of 1024MB, I get this error. The application reads xml file of around 1GB and creates a new odb file and inserts 200 records at a time. ... creates a new odb file and inserts 200 records at a time. The transaction obtained from the PersistentManager is commited ... Also if I close the PersistenceManager every time I commit a transaction and open new one for next transaction, the ...

 
forum_thread

Filename.odb$ Persisting Issue

Hi, I seem to have a frequent issue with my Filename.odb$ remaining in my /db directory after my program terminates which prevents me from running my program again due to a persistence error thrown by Eclipse. I can't seem to manually terminate the file either. I usually have to fully close Eclipse and wait a bit for it to remove itself. Any ideas why this happens? Thanks, Dragon ... Sorry for the delay in response time - been busy with other projects. I've tested this out now and ... in quick succession or after running it for extended time, stopping the program, and modifying code for extended time and all ...

 
api-jdo

getServerDate()

Get the Date as seen by the server.(Method of javax.jdo.PersistenceManager)

 
forum_thread

Spring LTW Problem

Hello! I use ObjectDB with Spring. Today i tried to swich from AspectJ compile time weaving to load time weaving. (To get Jrebel working properly) So i added  ... with Spring. Today i tried to swich from AspectJ compile time weaving to load time weaving. (To get Jrebel working properly) So i added  ...

 
forum_thread

JPA - ExceptionInInitializerError when creating EntityManager

EntityFactoryManager(emf) is successfully received but error at emf.createEntityManager Please see my code of fragment from my project. public class Main {        final private static Properties EMAIL_PROPS;      final private static String EMAIL_FROM;            static {  EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("tmpCLMSPU"); ... /**      * SHIFT SLOT TIME ALLOWED AFTER WHICH SHIFT WILL BE APPLICABLE. Time in If      * any error occurred for getting this ...

 
release

2.2.2

... Changed log format to include date and time . Changed class loader management. Fixed ...

 
forum_thread

UserException: Package com.example.model is not found by the enhancer

My program works fine when I run it from Netbeans but as soon as I clean and build and move the dist directory out of the project to a remote location and run it using java -jar example.jar then I get the exception: com.objectdb.o.UserException: Package com.example.model is not found by the enhancer It occurs on this line: com.objectdb.Enhancer.enhance("com.example.model" + ".*"); ... enhancement methods are listed in the manual . Build time enhancement is preferred, since it enables deployment of the web ... 12:50 Build time enhancement is tricky since the path will change depending on which environment the jar is run on. Load time enhancement isn't really desired since it adds an additional command ...