About debug

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.... "info" "trace" "debug" ...

 
forum_thread

Debuging query before execution

Hi, Is is possible in any way to get string representation of a query right before execution, after setting parameters? Of course it's easy to print out query string when we build it by concatenating many strings, but even then we miss attributes. #1 2011-03-18 16:51 Hi, Is is possible in any way to get string representation of a query right before execution, after setti ...

 
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." ) ; List<Product> ... ) ; } else { logger. debug ( "Sort column: {}, ascending {}" , sortColumn, isAscending ...

 
forum_thread

Listing large number of complicated objects with paging.

Hi, For last few hours I was working on a problem with bad performance and memory problems with such a simple query: select prod from Product prod order by prod.id ASC Right now I have 55541 'Product' (attached to this post) entities in database and I'm trying to speed listing them with paging. The problem is, that running code that looks like this: ... sec: 2011-11-15 19:30:59.578 [http-bio-8080-exec-3] DEBUG pl.hplxtool.dao.impl.ProductDAOImpl - Query: [select prod from Product ... ASC] 2011-11-15 19:30:59.578 [http-bio-8080-exec-3] DEBUG pl.hplxtool.dao.impl.ProductDAOImpl - Executing query 2011-11-15 ...

 
forum_thread

Source not found error after downloading ObjectDB 2.3.7_04

Code snippet: Properties prop = new Properties(); prop.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); prop.setProperty("javax.jdo.option.ConnectionUR","local.odb"); PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(prop); PersistenceManager pm = pmf.getPersistenceManager();   I am getting an error Source attachment does not contain source for File PMF.class. ... When I am trying to debug code snippet mentioned above in Eclipse it asks me to provide source code at debug time. I provided the zip file mentioned above. But them it throws an ...

 
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 ... /> or <logger name="query" level="debug" />   ObjectDB Support ... sorry but name="query" give me nothing in output ( debug or trace ). name="*" give me some informations about enhanced ...

 
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 ... ) { LOG. debug ( "{} for: {}, ID: {}, property: {}, old value: {}, new value: ... ( entity ) ; logger. debug ( "Entity class: {}" , entity . getClass ( ) ...

 
forum_thread

Eclipse plugin problem (using ObjectDB as a separate bundle)

Hello support, I have seen multiple attempts to correct similar errors as in the title above - the latest in the 2.2.8.01 release of objectDb. However I still get this error.   Here is my scenario (Groovy 1.8 and Eclipse 3.6) used. I have a com.epimss.lab.data.toxicology.TherapeauticDrugScreenRqst. Nested in this class are the following two classes: com.epimss.lab.data.misc.OtherRqst and com.epimss.lab.data.misc.RequestDateAndNumber. ... com.google.gdt.eclipse.designer.launch.gwtLaunchShortcut.debug,Debug GWT Application, Debug GWT Application, Category ( org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true ) , , ...

 
forum_thread

How to track memory leak with ObjectDb.

Hello, I suspect some memory leak in my application. ( turning app into OOM very fast ) In fact, some com.objectdb.o.MST objects are retaining a huge % of my heap space. While watching the dump file ( with Eclipse MAT ), i was not able to inspect carrefully the memory leak issue. That's is very hard to debug because of obfuscated objectdb code. Well, objectdb is closed source, ok so ... but, in production case, how can a developper do his debug job correctly with your obfuscated code ? ... the memory leak issue. That's is very hard to debug because of obfuscated objectdb code. Well, objectdb is closed ... ... but, in production case, how can a developper do his debug job correctly with your obfuscated code ? Can you give me some ...

 
forum_thread

type.loader java.lang.ClassNotFoundException

ObjectDB objectdb-2.2.5_03 in client-server mode Netbeans ID6.9.1 Glassfish3.0.1 With server logging turned on I get the following error message for many (or all) encountered classes: ... With logging enabled in debug level - some 'normal'  ClassNotFoundException are ...