Clicking on Any Option from the Assets Menu Results in an Error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When a user goes to click on any option from the Assets Menu, an error occurs and they are not able to load Assets within Jira Service Management

Environment
JSM 5.12.5+ (Jira 9.12.5)
Diagnosis
In the atlassian-jira.log, the following error can be found:
1
2
3
4
5
6
7
8
9
http-nio-8080-exec-683 url: /rest/insight/1.0/global/config; /rest/insight/1.0/global/config [c.r.j.p.i.c.w.a.r.exception.mapper.DefaultMapper] Unexpected exception was thrown while processing the request
java.lang.IllegalArgumentException: Invalid version format
at io.riada.insight.model.VersionString.<init>(VersionString.java:48)
at com.riadalabs.jira.plugins.insight.common.property.PropertyManagerImpl.currentInsightVersion(PropertyManagerImpl.java:184)
at io.riada.insight.services.GlobalConfigurationServiceImpl.getInsightGlobalConfigModel(GlobalConfigurationServiceImpl.java:106)
at com.riadalabs.jira.plugins.insight.channel.web.api.rest.services.globalconfiguration.GlobalConfigurationResource.getConfig(GlobalConfigurationResource.java:74)
at jdk.internal.reflect.GeneratedMethodAccessor22079.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
Or,
1
2
3
4
5
6
7
8
9
10
UpmAsynchronousTaskManager:thread-2 ERROR testuser [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.plugin.event.events.PluginEnabledEvent for com.riadalabs.jira.plugins.insight] from the invoker [com.atlassian.event.internal.ComparableListenerInvoker@6eb3281e]
java.lang.RuntimeException: Invalid version format. Listener: com.riadalabs.jira.plugins.insight.services.launcher.InsightLauncher event: com.atlassian.plugin.event.events.PluginEnabledEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:53)
at com.atlassian.diagnostics.internal.platform.monitor.event.EventSystemMonitor.invokeMonitored(EventSystemMonitor.java:105)
at com.atlassian.diagnostics.internal.platform.monitor.event.MonitoredListenerInvoker.invoke(MonitoredListenerInvoker.java:38)
at com.atlassian.event.internal.ComparableListenerInvoker.invoke(ComparableListenerInvoker.java:48)
...and goes on
Caused by: java.lang.IllegalArgumentException: Invalid version format
at io.riada.insight.model.VersionString.<init>(VersionString.java:48)
at com.riadalabs.jira.plugins.insight.services.launcher.InsightLauncher.onLifecycleEvent(InsightLauncher.java:263)
Cause
This error occurs because the property value for the property: insight_installed_version
does not match the value of the Assets Plugin
in Jira Service Management
Solution
To solve this error:
Verify the version of the plugin:
Assets Plugin
from Settings > Manage AppsThen, check the version noted in Jira Service Management's Database using the following query:
ℹ️ The query was written and tested on a Postgres Database. Please work with your DBA if you need to adjust it for another supported database
1 2 3 4
select e.property_key, v.propertyvalue from propertyentry e left join propertystring v on e.id = v.id where e.property_key = 'insight_installed_version';
You should expect to see a propertyvalue that does not match what you see from Settings > Manage Apps > Assets Plugin
Finally, update the value to match the Assets Plugin version. Be sure to replace the values with the current value, and new value, based on the details above. The example below assumes that the propertyvalue in the database is: 5.14.1-REL-0002
1 2 3 4
update propertystring set propertyvalue = '10.12.1-QR-0090' where propertyvalue = '5.14.1-REL-0002' and id = (select id from propertyentry where property_key = 'insight_installed_version');
Finally, restart Jira for the change to take affect.
Was this helpful?