java.lang.RuntimeException: Exception while trying to create a customField with the following parameters: CustomFieldMetadata[fieldName=sd.origin.customfield.default.name,fieldDescription=sd.origin.customfield.desc,fieldType=com.atlassian.servicedesk:vp-origin,fieldSearcher=com.atlassian.servicedesk:vp-origin-searcher,issueTypes={-1}]

Atlassian JIRA | David Currie [Atlassian] | 3 years ago
  1. 0

    If Service Desk is installed into an instance where there are certain modules disabled, it can throw the below exception and fail to install correctly: {noformat} 2013-10-17 12:40:44,390 UpmAsynchronousTaskManager:thread-1 ERROR sysadmin 759x206x4 1qkqnn4 127.0.0.1 /rest/plugins/1.0/available/featured [jira.issue.managers.DefaultCustomFieldManager] Could not load custom field type plugin with key 'com.atlassian.jira.ext.charting:firstresponsedate'. Is the plugin present and enabled? 2013-10-17 12:40:44,390 UpmAsynchronousTaskManager:thread-1 ERROR sysadmin 759x206x4 1qkqnn4 127.0.0.1 /rest/plugins/1.0/available/featured [jira.issue.managers.DefaultCustomFieldManager] Could not load custom field type plugin with key 'com.atlassian.jira.ext.charting:timeinstatus'. Is the plugin present and enabled? 2013-10-17 12:40:44,390 UpmAsynchronousTaskManager:thread-1 ERROR sysadmin 759x206x4 1qkqnn4 127.0.0.1 /rest/plugins/1.0/available/featured [jira.issue.managers.DefaultCustomFieldManager] Could not load custom field type plugin with key 'com.atlassian.jconnect.jconnect-plugin:uuid'. Is the plugin present and enabled? 2013-10-17 12:40:44,392 UpmAsynchronousTaskManager:thread-1 ERROR sysadmin 759x206x4 1qkqnn4 127.0.0.1 /rest/plugins/1.0/available/featured [atlassian.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event 'com.atlassian.plugin.event.events.PluginEnabledEvent@2baec4cb' from the invoker 'SingleParameterMethodListenerInvoker{method=public final void com.atlassian.servicedesk.lifecycle.Launcher.onPluginStarted(com.atlassian.plugin.event.events.PluginEnabledEvent), listener=com.atlassian.servicedesk.lifecycle.Launcher@2a872782}'. java.lang.RuntimeException: Exception while trying to create a customField with the following parameters: CustomFieldMetadata[fieldName=sd.origin.customfield.default.name,fieldDescription=sd.origin.customfield.desc,fieldType=com.atlassian.servicedesk:vp-origin,fieldSearcher=com.atlassian.servicedesk:vp-origin-searcher,issueTypes={-1}] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:32) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:60) at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160) at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79) at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:84) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:819) at com.atlassian.plugin.manager.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:523) at com.atlassian.plugin.manager.DefaultPluginManager.installPlugins(DefaultPluginManager.java:426) at com.atlassian.jira.plugin.JiraPluginManager.installPlugins(JiraPluginManager.java:109) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Caused by: com.atlassian.viewport.customfields.CustomFieldException: Exception while trying to create a customField with the following parameters: CustomFieldMetadata[fieldName=sd.origin.customfield.default.name,fieldDescription=sd.origin.customfield.desc,fieldType=com.atlassian.servicedesk:vp-origin,fieldSearcher=com.atlassian.servicedesk:vp-origin-searcher,issueTypes={-1}] at com.atlassian.viewport.customfields.CustomFieldServiceImpl.createGlobalCustomField(CustomFieldServiceImpl.java:88) at com.atlassian.viewport.customfields.CustomFieldServiceImpl.getGlobalCustomField(CustomFieldServiceImpl.java:127) at com.atlassian.servicedesk.customfields.ServiceDeskCustomFields.getOriginCustomField(ServiceDeskCustomFields.java:35) at com.atlassian.servicedesk.customfields.ServiceDeskCustomFields.onStart(ServiceDeskCustomFields.java:28) at com.atlassian.servicedesk.lifecycle.PluginLifeCycle.loadSuccessModules(PluginLifeCycle.java:297) at com.atlassian.servicedesk.lifecycle.PluginLifeCycle.runPluginStartupSideEffectsImpl(PluginLifeCycle.java:217) at com.atlassian.servicedesk.lifecycle.PluginLifeCycle.access$000(PluginLifeCycle.java:37) at com.atlassian.servicedesk.lifecycle.PluginLifeCycle$1.run(PluginLifeCycle.java:181) ... Caused by: java.lang.NullPointerException at com.atlassian.jira.issue.managers.DefaultCustomFieldManager.createCustomField(DefaultCustomFieldManager.java:186) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) {noformat} This is because certain plugin modules are disabled and the installation process relies on Custom Fields that don't exist due to those modules being disabled. Please enhance Service Desk so that it advises the user of this in the GUI if it has failed and lets them know how to fix it. Thanks! h3. Workaround (!) *OnDemand customers*: Please raise a [support ticket|https://support.atlassian.com] to get this fixed, while waiting for the official fix. Enable all the plugin modules in the Add-On Manager by: # Expanding Service Desk. # Click on 100 of 138 modules enabled. # Go through and enable each module one-by-one. This can also be done by executing the below on the database: # Backup the instance to XML or through native DB tools. # Stop JIRA. # Execute the following: {code:SQL} UPDATE pluginstate SET pluginenabled = 'true' WHERE pluginkey LIKE 'com.atlassian.servicedesk%'; {code} # Start JIRA and verify the upgrade has completed successfully.

    Atlassian JIRA | 3 years ago | David Currie [Atlassian]
    java.lang.RuntimeException: Exception while trying to create a customField with the following parameters: CustomFieldMetadata[fieldName=sd.origin.customfield.default.name,fieldDescription=sd.origin.customfield.desc,fieldType=com.atlassian.servicedesk:vp-origin,fieldSearcher=com.atlassian.servicedesk:vp-origin-searcher,issueTypes={-1}]
  2. 0

    If Service Desk is installed into an instance where there are certain modules disabled, it can throw the below exception and fail to install correctly: {noformat} 2013-10-17 12:40:44,390 UpmAsynchronousTaskManager:thread-1 ERROR sysadmin 759x206x4 1qkqnn4 127.0.0.1 /rest/plugins/1.0/available/featured [jira.issue.managers.DefaultCustomFieldManager] Could not load custom field type plugin with key 'com.atlassian.jira.ext.charting:firstresponsedate'. Is the plugin present and enabled? 2013-10-17 12:40:44,390 UpmAsynchronousTaskManager:thread-1 ERROR sysadmin 759x206x4 1qkqnn4 127.0.0.1 /rest/plugins/1.0/available/featured [jira.issue.managers.DefaultCustomFieldManager] Could not load custom field type plugin with key 'com.atlassian.jira.ext.charting:timeinstatus'. Is the plugin present and enabled? 2013-10-17 12:40:44,390 UpmAsynchronousTaskManager:thread-1 ERROR sysadmin 759x206x4 1qkqnn4 127.0.0.1 /rest/plugins/1.0/available/featured [jira.issue.managers.DefaultCustomFieldManager] Could not load custom field type plugin with key 'com.atlassian.jconnect.jconnect-plugin:uuid'. Is the plugin present and enabled? 2013-10-17 12:40:44,392 UpmAsynchronousTaskManager:thread-1 ERROR sysadmin 759x206x4 1qkqnn4 127.0.0.1 /rest/plugins/1.0/available/featured [atlassian.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event 'com.atlassian.plugin.event.events.PluginEnabledEvent@2baec4cb' from the invoker 'SingleParameterMethodListenerInvoker{method=public final void com.atlassian.servicedesk.lifecycle.Launcher.onPluginStarted(com.atlassian.plugin.event.events.PluginEnabledEvent), listener=com.atlassian.servicedesk.lifecycle.Launcher@2a872782}'. java.lang.RuntimeException: Exception while trying to create a customField with the following parameters: CustomFieldMetadata[fieldName=sd.origin.customfield.default.name,fieldDescription=sd.origin.customfield.desc,fieldType=com.atlassian.servicedesk:vp-origin,fieldSearcher=com.atlassian.servicedesk:vp-origin-searcher,issueTypes={-1}] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:32) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:60) at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160) at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79) at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:84) at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:819) at com.atlassian.plugin.manager.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:523) at com.atlassian.plugin.manager.DefaultPluginManager.installPlugins(DefaultPluginManager.java:426) at com.atlassian.jira.plugin.JiraPluginManager.installPlugins(JiraPluginManager.java:109) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Caused by: com.atlassian.viewport.customfields.CustomFieldException: Exception while trying to create a customField with the following parameters: CustomFieldMetadata[fieldName=sd.origin.customfield.default.name,fieldDescription=sd.origin.customfield.desc,fieldType=com.atlassian.servicedesk:vp-origin,fieldSearcher=com.atlassian.servicedesk:vp-origin-searcher,issueTypes={-1}] at com.atlassian.viewport.customfields.CustomFieldServiceImpl.createGlobalCustomField(CustomFieldServiceImpl.java:88) at com.atlassian.viewport.customfields.CustomFieldServiceImpl.getGlobalCustomField(CustomFieldServiceImpl.java:127) at com.atlassian.servicedesk.customfields.ServiceDeskCustomFields.getOriginCustomField(ServiceDeskCustomFields.java:35) at com.atlassian.servicedesk.customfields.ServiceDeskCustomFields.onStart(ServiceDeskCustomFields.java:28) at com.atlassian.servicedesk.lifecycle.PluginLifeCycle.loadSuccessModules(PluginLifeCycle.java:297) at com.atlassian.servicedesk.lifecycle.PluginLifeCycle.runPluginStartupSideEffectsImpl(PluginLifeCycle.java:217) at com.atlassian.servicedesk.lifecycle.PluginLifeCycle.access$000(PluginLifeCycle.java:37) at com.atlassian.servicedesk.lifecycle.PluginLifeCycle$1.run(PluginLifeCycle.java:181) ... Caused by: java.lang.NullPointerException at com.atlassian.jira.issue.managers.DefaultCustomFieldManager.createCustomField(DefaultCustomFieldManager.java:186) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) {noformat} This is because certain plugin modules are disabled and the installation process relies on Custom Fields that don't exist due to those modules being disabled. Please enhance Service Desk so that it advises the user of this in the GUI if it has failed and lets them know how to fix it. Thanks! h3. Workaround (!) *OnDemand customers*: Please raise a [support ticket|https://support.atlassian.com] to get this fixed, while waiting for the official fix. Enable all the plugin modules in the Add-On Manager by: # Expanding Service Desk. # Click on 100 of 138 modules enabled. # Go through and enable each module one-by-one. This can also be done by executing the below on the database: # Backup the instance to XML or through native DB tools. # Stop JIRA. # Execute the following: {code:SQL} UPDATE pluginstate SET pluginenabled = 'true' WHERE pluginkey LIKE 'com.atlassian.servicedesk%'; {code} # Start JIRA and verify the upgrade has completed successfully.

    Atlassian JIRA | 3 years ago | David Currie [Atlassian]
    java.lang.RuntimeException: Exception while trying to create a customField with the following parameters: CustomFieldMetadata[fieldName=sd.origin.customfield.default.name,fieldDescription=sd.origin.customfield.desc,fieldType=com.atlassian.servicedesk:vp-origin,fieldSearcher=com.atlassian.servicedesk:vp-origin-searcher,issueTypes={-1}]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-448].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}Hi Jamie, I think this one is for real this time. :-) I wrote a script listener meant to go from one status to one of the next linked statuses in our workflow, following an "Issue Assigned" event firing. And after much effort to build this script for efficiency, accuracy and functionality, I am incurring stacktrace dumps AFTER a successful TransitionValidationResult test. :-( In this description I will paste in the stacktrace, or an excerpt of meaningful lines from the stack, and I'll attach my source code so you can see my implementation. I know it's exhausting to look at everyone's code, but I can tell you that the point of stacktrace occurs exactly at the call to issueService.transition(). 2014-05-16 14:28:54,037 http-bio-8080-exec-35 ERROR lsccad 868x98837x1 zhe304 192.168.27.109,192.168.85.33 /secure/AssignIssue.jspa [atlassian.event.internal. AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event 'com.atlassian.jira.event.issue.IssueEvent@6028fbea[issue=SOF-118941,c omment=<null>,worklog=<null>,changelog=[GenericEntity:ChangeGroup][id,418437][author,lsccad][created,2014-05-16 14:28:53.399][issue,169745],eventTypeId=3,send Mail=true,params={eventsource=action, baseurl=http://jira},subtasksUpdated=true]' from the invoker 'SingleParameterMethodListenerInvoker{method=public void co m.onresolve.jira.groovy.listener.ScriptRunnerUberListener.workflowEvent(com.atlassian.jira.event.issue.IssueEvent), listener=com.onresolve.jira.groovy.listene r.ScriptRunnerUberListener@78e8d4e8}'. java.lang.RuntimeException: No such property: issueService for class: com.test.LscJiraUtilListener at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:32) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:60) at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160) at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79) at com.atlassian.multitenant.event.DefaultPeeringEventPublisherManager.publish(DefaultPeeringEventPublisherManager.java:17) at com.atlassian.multitenant.event.PeeringEventPublisher.publish(PeeringEventPublisher.java:23) at com.atlassian.jira.event.issue.DefaultIssueEventManager.publishEvent(DefaultIssueEventManager.java:124) at com.atlassian.jira.event.issue.DefaultIssueEventManager.dispatchEvent(DefaultIssueEventManager.java:102) at com.atlassian.jira.issue.util.DefaultIssueUpdater.doUpdate(DefaultIssueUpdater.java:88) at com.atlassian.jira.issue.managers.DefaultIssueManager.doUpdate(DefaultIssueManager.java:598) at com.atlassian.jira.issue.managers.DefaultIssueManager.updateIssue(DefaultIssueManager.java:584) at com.atlassian.jira.web.action.issue.AssignIssue.doExecute(AssignIssue.java:141) at webwork.action.ActionSupport.execute(ActionSupport.java:165) Another excerpt of stack trace follows this line: Caused by: groovy.lang.MissingPropertyException: No such property: issueService for class: com.test.LscJiraUtilListener at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:86) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at com.test.LscJiraUtilListener.workflowEvent(LscJiraUtilListener.groovy:95) at com.atlassian.jira.event.issue.IssueEventListener$workflowEvent.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at com.atlassian.jira.event.issue.IssueEventListener$workflowEvent.call(Unknown Source) at com.onresolve.jira.groovy.canned.workflow.listeners.CustomListener.doScript(CustomListener.groovy:65) at com.onresolve.jira.groovy.canned.CannedScript$doScript.call(Unknown Source) at com.onresolve.jira.groovy.CannedScriptRunner.runCannedScript(CannedScriptRunner.groovy:63) at com.onresolve.jira.groovy.GroovyRunner.run(GroovyRunner.java:52)

    JIRA | 3 years ago | Carl Eckhardt
    java.lang.RuntimeException: No such property: issueService for class: com.test.LscJiraUtilListener

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Exception while trying to create a customField with the following parameters: CustomFieldMetadata[fieldName=sd.origin.customfield.default.name,fieldDescription=sd.origin.customfield.desc,fieldType=com.atlassian.servicedesk:vp-origin,fieldSearcher=com.atlassian.servicedesk:vp-origin-searcher,issueTypes={-1}]

      at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke()
    2. com.atlassian.event
      EventPublisherImpl.publish
      1. com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54)
      2. com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66)
      3. com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:32)
      4. com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:60)
      5. com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160)
      6. com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79)
      6 frames
    3. com.atlassian.plugin
      DefaultPluginManager.installPlugins
      1. com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:84)
      2. com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:819)
      3. com.atlassian.plugin.manager.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:523)
      4. com.atlassian.plugin.manager.DefaultPluginManager.installPlugins(DefaultPluginManager.java:426)
      4 frames
    4. com.atlassian.jira
      JiraPluginManager.installPlugins
      1. com.atlassian.jira.plugin.JiraPluginManager.installPlugins(JiraPluginManager.java:109)
      1 frame
    5. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame