Details
-
Bug
-
Resolution: Obsolete
-
Low
-
5.0.7, 5.1
-
SDK, OS X
-
5
-
Description
I have a WebAction which extends JiraWebActionSupport.
In my Velocity Template I need the selected project for the admin decorator. So I call getSelectedProjectObject():
<html> <head> <title>$i18n.getText("common.words.project") $textutils.htmlEncode($selectedProjectObject.name) - $i18n.getText("...")</title> <meta name="decorator" content="admin"/> <meta name="projectKey" content="$textutils.htmlEncode($selectedProjectObject.key)"/> <meta name="projectId" content="$selectedProjectObject.id"/> <meta name="admin.active.tab" content="..."/> <meta name="admin.active.section" content="atl.jira.proj.config"/> </head> <body> ...
getSelectedProjectObject() returns the correct project but throws the following exception:
[INFO] [talledLocalContainer] 2012-07-15 16:21:02,464 http-2990-19 ERROR admin 981x1731x1 1yu0cme 192.168.0.104 /secure/lorem-ipsum.jspa [webwork.util.ValueStack] query="hasHeader" {[id="hasHeader" type="8" values=""]} [INFO] [talledLocalContainer] java.lang.reflect.InvocationTargetException [INFO] [talledLocalContainer] at sun.reflect.GeneratedMethodAccessor439.invoke(Unknown Source) [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:597) [INFO] [talledLocalContainer] at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) [INFO] [talledLocalContainer] at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) [INFO] [talledLocalContainer] Caused by: java.lang.IllegalStateException: The current project has not been set.