Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26595

StackOverflowError in Maven RedeployPublisher after upgrade to 1.598

    Details

    • Similar Issues:

      Description

      After upgrading to 1.598 jobs with a Deploy Maven Artifacts post-build step fail with the following StackOverflowError:

      Maven RedeployPublisher use remote X maven settings from : /home/jenkins/.m2/settings.xml
      [INFO] Deployment in http://x.x.x/nexus/content/repositories/x-snapshots/ (id=x,uniqueVersion=true)
      Deploying the main artifact x-0.0.1-SNAPSHOT.jar
      FATAL: null
      java.lang.StackOverflowError
      	at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
      	at com.sun.proxy.$Proxy79.lookup(Unknown Source)
      	at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
      	at com.sun.proxy.$Proxy79.lookup(Unknown Source)
      

      Removing the Deploy Maven Artifacts post-build steps fixes the builds. Other post-build steps (e.g. Sonar) work fine.

        Attachments

          Issue Links

            Activity

            Hide
            rahook Robert Hook added a comment -

            My error is similar, but from a different stage:

            using settings config with name settings.xml
            using global settings config with name settings.xml
            Maven RedeployPublisher use remote  maven settings from : /tmp/settings7301547955354275431.xml
            [INFO] Deployment in http://XXXXXXX:8081/artifactory/libs-snapshot-local (id=libs-snapshot,uniqueVersion=true)
            Deploying the main artifact XXXXX-1.13.0-SNAPSHOT.jar
            FATAL: null
            java.lang.StackOverflowError
            	at java.lang.Exception.<init>(Exception.java:102)
            	at java.lang.ReflectiveOperationException.<init>(ReflectiveOperationException.java:89)
            	at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:72)
            	at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
            	at com.sun.proxy.$Proxy82.lookup(Unknown Source)
            	at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
            	at com.sun.proxy.$Proxy82.lookup(Unknown Source)
            	at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
            	at com.sun.proxy.$Proxy82.lookup(Unknown Source)
            	at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
            	at com.sun.proxy.$Proxy82.lookup(Unknown Source)
            	at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            	at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
            	at com.sun.proxy.$Proxy82.lookup(Unknown Source)
            	at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:606)
            
            and so on without end
            
            Show
            rahook Robert Hook added a comment - My error is similar, but from a different stage: using settings config with name settings.xml using global settings config with name settings.xml Maven RedeployPublisher use remote maven settings from : /tmp/settings7301547955354275431.xml [INFO] Deployment in http: //XXXXXXX:8081/artifactory/libs-snapshot-local (id=libs-snapshot,uniqueVersion= true ) Deploying the main artifact XXXXX-1.13.0-SNAPSHOT.jar FATAL: null java.lang.StackOverflowError at java.lang.Exception.<init>(Exception.java:102) at java.lang.ReflectiveOperationException.<init>(ReflectiveOperationException.java:89) at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:72) at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40) at com.sun.proxy.$Proxy82.lookup(Unknown Source) at sun.reflect.GeneratedMethodAccessor631.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) and so on without end
            Hide
            andrey_boytsov Andrey Boytsov added a comment -

            @Robert

            Thanks for sharing. Actually, your issue looks like exactly JENKINS-26595 to me. Is there something I missed? They have very similar error logs and they both appear while "Deploying the main artifact".

            I added a new issue: JENKINS-26613. Not sure whether it is a duplicate of JENKINS-26601 or not.

            Show
            andrey_boytsov Andrey Boytsov added a comment - @Robert Thanks for sharing. Actually, your issue looks like exactly JENKINS-26595 to me. Is there something I missed? They have very similar error logs and they both appear while "Deploying the main artifact". I added a new issue: JENKINS-26613 . Not sure whether it is a duplicate of JENKINS-26601 or not.
            Hide
            jmkgreen James Green added a comment -

            Tried two of our Maven builds and they both fail with StackOverflowError on deploying the first artefact to Nexus too.

            Downgraded to 1.597 fixed it here also.

            Show
            jmkgreen James Green added a comment - Tried two of our Maven builds and they both fail with StackOverflowError on deploying the first artefact to Nexus too. Downgraded to 1.597 fixed it here also.
            Hide
            acdha acdha added a comment -

            We had the same problem – a quick dpkg install of http://pkg.jenkins-ci.org/debian/binary/jenkins_1.597_all.deb fixed it as well.

            Show
            acdha acdha added a comment - We had the same problem – a quick dpkg install of http://pkg.jenkins-ci.org/debian/binary/jenkins_1.597_all.deb fixed it as well.
            Hide
            tftd Steve Todorov added a comment - - edited

            After upgrading to the latest 1.598 we had the same StackOverflow exception as everybody. Downgrading Maven Project Plugin to version 2.7.1 solved the issue for us.

            Show
            tftd Steve Todorov added a comment - - edited After upgrading to the latest 1.598 we had the same StackOverflow exception as everybody. Downgrading Maven Project Plugin to version 2.7.1 solved the issue for us.

              People

              • Assignee:
                Unassigned
                Reporter:
                ahorst Andreas Horst
              • Votes:
                12 Vote for this issue
                Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: