About client

forum_thread

Cache usage

after a runtime of several weeks we are now analyzing the usage of the cache and so on. Looking at the heap dump we suspect that the cache is really used (see heap dump attached), the RAM allocated by objectdb is much less than we would expect. The database file has around 25 GByte of size and there is heavy traffic of around 400 clients communicating permanently via webSockets to the objectdb. The config is attached as well. The question is: is the cache really used ? #1 2017-03-22 18:10 after a runtime of several weeks we are now analyzing the usage of the cache and so on. Looking at the heap dump ...

 
issue

Named Query Exception

[ObjectDB 2.4.6_06] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) Client VM 1.6.0_25 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException at com.objectdb.o.LFL.X(LFL.java:1154) at com.objectdb.o.LFL.P(LFL.java:934) at com.objectdb.o.FIW.af(FIW.java:94) at com.objectdb.o.FIW.ad(FIW.java:55) at com.objectdb.o.SSS.aj(SSS.java:907)... exception (Error 990) Generated by Java HotSpot(TM) Client VM 1.6.0_25 (on Windows 7 6.1). Please report this error on ...

 
forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... embedded mode, I'm a bit surprised by its behavior in client/server mode. edit ... performance). The behavior has nothing to do with client-server vs. embedded mode. This is how it works in ObjectDB 2.x in both ...

 
issue

com.objectdb.o.InternalException

No idea what happened.  A simple getResultList() opearation. DB table affected size is ~ 26000 records, physical DB file size is ~ 8.5MB Thanks for any help ! Leon log file: ------------------------------------------------------------------------------------------------------------------------ [2016-07-13 19:58:12 #1 store] Database '/home/gsi/wdsync/db/Media_wdsync.odb' is opened by 12659@server ... exception (Error 990) Generated by Java HotSpot(TM) Client VM 1.8.0_91 (on Linux 3.10.96-151). Please report this error on ...

 
issue

Unexpected exception (Error 990)

Exception is thrown on commiting a transaction using this code: transaction.begin(); try { repository.setStatus(ImportStatusFlag.RUNNING_IMPORT); repository.setImportProgressMessage("Importing..."); //$NON-NLS-1$ repository.setImportProgressPercent(0); transaction.commit(); } finally { if (transaction.isActive()) { transaction.rollback(); } } "repository" is a Entity in database. Stracktrace as follows:   ... as follows:   [2013-08-21 11:54:27 #29 client] [ObjectDB 2.5.1_02] Unexpected exception (Error 990)   Generated ...

 
forum_thread

listening on a particular IP aside localhost

I have being searching all around for how to do this but still no luck. I want objectdb to be able to listen in server mode to other connections from another machine where client is installed. I will like to have objectdb on machine A, while B,C, D can access the database in a using code like this emf = Persistence.createEntityManagerFactory("objectdb://192.168.50.56:8888/myapp6136.odb"); emf.createEntityManager(); ... mode to other connections from another machine where client is installed. I will like to have objectdb on machine A, while B,C, D ...

 
issue

Add Type level permissions to ObjectDB Server

It would be useful if instead of creating a web service layer on top of a database, I could just set up permissions to entities and entity variables for client connections. This would be beneficial when providing specific raw data where additional business logic is not required. I suppose you could create transient entities for data that does require additional business logic though. ... set up permissions to entities and entity variables for client connections. This would be beneficial when providing specific raw data ...

 
doc

setStackTrace(stackTrace)

Sets the stack trace elements that will be returned by getStackTrace() and printed by printStackTrace() and related methods.(Method of java.lang.Throwable)

 
forum_thread

NPE after an @embedded obj is updated for a detached entity

I have an entity that looks like this: class User { @embedded private Profile profile; ...}   After running something like this: User user = entityManager.createQuery("select......entityManager.detach(user);user.getProfile().setDescription("Something...   I get the following error:... exception (Error 990) Generated by Java HotSpot(TM) Client VM 1.6.0_21 (on Windows 7 6.1). Please report this error to ObjectDB ...

 
issue

Service terminated silently (crashed?)...is there any way to cause a crash dump?

After running without issue, uninterrupted for seven months, our instance stopped silently.  The contents of the log are as follows: Object DB log: ObjectDB Server started on port 6138. ObjectDB Server stopped. ObjectDB Server started on port 6138. ObjectDB Server stopped. ObjectDB Server started on port 6138. ObjectDB Server started on port 6138.  <--This is where I restarted the service.   Note there is no "Server stopped" before the final "Server started". ... max = "1000000" /> Starting 2.6.5 the client gets an exception but the server continues to work as expected and ...