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

StackOverflow when trying to get Pipeline GDSL file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      Jenkins 1.639 (on Windows 7 machine), installed as a service.
      Pipeline: 1.13
    • Similar Issues:

      Description

      I got an error when trying to download IDEA GDSL file from my local Jenkins.
      No access control is enabled on the host.

      java.lang.StackOverflowError
      	at java.io.File.<init>(Unknown Source)
      	at java.io.FilePermission$1.run(Unknown Source)
      	at java.io.FilePermission$1.run(Unknown Source)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.io.FilePermission.init(Unknown Source)
      	at java.io.FilePermission.<init>(Unknown Source)
      	at sun.net.www.protocol.file.FileURLConnection.getPermission(Unknown Source)
      	at sun.net.www.protocol.jar.JarFileFactory.getPermission(Unknown Source)
      	at sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile(Unknown Source)
      	at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
      	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
      	at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Source)
      	at java.net.URL.openStream(Unknown Source)
      	at org.kohsuke.stapler.ClassDescriptor$ASM.loadParametersFromAsm(ClassDescriptor.java:262)
      	at org.kohsuke.stapler.ClassDescriptor$ASM.access$100(ClassDescriptor.java:212)
      	at org.kohsuke.stapler.ClassDescriptor.loadParameterNames(ClassDescriptor.java:145)
      	at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:179)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.loadConstructorParamNames(DescribableHelper.java:612)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.access$000(DescribableHelper.java:77)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper$Schema.<init>(DescribableHelper.java:164)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.schemaFor(DescribableHelper.java:148)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper$ParameterType.of(DescribableHelper.java:326)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper$ParameterType.of(DescribableHelper.java:344)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper$Schema.<init>(DescribableHelper.java:168)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper.schemaFor(DescribableHelper.java:148)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper$ParameterType.of(DescribableHelper.java:326)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper$ParameterType.of(DescribableHelper.java:344)
      	at org.jenkinsci.plugins.workflow.structs.DescribableHelper$Schema.<init>(DescribableHelper.java:168)
      

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Some particular plugin triggers the bug. Multiple SCMs is known to.

            Show
            jglick Jesse Glick added a comment - Some particular plugin triggers the bug. Multiple SCMs is known to.
            Hide
            nickolayr Nickolay Rumyantsev added a comment -

            This is my testing instance, it has a hundred of plugins installed for evaluation purposes. I can provide you a list but it should take pretty much time to check them all

            Show
            nickolayr Nickolay Rumyantsev added a comment - This is my testing instance, it has a hundred of plugins installed for evaluation purposes. I can provide you a list but it should take pretty much time to check them all
            Hide
            kwhetstone Kristin Whetstone added a comment -

            Just submitted a PR for this for the workflow plugin.

            Show
            kwhetstone Kristin Whetstone added a comment - Just submitted a PR for this for the workflow plugin.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            step-api/src/main/java/org/jenkinsci/plugins/workflow/structs/DescribableHelper.java
            step-api/src/test/java/org/jenkinsci/plugins/workflow/structs/DescribableHelperTest.java
            http://jenkins-ci.org/commit/workflow-plugin/e51ddbbe6ec954dc4bccefb123528ddf28162d5e
            Log:
            [FIXED JENKINS-32925] Merged #351.

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/0b0b2aa0c5e9...e51ddbbe6ec9

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md step-api/src/main/java/org/jenkinsci/plugins/workflow/structs/DescribableHelper.java step-api/src/test/java/org/jenkinsci/plugins/workflow/structs/DescribableHelperTest.java http://jenkins-ci.org/commit/workflow-plugin/e51ddbbe6ec954dc4bccefb123528ddf28162d5e Log: [FIXED JENKINS-32925] Merged #351. Compare: https://github.com/jenkinsci/workflow-plugin/compare/0b0b2aa0c5e9...e51ddbbe6ec9
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/dslReferenceContent.groovy
            http://jenkins-ci.org/commit/workflow-plugin/ff210c3819a66e6fec7772a3242ff105c3646513
            Log:
            JENKINS-32925 Handle recursion

            Use stack to keep track of traversal.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/dslReferenceContent.groovy http://jenkins-ci.org/commit/workflow-plugin/ff210c3819a66e6fec7772a3242ff105c3646513 Log: JENKINS-32925 Handle recursion Use stack to keep track of traversal.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/dslReferenceContent.groovy
            http://jenkins-ci.org/commit/workflow-plugin/9bf98f696517d3b8d71a83d6b1114eae03096cd8
            Log:
            Merge pull request #371 from kohsuke/JENKINS-32925

            JENKINS-32925 Handle recursion

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/041c313d2b89...9bf98f696517

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/dslReferenceContent.groovy http://jenkins-ci.org/commit/workflow-plugin/9bf98f696517d3b8d71a83d6b1114eae03096cd8 Log: Merge pull request #371 from kohsuke/ JENKINS-32925 JENKINS-32925 Handle recursion Compare: https://github.com/jenkinsci/workflow-plugin/compare/041c313d2b89...9bf98f696517
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/dslReferenceContent.groovy
            http://jenkins-ci.org/commit/workflow-cps-plugin/bf6f1fb7f31747315ca1c972e71f88afc96235d8
            Log:
            JENKINS-32925 Handle recursion

            Use stack to keep track of traversal.

            Originally-Committed-As: ff210c3819a66e6fec7772a3242ff105c3646513

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/Snippetizer/dslReferenceContent.groovy http://jenkins-ci.org/commit/workflow-cps-plugin/bf6f1fb7f31747315ca1c972e71f88afc96235d8 Log: JENKINS-32925 Handle recursion Use stack to keep track of traversal. Originally-Committed-As: ff210c3819a66e6fec7772a3242ff105c3646513
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/ArrayType.java
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/AtomicType.java
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/DescribableModel.java
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/DescribableParameter.java
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/EnumType.java
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/ErrorType.java
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/HeterogeneousObjectType.java
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/HomogeneousObjectType.java
            plugin/src/main/java/org/jenkinsci/plugins/structs/describable/ParameterType.java
            plugin/src/test/java/org/jenkinsci/plugins/structs/describable/DescribableModelTest.java
            http://jenkins-ci.org/commit/structs-plugin/29ee8d0ac5a80ae8c786e75192d2b352759452a4
            Log:
            Merge pull request #3 from jglick/JENKINS-32925-redux

            Fixed DescribableModel.toString to stop recursion

            Compare: https://github.com/jenkinsci/structs-plugin/compare/34b22f038adb...29ee8d0ac5a8

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: plugin/src/main/java/org/jenkinsci/plugins/structs/describable/ArrayType.java plugin/src/main/java/org/jenkinsci/plugins/structs/describable/AtomicType.java plugin/src/main/java/org/jenkinsci/plugins/structs/describable/DescribableModel.java plugin/src/main/java/org/jenkinsci/plugins/structs/describable/DescribableParameter.java plugin/src/main/java/org/jenkinsci/plugins/structs/describable/EnumType.java plugin/src/main/java/org/jenkinsci/plugins/structs/describable/ErrorType.java plugin/src/main/java/org/jenkinsci/plugins/structs/describable/HeterogeneousObjectType.java plugin/src/main/java/org/jenkinsci/plugins/structs/describable/HomogeneousObjectType.java plugin/src/main/java/org/jenkinsci/plugins/structs/describable/ParameterType.java plugin/src/test/java/org/jenkinsci/plugins/structs/describable/DescribableModelTest.java http://jenkins-ci.org/commit/structs-plugin/29ee8d0ac5a80ae8c786e75192d2b352759452a4 Log: Merge pull request #3 from jglick/ JENKINS-32925 -redux Fixed DescribableModel.toString to stop recursion Compare: https://github.com/jenkinsci/structs-plugin/compare/34b22f038adb...29ee8d0ac5a8

              People

              • Assignee:
                kwhetstone Kristin Whetstone
                Reporter:
                nickolayr Nickolay Rumyantsev
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: