About inactivity

manual

General Settings and Logging

Describes general configuration and logging of the ObjectDB Java object database for JPA and JDO. the ObjectDB General configuration section.... threshold = "64mb" /> <network inactivity-timeout = "0" /> <url-history size = "50" ... The <network> element <network inactivity-timeout = "0" /> The <network> element ...

 
forum_thread

Server connection management

The server does not appear to release broken connections. My typical development pattern is to keep reloading my war file in tomcat until the permgen space runs out, and then I kill and restart tomcat. After a few days of this, the server stops responding, and I see the following in the server logs: ... tell the server to close connections after a period of inactivity. Also, how does the client deal with broken connections or ... a few seconds after it becomes accessible again. Inactivity Timeout You can set the inactivity timeout  in ...

 
forum_thread

Log is almost empty (log level 'trace')

Hi, Using 2.4.6_01 version on Linux (2.6.18, VPS)..  Just wondering what should I suppose to see in a log file with a log level 'trace'/'debug'.. Trying to fix an issue that server version sometimes accidentally quits without any notice.. My log file (independently on whats specified in config file) has only database open/close messages, some query.compiler info but nothing more..  Is that right behaviour? Are there are server statistics API/logs available? Regards, ... sockets, which become obsolete (e.g. due to inactivity) by the operating system, firewall, etc. In that case setting a non zero inactivity timeout (e.g. 600 seconds) may solve the problem. ...

 
forum_thread

Session lost

hi team we are implementing a web application based on the Liferay, system database is handled by JPA 2.0 and entity manager. when system is idle for a long period (for example 8 hours) the Session in the Persistance Context will be lost and the DB will be out of the access, is there any possible configuration which can fix this problem.......... best ... be a firewall restriction. If it is, specifying inactivity timeout in ObjectDB configuration may solve the problem. ...

 
forum_thread

ObjectDB shuts down

Hi, we have a problem with OBjectDB shuts down every few days, sometimes every day. It always happens in the morning ie. after several hours of inactivity although we are not sure if this is the reason. Last night we maintained constant activity during the whole night (user were frequently using the application) and DB was OK. ... always happens in the morning ie. after several hours of inactivity although we are not sure if this is the reason. Last night we ... down if the port communication is idle, or some similar inactivity. When inspecting the log it doesn’t show anything why the ...

 
forum_thread

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

Hi, I upgraded the odb file using converter.jar which is having 15943 entry. Previously, with object 1.x, the same query was getting executed within an seconds and now the same is taking around 40 seconds in object db 2.x I have build the query using the follwoing Query query = persistanceManager.newQuery("LogEntryAttrebuteImpl.calss", "typeIndexes.contains(this.type) && logEntryIdList.contains(this.logEntryId)"); #1 2012-09-07 15:06 Hi, I upgraded the odb file using converter.jar which is having 15943 entry. Previously, with object 1.x, ...

 
forum_thread

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

I have a simple task to validate the sample code will switch over to the slave database when the master is unavailable. I simulate the master unavailable by stopping the master server; which generates the following exception below. What am I doing wrong? It appears the connection manager fails to try the second URL in the list: objectdb://10.9.2.15:9998//10.9.2.15:9999/test.odb;user=admin;password=password Thank you in advance. ... = "64mb" / > <network inactivity - timeout = "5" / > <url - ... = "64mb" / > <network inactivity - timeout = "5" / > <url - ...

 
forum_thread

ObjectDb.conf Defaults

Is it expected that all objectdb.conf entries are optional and when they are not provided defaults are used?  It appears that that is the case for all documented entries, except for 4 entries under "General". ... -- > < !-- error if missing <network inactivity - timeout = "0" / > -- > < !-- ok if ...

 
forum_thread

Error in reading Enum in JPA - Failed to read using reflection

I have created a very simple Entity User which has an enum Status (INACTIVE, ACTIVE). When an entity User is created, everything looks OK and I have seen on explorer that User is created as expected with valid values of Status. This is all done with JPA/EJBs. However, at the time of reading the Object (findById), the system throws an error  com.objectdb.o.UserException: Failed to read the value of field com.xxx.User.status using reflection caused by.. #1 2013-01-08 04:40 I have created a very simple Entity User which has an enum Status (INACTIVE, ACTIVE). When an entity User ...

 
issue

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: 2

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: 2 java.lang.ArrayIndexOutOfBoundsException: 2 at com.objectdb.o.UTY.aG(UTY.java:1275) at com.objectdb.o.ENH.b(ENH.java:102) at com.objectdb.o.LDR.J(LDR.java:796) at com.objectdb.o.LDR.UW(LDR.java:1023) at com.objectdb.o.CST.ab(CST.java:478) at com.objectdb.o.CST.U4(CST.java:414) at com.objectdb.o.LDR.F(LDR.java:559) at com.objectdb.o.LDR.E(LDR.java:466) at com.objectdb.o.OBC.UJ(OBC.java:1073)... ... Maybe caused by network inactivity timeout? We are using the following configuration  <network inactivity-timeout="3600" />   ...