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

Stack Trace when going to main configuration page

    XMLWordPrintable

Details

    Description

      When I go (in the web interface) to the main Jenkins configuration page, a stack trace is generated on the Jenkins console. No adverse results appear on the web page itself. From the stack track, it looks like it is connected to the warnings plugin.

      This is Jenkins 1.446 and Warnings plugin 3.26 (the latest available at the time of reporting). I have been noticing this stack track for some time now, including under earlier releases (I'm not sure how recently it started).

      The stack trace:

      05-Jan-2012 11:35:26 hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: descriptor.getPropertyType(instance,field).itemTypeDescriptorOrDie. Reason: java.lang.reflect.InvocationTargetException
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
              at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
              at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
              at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
              at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
              at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
              at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
              at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
              at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:72)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
              at org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:46)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
              at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
              at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
              at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
              at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
              at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:98)
              at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:270)
              (snip)
              at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
              at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.AssertionError: null is missing its descriptor in public hudson.util.CopyOnWriteList hudson.plugins.warnings.WarningsDescriptor.getParsers(). See https://wiki.jenkins-ci.org/display/JENKINS/My+class+is+missing+descriptor
              at hudson.model.Descriptor$PropertyType.getItemTypeDescriptorOrDie(Descriptor.java:192)
              ... 161 more
      05-Jan-2012 11:22:05 hudson.model.Run run
      

      Attachments

        Issue Links

          Activity

            drulli Ulli Hafner added a comment -

            Which version of the analysis-core plug-in do you have installed?

            drulli Ulli Hafner added a comment - Which version of the analysis-core plug-in do you have installed?

            From the plugin manager page:
            Static Analysis Utilities - This plug-in provides utilities for the static code analysis plug-ins. - 1.37
            Task Scanner Plug-in - This plug-in scans for open tasks in a specified set of files in the project modules and visualizes the results. - 4.26
            Warnings Plug-in - This plug-in collects the compiler warnings of the project modules and visualizes the results. - 3.26

            We are not currently making use of the warning plugin.

            mwebber Matthew Webber added a comment - From the plugin manager page: Static Analysis Utilities - This plug-in provides utilities for the static code analysis plug-ins. - 1.37 Task Scanner Plug-in - This plug-in scans for open tasks in a specified set of files in the project modules and visualizes the results. - 4.26 Warnings Plug-in - This plug-in collects the compiler warnings of the project modules and visualizes the results. - 3.26 We are not currently making use of the warning plugin.
            drulli Ulli Hafner added a comment -

            Ok, I see. The plug-ins are all up to date. Seems that my implementation does not follow a new Jenkins pattern...

            drulli Ulli Hafner added a comment - Ok, I see. The plug-ins are all up to date. Seems that my implementation does not follow a new Jenkins pattern...
            cschulz C. S. added a comment -

            Are there any news?

            cschulz C. S. added a comment - Are there any news?

            It's still happening for me ... I guess Ulli has not had a chance to fix this yet.

            mwebber Matthew Webber added a comment - It's still happening for me ... I guess Ulli has not had a chance to fix this yet.
            drulli Ulli Hafner added a comment -

            Yes, that is right Currently my spare time is limited so I'm focussing on issues with higher priorities.

            drulli Ulli Hafner added a comment - Yes, that is right Currently my spare time is limited so I'm focussing on issues with higher priorities.
            ruckc Curtis Ruck added a comment -

            Are there any workarounds to get the config page to be usable again?

            ruckc Curtis Ruck added a comment - Are there any workarounds to get the config page to be usable again?

            I'm not aware of any workaround (other than disabling the warnings plugin, I guess).
            I haven't noticed any adverse effects from this bug - I certainly HOPE there aren't any!

            mwebber Matthew Webber added a comment - I'm not aware of any workaround (other than disabling the warnings plugin, I guess). I haven't noticed any adverse effects from this bug - I certainly HOPE there aren't any!
            drulli Ulli Hafner added a comment -

            @Curtis: This issue is only about an exception in the log that does not influence the plug-in behaviour.

            What exactly is not usable in your case? Maybe this is a different issue...

            drulli Ulli Hafner added a comment - @Curtis: This issue is only about an exception in the log that does not influence the plug-in behaviour. What exactly is not usable in your case? Maybe this is a different issue...
            ruckc Curtis Ruck added a comment -

            Without disabling the Warnings Plugin, I can't modify anything on the Config page.

            Additionally, we need the warnings plugin for warnings, so we are disabling it, bouncing jenkins, fixing the configuration, reenabling the plugin, and continuing forward.

            ruckc Curtis Ruck added a comment - Without disabling the Warnings Plugin, I can't modify anything on the Config page. Additionally, we need the warnings plugin for warnings, so we are disabling it, bouncing jenkins, fixing the configuration, reenabling the plugin, and continuing forward.

            Although I get the stack trace when I go to the system config page, I can still make changes on that page, and they appear to be saved correctly. When you say "I can't modify anything on the Config page", what exactly do you observe?

            mwebber Matthew Webber added a comment - Although I get the stack trace when I go to the system config page, I can still make changes on that page, and they appear to be saved correctly. When you say "I can't modify anything on the Config page", what exactly do you observe?

            Code changed in jenkins
            User: Ulli Hafner
            Path:
            clean.sh
            src/clean.sh
            src/main/java/hudson/plugins/warnings/GroovyParser.java
            src/main/java/hudson/plugins/warnings/ParserConfiguration.java
            src/main/java/hudson/plugins/warnings/WarningsDescriptor.java
            src/main/java/hudson/plugins/warnings/parser/ParserRegistry.java
            src/main/resources/hudson/plugins/warnings/GroovyParser/config.jelly
            src/main/resources/hudson/plugins/warnings/GroovyParser/config.properties
            src/main/resources/hudson/plugins/warnings/GroovyParser/config_de.properties
            src/main/resources/hudson/plugins/warnings/GroovyParser/config_ja.properties
            src/main/resources/hudson/plugins/warnings/GroovyParser/help-regexp.html
            src/main/resources/hudson/plugins/warnings/GroovyParser/help-regexp_de.html
            src/main/resources/hudson/plugins/warnings/GroovyParser/help-script.html
            src/main/resources/hudson/plugins/warnings/GroovyParser/help-script_de.html
            src/main/resources/hudson/plugins/warnings/GroovyParser/help-script_ja.html
            src/main/resources/hudson/plugins/warnings/WarningsPublisher/global.jelly
            src/main/resources/hudson/plugins/warnings/WarningsPublisher/global.properties
            src/main/resources/hudson/plugins/warnings/WarningsPublisher/global_de.properties
            src/main/resources/hudson/plugins/warnings/WarningsPublisher/global_ja.properties
            src/main/webapp/help-regexp.html
            src/main/webapp/help-regexp_de.html
            src/main/webapp/help-script.html
            src/main/webapp/help-script_de.html
            src/main/webapp/help-script_ja.html
            src/test/java/hudson/plugins/warnings/GroovyParserTest.java
            src/test/java/hudson/plugins/warnings/WarningsDescriptorTest.java
            src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java
            http://jenkins-ci.org/commit/warnings-plugin/0c94865c65c606786678c3fb77b0a7aae1ae9265
            Log:
            JENKINS-12307 Make GroovyParser a describable object.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: clean.sh src/clean.sh src/main/java/hudson/plugins/warnings/GroovyParser.java src/main/java/hudson/plugins/warnings/ParserConfiguration.java src/main/java/hudson/plugins/warnings/WarningsDescriptor.java src/main/java/hudson/plugins/warnings/parser/ParserRegistry.java src/main/resources/hudson/plugins/warnings/GroovyParser/config.jelly src/main/resources/hudson/plugins/warnings/GroovyParser/config.properties src/main/resources/hudson/plugins/warnings/GroovyParser/config_de.properties src/main/resources/hudson/plugins/warnings/GroovyParser/config_ja.properties src/main/resources/hudson/plugins/warnings/GroovyParser/help-regexp.html src/main/resources/hudson/plugins/warnings/GroovyParser/help-regexp_de.html src/main/resources/hudson/plugins/warnings/GroovyParser/help-script.html src/main/resources/hudson/plugins/warnings/GroovyParser/help-script_de.html src/main/resources/hudson/plugins/warnings/GroovyParser/help-script_ja.html src/main/resources/hudson/plugins/warnings/WarningsPublisher/global.jelly src/main/resources/hudson/plugins/warnings/WarningsPublisher/global.properties src/main/resources/hudson/plugins/warnings/WarningsPublisher/global_de.properties src/main/resources/hudson/plugins/warnings/WarningsPublisher/global_ja.properties src/main/webapp/help-regexp.html src/main/webapp/help-regexp_de.html src/main/webapp/help-script.html src/main/webapp/help-script_de.html src/main/webapp/help-script_ja.html src/test/java/hudson/plugins/warnings/GroovyParserTest.java src/test/java/hudson/plugins/warnings/WarningsDescriptorTest.java src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java http://jenkins-ci.org/commit/warnings-plugin/0c94865c65c606786678c3fb77b0a7aae1ae9265 Log: JENKINS-12307 Make GroovyParser a describable object.

            Code changed in jenkins
            User: Ulli Hafner
            Path:
            src/main/java/hudson/plugins/warnings/ConsoleParser.java
            src/main/java/hudson/plugins/warnings/ParserConfiguration.java
            src/main/java/hudson/plugins/warnings/WarningsDescriptor.java
            src/main/java/hudson/plugins/warnings/WarningsPublisher.java
            src/main/java/hudson/plugins/warnings/parser/ParserRegistry.java
            src/main/resources/hudson/plugins/warnings/ConsoleParser/config.jelly
            src/main/resources/hudson/plugins/warnings/ConsoleParser/config.properties
            src/main/resources/hudson/plugins/warnings/ConsoleParser/config_de.properties
            src/main/resources/hudson/plugins/warnings/ConsoleParser/config_ja.properties
            src/main/resources/hudson/plugins/warnings/ParserConfiguration/config.jelly
            src/main/resources/hudson/plugins/warnings/ParserConfiguration/config.properties
            src/main/resources/hudson/plugins/warnings/ParserConfiguration/config_de.properties
            src/main/resources/hudson/plugins/warnings/ParserConfiguration/config_ja.properties
            src/main/resources/hudson/plugins/warnings/WarningsPublisher/config.jelly
            src/main/resources/hudson/plugins/warnings/WarningsPublisher/config.properties
            src/main/resources/hudson/plugins/warnings/WarningsPublisher/config_de.properties
            src/main/resources/hudson/plugins/warnings/WarningsPublisher/config_ja.properties
            src/test/java/hudson/plugins/warnings/ConsoleParserTest.java
            src/test/java/hudson/plugins/warnings/ParserConfigurationTest.java
            src/test/java/hudson/plugins/warnings/parser/ParserRegistryIntegrationTest.java
            http://jenkins-ci.org/commit/warnings-plugin/ef880b867f7378b6c6242eb2d7cbe6bd551c0b23
            Log:
            JENKINS-12307 Added describables for all parser and pattern selection.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/ConsoleParser.java src/main/java/hudson/plugins/warnings/ParserConfiguration.java src/main/java/hudson/plugins/warnings/WarningsDescriptor.java src/main/java/hudson/plugins/warnings/WarningsPublisher.java src/main/java/hudson/plugins/warnings/parser/ParserRegistry.java src/main/resources/hudson/plugins/warnings/ConsoleParser/config.jelly src/main/resources/hudson/plugins/warnings/ConsoleParser/config.properties src/main/resources/hudson/plugins/warnings/ConsoleParser/config_de.properties src/main/resources/hudson/plugins/warnings/ConsoleParser/config_ja.properties src/main/resources/hudson/plugins/warnings/ParserConfiguration/config.jelly src/main/resources/hudson/plugins/warnings/ParserConfiguration/config.properties src/main/resources/hudson/plugins/warnings/ParserConfiguration/config_de.properties src/main/resources/hudson/plugins/warnings/ParserConfiguration/config_ja.properties src/main/resources/hudson/plugins/warnings/WarningsPublisher/config.jelly src/main/resources/hudson/plugins/warnings/WarningsPublisher/config.properties src/main/resources/hudson/plugins/warnings/WarningsPublisher/config_de.properties src/main/resources/hudson/plugins/warnings/WarningsPublisher/config_ja.properties src/test/java/hudson/plugins/warnings/ConsoleParserTest.java src/test/java/hudson/plugins/warnings/ParserConfigurationTest.java src/test/java/hudson/plugins/warnings/parser/ParserRegistryIntegrationTest.java http://jenkins-ci.org/commit/warnings-plugin/ef880b867f7378b6c6242eb2d7cbe6bd551c0b23 Log: JENKINS-12307 Added describables for all parser and pattern selection.

            Code changed in jenkins
            User: Ulli Hafner
            Path:
            src/main/java/hudson/plugins/warnings/ConsoleParser.java
            src/main/java/hudson/plugins/warnings/ParserConfiguration.java
            src/main/java/hudson/plugins/warnings/parser/ParserRegistry.java
            http://jenkins-ci.org/commit/warnings-plugin/f9ca3bb34e792769544a4599c8e52cd3b9f0b375
            Log:
            [Fixed JENKINS-12307] Refactoring.

            Compare: https://github.com/jenkinsci/warnings-plugin/compare/2b8c857...f9ca3bb

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/ConsoleParser.java src/main/java/hudson/plugins/warnings/ParserConfiguration.java src/main/java/hudson/plugins/warnings/parser/ParserRegistry.java http://jenkins-ci.org/commit/warnings-plugin/f9ca3bb34e792769544a4599c8e52cd3b9f0b375 Log: [Fixed JENKINS-12307] Refactoring. Compare: https://github.com/jenkinsci/warnings-plugin/compare/2b8c857...f9ca3bb

            Code changed in jenkins
            User: Ulli Hafner
            Path:
            src/main/java/hudson/plugins/warnings/parser/ParserRegistry.java
            http://jenkins-ci.org/commit/warnings-plugin/324d43ddcdd3b80bb85eb52e1d8ff88f7fd8d74e
            Log:
            JENKINS-12307 Show localized name of parser in list box.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/parser/ParserRegistry.java http://jenkins-ci.org/commit/warnings-plugin/324d43ddcdd3b80bb85eb52e1d8ff88f7fd8d74e Log: JENKINS-12307 Show localized name of parser in list box.

            Code changed in jenkins
            User: Ulli Hafner
            Path:
            src/main/java/hudson/plugins/warnings/WarningsPublisher.java
            http://jenkins-ci.org/commit/warnings-plugin/17cb850e429c27d6079ffdad9c9e89ab34426c4f
            Log:
            JENKINS-12307 Handle null values in constructor if user does not
            select a log file or file parser.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/WarningsPublisher.java http://jenkins-ci.org/commit/warnings-plugin/17cb850e429c27d6079ffdad9c9e89ab34426c4f Log: JENKINS-12307 Handle null values in constructor if user does not select a log file or file parser.

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/model/Descriptor.java
            test/src/test/java/hudson/model/DescriptorTest.java
            http://jenkins-ci.org/commit/jenkins/dcea7d5bf6a011518bbc642426d26073b337086a
            Log:
            JENKINS-12307 More helpful error message for getItemTypeDescriptorOrDie on a non-collection field.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/Descriptor.java test/src/test/java/hudson/model/DescriptorTest.java http://jenkins-ci.org/commit/jenkins/dcea7d5bf6a011518bbc642426d26073b337086a Log: JENKINS-12307 More helpful error message for getItemTypeDescriptorOrDie on a non-collection field.
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2004
            JENKINS-12307 More helpful error message for getItemTypeDescriptorOrDie on a non-collection field. (Revision dcea7d5bf6a011518bbc642426d26073b337086a)

            Result = SUCCESS
            Jesse Glick : dcea7d5bf6a011518bbc642426d26073b337086a
            Files :

            • core/src/main/java/hudson/model/Descriptor.java
            • test/src/test/java/hudson/model/DescriptorTest.java
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2004 JENKINS-12307 More helpful error message for getItemTypeDescriptorOrDie on a non-collection field. (Revision dcea7d5bf6a011518bbc642426d26073b337086a) Result = SUCCESS Jesse Glick : dcea7d5bf6a011518bbc642426d26073b337086a Files : core/src/main/java/hudson/model/Descriptor.java test/src/test/java/hudson/model/DescriptorTest.java

            People

              drulli Ulli Hafner
              mwebber Matthew Webber
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: