About Persistence Context

issue

NullPointer running multiple client against server

Hi, I'm running objectdb in server mode, config as it comes out of the box. In this case the database is being used as a queue with multiple seperate processes, each with multiple threads, writing messages. The message is split into a lightweight metadata message to allow fast searching and a more heavy weight data message. The put methods are shown below. The message is made up of an id, insert-time, priority and the payload is a large string. ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Performance tuning, best practices

we have a system where we serve from a host process around 200 clients connected via webSockets (Jetty). The core process is running on a dedicated Windows 2012 server with 16 GByte RAM and 8 processor cores.  What is strange for us is that max 20% of the cpu resources are used and the IO subsystem is at maximum 30% of activity under heavy load but database queries are let's say not at the speed we would expect. We have currently 20.000.000 objects in the database, our configuration settings are: ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

ArrayIndexOutOfBoundsException: -1

I've attached a test which fails with the error "ArrayIndexOutOfBoundsException: -1". It runs 10 threads which create and persist objects. The objects are based on application objects so its not a single class test I'm afraid but it is standalone. I'm running as follows: java -classpath objectdb.jar;test.jar PersistTest I've attached the test jar, a jar containing the source and the odjectdb.conf. ... the followin stacktrace: [ObjectDB 2.3.5_04] javax.persistence.PersistenceException Attempt to commit a transaction after failure ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

Can't open replicated database

I have a database running in server mode on port 6136 on server1 and server2. Each server has a replicated copy of the other servers database. I try to open the replicated on one database for a query (just read, no update) but it fails with the error below. The code I'm using is (user & password has been deliberately removed): ... removed): EntityManagerFactory emf = Persistence . createEntityManagerFactory ( ... The exception is: [ObjectDB 2.2.8] javax.persistence.PersistenceException Attempt to update types in read only mode ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

explorer NullPointerException

I studied ObjectDB a few hours ago and got some problems when use explorer . I run it and right-click in 'Open local database' window,and the all the pop menu item is gray and disabled,such as ‘new database’,'new directory','cut','copy' ... if I click 'tools---oprions' before open database, the errot I got is: [2012-05-21 09:51:11 #1 explorer] java.lang.NullPointerException at com.objectdb.o.CNC.p(CNC.java:253) at com.objectdb.o.EHL.d(EHL.java:55) at com.objectdb.o.VPN.(VPN.java:60) at com.objectdb.o.OPD.(OPD.java:69) at com.objectdb.o.OPD.(OPD.java:42) ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Null enums and IS (NOT) NULL: NullPointerException

Hello. I'm getting NullPointerException when adding %enum field% IS (NOT) NULL or == (!=) NULL in WHERE clause. The same exception using CriteriaQuery. ... org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103) at ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

find repeated records by JPQL

Hi, I know a single command in MySQL can find repeated records: Select * from TTT t where id in (select id from TTT s group id having count(id)>1) I dont know how to do this using JPQL, but I use query from 430,000 records and put them into hashmap, finally it cost one hour and failed: ... "main" [ ObjectDB 2.2.9_03 ] javax. persistence . PersistenceException Failed to read the value of field ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Add class to objectdb ?

Hello , i've made blank db project and opened with explorer.jar How can i add class file then push objects manually by explorer.jar   It only gave me blank : http://img543.imageshack.us/img543/7463/screenshot20130203at001.png       ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Trouble viewing db in Explorer.

I am having trouble with the Explorer.  I can open the db just fine. I can open a few simple extents and view/navigate fine also.  The problem occurs when I view the more complex extents. The Explorer will not repaint the right pane.  I drag off screen to force repaint and get(right pane):     (column1)=[n]     (column2)="Exception"     (column3)= "com.***.businessObjects.*myClass*.__odbSetTracker(Lcom/objectdb/spi/Tracker;)V" ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
issue

Exception in thread "ODB-StoreHandler-5094" java.lang.NullPointerException

Hi, ... Are transactions failing and receiving a a JPA Persistence exception?  Is there any risk of database corruption or data ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...