About new

issue

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

I was experiencing an exception so I did a test to reproduce it.   here it is. ... this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: ... // initialise ReproduceTest test = new ReproduceTest ( ) ; TimePeriod tp = new ...

 
release

2.3.5

... and TIME(...) methods in queries. Added new Explorer and Server exe (for Windows 7 and 64 bits). ... in queries. Fixed a bug in passing a new entity object with no id as a query argument. Fixed a bug in ...

 
release

2.4.1

... 2.4.1 Fixed a bug of  duplicating new objects during merge . Fixed a username/password issue in ... of non ASCII string indexes. Fixed the new query HOUR function to return hours as 0 to 23 (using 24-hour clock). ...

 
forum_thread

Exception when querying Map property with @embedded & Enhancer enabled

Hi, I have the following test class that is failing when the enhancer is enabled, resulting in the error 'Failed to write the value of field field TestEmbeddableMap$MyAttributeItem.id using enhanced method.', if I disable the enhancement the test works as expected, and returns the expected MyEntity2 Thanks   ... ) ;   MyEntity2 entity = new MyEntity2 ( "entity1" ) ; entity . put ( "key1" , new MyAttributeItem ( "id1" , "name1" , "value1" ) ...

 
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 ... can add events to given object without using EM to persist new object. What I want to accomplish is to log difference between new and old values for every change in database. This is example how ...

 
tutorial

Step 4: Add a Servlet Class

Explains how to add a servlet that manages persistence using JPA and ObjectDB to a NetBeans Web Application.... to manage guestbook web requests: Open the [New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New > Servlet ... Enter GuestServlet as the class name - ...

 
forum_thread

openejb jpa jaas module

    hello , i've finished jpa jaas module. Here it is :   package com.bayner.auth; import com.bayner.jpa.Principals; import com.bayner.jpa.UserInfo; import com.bayner.jpa.UserPrincipal; ... Map<String, ? > sharedState = new HashMap<String, Object> ( ) ; private ... ;   final Properties properties = new Properties ( ) ; properties. put ( ...

 
forum_thread

Empty temporary dat files in the temp folder

Hello, We have questions regarding the pagesX.dat files in the temp directory. We detected a problem on a machine with ‘only’ 2GB free memory on disc drive C:/ because during using our Product the %temp%/objectdb_123... folder growth up to 2GB. And then we run into some following errors due to lack of memory. ... entities from one of the additional DB’s we get five new pagesX.dat files (each 8MB) in the TEMP directory. If we take a look into ... objectdb.temp.page-file is enabled (as part of the new experimental feature of supporting very large transactions, as requested ...

 
manual

[ODB1] Chapter 2 - A Quick Tour

Demonstrates basic database programming using ObjectDB. ... // If not found - construct and store a new list: 24 list = new ArrayList ( ) ; 25 Utilities. bind ...

 
forum_thread

significant performance decrease

we are using objected in embedded mode (on OS X and WINDOWS). The database increased now to around 400000 entities of one class (database file size around 1.5 GByte). The response time of standard queries increased with this database size to an unacceptable rate (several seconds compared to around 30% when the number of entities was just half of the current). We tried to optimize the cache settings, current objectdb.conf is: <!-- ObjectDB Configuration --> <objectdb> ... Map<String, String> currentJournalData = new HashMap<String,String> ( ) ; public String ... Map<String, String> systemDictionary = new HashMap<String,String> ( ) ;   @ ...