[ 
https://issues.apache.org/jira/browse/MNG-7012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17227857#comment-17227857
 ] 

Frank Rachel commented on MNG-7012:
-----------------------------------

We went to 3.6.3 and are still getting the error. 7 out of 25 builds threw the 
exception and failed. Here's the latest one:
{code:java}
2020:11:07-12:34:37 [WARNING] Failed to load provider from: 
org.codehaus.gmaven.runtime.loader.artifact.ArtifactProviderLoader@4024d839
org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not 
transfer artifact org.apache.ant:ant-launcher:jar:1.7.1 from/to internal-nexus 
(http://ml-pecb-dk01.alipacn.com:50005/repository/alip-repo/): Entry 
[id:747][route:{}->http://ml-pecb-dk01.alipacn.com:50005][state:null] has not 
been leased from this pool
 org.apache.ant:ant-launcher:jar:1.7.1{code}
As mentioned previously it's not on the same artifact.

These are the arguments that Maven gets run with:
{code:java}
MAVEN_ARGS="\
 -s $MAVEN_SETTINGS \
 -Drepo.url=$ARTIFACT_REPOSITORY_ROOT_URL \
 --batch-mode \
 -Ddeploy-type=$DEPLOY_TYPE \
 -Dmaven.bundles.profile=$SITE_ID \
 -Dpmd.skip=true \
 -Dnep-ho.pmd.skip=true \
 -DskipTests=true \
 -Dnep-core.test.skip=true \
 -Dmaven.test.skip=true \
 -DGenApiDoc=false \
 -DskipLicenseCheck=true \
 -DdownloadSources=false \
 -Dmaven.javadoc.skip=true \
 -Djacoco.skip=true \
 -Dorg.slf4j.simpleLogger.defaultLogLevel=info \
 -Dorg.slf4j.simpleLogger.showDateTime=true \
 -Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy:MM:dd-HH:mm:ss \
 -Dmaven.wagon.http.retryHandler.count=3 \
 -Dmaven.wagon.http.pool=false \
"{code}
then we run (via Jenkins in a docker container agent)

mvn $MAVEN_ARGS $ARGS

where $ARGS come in as the phases, like "clean install"

The artifact repository is Nexus 3.28.1

I can gladly provide any other information that may be useful.

> Intermittent java.lang.IllegalStateException - entry has not been leased from 
> this pool
> ---------------------------------------------------------------------------------------
>
>                 Key: MNG-7012
>                 URL: https://issues.apache.org/jira/browse/MNG-7012
>             Project: Maven
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.6.0
>         Environment: Docker (debian:buster as the parent)
>            Reporter: Frank Rachel
>            Priority: Major
>
> We are sporadically getting this error:
> {code:java}
> 2020:11:03-02:39:51 [WARNING] Failed to load provider from: 
> org.codehaus.gmaven.runtime.loader.artifact.ArtifactProviderLoader@46256128
> org.apache.maven.artifact.resolver.ArtifactResolutionException: Could not 
> transfer artifact jline:jline:jar:0.9.94 from/to internal-nexus 
> (http://ml-pecb-dk01.alipacn.com:50005/repository/alip-repo/): Entry 
> [id:541][route:{}->http://ml-pecb-dk01.alipacn.com:50005][state:null] has not 
> been leased from this pool
> jline:jline:jar:0.9.94{code}
> in our builds when download artifact from our Nexus repo. This happened under 
> 3.5.4, and stil under 3.6.0 (we can't yet upgrade to 3.6.3, but will be able 
> to soon).
> It's not always on the same artifact as the exception. This seems to happen 
> for about 10% of our builds.. we just re-run it and most of the times it then 
> works.
> It also didn't seem to happen when we were using Artifactory (an old version) 
> instead of Nexus, though not sure that's related since a lot of other things 
> changed at the same time.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to