Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JFrog JIRA by Igor Lankin, 1 year ago
Failed to insert archive entries: Deadlock found when trying to get lock; try restarting transaction
via JFrog JIRA by Igor Lankin, 1 year ago
Failed to insert archive entries: Deadlock found when trying to get lock; try restarting transaction
com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)	at com.mysql.jdbc.Util.getInstance(Util.java:386)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1065)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4120)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4052)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2503)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2664)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2794)	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2458)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2375)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2359)	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)	at org.artifactory.storage.db.util.JdbcHelper.executeUpdate(JdbcHelper.java:126)	at org.artifactory.storage.db.fs.dao.ArchiveEntriesDao.createIndexedArchivesEntries(ArchiveEntriesDao.java:153)	at org.artifactory.storage.db.fs.service.ArchiveEntriesServiceImpl.addArchiveEntries(ArchiveEntriesServiceImpl.java:112)	at org.artifactory.search.archive.ArchiveIndexerImpl.index(ArchiveIndexerImpl.java:143)	at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)	at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:64)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)	at undefined.$Proxy45.index(Unknown Source)	at org.artifactory.search.archive.ArchiveIndexerImpl.triggerQueueIndexing(ArchiveIndexerImpl.java:173)	at org.artifactory.search.archive.ArchiveIndexerImpl.asyncIndex(ArchiveIndexerImpl.java:161)	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)	at org.artifactory.schedule.aop.AsyncAdvice$TraceableMethodInvocation.proceed(AsyncAdvice.java:337)	at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:206)	at org.artifactory.schedule.aop.CompoundInvocation.proceed(CompoundInvocation.java:56)	at org.artifactory.schedule.aop.AsyncAdvice.doInvoke(AsyncAdvice.java:182)	at org.artifactory.schedule.aop.AsyncAdvice$1.call(AsyncAdvice.java:143)	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)	at java.util.concurrent.FutureTask.run(FutureTask.java:166)	at org.artifactory.schedule.ArtifactoryConcurrentExecutor$RunnableWrapper.run(ArtifactoryConcurrentExecutor.java:91)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)	at java.lang.Thread.run(Thread.java:722)