• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core, (1)
      maven-plugin
    • None

      Hi,

      After upgrading from 1.596 to 1.598 I am unable to run any Maven Jobs

      I am getting the following StackOverFlow Error.

      Parsing POMs
      ERROR: Failed to parse POMs
      java.io.IOException: remote file operation failed: /tr/j/jh2/workspace/Cannon_Test_maven at hudson.remoting.Channel@4d4d472e:01-Cannon2: java.io.IOException: Remote call on 01-Cannon2 failed
      	at hudson.FilePath.act(FilePath.java:985)
      	at hudson.FilePath.act(FilePath.java:967)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:959)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      	at hudson.model.Run.execute(Run.java:1718)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      	at hudson.model.ResourceController.execute(ResourceController.java:89)
      	at hudson.model.Executor.run(Executor.java:240)
      Caused by: java.io.IOException: Remote call on 01-Cannon2 failed
      	at hudson.remoting.Channel.call(Channel.java:760)
      	at hudson.FilePath.act(FilePath.java:978)
      	... 8 more
      Caused by: java.lang.StackOverflowError
      	at java.lang.ReflectiveOperationException.<init>(ReflectiveOperationException.java:89)
      	at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:72)
      	
      	at sun.reflect.GeneratedMethodAccessor20.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.$Proxy30.lookup(Unknown Source)
      
      	at sun.reflect.GeneratedMethodAccessor20.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.$Proxy30.lookup(Unknown Source)
      
      	...
      	1000 lines repeating
      	...
      
      	at com.sun.proxy.$Proxy30.lookup(Unknown Source)
      	at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at ......remote call to 01-Cannon2(Native Method)
      	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
      	at hudson.remoting.Channel.call(Channel.java:752)
      	... 9 more
      

          [JENKINS-26601] StackOverflow Maven Job Parse Poms

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3961
          [FIXED JENKINS-26601] Partly reverting #1453 to avoid hitting https://github.com/google/guice/issues/899. (Revision a0942b88346d66770336daec7bf82063163e8001)

          Result = SUCCESS
          jesse glick : a0942b88346d66770336daec7bf82063163e8001
          Files :

          • pom.xml
          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #3961 [FIXED JENKINS-26601] Partly reverting #1453 to avoid hitting https://github.com/google/guice/issues/899 . (Revision a0942b88346d66770336daec7bf82063163e8001) Result = SUCCESS jesse glick : a0942b88346d66770336daec7bf82063163e8001 Files : pom.xml changelog.html

          How difficult it is to create a test case for this bug?

          Rade Martinovic added a comment - How difficult it is to create a test case for this bug?

          DI2E SysAdmin added a comment -

          Will the fix be included in 1.599? And when is that expected to be released?

          DI2E SysAdmin added a comment - Will the fix be included in 1.599? And when is that expected to be released?

          Shalom Kazaz added a comment -

          example project attached tc-jenkins.zip

          when parent pom is in remote repo jenkins fails.
          the project:
          two modules referencing a parent deployed in artifactory. a root pom as reactor.

          jenkins 1.598
          simple maven job.
          local maven 3.2.5 home, but same happens with auto install.
          checks out ./project
          maven build step: clean install
          settings.xml containing artifactory mirror in jenkins home .m2/settings.xml
          parent deployed to artifactory

          when run on master:
          Parsing POMs
          FATAL: null
          java.lang.StackOverflowError
          at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:72)

          build the jenkins workspace manually with mvn clean install succeeds and downloads the parent from artifactory.
          now the jenkins job works because the parent is in the local repo.
          remove the settings.xml from jenkins home .m2/settings.xml , jenkins job fails with same exception although the parent is still in the local repo.
          supplly Maven settings.xml and Global settings.xml configured with artifactory mirror, by config file plugin. jenkins job succeeds again.
          delete the parent from the local repo. jenkins job fails again.
          if I add on this 'Resolve artifacts from Artifactory' the jenkins job is stuck.

          same thing when configuring jenkins to Use private Maven repository

          downgrade to 1.597 all is working again

          Shalom Kazaz added a comment - example project attached tc-jenkins.zip when parent pom is in remote repo jenkins fails. the project: two modules referencing a parent deployed in artifactory. a root pom as reactor. jenkins 1.598 simple maven job. local maven 3.2.5 home, but same happens with auto install. checks out ./project maven build step: clean install settings.xml containing artifactory mirror in jenkins home .m2/settings.xml parent deployed to artifactory when run on master: Parsing POMs FATAL: null java.lang.StackOverflowError at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:72) build the jenkins workspace manually with mvn clean install succeeds and downloads the parent from artifactory. now the jenkins job works because the parent is in the local repo. remove the settings.xml from jenkins home .m2/settings.xml , jenkins job fails with same exception although the parent is still in the local repo. supplly Maven settings.xml and Global settings.xml configured with artifactory mirror, by config file plugin. jenkins job succeeds again. delete the parent from the local repo. jenkins job fails again. if I add on this 'Resolve artifacts from Artifactory' the jenkins job is stuck. same thing when configuring jenkins to Use private Maven repository downgrade to 1.597 all is working again

          Jesse Glick added a comment -

          The fix should be in 1.599.

          Jesse Glick added a comment - The fix should be in 1.599.

          DI2E SysAdmin added a comment - - edited

          Can someone confirm that this fix is included in 1.599?

          DI2E SysAdmin added a comment - - edited Can someone confirm that this fix is included in 1.599?

          Thomas Suckow added a comment -

          I no longer see stack overflow in 1.599

          Thomas Suckow added a comment - I no longer see stack overflow in 1.599

          Andreas Horst added a comment -

          Yes, confirmed. Everything looking pretty stable over here.

          Andreas Horst added a comment - Yes, confirmed. Everything looking pretty stable over here.

          Petteri Kauko added a comment -

          When will this be fixed in the LTS? I ran into this after installing 1.580.3 but I don't see anything in the upcoming changes for LTS.

          Petteri Kauko added a comment - When will this be fixed in the LTS? I ran into this after installing 1.580.3 but I don't see anything in the upcoming changes for LTS.

          DI2E SysAdmin added a comment -

          Thank you for the verification.

          DI2E SysAdmin added a comment - Thank you for the verification.

            jglick Jesse Glick
            gcummings Geoff Cummings
            Votes:
            12 Vote for this issue
            Watchers:
            36 Start watching this issue

              Created:
              Updated:
              Resolved: