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

DB reading fails in debug mode in Eclipse

Hello, I got an unpleasant bug which turned into a serious issue. Using ObjectDB 2.6.9.b08 on Linux. Here is the structure (JDO metadata) of 3 classes which I am storing as values in a HashMap of another entity in the DB. ... works fine with them up to I try to launch it in debug mode in eclipse. Upon reading it in debug mode I got this exception: com.objectdb.o.UserException: Failed to ...

 
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? ... However, I'm unable to debug it because I don't know what the query's actually searching for. ...

 
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 ) , , ...