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

JENKINS -Error Message:FATAL: null java.lang.StackOverflowError at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListen

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • tfs-plugin
    • None
    • SIT Environment

      Hi I am using TFS as my source repository and configured Jenkins with TFS for moving  automated builds for every check-In and it was working fine for more than a month.

      But now I have ran into below error where I am not finding any solution please help me on this.

      Error Message:

      [WS-CLEANUP] Deleting project workspace...
      [WS-CLEANUP] Done
      FATAL: null
      java.lang.StackOverflowError
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:304)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:304)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:304)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:304)
      at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListenerList.java:304)

       

      Currently my Versions are :

      Team Foundation Server Plug-In version is 5.126.0

      Jenkins - 2.89.4

       

      I have also tried restarting my slave services on windows server and restarted my windows server but it didn't fix my issue.

       

       

      Please help me on this.

      Thanks in Advance . Really appreciate your Time and Support .

       

       

       

       

       

          [JENKINS-50331] JENKINS -Error Message:FATAL: null java.lang.StackOverflowError at com.microsoft.tfs.util.listeners.StandardListenerList$ListenerNode.addListener(StandardListen

          Allan BURDAJEWICZ added a comment - There are some clue about how to fix this in https://social.msdn.microsoft.com/Forums/vstudio/en-US/2ace3851-8e1c-4aee-8e2d-192b0810213a/tfs-sdk-leak?forum=tee

          Pierre Beitz added a comment -

          Is there an update on this issue? It looks like a duplicate of https://issues.jenkins-ci.org/browse/JENKINS-35432.

          It was also observed on a Jenkins 2.138.3 with TFS Plugin 5.142.0.

          It looks like the link shared by Allan might be helpful to cook a fix.

          Pierre Beitz added a comment - Is there an update on this issue? It looks like a duplicate of  https://issues.jenkins-ci.org/browse/JENKINS-35432 . It was also observed on a Jenkins 2.138.3 with TFS Plugin 5.142.0. It looks like the link shared by Allan might be helpful to cook a fix.

          Alejandro Jurado Walls added a comment - - edited

          I am seeing this issue too. An update would be appreciated.

          Environment where this issue is observed:

          Jenkins 2.164.3
          TFS Plug-in: 5.133.0

           

          Alejandro Jurado Walls added a comment - - edited I am seeing this issue too. An update would be appreciated. Environment where this issue is observed: Jenkins 2.164.3 TFS Plug-in: 5.133.0  

          Jatin Bedi added a comment -

          +1.

          Any updates on this would be appreciated.

          Jatin Bedi added a comment - +1. Any updates on this would be appreciated.

          Owen Mehegan added a comment -

          jpricketmsft I assigned this ticket to you because you've made sone of the most recent commits to this plugin, whereas the 'redsolo' user this was assigned to has not been active in this Jira instance since 2014. I hope that's OK. If you or one of the other current maintainers of the plugin should be made the default assignee for new issues, let me know and I can change that setting.

          CloudBees Support has received a case from a customer who is affected by this bug, so I was hoping to get some attention on it, since we do not maintain this plugin.

          Owen Mehegan added a comment - jpricketmsft I assigned this ticket to you because you've made sone of the most recent commits to this plugin, whereas the 'redsolo' user this was assigned to has not been active in this Jira instance since 2014. I hope that's OK. If you or one of the other current maintainers of the plugin should be made the default assignee for new issues, let me know and I can change that setting. CloudBees Support has received a case from a customer who is affected by this bug, so I was hoping to get some attention on it, since we do not maintain this plugin.

          Allan BURDAJEWICZ added a comment - - edited

          I also found http://blogs.pitx3.com/2016/01/24/mulesoft-microsoft-java-tfs-stackoverflowerror. This user has reached out to Microsoft and while they did not confirm it was a bug they provided him with a workaround.

          It is mentioned in the release note that Stackoverlflow issue is solved in https://github.com/microsoft/team-explorer-everywhere/releases/tag/v14.0.3. If we have a look at the source code of the SDK) however, the TFSConfigurationServer is closed after the TFSTeamProjectCollection and (while the workaround is to close it before).

          We can see that the TFS plugin does already this in a way. But there is some legacy code using reflection that could be cleaned up. Proposed https://github.com/jenkinsci/tfs-plugin/pull/230

          Allan BURDAJEWICZ added a comment - - edited I also found http://blogs.pitx3.com/2016/01/24/mulesoft-microsoft-java-tfs-stackoverflowerror . This user has reached out to Microsoft and while they did not confirm it was a bug they provided him with a workaround. It is mentioned in the release note that Stackoverlflow issue is solved in https://github.com/microsoft/team-explorer-everywhere/releases/tag/v14.0.3 . If we have a look at the source code of the SDK ) however, the TFSConfigurationServer is closed after the TFSTeamProjectCollection and (while the workaround is to close it before). We can see that the TFS plugin does already this in a way . But there is some legacy code using reflection that could be cleaned up. Proposed https://github.com/jenkinsci/tfs-plugin/pull/230

          Owen Mehegan added a comment -

          kelliejos leantk bbenz I just wanted to ping a few of you since you all seem to be recent contributors to this plugin. At CloudBees, we have a couple of customers who have been affected by the issue described here, and they are forced to restart Jenkins regularly to work around it. We have proposed this PR as a possible solution: https://github.com/jenkinsci/tfs-plugin/pull/230 If there is anything else we can do to work with you on this, please let us know!

          Owen Mehegan added a comment - kelliejos leantk bbenz I just wanted to ping a few of you since you all seem to be recent contributors to this plugin. At CloudBees, we have a couple of customers who have been affected by the issue described here, and they are forced to restart Jenkins regularly to work around it. We have proposed this PR as a possible solution:  https://github.com/jenkinsci/tfs-plugin/pull/230  If there is anything else we can do to work with you on this, please let us know!

          I have also proposed https://github.com/jenkinsci/tfs-plugin/pull/233 to deal with potentially unclosed connections.

          Allan BURDAJEWICZ added a comment - I have also proposed https://github.com/jenkinsci/tfs-plugin/pull/233 to deal with potentially unclosed connections.

          Ian Williams added a comment -

          In JENKINS-58030, oli_at_jsi, mentioned dastahel is now responsible for the plugin. Mentioning to see if that provides traction.

          Have not seen any real action on the plugin since 2018-07, which is just before MS bought GitHub. Wonder if they've just abandoned support for TFS?

          Ian Williams added a comment - In JENKINS-58030 , oli_at_jsi , mentioned dastahel is now responsible for the plugin. Mentioning to see if that provides traction. Have not seen any real action on the plugin since 2018-07, which is just before MS bought GitHub. Wonder if they've just abandoned support for TFS?

          Chris Page added a comment -

          Any word or updates to this issue?  This overflow error happens to us frequently, and people are getting angry that we keep having to restart the Jenkins server in the middle of the day to get things back up and running.  Thanks!

          Chris Page added a comment - Any word or updates to this issue?  This overflow error happens to us frequently, and people are getting angry that we keep having to restart the Jenkins server in the middle of the day to get things back up and running.  Thanks!

            jpricketmsft Jason Prickett
            gtilak g Tilak
            Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: