java.lang.ClassNotFoundException: com.atlassian.jira.portal.VersionOptionalValuesGenerator

Hello

First off, sorry for just publishing a headline without the body. I simply hit the wrong button.

I have just started looking at upgrading to JIRA 7.0.5 and how the changes affect our internal report plugins. With some minor changes all plugins work fine except the ones that use the Version selector (com.atlassian.jira.portal.VersionOptionalValuesGenerator). Building the plugin works but when running JIRA with the plugin it fails when I try to run the report. The version selector shows "Could not find any values for field 'Version'.". Yes, I have created versions.

The following is printed in the log:

[INFO] [talledLocalContainer] 2016-01-06 08:15:03,686 http-nio-2990-exec-9 WARN admin 495x35x1 1ayij9c 0:0:0:0:0:0:0:1 /secure/ConfigureReport!default.jspa [c.atlassian.configurable.ValuesGeneratorObjectConfigurationProperty] Could not create class: com.atlassian.jira.portal.VersionOptionalValuesGenerator [INFO] [talledLocalContainer] java.lang.ClassNotFoundException: com.atlassian.jira.portal.VersionOptionalValuesGenerator not found by se.ikano.jiraplugins.JiraTimeReportPlugin [173] [INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532) [INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) [INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) [INFO] [talledLocalContainer]   at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [INFO] [talledLocalContainer]   at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1844) [INFO] [talledLocalContainer]   at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:937) [INFO] [talledLocalContainer]   at com.atlassian.plugin.osgi.util.BundleClassLoaderAccessor$BundleClassLoader.findClass(BundleClassLoaderAccessor.java:69) [INFO] [talledLocalContainer]   at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [INFO] [talledLocalContainer]   at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [INFO] [talledLocalContainer]   at com.atlassian.configurable.ValuesGeneratorObjectConfigurationProperty.<init>(ValuesGeneratorObjectConfigurationProperty.java:51) [INFO] [talledLocalContainer]   at com.atlassian.configurable.XMLObjectConfigurationFactory.loadObjectConfigurationFromElement(XMLObjectConfigurationFactory.java:160) [INFO] [talledLocalContainer]   at com.atlassian.jira.plugin.AbstractConfigurableModuleDescriptor.getObjectConfiguration(AbstractConfigurableModuleDescriptor.java:93) [INFO] [talledLocalContainer]   at com.atlassian.jira.web.action.browser.ConfigureReport.getObjectConfiguration(ConfigureReport.java:248) [INFO] [talledLocalContainer]   ... 3 filtered [INFO] [talledLocalContainer]   at java.lang.reflect.Method.invoke(Method.java:497) [INFO] [talledLocalContainer]   at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) [INFO] [talledLocalContainer]   at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) [INFO] [talledLocalContainer]   at webwork.util.ValueStack.findValue(ValueStack.java:417) [INFO] [talledLocalContainer]   at webwork.util.ValueStack.findValue(ValueStack.java:216) [INFO] [talledLocalContainer]   at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62) [INFO] [talledLocalContainer]   at webwork.view.taglib.IteratorTag.doStartTag(IteratorTag.java:71) [INFO] [talledLocalContainer]   at jsp.secure.views.browser.configurereport_jsp._jspService(configurereport_jsp.java:252) [INFO] [talledLocalContainer]   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [INFO] [talledLocalContainer]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [INFO] [talledLocalContainer]   ... 125 filtered [INFO] [talledLocalContainer]   at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [INFO] [talledLocalContainer]   ... 74 filtered [INFO] [talledLocalContainer]   at com.atlassian.labs.httpservice.resource.ResourceFilter.doFilter(ResourceFilter.java:59) [INFO] [talledLocalContainer]   ... 127 filtered [INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [INFO] [talledLocalContainer]   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:745)
Anyone who has any idea what has changed in JIRA 7.0 that can cause this?

Thanks,

/Peter

2 answers

The description is not in detail.  Did you try to restart JIRA? It's possibly that jar is not loaded correctly.

 

Hello, Sorry, I published too early. I have updated the text. B.r. /Peter

Hello, i have the same problem. My version of JIRA is v7.2.6

I Created a plugin with a report module, for the report i need a version selector. But the log print me: java.lang.ClassNotFoundException: com.atlassian.jira.portal.VersionOptionalValuesGenerator

i have defined in atlassian-plugin.xml this propertie:

<property>

            <key>versionId</key>

            <name>common.concepts.version</name>

            <description>report.timetracking.version.description</description>

            <type>select</type>

            <values class="com.atlassian.jira.portal.VersionOptionalValuesGenerator"/>

        </property>

and in the POM file

<dependency>

            <groupId>com.atlassian.jira</groupId>

            <artifactId>jira-api</artifactId>

            <version>${jira.version}</version>

            <scope>provided</scope>

        </dependency>

anyone knows whats is hapend?

 

Thanks,

Rubén

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,775 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot