java.lang.reflect.UndeclaredThrowableException: null

JFrog JIRA | Frederic Simon | 2 years ago
  1. 0

    Using the header {{X-Explode-Archive: true}} for a big jar or tarball containing many files and some jar or zip files, the ArchiveIndexer will deadlock the process in Derby. Also the creation of the folders in the deploy exploded are done outside the transaction. In this case, it may be a good idea to include the folder creation in the same transaction. {code} 2014-07-15 11:45:10,139 [art-exec-180] [ERROR] (o.q.c.JobRunShell :211) - Job artifactory.org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob#870b736d-773a-4dc3-8bfa-15187d9a8bab threw an unhandled Exception: java.lang.reflect.UndeclaredThrowableException: null at com.sun.proxy.$Proxy27.next(Unknown Source) ~[na:na] at org.artifactory.storage.db.fs.dao.TasksDao.load(TasksDao.java:53) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.storage.db.fs.service.TasksServiceImpl.getRepoPathTasks(TasksServiceImpl.java:57) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.storage.db.fs.service.TasksServiceImpl.getIndexTasks(TasksServiceImpl.java:49) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.search.archive.ArchiveIndexerImpl.triggerQueueIndexing(ArchiveIndexerImpl.java:185) ~[artifactory-core-3.2.1.1.jar:na] at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at com.sun.proxy.$Proxy61.triggerQueueIndexing(Unknown Source) ~[na:na] at org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob.onExecute(ArchiveIndexerImpl.java:323) ~[artifactory-core-3.2.1.1.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:46) ~[artifactory-storage-common-3.2.1.1.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-1.6.6.jar:1.6.6] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:102) [artifactory-storage-common-3.2.1.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55] Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.artifactory.storage.db.util.ResultSetWrapper.invoke(ResultSetWrapper.java:73) ~[artifactory-storage-db-3.2.1.1.jar:na] ... 18 common frames omitted Caused by: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 22 common frames omitted Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: A lock could not be obtained within the time requested at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 31 common frames omitted Caused by: org.apache.derby.iapi.error.StandardException: A lock could not be obtained within the time requested at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentLockSet.zeroDurationLockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.AbstractPool.zeroDurationlockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentPool.zeroDurationlockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.xact.RowLocking2nohold.lockRecordForRead(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnPage(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3._lockScanRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR.lockScanRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fetchRows(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.BTreeScan.fetchNextGroup(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.reloadArray(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 24 common frames omitted 2014-07-15 11:45:10,142 [art-exec-180] [ERROR] (o.q.c.ErrorLogger :2185) - Job (artifactory.org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob#870b736d-773a-4dc3-8bfa-15187d9a8bab threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. at org.quartz.core.JobRunShell.run(JobRunShell.java:213) ~[quartz-1.6.6.jar:1.6.6] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:102) [artifactory-storage-common-3.2.1.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55] Caused by: java.lang.reflect.UndeclaredThrowableException: null at com.sun.proxy.$Proxy27.next(Unknown Source) ~[na:na] at org.artifactory.storage.db.fs.dao.TasksDao.load(TasksDao.java:53) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.storage.db.fs.service.TasksServiceImpl.getRepoPathTasks(TasksServiceImpl.java:57) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.storage.db.fs.service.TasksServiceImpl.getIndexTasks(TasksServiceImpl.java:49) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.search.archive.ArchiveIndexerImpl.triggerQueueIndexing(ArchiveIndexerImpl.java:185) ~[artifactory-core-3.2.1.1.jar:na] at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at com.sun.proxy.$Proxy61.triggerQueueIndexing(Unknown Source) ~[na:na] at org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob.onExecute(ArchiveIndexerImpl.java:323) ~[artifactory-core-3.2.1.1.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:46) ~[artifactory-storage-common-3.2.1.1.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-1.6.6.jar:1.6.6] ... 4 common frames omitted Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.artifactory.storage.db.util.ResultSetWrapper.invoke(ResultSetWrapper.java:73) ~[artifactory-storage-db-3.2.1.1.jar:na] ... 18 common frames omitted Caused by: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 22 common frames omitted Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: A lock could not be obtained within the time requested at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 31 common frames omitted Caused by: org.apache.derby.iapi.error.StandardException: A lock could not be obtained within the time requested at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentLockSet.zeroDurationLockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.AbstractPool.zeroDurationlockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentPool.zeroDurationlockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.xact.RowLocking2nohold.lockRecordForRead(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnPage(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3._lockScanRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR.lockScanRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fetchRows(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.BTreeScan.fetchNextGroup(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.reloadArray(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 24 common frames omitted 2014-07-15 11:45:59,564 [http-bio-8081-exec-4] [ERROR] (o.a.r.s.DeployServiceImpl:250) - Error during deployment: Could not create parent folder of libs-release-local:a/b/c/d/e/test.htm: Could not create parent folder of libs-release-local:a/b/c/d/e/test.htm 2014-07-15 11:46:01,981 [http-bio-8081-exec-4] [WARN ] (o.a.a.r.RestAddonImpl:1213) - Sending HTTP error code 500: Error during deployment: Could not create parent folder of libs-release-local:a/b/c/d/e/test.htm. {code}

    JFrog JIRA | 2 years ago | Frederic Simon
    java.lang.reflect.UndeclaredThrowableException: null
  2. 0

    Using the header {{X-Explode-Archive: true}} for a big jar or tarball containing many files and some jar or zip files, the ArchiveIndexer will deadlock the process in Derby. Also the creation of the folders in the deploy exploded are done outside the transaction. In this case, it may be a good idea to include the folder creation in the same transaction. {code} 2014-07-15 11:45:10,139 [art-exec-180] [ERROR] (o.q.c.JobRunShell :211) - Job artifactory.org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob#870b736d-773a-4dc3-8bfa-15187d9a8bab threw an unhandled Exception: java.lang.reflect.UndeclaredThrowableException: null at com.sun.proxy.$Proxy27.next(Unknown Source) ~[na:na] at org.artifactory.storage.db.fs.dao.TasksDao.load(TasksDao.java:53) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.storage.db.fs.service.TasksServiceImpl.getRepoPathTasks(TasksServiceImpl.java:57) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.storage.db.fs.service.TasksServiceImpl.getIndexTasks(TasksServiceImpl.java:49) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.search.archive.ArchiveIndexerImpl.triggerQueueIndexing(ArchiveIndexerImpl.java:185) ~[artifactory-core-3.2.1.1.jar:na] at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at com.sun.proxy.$Proxy61.triggerQueueIndexing(Unknown Source) ~[na:na] at org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob.onExecute(ArchiveIndexerImpl.java:323) ~[artifactory-core-3.2.1.1.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:46) ~[artifactory-storage-common-3.2.1.1.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-1.6.6.jar:1.6.6] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:102) [artifactory-storage-common-3.2.1.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55] Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.artifactory.storage.db.util.ResultSetWrapper.invoke(ResultSetWrapper.java:73) ~[artifactory-storage-db-3.2.1.1.jar:na] ... 18 common frames omitted Caused by: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 22 common frames omitted Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: A lock could not be obtained within the time requested at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 31 common frames omitted Caused by: org.apache.derby.iapi.error.StandardException: A lock could not be obtained within the time requested at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentLockSet.zeroDurationLockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.AbstractPool.zeroDurationlockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentPool.zeroDurationlockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.xact.RowLocking2nohold.lockRecordForRead(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnPage(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3._lockScanRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR.lockScanRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fetchRows(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.BTreeScan.fetchNextGroup(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.reloadArray(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 24 common frames omitted 2014-07-15 11:45:10,142 [art-exec-180] [ERROR] (o.q.c.ErrorLogger :2185) - Job (artifactory.org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob#870b736d-773a-4dc3-8bfa-15187d9a8bab threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. at org.quartz.core.JobRunShell.run(JobRunShell.java:213) ~[quartz-1.6.6.jar:1.6.6] at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:102) [artifactory-storage-common-3.2.1.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55] Caused by: java.lang.reflect.UndeclaredThrowableException: null at com.sun.proxy.$Proxy27.next(Unknown Source) ~[na:na] at org.artifactory.storage.db.fs.dao.TasksDao.load(TasksDao.java:53) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.storage.db.fs.service.TasksServiceImpl.getRepoPathTasks(TasksServiceImpl.java:57) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.storage.db.fs.service.TasksServiceImpl.getIndexTasks(TasksServiceImpl.java:49) ~[artifactory-storage-db-3.2.1.1.jar:na] at org.artifactory.search.archive.ArchiveIndexerImpl.triggerQueueIndexing(ArchiveIndexerImpl.java:185) ~[artifactory-core-3.2.1.1.jar:na] at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE] at com.sun.proxy.$Proxy61.triggerQueueIndexing(Unknown Source) ~[na:na] at org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob.onExecute(ArchiveIndexerImpl.java:323) ~[artifactory-core-3.2.1.1.jar:na] at org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:46) ~[artifactory-storage-common-3.2.1.1.jar:na] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ~[quartz-1.6.6.jar:1.6.6] ... 4 common frames omitted Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.artifactory.storage.db.util.ResultSetWrapper.invoke(ResultSetWrapper.java:73) ~[artifactory-storage-db-3.2.1.1.jar:na] ... 18 common frames omitted Caused by: java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 22 common frames omitted Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: A lock could not be obtained within the time requested at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 31 common frames omitted Caused by: org.apache.derby.iapi.error.StandardException: A lock could not be obtained within the time requested at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentLockSet.zeroDurationLockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.AbstractPool.zeroDurationlockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentPool.zeroDurationlockObject(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.xact.RowLocking2nohold.lockRecordForRead(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnPage(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3._lockScanRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR.lockScanRow(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fetchRows(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.btree.BTreeScan.fetchNextGroup(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.reloadArray(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source) ~[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source) ~[derby-10.9.1.0.jar:na] ... 24 common frames omitted 2014-07-15 11:45:59,564 [http-bio-8081-exec-4] [ERROR] (o.a.r.s.DeployServiceImpl:250) - Error during deployment: Could not create parent folder of libs-release-local:a/b/c/d/e/test.htm: Could not create parent folder of libs-release-local:a/b/c/d/e/test.htm 2014-07-15 11:46:01,981 [http-bio-8081-exec-4] [WARN ] (o.a.a.r.RestAddonImpl:1213) - Sending HTTP error code 500: Error during deployment: Could not create parent folder of libs-release-local:a/b/c/d/e/test.htm. {code}

    JFrog JIRA | 2 years ago | Frederic Simon
    java.lang.reflect.UndeclaredThrowableException: null
  3. 0

    Out of time exception when calling next on ResultSet in Java

    Stack Overflow | 4 years ago | Miloš Lukačka
    java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Non transactional request tries to get a lock with Derby

    Stack Overflow | 3 years ago | user3274155
    java.sql.SQLTransactionRollbackException: A lock could not be obtained within the time requested

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.derby.iapi.error.StandardException

      A lock could not be obtained within the time requested

      at org.apache.derby.iapi.error.StandardException.newException()
    2. Derby
      EmbedResultSet.next
      1. org.apache.derby.iapi.error.StandardException.newException(Unknown Source)[derby-10.9.1.0.jar:na]
      2. org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(Unknown Source)[derby-10.9.1.0.jar:na]
      3. org.apache.derby.impl.services.locks.ConcurrentLockSet.zeroDurationLockObject(Unknown Source)[derby-10.9.1.0.jar:na]
      4. org.apache.derby.impl.services.locks.AbstractPool.zeroDurationlockObject(Unknown Source)[derby-10.9.1.0.jar:na]
      5. org.apache.derby.impl.services.locks.ConcurrentPool.zeroDurationlockObject(Unknown Source)[derby-10.9.1.0.jar:na]
      6. org.apache.derby.impl.store.raw.xact.RowLocking2nohold.lockRecordForRead(Unknown Source)[derby-10.9.1.0.jar:na]
      7. org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source)[derby-10.9.1.0.jar:na]
      8. org.apache.derby.impl.store.access.heap.HeapController.lockRow(Unknown Source)[derby-10.9.1.0.jar:na]
      9. org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnPage(Unknown Source)[derby-10.9.1.0.jar:na]
      10. org.apache.derby.impl.store.access.btree.index.B2IRowLocking3._lockScanRow(Unknown Source)[derby-10.9.1.0.jar:na]
      11. org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR.lockScanRow(Unknown Source)[derby-10.9.1.0.jar:na]
      12. org.apache.derby.impl.store.access.btree.BTreeForwardScan.fetchRows(Unknown Source)[derby-10.9.1.0.jar:na]
      13. org.apache.derby.impl.store.access.btree.BTreeScan.fetchNextGroup(Unknown Source)[derby-10.9.1.0.jar:na]
      14. org.apache.derby.impl.sql.execute.BulkTableScanResultSet.reloadArray(Unknown Source)[derby-10.9.1.0.jar:na]
      15. org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source)[derby-10.9.1.0.jar:na]
      16. org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source)[derby-10.9.1.0.jar:na]
      17. org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source)[derby-10.9.1.0.jar:na]
      18. org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)[derby-10.9.1.0.jar:na]
      18 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_55]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_55]
      3 frames
    4. org.artifactory.storage
      ResultSetWrapper.invoke
      1. org.artifactory.storage.db.util.ResultSetWrapper.invoke(ResultSetWrapper.java:73)[artifactory-storage-db-3.2.1.1.jar:na]
      1 frame
    5. com.sun.proxy
      $Proxy27.next
      1. com.sun.proxy.$Proxy27.next(Unknown Source)[na:na]
      1 frame
    6. org.artifactory.storage
      TasksServiceImpl.getIndexTasks
      1. org.artifactory.storage.db.fs.dao.TasksDao.load(TasksDao.java:53)[artifactory-storage-db-3.2.1.1.jar:na]
      2. org.artifactory.storage.db.fs.service.TasksServiceImpl.getRepoPathTasks(TasksServiceImpl.java:57)[artifactory-storage-db-3.2.1.1.jar:na]
      3. org.artifactory.storage.db.fs.service.TasksServiceImpl.getIndexTasks(TasksServiceImpl.java:49)[artifactory-storage-db-3.2.1.1.jar:na]
      3 frames
    7. org.artifactory.search
      ArchiveIndexerImpl.triggerQueueIndexing
      1. org.artifactory.search.archive.ArchiveIndexerImpl.triggerQueueIndexing(ArchiveIndexerImpl.java:185)[artifactory-core-3.2.1.1.jar:na]
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_55]
      3. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_55]
      3 frames
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
      2 frames
    10. com.sun.proxy
      $Proxy61.triggerQueueIndexing
      1. com.sun.proxy.$Proxy61.triggerQueueIndexing(Unknown Source)[na:na]
      1 frame
    11. org.artifactory.search
      ArchiveIndexerImpl$ArchiveIndexJob.onExecute
      1. org.artifactory.search.archive.ArchiveIndexerImpl$ArchiveIndexJob.onExecute(ArchiveIndexerImpl.java:323)[artifactory-core-3.2.1.1.jar:na]
      1 frame
    12. org.artifactory.schedule
      QuartzCommand.execute
      1. org.artifactory.schedule.quartz.QuartzCommand.execute(QuartzCommand.java:46)[artifactory-storage-common-3.2.1.1.jar:na]
      1 frame
    13. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)[quartz-1.6.6.jar:1.6.6]
      1 frame
    14. org.artifactory.schedule
      ArtifactoryConcurrentExecutor$RunnableWrapper.run
      1. org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:102)[artifactory-storage-common-3.2.1.1.jar:na]
      1 frame
    15. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_55]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_55]
      3. java.lang.Thread.run(Thread.java:744)[na:1.7.0_55]
      3 frames