Details
-
Bug
-
Resolution: Handled by Support
-
High
-
None
-
2.2.2
-
None
-
Pre-Post Build Command Plugin - http://confluence.atlassian.com/display/BAMEXT/Pre-Post+Build+Command+Plugin - ver. 2.3.2
Description
relates to http://developer.atlassian.com/jira/browse/BPBC-32
In Bamboo 2.2.2 pre-post submenu is not visible on Builder tab when creating new build plan due to NPE in logs:
2009-05-26 06:00:13,592 ERROR [btpool0-9] [CompoundRootAccessor] Caught an Ognl exception while getting property preBuildActionPluginHtmlList ognl.OgnlException: preBuildActionPluginHtmlList [java.lang.NullPointerException] at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:935) at ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:53) at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:121) at com.opensymphony.xwork.util.OgnlValueStack$ObjectAccessor.getProperty(OgnlValueStack.java:57) at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643) at com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:102) at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643) at ognl.ASTProperty.getValueBody(ASTProperty.java:92) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) at com.opensymphony.xwork.util.OgnlUtil.getValue(OgnlUtil.java:192) at com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java:224) at com.opensymphony.webwork.views.freemarker.ScopesHashModel.get(ScopesHashModel.java:51) at freemarker.core.Environment.getGlobalVariable(Environment.java:1061) at freemarker.core.Environment.getVariable(Environment.java:1047) at freemarker.core.Identifier._getAsTemplateModel(Identifier.java:70) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:94) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.Environment.visit(Environment.java:297) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) at com.opensymphony.webwork.views.freemarker.FreemarkerResult.doExecute(FreemarkerResult.java:153) at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:143) (...) /-- Encapsulated exception ------------\ java.lang.NullPointerException at edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:160) at edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:767) at com.atlassian.bamboo.build.DefaultBuildDefinitionManager.getBuildDefinition(DefaultBuildDefinitionManager.java:24) at com.atlassian.bamboo.build.DefaultBuild.getBuildDefinition(DefaultBuild.java:419) at com.sysbliss.bamboo.plugins.prepostcmd.action.PreBuildCommandAgentAction.populateContextForEdit(PreBuildCommandAgentAction.java:56) at com.atlassian.bamboo.v2.build.BaseConfigurablePlugin.getEditHtml(BaseConfigurablePlugin.java:87) at sun.reflect.GeneratedMethodAccessor467.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) (...) \--------------------------------------/ 2009-05-26 06:00:13,603 ERROR [btpool0-9] [CompoundRootAccessor] Caught an Ognl exception while getting property preBuildActionPluginHtmlList ognl.OgnlException: preBuildActionPluginHtmlList [java.lang.NullPointerException] at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:935) at ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:53) at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:121) at com.opensymphony.xwork.util.OgnlValueStack$ObjectAccessor.getProperty(OgnlValueStack.java:57) at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643) at com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:102) at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643) at ognl.ASTProperty.getValueBody(ASTProperty.java:92) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getValue(SimpleNode.java:210) at ognl.Ognl.getValue(Ognl.java:333) at ognl.Ognl.getValue(Ognl.java:310) (...) \--------------------------------------/ 2009-05-26 06:00:13,610 ERROR [btpool0-9] [runtime] Expression preBuildActionPluginHtmlList is undefined on line 16, column 12 in build/add/addBuildBuilder.ftl. The problematic instruction: ---------- ==> list preBuildActionPluginHtmlList as pluginHtml [on line 16, column 5 in build/add/addBuildBuilder.ftl] in user-directive ww.form [on line 4, column 1 in build/add/addBuildBuilder.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression preBuildActionPluginHtmlList is undefined on line 16, column 12 in build/add/addBuildBuilder.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:100) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.Environment.visit(Environment.java:297) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:208) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) (...)