About find

forum_thread

Setting temp directory location in ObjectDB

HI, I am using ObjectDB and would to change the temp directory location wihtout using objectDB.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); properties.setProperty("javax.jdo.option.ConnectionURL", fileName.odb); pmf = JDOHelper.getPersistenceManagerFactory(properties), JDOHelper.class.getClassLoader()); ... and no future patches are planned, so you will have to find a workaround on your side (changing the file permission, additional parent ...

 
forum_thread

Out of memory

Hi, Today in the middle of the night ODB just crashed leaving this on console screen: ... 10:38 You can find UTC on my ftp account. Database file: HomplexTool.odb.tgz and UTC ... overhead limit exceeded I wonder, how can we find the cause of those problems? It's production env, so there is no way ...

 
forum_thread

com.objectdb.o.UserException: Failed to generate dynamic type

Hi, I am trying to open a DB and I get the following error:   ... elements in the schema - but where do I find the schema section? In which file is it? Is it something internal to every ...

 
forum_thread

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town; public ETown getTown() { return town; } public void setTown(ETown town) { this.town = town; } } And: ... same error comes up with both of them. If you help me to find the problem, I will be grateful. I need to know the answer as soon as ...

 
forum_thread

Server vs embedded mode in multi-instance scenario

We are creating a web app that will have multiple different clients, each on their own EC2 instance(s). The clients do not need to share any data, so each could have its own ObjectDB. Clients have a user base of about 2,000 to 60,000 users that could possibly be using their application at any given time (100k absolute maximum). We will probably have multiple instances per client for availability concerns as well as auto scale during peak usage, at least for the benefit of our web application if not for objectdb.... this feature is not available(yet?), so I am trying to find a work around that will allow me to run in embedded mode on all nodes ...

 
issue

Navigation through lazy loading from Detached Objects

A main limitation of detached objects (as explained on the Detached Entities manual page) is: ... ( ) ; e1 = em. find ( MyEntity. class , 1 ) ; em. close ...

 
issue

Issue with DISTINCT Select

It is getting more and more frustrating :( We've introduced distinct select instead of regular selection in our code (no changes else) and suddenly receive invalid identifiers in queries exceptions in various queries. Here's the stacktrace: ... $2 . lastName ) And attached you can find the according database for it. Try the query (without the TYPE($1)..() ...

 
issue

Unexpected Exception during commit

I'm testing code that otherwise has been working with a clean database. I have seen several examples of the following exception. It never seems to happen in the same place twice, though. If you can give me a hint as to what would internally cause this, I'll try to reproduce it. Carl   ... ) . begin ( ) ;   em. find ( Account. class , 1 ) ;   em. ...

 
forum_thread

WebSphere Liberty Configuration

Hi! I've been trying to get ObjectDB configured with WebSphere Liberty server. I have been able to get the sample app running in TomCat but when I run the jee version of the guestbook in WebSphere I get a combination of errors depending on how I tweak the configuration the most promising error I get is this one: ... libraries in it and as of an older version (I can't find that post now) jpa was removed from ojbectdb completely. As far as ...

 
forum_thread

using DbUnit with ObjectDb

Are there any examples about how to use DbUnit with ObjectDB? DbUnit requires access to a jdbc connection .. with other providers it's possible to extract the jdbc connection from the EntityManager, e.g. for Eclipselink / Postgres combination you can use the rather long-winded: IDatabaseConnection connection = new DatabaseConnection(((EntityManagerImpl) (em2.getDelegate())).getServerSession().getAccessor().getConnection(), "PUBLIC"); but with objectDb this gives: ... ; } } I couldn't find a way around having to include the name of the entity as the XmlElement ...