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

Endless loop in DefaultInvoker.getProperty when accessing field via getter/setter without @

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The following script for some reason will make Jenkins go out of memory and will never complete the execution.

      node {
      	HipNotifier chip = new HipNotifier('A')
          echo chip.name	
      }
      
      public class HipNotifier {
          private String name;
      
          public HipNotifier(String pName) {
              this.name = pName
          }
      
          String getName() {
              return name
          }
      }
      

        Attachments

          Issue Links

            Activity

            vexdev Luca Vitucci created issue -
            vexdev Luca Vitucci made changes -
            Field Original Value New Value
            Description The following script for some reason will make Jenkins go out of memory and will never complete the execution.


            {code:java}
            node {
            HipNotifier chip = new HipNotifier('A', 'B', ["C","D"])
                echo chip.name
            }

            public class HipNotifier {
                private String name;
                private String imageUrl;
                private List<String> quotes;

                public HipNotifier(String pName, String imageUrl, List<String> pQuotes) {
                    this.name = pName
                    this.quotes = pQuotes
                    this.imageUrl = imageUrl
                }

                String getName() {
                    return name
                }

                public String getUrl() {
                    return imageUrl;
                }

                public String getRandomQuote() {
                    return quotes.get(new Random().nextInt(quotes.size()))
                }
            }
            {code}
            The following script for some reason will make Jenkins go out of memory and will never complete the execution.


            {code:java}
            node {
            HipNotifier chip = new HipNotifier('A', 'B', ["C", "D"])
                echo chip.name
            }

            public class HipNotifier {
                private String name;
                private String imageUrl;
                private List<String> quotes;

                public HipNotifier(String pName, String imageUrl, List<String> pQuotes) {
                    this.name = pName
                    this.quotes = pQuotes
                    this.imageUrl = imageUrl
                }

                String getName() {
                    return name
                }
            }
            {code}
            vexdev Luca Vitucci made changes -
            Description The following script for some reason will make Jenkins go out of memory and will never complete the execution.


            {code:java}
            node {
            HipNotifier chip = new HipNotifier('A', 'B', ["C", "D"])
                echo chip.name
            }

            public class HipNotifier {
                private String name;
                private String imageUrl;
                private List<String> quotes;

                public HipNotifier(String pName, String imageUrl, List<String> pQuotes) {
                    this.name = pName
                    this.quotes = pQuotes
                    this.imageUrl = imageUrl
                }

                String getName() {
                    return name
                }
            }
            {code}
            The following script for some reason will make Jenkins go out of memory and will never complete the execution.


            {code:java}
            node {
            HipNotifier chip = new HipNotifier('A')
                echo chip.name
            }

            public class HipNotifier {
                private String name;

                public HipNotifier(String pName) {
                    this.name = pName
                }

                String getName() {
                    return name
                }
            }
            {code}
            jglick Jesse Glick made changes -
            Labels hang outofmemoryerror hang outofmemoryerror robustness
            jglick Jesse Glick made changes -
            Summary Build is going OutOfMemory Flow goes into endless loop in DefaultInvoker.getProperty when accessing field via getter
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-25550 [ JENKINS-25550 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 166884 ] JNJira + In-Review [ 182502 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-32986 [ JENKINS-32986 ]
            jglick Jesse Glick made changes -
            Component/s workflow-cps-plugin [ 21713 ]
            Component/s pipeline [ 21692 ]
            danielbeck Daniel Beck made changes -
            Epic Link JENKINS-35390 [ 171183 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-38021 [ JENKINS-38021 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "groovy-cps PR 45 (Web Link)" [ 15344 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-38021 [ JENKINS-38021 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-38021 [ JENKINS-38021 ]
            jglick Jesse Glick made changes -
            Summary Flow goes into endless loop in DefaultInvoker.getProperty when accessing field via getter Endless loop in DefaultInvoker.getProperty when accessing field via getter/setter without @
            jglick Jesse Glick made changes -
            Remote Link This issue links to "Groovy docs: Properties (Web Link)" [ 15347 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-41412 [ JENKINS-41412 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-41984 [ JENKINS-41984 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-42170 [ JENKINS-42170 ]
            leedega Kevin Phillips made changes -
            Link This issue relates to JENKINS-45834 [ JENKINS-45834 ]
            dnusbaum Devin Nusbaum made changes -
            Remote Link This issue links to "cloudbees/groovy-cps#95 (Web Link)" [ 22418 ]

              People

              Assignee:
              jglick Jesse Glick
              Reporter:
              vexdev Luca Vitucci
              Votes:
              4 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: