org.artifactory.storage.StorageException

Could not insert build org.jfrog.build.api.Build@336ab41c

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web25

  • via Unknown by David Slater,
  • via Unknown by Eran Blumental,
  • via Unknown by David Slater,
  • Stack trace

    • org.artifactory.storage.StorageException: Could not insert build org.jfrog.build.api.Build@336ab41c at org.artifactory.storage.db.build.service.BuildStoreServiceImpl.addBuild(BuildStoreServiceImpl.java:135)[artifactory-storage-db-3.2.0.jar:na] at org.artifactory.build.BuildServiceImpl.addBuild(BuildServiceImpl.java:180)[artifactory-core-3.2.0.jar:na] at sun.reflect.GeneratedMethodAccessor271.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.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)[spring-tx-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)[spring-tx-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)[spring-tx-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:64)[artifactory-storage-common-3.2.0.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.0.2.RELEASE.jar:4.0.2.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)[spring-aop-4.0.2.RELEASE.jar:4.0.2.RELEASE] at com.sun.proxy.$Proxy64.addBuild(Unknown Source)[na:na] at org.artifactory.rest.resource.ci.BuildResource.addBuild(BuildResource.java:281)[artifactory-rest-3.2.0.jar:na] at sun.reflect.GeneratedMethodAccessor270.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 com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$VoidOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:167)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1483)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)[jersey-server-1.12.jar:1.12] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)[jersey-server-1.12.jar:1.12] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)[jersey-servlet-1.12.jar:1.12] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)[jersey-servlet-1.12.jar:1.12] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)[jersey-servlet-1.12.jar:1.12] at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)[servlet-api.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:182)[artifactory-web-application-3.2.0.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:88)[artifactory-web-application-3.2.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:314)[artifactory-web-application-3.2.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:218)[artifactory-web-application-3.2.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:184)[artifactory-web-application-3.2.0.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:152)[artifactory-web-application-3.2.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:61)[artifactory-web-application-3.2.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:92)[artifactory-web-application-3.2.0.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.39] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)[catalina.jar:7.0.39] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)[catalina.jar:7.0.39] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)[catalina.jar:7.0.39] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)[catalina.jar:7.0.39] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.39] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)[catalina.jar:7.0.39] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)[tomcat-coyote.jar:7.0.39] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)[tomcat-coyote.jar:7.0.39] at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)[tomcat-coyote.jar:7.0.39] 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:745)[na:1.7.0_55] 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.EmbedStatement.executeStatement(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)[derby-10.9.1.0.jar:na] at org.artifactory.storage.db.util.JdbcHelper.executeUpdate(JdbcHelper.java:131)[artifactory-storage-db-3.2.0.jar:na] at org.artifactory.storage.db.build.dao.BuildModulesDao.createBuildModule(BuildModulesDao.java:67)[artifactory-storage-db-3.2.0.jar:na] at org.artifactory.storage.db.build.service.BuildStoreServiceImpl.insertModules(BuildStoreServiceImpl.java:202)[artifactory-storage-db-3.2.0.jar:na] at org.artifactory.storage.db.build.service.BuildStoreServiceImpl.addBuild(BuildStoreServiceImpl.java:133)[artifactory-storage-db-3.2.0.jar:na] ... 63 more 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] ... 76 more 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.AbstractPool.lockObject(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.services.locks.ConcurrentPool.lockObject(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.xact.RowLocking2.lockContainer(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.data.BaseContainerHandle.useContainer(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.openContainer(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.raw.xact.Xact.openContainer(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.conglomerate.OpenConglomerate.init(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.heap.Heap.open(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.RAMTransaction.openConglomerate(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.store.access.RAMTransaction.openCompiledConglomerate(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.RowChangerImpl.openForUpdate(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.RowChangerImpl.open(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.RowChangerImpl.open(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)[derby-10.9.1.0.jar:na] at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)[derby-10.9.1.0.jar:na] ... 70 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    stigkjstigkj
    5 times, last one
    andyglickandyglick
    Once,
    Unknown visitor
    Unknown visitorOnce,