About path

forum_thread

Source not found error after downloading ObjectDB 2.3.7_04

Code snippet: Properties prop = new Properties(); prop.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); prop.setProperty("javax.jdo.option.ConnectionUR","local.odb"); PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(prop); PersistenceManager pm = pmf.getPersistenceManager();   I am getting an error Source attachment does not contain source for File PMF.class. ... existing project. I added the Objectdb.jar file in build path. There were no compile time errors. I debugged following code ... above statement in RED it asks me to mention the source path so I added file ...

 
release

2.3.6

... in enhancement of more than one class path root ( issue #82 ). Fixed a NullPointerException on ... PK embedded IDs. Fixed default ObjectDB home path ( $objectdb ) in NetBeans RCP . Fixed a Doctor and ... mode. Fixed a bug in setting log directory path (missing URL decoding). Fixed a bug in automatic byte code ...

 
forum_thread

Empty query results after JAR creation

Hi, I struggle with a strange issue. I've embedded ObjectDB in a small application to query cases. Within Netbeans everything works fine but when I create a  JAR File and executed via "Java -Jar xyz.jar", I get either empty results or on some cases a "NoResultException" which appears to report the same issue. I've created a small test case (attached zip file) with sample DB to reproduce the issue.  ... an empty database. In your code you use a relative path to access the database: EntityManagerFactory emf = ... a new empty database will be created automatically in that path. ObjectDB Support ObjectDB - Fast Object ...

 
issue

ArrayIndexOutOfBounds with Critera API and function call

Hello, This is getting really frustrating sorry but we're close before delivering our app to our customer and went against a show-stopper again. We're building a simple query with the criteria api. What we have is something like (pseudo code) ... , Integer. class ) ( $1 is a valid path we 've goot from our root selector).   NOTE: Doing "$1.getAge()" ... , Integer. class ) ( $1 is a valid path we 've goot from our root selector) I cannot create yet ...

 
issue

ODB Doctor Stops Progressing (runs forever)

Hi, ... NEW_consumer_target_Kroger_15.odb$ export PATH=$PATH:/cap/AdherisHealthSolutions/Java/bin/ ...

 
manual

Online Backup

Online Backup enables backing up an ObjectDB database while it is in active use by applications. The ability to create a backup while the system is running is essential in applications and services that have to be available 24/7/365.... the code above could generate a backup whose full path is  c:\objectdb\backup\201012312359\test.odb  (if ... as a value for the target parameter it represents a path relative to the ObjectDB home directory, and in client-server ...

 
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 ... ;( ... like this:   Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: ... this is the error: Description Resource Path Location Type Plugin execution not covered by lifecycle configuration: ...

 
forum_thread

UserException: Package com.example.model is not found by the enhancer

My program works fine when I run it from Netbeans but as soon as I clean and build and move the dist directory out of the project to a remote location and run it using java -jar example.jar then I get the exception: com.objectdb.o.UserException: Package com.example.model is not found by the enhancer It occurs on this line: com.objectdb.Enhancer.enhance("com.example.model" + ".*"); ... sure how the enhance() method looks up the model path since it will be inside the example.jar after building? ... Build time enhancement is tricky since the path will change depending on which environment the jar is run on. Load time ...

 
release

2.3.5

... in enhancement of more than one class path root ( issue #82 ). Fixed a NullPointerException on ... PK embedded IDs. Fixed default ObjectDB home path ( $objectdb ) in NetBeans RCP . Fixed a Doctor and ... mode. Fixed a bug in setting log directory path (missing URL decoding). Fixed a bug in automatic byte code ...

 
forum_thread

Optimistic lock failed

Hi, I frequently see exceptions during development such as com.objectdb.o._RollbackException: Failed to commit transaction: Optimistic lock failed for object com.example.MyEntity#3 (object has version 1 instead of 3) Could you please explain what this means, and what I can do about it. Thanks you, Carl     ... enabled = "false" sync = "false" path = "." max = "100mb" /> <recording enabled = "true" sync = "false" path = "." mode = "write" /> <locking ...