Good morning all. Yesterday I tried checking out a fresh new CVS copy to see if it would solve another problem I ran into. However, when I checked it out, compiled it, and set it as my current library a new problem arose.
When I tried to load my objects from the database castor was saying that it could not obtain a read lock. This is with me not changing any code (so I was still using JDO instead of JDO2) and it worked perfectly fine before with an older CVS checkout (dont know the exact build date). (stack trace below) What I would like to know is if me changing from JDO to JDO2 might fix this issue, and others to go along with it. Let me know if you guys need more info for this, will be happy to provide. -Nick /*******************/ java.lang.IllegalStateException: Transaction [EMAIL PROTECTED] does not hold the read lock: com.vort.beans.UserInfo/TestUser/0 -/-! at org.exolab.castor.persist.LockEngine$TypeInfo.assure(LockEngine.java:1322) at org.exolab.castor.persist.LockEngine$TypeInfo.access$500(LockEngine.java:1037) at org.exolab.castor.persist.LockEngine.revertObject(LockEngine.java:847) at org.exolab.castor.persist.TransactionContext.rollback(TransactionContext.java:1760) at org.exolab.castor.jdo.engine.DatabaseImpl.close(DatabaseImpl.java:266) at com.vort.utils.DataManager.closeDatabase(DataManager.java:55) at com.vort.utils.ClientDataManager.delete(ClientDataManager.java:67) at com.vort.web.commands.DeleteClientCommand.execute(DeleteClientCommand.java:48) at com.vort.web.CommandExecuter.executeCommand(CommandExecuter.java:40) at com.vort.tests.ClientCmdTest.testDeleteClient(ClientCmdTest.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:582) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558) java.lang.IllegalStateException: Transaction [EMAIL PROTECTED] does not hold the read lock: com.vort.beans.Client/2/1 -/-! at org.exolab.castor.persist.LockEngine$TypeInfo.assure(LockEngine.java:1322) at org.exolab.castor.persist.LockEngine$TypeInfo.access$500(LockEngine.java:1037) at org.exolab.castor.persist.LockEngine.revertObject(LockEngine.java:847) at org.exolab.castor.persist.TransactionContext.rollback(TransactionContext.java:1760) at org.exolab.castor.jdo.engine.DatabaseImpl.close(DatabaseImpl.java:266) at com.vort.utils.DataManager.closeDatabase(DataManager.java:55) at com.vort.utils.ClientDataManager.delete(ClientDataManager.java:67) at com.vort.web.commands.DeleteClientCommand.execute(DeleteClientCommand.java:48) at com.vort.web.CommandExecuter.executeCommand(CommandExecuter.java:40) at com.vort.tests.ClientCmdTest.testDeleteClient(ClientCmdTest.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:582) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:289) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:656) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558) ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev