[1.2.1rc0] Error deploying artifact in multi-module build

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[1.2.1rc0] Error deploying artifact in multi-module build

Thorsten Heit
Hi,

today I upgraded my local Artifactory installation from 1.2.0.1 to 1.2.1rc0. Since then I randomly cannot deploy an artifact from within a multi-module build to my repository:

(...)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: http://localhost:4080/artifactory/local-snapshots@repo/de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/verbund-base-server-1.0-20070417.124158-1-sources.jar. Return code is: 500

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 51 seconds
[INFO] Finished at: Tue Apr 17 14:43:39 CEST 2007
[INFO] Final Memory: 15M/33M
[INFO] ------------------------------------------------------------------------

The logfile contains:

2007-04-17 14:43:37,390 [INFO ] httpclient.auth.AuthChallengeProcessor  - basic authentication scheme selected
2007-04-17 14:43:37,828 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml'...
2007-04-17 14:43:37,828 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml.sha1'...
2007-04-17 14:43:37,968 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml'...
2007-04-17 14:43:37,968 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml.sha1'...
2007-04-17 14:43:38,046 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/maven-metadata.xml'...
2007-04-17 14:43:38,046 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/maven-metadata.xml.sha1'...
2007-04-17 14:43:39,593 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml'...
2007-04-17 14:43:39,593 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml.sha1'...
2007-04-17 14:43:39,937 [ERROR] webapp.servlet.RepoFilter  - Upload request failed
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy file 'C:\Programme\Apache Software Foundation\Tomcat 5.5\temp\artifactory-uploads\verbund-base-server-1.0-20070417.124158-1-sources.jar'.
        at org.artifactory.maven.Maven.deploy(Maven.java:158)
        at org.artifactory.engine.UploadEngine.process(UploadEngine.java:105)
        at org.artifactory.webapp.servlet.RepoFilter.handleUploadRequest(RepoFilter.java:106)
        at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:75)
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:72)
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Failed to save resource '{local-snapshots:de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/verbund-base-server-1.0-SNAPSHOT-sources.jar}'.
        at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:370)
        at org.artifactory.maven.JcrWagon.put(JcrWagon.java:112)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:237)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:153)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
        at org.artifactory.maven.Maven.deploy(Maven.java:156)
        ... 23 more
Caused by: java.lang.RuntimeException: Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:332)
        ... 28 more
Caused by: javax.jcr.RepositoryException: Failed to import resource '{local-snapshots:de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/verbund-base-server-1.0-SNAPSHOT-sources.jar}'.: Node locked.: Node loc
ked.
        at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:354)
        at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:332)
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:161)
        ... 29 more
Caused by: javax.jcr.lock.LockException: Node locked.
        at org.apache.jackrabbit.core.lock.XALockManager.checkLock(XALockManager.java:159)
        at org.apache.jackrabbit.core.NodeImpl.checkLock(NodeImpl.java:4201)
        at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:737)
        at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:687)
        at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1926)
        at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:247)
        at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:346)
        ... 31 more


What is causing this? I just checked that the same build process works without problems when I'm using Artifactory 1.2.0.1 instead of 1.2.1rc0...


Regards

Thorsten

PS: My Artifactory instance is running in a Tomcat 5.5 installation using JDK 1.6.0_01


Reply | Threaded
Open this post in threaded view
|

Re: [1.2.1rc0] Error deploying artifact in multi-module build

Yoav Landman
Administrator
We added improvements to the node locking concurrency short after rc0 has been released.
We couldn't reproduce the error on the trunk version.
I believe you can expect this to be resolved for rc1.

On 4/17/07, Thorsten Heit <[hidden email]> wrote:
Hi,

today I upgraded my local Artifactory installation from 1.2.0.1 to 1.2.1rc0. Since then I randomly cannot deploy an artifact from within a multi-module build to my repository:

(...)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: http://localhost:4080/artifactory/local-snapshots@repo/de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/verbund-base-server-1.0-20070417.124158-1-sources.jar . Return code is: 500

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 51 seconds
[INFO] Finished at: Tue Apr 17 14:43:39 CEST 2007
[INFO] Final Memory: 15M/33M
[INFO] ------------------------------------------------------------------------

The logfile contains:

2007-04-17 14:43:37,390 [INFO ] httpclient.auth.AuthChallengeProcessor  - basic authentication scheme selected
2007-04-17 14:43:37,828 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven- metadata.xml'...
2007-04-17 14:43:37,828 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml.sha1'...
2007-04-17 14:43:37,968 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml'...
2007-04-17 14:43:37,968 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven- metadata.xml.sha1'...
2007-04-17 14:43:38,046 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/maven-metadata.xml'...
2007-04-17 14:43:38,046 [INFO ] artifactory.jcr.JcrFile   - Exporting file 'de/ukv/verbund/base/verbund-base-server/maven-metadata.xml.sha1'...
2007-04-17 14:43:39,593 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven- metadata.xml'...
2007-04-17 14:43:39,593 [INFO ] artifactory.jcr.JcrFile  - Exporting file 'de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/maven-metadata.xml.sha1'...
2007-04-17 14:43:39,937 [ERROR] webapp.servlet.RepoFilter  - Upload request failed
org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy file 'C:\Programme\Apache Software Foundation\Tomcat 5.5\temp\artifactory-uploads\verbund-base-server-1.0-20070417.124158-1-sources.jar '.
        at org.artifactory.maven.Maven.deploy(Maven.java:158)
        at org.artifactory.engine.UploadEngine.process(UploadEngine.java:105)
        at org.artifactory.webapp.servlet.RepoFilter.handleUploadRequest (RepoFilter.java:106)
        at org.artifactory.webapp.servlet.RepoFilter.doFilterInternal(RepoFilter.java:75)
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:89)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter (BasicProcessingFilter.java:178)
        at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:72)
        at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java :89)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java :80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Failed to save resource '{local-snapshots:de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/verbund- base-server-1.0-SNAPSHOT-sources.jar}'.
        at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:370)
        at org.artifactory.maven.JcrWagon.put(JcrWagon.java:112)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile (DefaultWagonManager.java:237)
        at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:153)
        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy( DefaultArtifactDeployer.java:80)
        at org.artifactory.maven.Maven.deploy(Maven.java:156)
        ... 23 more
Caused by: java.lang.RuntimeException: Failed to execute JcrCallback.
        at org.artifactory.jcr.JcrHelper.doInSession (JcrHelper.java:165)
        at org.artifactory.repo.JcrRepo.saveResource(JcrRepo.java:332)
        ... 28 more
Caused by: javax.jcr.RepositoryException: Failed to import resource '{local-snapshots:de/ukv/verbund/base/verbund-base-server/1.0-SNAPSHOT/verbund- base-server-1.0-SNAPSHOT-sources.jar}'.: Node locked.: Node loc
ked.
        at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:354)
        at org.artifactory.repo.JcrRepo$9.doInJcr(JcrRepo.java:332)
        at org.artifactory.jcr.JcrHelper.doInSession(JcrHelper.java:161)
        ... 29 more
Caused by: javax.jcr.lock.LockException: Node locked.
        at org.apache.jackrabbit.core.lock.XALockManager.checkLock (XALockManager.java:159)
        at org.apache.jackrabbit.core.NodeImpl.checkLock(NodeImpl.java:4201)
        at org.apache.jackrabbit.core.NodeImpl.internalAddNode(NodeImpl.java:737)
        at org.apache.jackrabbit.core.NodeImpl.internalAddNode (NodeImpl.java:687)
        at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1926)
        at org.artifactory.jcr.JcrHelper.importStream(JcrHelper.java:247)
        at org.artifactory.repo.JcrRepo$9.doInJcr (JcrRepo.java:346)
        ... 31 more


What is causing this? I just checked that the same build process works without problems when I'm using Artifactory 1.2.0.1 instead of 1.2.1rc0.. .


Regards

Thorsten

PS: My Artifactory instance is running in a Tomcat 5.5 installation using JDK 1.6.0_01

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users