About logger

manual

General Settings and Logging

Describes general configuration and logging of the ObjectDB Java object database for JPA and JDO. the ObjectDB General configuration section.... retain = "90" /> <logger name = "*" level = "info" /> </general > ... The <log-archive> element The <logger> elements The <temp> element ...

 
forum_thread

Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity

I doubt this is an ObjectDB-enhancer problem, I am however reporting it in case anybody else encounters the problem too. It is mostly also not a concern for my own web app, because in most cases a non-static logging variable can be used in an @Entity.     ObjectDB 2.6.3_04     Apache Log4j2 - 2.5     Mac OS X     jdk1.7.0_51 or jdk1.8.0_60     NetBeans 8.1Beta ... the Log4j2 manual: Generating Source Code for a Custom Logger Wrapper  (otherwise not shown here, see that link for examples). ... } If I use that in an @Entity for a static logger variable: @ Entity public class Element ...

 
forum_thread

Show Sql/Jpql

Is there a way to show the executed Sql/Jpql in the console? ... To write query execution to the log, add the following logger element to the configuration: <logger name = "query.manager" level = "debug" /> ...

 
forum_thread

Check for index existence ?

Hello, Is there a simple way to check if indexes specified in entities are well taken into account by ObjectDb ? Regards, Xirt ... in objectdb.conf (on the server side): <logger name="query" level="trace" /> or <logger name="query" level="debug" />   ...

 
forum_thread

Query perfromance problem

Hi, I was playing with paging and sorting recently and after trying few different aproaches got some strange behavior from ODB. First of all, I will show you results from page rendering times, but trust me - when debugging application, getting data from ODB takes a long time in one case. Anyway, one of my methods in DAO looks like this: ... boolean isAscending ) { logger. debug ( "Method start." ) ; ... class ) ; } else { logger. debug ( "Sort column: {}, ascending {}" , sortColumn, ... class ) ; } try { logger. debug ( "Executing query" ) ; prodList = ...

 
forum_thread

EntityManager.refresh takes a long time

EntityManager.refresh takes a long time for entity object Person in this code: ... time for entity object Person in this code: logger. log ( Level. INFO , "begin select for person " + ... getResultList ( ) ;   logger. log ( Level. INFO , "end select for person " + new ...

 
forum_thread

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't store separate entity for given event. Right now I'm using BaseEntity which contains ... getPersistenceManager ( entity ) ; logger. debug ( "Entity class: {}" , entity . getClass ( ... instanceof Inspiration ) { logger. debug ( "Audting entity..." ) ; Inspiration ...

 
issue

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

The following error appears under and extended persistence context, and with creation, configuration and wiring code that is known to work perfectly with EclipseLink+Glassfish: SEVERE: Unexpected internal exception ... InstantiationException ex ) { logger. log ( Level. SEVERE , null , ex ) ; ... IllegalAccessException ex ) { logger. log ( Level. SEVERE , null , ex ) ; ...

 
forum_thread

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... createEntityManager ( ) ;   LOGGER. info ( String. format ( "took [%d] ms" , System. ... {   }   LOGGER. info ( String. format ( "openTempDataStore: ...

 
forum_thread

Adding EntityListener Throws Unexpected Internal Exception

I tried adding EntityListener for a entity class and an exception was thrown. I followed similar as mentioned on the documentation but no luck. My entity class looks like below: ... onPostLoad ( Object o ) { Logger. info ( "PostLoad call." ) ; } ... onPreRemove ( Object o ) { Logger. info ( "PreUpdate call." ) ; } ...