Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO] A lock could not be obtained exception using Derby database
[CDO] A lock could not be obtained exception using Derby database [message #622324] Tue, 16 March 2010 08:16 Go to next message
Bjoern Sundin is currently offline Bjoern SundinFriend
Messages: 19
Registered: July 2009
Location: Switzerland
Junior Member
I updated my local CVS repository this morning, tailing CDO/Net4j 3.0 head. Since then I cannot create any new database using Derby embedded database. See stacktrace below:

org.eclipse.net4j.db.DBException: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested
at org.eclipse.emf.cdo.server.internal.db.DBStore.setPropertyVa lues(DBStore.java:273)
at org.eclipse.emf.cdo.server.internal.db.DBStore.firstStart(DB Store.java:492)
at org.eclipse.emf.cdo.server.internal.db.DBStore.doActivate(DB Store.java:439)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:70)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:98)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:88)
at org.eclipse.emf.cdo.internal.server.Repository.doActivate(Re pository.java:1111)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:70)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:98)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:88)
at org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOSe rverUtil.java:99)
at ch.bergauer.rcp.amset.server.application.AmsetServer.doStart (AmsetServer.java:231)
at ch.bergauer.rcp.amset.server.application.ApplicationWorkbenc hWindowAdvisor$1.run(ApplicationWorkbenchWindowAdvisor.java: 88)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3959)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3580)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2407)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2371)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 20)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at ch.bergauer.rcp.amset.server.application.Application.start(A pplication.java:21)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:367)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 611)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
Caused by: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLExcep tion(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unkno wn Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQL Exception(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleExc eption(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(U nknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(U nknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unk nown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement( Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement( Unknown Source)
at org.eclipse.emf.cdo.server.internal.db.DBStore.setPropertyVa lues(DBStore.java:253)
... 37 more
Caused by: java.sql.SQLException: A lock could not be obtained within the time requested
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLExcepti on(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsFor TransportAcrossDRDA(Unknown Source)
... 51 more
Caused by: ERROR 40XL1: A lock could not be obtained within the time requested
at org.apache.derby.iapi.error.StandardException.newException(U nknown Source)
at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockO bject(Unknown Source)
at org.apache.derby.impl.services.locks.AbstractPool.lockObject (Unknown Source)
at org.apache.derby.impl.store.raw.xact.RowLocking3.lockRecordF orRead(Unknown Source)
at org.apache.derby.impl.store.access.heap.HeapController.lockR ow(Unknown Source)
at org.apache.derby.impl.store.access.heap.HeapController.lockR ow(Unknown Source)
at org.apache.derby.impl.store.access.btree.index.B2IRowLocking 3.lockRowOnPage(Unknown Source)
at org.apache.derby.impl.store.access.btree.index.B2IRowLocking 3._lockScanRow(Unknown Source)
at org.apache.derby.impl.store.access.btree.index.B2IRowLocking RR.lockScanRow(Unknown Source)
at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fe tchRows(Unknown Source)
at org.apache.derby.impl.store.access.btree.BTreeScan.next(Unkn own Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDesc riptorViaIndexMinion(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDesc riptorViaIndex(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTabl eDescriptorIndex1Scan(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTabl eDescriptor(Unknown Source)
at org.apache.derby.impl.sql.compile.QueryTreeNode.getTableDesc riptor(Unknown Source)
at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDes criptor(Unknown Source)
at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITa bles(Unknown Source)
at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknow n Source)
at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITable s(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTable s(Unknown Source)
at org.apache.derby.impl.sql.compile.DeleteNode.bindStatement(U nknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknow n Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionCont ext.prepareInternalStatement(Unknown Source)
... 45 more
Error starting amSET Server:
org.eclipse.net4j.db.DBException: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested
at org.eclipse.emf.cdo.server.internal.db.DBStore.setPropertyVa lues(DBStore.java:273)
at org.eclipse.emf.cdo.server.internal.db.DBStore.firstStart(DB Store.java:492)
at org.eclipse.emf.cdo.server.internal.db.DBStore.doActivate(DB Store.java:439)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:70)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:98)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:88)
at org.eclipse.emf.cdo.internal.server.Repository.doActivate(Re pository.java:1111)
at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl e.java:70)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:98)
at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life cycleUtil.java:88)
at org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOSe rverUtil.java:99)
at ch.bergauer.rcp.amset.server.application.AmsetServer.doStart (AmsetServer.java:231)
at ch.bergauer.rcp.amset.server.application.ApplicationWorkbenc hWindowAdvisor$1.run(ApplicationWorkbenchWindowAdvisor.java: 88)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3959)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3580)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2407)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2371)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 20)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at ch.bergauer.rcp.amset.server.application.Application.start(A pplication.java:21)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:367)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 611)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
Caused by: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLExcep tion(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unkno wn Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQL Exception(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleExc eption(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(U nknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(U nknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unk nown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement( Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement( Unknown Source)
at org.eclipse.emf.cdo.server.internal.db.DBStore.setPropertyVa lues(DBStore.java:253)
... 37 more
Caused by: java.sql.SQLException: A lock could not be obtained within the time requested
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLExcepti on(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsFor TransportAcrossDRDA(Unknown Source)
... 51 more
Caused by: ERROR 40XL1: A lock could not be obtained within the time requested
at org.apache.derby.iapi.error.StandardException.newException(U nknown Source)
at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockO bject(Unknown Source)
at org.apache.derby.impl.services.locks.AbstractPool.lockObject (Unknown Source)
at org.apache.derby.impl.store.raw.xact.RowLocking3.lockRecordF orRead(Unknown Source)
at org.apache.derby.impl.store.access.heap.HeapController.lockR ow(Unknown Source)
at org.apache.derby.impl.store.access.heap.HeapController.lockR ow(Unknown Source)
at org.apache.derby.impl.store.access.btree.index.B2IRowLocking 3.lockRowOnPage(Unknown Source)
at org.apache.derby.impl.store.access.btree.index.B2IRowLocking 3._lockScanRow(Unknown Source)
at org.apache.derby.impl.store.access.btree.index.B2IRowLocking RR.lockScanRow(Unknown Source)
at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fe tchRows(Unknown Source)
at org.apache.derby.impl.store.access.btree.BTreeScan.next(Unkn own Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDesc riptorViaIndexMinion(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDesc riptorViaIndex(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTabl eDescriptorIndex1Scan(Unknown Source)
at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTabl eDescriptor(Unknown Source)
at org.apache.derby.impl.sql.compile.QueryTreeNode.getTableDesc riptor(Unknown Source)
at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDes criptor(Unknown Source)
at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITa bles(Unknown Source)
at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknow n Source)
at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITable s(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTable s(Unknown Source)
at org.apache.derby.impl.sql.compile.DeleteNode.bindStatement(U nknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknow n Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionCont ext.prepareInternalStatement(Unknown Source)
... 45 more

Cheers
Bjoern
Re: [CDO] A lock could not be obtained exception using Derby database [message #622326 is a reply to message #622324] Tue, 16 March 2010 09:55 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Was it an accident that you cross-posted this message here?

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 16.03.2010 09:16, schrieb Bjoern Sundin:
> I updated my local CVS repository this morning, tailing CDO/Net4j 3.0
> head. Since then I cannot create any new database using Derby embedded
> database. See stacktrace below:
>
> org.eclipse.net4j.db.DBException:
> java.sql.SQLTransactionRollbackException: A lock could not be obtained
> within the time requested
> at org.eclipse.emf.cdo.server.internal.db.DBStore.setPropertyVa
> lues(DBStore.java:273)
> at org.eclipse.emf.cdo.server.internal.db.DBStore.firstStart(DB
> Store.java:492)
> at org.eclipse.emf.cdo.server.internal.db.DBStore.doActivate(DB
> Store.java:439)
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl
> e.java:70)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life
> cycleUtil.java:98)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life
> cycleUtil.java:88)
> at org.eclipse.emf.cdo.internal.server.Repository.doActivate(Re
> pository.java:1111)
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl
> e.java:70)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life
> cycleUtil.java:98)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life
> cycleUtil.java:88)
> at org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOSe
> rverUtil.java:99)
> at ch.bergauer.rcp.amset.server.application.AmsetServer.doStart
> (AmsetServer.java:231)
> at ch.bergauer.rcp.amset.server.application.ApplicationWorkbenc
> hWindowAdvisor$1.run(ApplicationWorkbenchWindowAdvisor.java: 88)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
> onizer.java:134)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3959)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3580)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2407)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2371)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 20)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
> bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at ch.bergauer.rcp.amset.server.application.Application.start(A
> pplication.java:21)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.java:194)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:367)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 611)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
> Caused by: java.sql.SQLTransactionRollbackException: A lock could not
> be obtained within the time requested
> at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLExcep
> tion(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unkno wn
> Source)
> at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQL
> Exception(Unknown Source)
> at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleExc
> eption(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.handleException(U
> nknown Source)
> at org.apache.derby.impl.jdbc.ConnectionChild.handleException(U
> nknown Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown
> Source)
> at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unk nown
> Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(
> Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(
> Unknown Source)
> at org.eclipse.emf.cdo.server.internal.db.DBStore.setPropertyVa
> lues(DBStore.java:253)
> ... 37 more
> Caused by: java.sql.SQLException: A lock could not be obtained within
> the time requested
> at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLExcepti
> on(Unknown Source)
> at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsFor
> TransportAcrossDRDA(Unknown Source)
> ... 51 more
> Caused by: ERROR 40XL1: A lock could not be obtained within the time
> requested
> at org.apache.derby.iapi.error.StandardException.newException(U
> nknown Source)
> at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockO
> bject(Unknown Source)
> at org.apache.derby.impl.services.locks.AbstractPool.lockObject
> (Unknown Source)
> at org.apache.derby.impl.store.raw.xact.RowLocking3.lockRecordF
> orRead(Unknown Source)
> at org.apache.derby.impl.store.access.heap.HeapController.lockR
> ow(Unknown Source)
> at org.apache.derby.impl.store.access.heap.HeapController.lockR
> ow(Unknown Source)
> at org.apache.derby.impl.store.access.btree.index.B2IRowLocking
> 3.lockRowOnPage(Unknown Source)
> at org.apache.derby.impl.store.access.btree.index.B2IRowLocking
> 3._lockScanRow(Unknown Source)
> at org.apache.derby.impl.store.access.btree.index.B2IRowLocking
> RR.lockScanRow(Unknown Source)
> at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fe
> tchRows(Unknown Source)
> at org.apache.derby.impl.store.access.btree.BTreeScan.next(Unkn own
> Source)
> at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDesc
> riptorViaIndexMinion(Unknown Source)
> at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDesc
> riptorViaIndex(Unknown Source)
> at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTabl
> eDescriptorIndex1Scan(Unknown Source)
> at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTabl
> eDescriptor(Unknown Source)
> at org.apache.derby.impl.sql.compile.QueryTreeNode.getTableDesc
> riptor(Unknown Source)
> at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDes
> criptor(Unknown Source)
> at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITa
> bles(Unknown Source)
> at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknow n
> Source)
> at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITable
> s(Unknown Source)
> at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTable
> s(Unknown Source)
> at org.apache.derby.impl.sql.compile.DeleteNode.bindStatement(U
> nknown Source)
> at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknow n
> Source)
> at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
> at org.apache.derby.impl.sql.conn.GenericLanguageConnectionCont
> ext.prepareInternalStatement(Unknown Source)
> ... 45 more
> Error starting amSET Server: org.eclipse.net4j.db.DBException:
> java.sql.SQLTransactionRollbackException: A lock could not be obtained
> within the time requested
> at org.eclipse.emf.cdo.server.internal.db.DBStore.setPropertyVa
> lues(DBStore.java:273)
> at org.eclipse.emf.cdo.server.internal.db.DBStore.firstStart(DB
> Store.java:492)
> at org.eclipse.emf.cdo.server.internal.db.DBStore.doActivate(DB
> Store.java:439)
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl
> e.java:70)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life
> cycleUtil.java:98)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life
> cycleUtil.java:88)
> at org.eclipse.emf.cdo.internal.server.Repository.doActivate(Re
> pository.java:1111)
> at org.eclipse.net4j.util.lifecycle.Lifecycle.activate(Lifecycl
> e.java:70)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life
> cycleUtil.java:98)
> at org.eclipse.net4j.util.lifecycle.LifecycleUtil.activate(Life
> cycleUtil.java:88)
> at org.eclipse.emf.cdo.server.CDOServerUtil.addRepository(CDOSe
> rverUtil.java:99)
> at ch.bergauer.rcp.amset.server.application.AmsetServer.doStart
> (AmsetServer.java:231)
> at ch.bergauer.rcp.amset.server.application.ApplicationWorkbenc
> hWindowAdvisor$1.run(ApplicationWorkbenchWindowAdvisor.java: 88)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
> onizer.java:134)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3959)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3580)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2407)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2371)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 20)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
> bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at ch.bergauer.rcp.amset.server.application.Application.start(A
> pplication.java:21)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.java:194)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:367)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 611)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1339)
> Caused by: java.sql.SQLTransactionRollbackException: A lock could not
> be obtained within the time requested
> at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLExcep
> tion(Unknown Source)
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unkno wn
> Source)
> at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQL
> Exception(Unknown Source)
> at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleExc
> eption(Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.handleException(U
> nknown Source)
> at org.apache.derby.impl.jdbc.ConnectionChild.handleException(U
> nknown Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedPreparedStatement40.<init>(Unknown
> Source)
> at org.apache.derby.jdbc.Driver40.newEmbedPreparedStatement(Unk nown
> Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(
> Unknown Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(
> Unknown Source)
> at org.eclipse.emf.cdo.server.internal.db.DBStore.setPropertyVa
> lues(DBStore.java:253)
> ... 37 more
> Caused by: java.sql.SQLException: A lock could not be obtained within
> the time requested
> at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLExcepti
> on(Unknown Source)
> at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsFor
> TransportAcrossDRDA(Unknown Source)
> ... 51 more
> Caused by: ERROR 40XL1: A lock could not be obtained within the time
> requested
> at org.apache.derby.iapi.error.StandardException.newException(U
> nknown Source)
> at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockO
> bject(Unknown Source)
> at org.apache.derby.impl.services.locks.AbstractPool.lockObject
> (Unknown Source)
> at org.apache.derby.impl.store.raw.xact.RowLocking3.lockRecordF
> orRead(Unknown Source)
> at org.apache.derby.impl.store.access.heap.HeapController.lockR
> ow(Unknown Source)
> at org.apache.derby.impl.store.access.heap.HeapController.lockR
> ow(Unknown Source)
> at org.apache.derby.impl.store.access.btree.index.B2IRowLocking
> 3.lockRowOnPage(Unknown Source)
> at org.apache.derby.impl.store.access.btree.index.B2IRowLocking
> 3._lockScanRow(Unknown Source)
> at org.apache.derby.impl.store.access.btree.index.B2IRowLocking
> RR.lockScanRow(Unknown Source)
> at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fe
> tchRows(Unknown Source)
> at org.apache.derby.impl.store.access.btree.BTreeScan.next(Unkn own
> Source)
> at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDesc
> riptorViaIndexMinion(Unknown Source)
> at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getDesc
> riptorViaIndex(Unknown Source)
> at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTabl
> eDescriptorIndex1Scan(Unknown Source)
> at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTabl
> eDescriptor(Unknown Source)
> at org.apache.derby.impl.sql.compile.QueryTreeNode.getTableDesc
> riptor(Unknown Source)
> at org.apache.derby.impl.sql.compile.FromBaseTable.bindTableDes
> criptor(Unknown Source)
> at org.apache.derby.impl.sql.compile.FromBaseTable.bindNonVTITa
> bles(Unknown Source)
> at org.apache.derby.impl.sql.compile.FromList.bindTables(Unknow n
> Source)
> at org.apache.derby.impl.sql.compile.SelectNode.bindNonVTITable
> s(Unknown Source)
> at org.apache.derby.impl.sql.compile.DMLStatementNode.bindTable
> s(Unknown Source)
> at org.apache.derby.impl.sql.compile.DeleteNode.bindStatement(U
> nknown Source)
> at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknow n
> Source)
> at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
> at org.apache.derby.impl.sql.conn.GenericLanguageConnectionCont
> ext.prepareInternalStatement(Unknown Source)
> ... 45 more
>
> Cheers
> Bjoern


Previous Topic:[CDO] A lock could not be obtained exception using Derby database
Next Topic:How do I override doSave and doLoad?
Goto Forum:
  


Current Time: Thu Apr 25 20:35:46 GMT 2024

Powered by FUDForum. Page generated in 0.03354 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top