About Persistence Context

forum_thread

Spring MVC Errors

I try to import the project from the tutorial but when doing so I get errors: 1. http://i.imgur.com/tbIsj.png and then when I try to start it anyways I get things like thaat: 2. http://i.imgur.com/G7UVu.png any ideas ? I installed m2eclipse plugin and Maven Integration for WTP and then I import Maven project from disk and this is what I get ... ;( ... public DBconn ( ) { em = Persistence . createEntityManagerFactory ( dbName ) . ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

Error reading UTF string (Serialized Objects in Explorer)

This is the message I get for attached db and this query: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Failover from Master to Slave

Good morning! I am interested in ObjectDB for a client project I am currently working on. In order to evaluate your tool I would like to know if your product has the ability to failover from a Master Database to a Slave Database and then recover back to the master when the master comes back online. I don't see any documentation about automatic failover.   Thanks Rich   ... the app? (where all data is taken on app deployment from persistence.xml) edit ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

Internal exception on flush

Today I received the exception below on running the following code: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
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 ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

NegativeArraySizeException on commiting a transaction

Hi, we started to get a java.lang.NegativeArraySizeException from ObjectDB upon changing an object in the DB and committing the transaction. I tried to repair the DB file with Database Doctor, but the same error is happening also on the fixed DB file. Btw. during fixing the DB file an Internal error was thrown (details here: http://www.objectdb.com/database/issue/285 ), but the fixing went on and created a new file. ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Project runs in Eclipse but not when exported to runnable jar

I have a simple project that performs some stability calculations and displays a scale drawing of a model glider. I decided to use objectdb as a way to persist the values for later retrieval. The project works perfectly well when run from eclipse but nothing opens when I export to a runnable jar and execute that. No windows open, there are no eror dialogs etc. Commenting out all the code related to object db resolves the issue and the project runs, so I'm fairly sure it is something I've done relating to objectdb. ... I've done relating to objectdb. javax.persistence_2.0.3.v201010191057.jar and objectdb.jar are included in the build ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

GWT RPC is throwing serialization exception when I have object db date value

Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'objectdb.java.util.Date' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = Sat Jan 29 00:00:00 PST 2011    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:614)  ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

java.nio.channels.OverlappingFileLockException

Hello, whenever I re-deploy my web application in Sun Java System Web Server, I get the following exception and the application cannot run anymore. Any clue what I am doing wrong?  I use the file-based db access (local to the web app, as described in your tutorial). Thanks for pointers! Best, Benjamin   ... entityManagerFactory = Persistence . createEntityManagerFactory ( ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Exception on creation when running multithreaded

Hi, I'm trying to test the creation of an object from my datamodel(Organisation) and the creation process includes the creation of an acl for the newly created organisation all in the same transaction. The process is as followed: 1. The organisation gets created 2. The acl is being searched to check if it already exists 3. if it exists it will be updated, otherwise it will be created   ... exception:   [ObjectDB 2.2.8_07] javax.persistence.PersistenceException Failed to read from file ... here are the plans that are used for both queries: Persistence Class is of type com.contextspace.datamodel.party.CDI [2011-08-12 ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...