About clear

forum_thread

List always null

I have the following classes: @Entity public class Noticia implements Serializable {     private static final long serialVersionUID = 1L;     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToOne(targetEntity = Categoria.class)     private List<Categoria> categorias;   #1 2014-06-15 17:17 I have the following classes: @ Entity public class Noticia implements Serializable ...

 
forum_thread

Iterating over large result set

Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in memory was quite a challenge even with 3GB heap space. So I did paging using two loops. ... // work with fetched data } em. clear ( ) ; } I'll be using this with ...

 
forum_thread

Which storage fits best to ObjectDB?

Hi, we are just about to put together a new server for our applications using ObjectDB (v 2.6). We have a dilemma about the storage holding the ObjectDB files: if to invest in a mirrored RAID of SSDs which is clearly the ultimate solution but it quite pricey, or to choose a RAID5/6 of 7200 RPM HDDs. #1 2015-03-09 07:39 Hi, we are just about to put together a new server for our applications using ObjectDB (v 2.6). We have a ...

 
forum_thread

Unexpected NoSuchFieldError exception

Hi, suddenly running into a number of issues:   1) no-arg constructor (error 352) 2) java.lang.NoSuchFieldError: __odbTracker 3) Attempt to start a transaction while another transaction is running. In each case, I've found it difficult to figure out where to find the right documentation. Below is an example that has #1 and #2 together. ... has #1 and #2 together. Additionally it's not clear how I find out whether configuration settings have been found (e.g. is it ...

 
page

Posting to ObjectDB Website - Important Instructions

Instructions for posting to ObjectDB website (to the forum, the issue tracking and the help desk).... or as an issue. The exceptions are: Clear ObjectDB bugs, such as unexpected exception thrown by ObjectDB, ...

 
forum_thread

How find out ObjectDB version at runtime (in a web app)

Am getting inconsistent results with the "objectdb.temp.no-enhancement-crc-check" system property of objectdb-2.6.9_02 in a Glassfish web app. Can see correct version of objectdb-2.6.9_02 in /build/web/WEB-INF/lib. When one runs the enhancer (which I am doing post-compile, pre-deploy with an Ant script) Object clearly indicates the version. Q: How can one interrogate objectdb for the version at run-time ? #1 2016-08-22 17:07 Am getting inconsistent results with the "objectdb.temp.no-enhancement-crc-check" system property of obj ...

 
forum_thread

How prevent post-compile enhancement of non entity classes

I have recently moved to post-compile enhancement (from automatic run-time enhancement) using an Ant build.xml for a NetBeans web app. My adapted build.xml works for both full project build and per-file compilation (with NetBeans "compile on save" off), but it is not yet perfect at only invoking the enhancer on entity files. For full project build the following works, by grouping entities under clearly named packages: #1 2014-09-14 01:02 I have recently moved to post-compile enhancement (from automatic run-time enhancement) using an Ant build.xml fo ...

 
forum_thread

RT Java application recording into 100DB run OOM after a few hours.

Hi, I am running a java application that records data from 100 feeds into 100 different database - this is done is one thread. It works fine several hours - and suddenly i got an out of memory issue (I checked there is no leak in java - I cleared the entity manager every 10 new entity). 1/ I use the default objectDb.conf (i mean i dont use any - so it must be using the default somewhere). 2/ Using Netbeans, I profiled the application and I noticed that there is one thread (ODB FileWriter) running for each open DB. #1 2015-01-02 20:11 Hi, I am running a java application that records data from 100 feeds into 100 different database - this i ...

 
forum_thread

Memory leak while merging parent with No Cascade annotation with children

Hello support, While tracking memory leak in my application i suspected a memory leak in the merging object db implementation. The test case is the following, just run and watch the "Memory Used" by comparing Cascade.ALL (or Cascade.MERGE ) to nothing. Tested with last version of Object Db ( 2.5.5_05 ) ... ) . commit ( ) ; em. clear ( ) ; em. close ( ) ; ...

 
forum_thread

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

Hi,   I don't have a useful test case to expose this issue, but I am getting an intermittent "Attempt to reuse an existing primary key value". In this particular instance, the error is: #1 2011-07-18 11:23 Hi,   I don't have a useful test case to expose this issue, but I am getting an intermittent "At ...