java.lang.RuntimeException: No such property: issueService for class: com.test.LscJiraUtilListener

JIRA | Carl Eckhardt | 3 years ago
  1. 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
  2. 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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    When I try to do a restore or shutdown JIRA I often (but not always) get an exception of the form: {noformat} 2012-03-20 14:07:44,578 Thread-12 ERROR [osgi.container.felix.FelixOsgiContainerManager] JarContent: Unable to read bytes. java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:415) at java.util.zip.ZipFile.getEntry(ZipFile.java:160) at java.util.jar.JarFile.getEntry(JarFile.java:208) at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61) at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716) .... 2012-03-20 14:07:44,583 Thread-12 ERROR [atlassian.event.internal.EventPublisherImpl] There was an exception thrown trying to dispatch event 'com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent@56dfbb87' from the invoker 'com.atlassian.event.internal.SingleParameterMethodListenerInvoker@2801d0b1'. java.lang.RuntimeException: org/springframework/context/ConfigurableApplicationContext at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:60) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:28) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:56) at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:151) at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:70) at com.atlassian.multitenant.event.DefaultPeeringEventPublisherManager.publish(DefaultPeeringEventPublisherManager.java:17) at com.atlassian.multitenant.event.PeeringEventPublisher.publish(PeeringEventPublisher.java:23) at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:84) at com.atlassian.plugin.manager.DefaultPluginManager.shutdown(DefaultPluginManager.java:211) at com.atlassian.jira.ComponentManager$PluginSystem.shutdown(ComponentManager.java:709) at com.atlassian.jira.ComponentManager.shutdown(ComponentManager.java:293) at com.atlassian.jira.util.CompositeShutdown.shutdown(CompositeShutdown.java:32) at com.atlassian.jira.upgrade.ConsistencyCheckImpl.destroy(ConsistencyCheckImpl.java:86) at com.atlassian.jira.startup.DefaultJiraLauncher.stop(DefaultJiraLauncher.java:119) .... Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext at org.springframework.web.servlet.FrameworkServlet.destroy(FrameworkServlet.java:642) at com.atlassian.plugin.servlet.DelegatingPluginServlet.destroy(DelegatingPluginServlet.java:70) at com.atlassian.plugin.servlet.DefaultServletModuleManager.removeServletModule(DefaultServletModuleManager.java:162) at com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor.disabled(ServletModuleDescriptor.java:43) at com.atlassian.multitenant.plugins.MultiTenantModuleDescriptorFactory$LifecycleInterceptor$MultiTenantModuleDescriptorCreator.destroy(MultiTenantModuleDescriptorFactory.java:317) at com.atlassian.multitenant.plugins.MultiTenantModuleDescriptorFactory$LifecycleInterceptor$MultiTenantModuleDescriptorCreator.destroy(MultiTenantModuleDescriptorFactory.java:290) at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.onTenantStop(MultiTenantComponentMapImpl.java:177) ... Caused by: java.lang.ClassNotFoundException: org.springframework.context.ConfigurableApplicationContext at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772) at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) {noformat} The attached log [^error.log] contains examples of both the error on shutdown and restore. It seems to occur when shutting down the plugin system.

    Atlassian JIRA | 5 years ago | Brenden Bain [Atlassian]
    java.lang.RuntimeException: org/springframework/context/ConfigurableApplicationContext
  5. 0

    When I try to do a restore or shutdown JIRA I often (but not always) get an exception of the form: {noformat} 2012-03-20 14:07:44,578 Thread-12 ERROR [osgi.container.felix.FelixOsgiContainerManager] JarContent: Unable to read bytes. java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:415) at java.util.zip.ZipFile.getEntry(ZipFile.java:160) at java.util.jar.JarFile.getEntry(JarFile.java:208) at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61) at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716) .... 2012-03-20 14:07:44,583 Thread-12 ERROR [atlassian.event.internal.EventPublisherImpl] There was an exception thrown trying to dispatch event 'com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent@56dfbb87' from the invoker 'com.atlassian.event.internal.SingleParameterMethodListenerInvoker@2801d0b1'. java.lang.RuntimeException: org/springframework/context/ConfigurableApplicationContext at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:60) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:28) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:56) at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:151) at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:70) at com.atlassian.multitenant.event.DefaultPeeringEventPublisherManager.publish(DefaultPeeringEventPublisherManager.java:17) at com.atlassian.multitenant.event.PeeringEventPublisher.publish(PeeringEventPublisher.java:23) at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:84) at com.atlassian.plugin.manager.DefaultPluginManager.shutdown(DefaultPluginManager.java:211) at com.atlassian.jira.ComponentManager$PluginSystem.shutdown(ComponentManager.java:709) at com.atlassian.jira.ComponentManager.shutdown(ComponentManager.java:293) at com.atlassian.jira.util.CompositeShutdown.shutdown(CompositeShutdown.java:32) at com.atlassian.jira.upgrade.ConsistencyCheckImpl.destroy(ConsistencyCheckImpl.java:86) at com.atlassian.jira.startup.DefaultJiraLauncher.stop(DefaultJiraLauncher.java:119) .... Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext at org.springframework.web.servlet.FrameworkServlet.destroy(FrameworkServlet.java:642) at com.atlassian.plugin.servlet.DelegatingPluginServlet.destroy(DelegatingPluginServlet.java:70) at com.atlassian.plugin.servlet.DefaultServletModuleManager.removeServletModule(DefaultServletModuleManager.java:162) at com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor.disabled(ServletModuleDescriptor.java:43) at com.atlassian.multitenant.plugins.MultiTenantModuleDescriptorFactory$LifecycleInterceptor$MultiTenantModuleDescriptorCreator.destroy(MultiTenantModuleDescriptorFactory.java:317) at com.atlassian.multitenant.plugins.MultiTenantModuleDescriptorFactory$LifecycleInterceptor$MultiTenantModuleDescriptorCreator.destroy(MultiTenantModuleDescriptorFactory.java:290) at com.atlassian.multitenant.impl.MultiTenantComponentMapImpl.onTenantStop(MultiTenantComponentMapImpl.java:177) ... Caused by: java.lang.ClassNotFoundException: org.springframework.context.ConfigurableApplicationContext at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772) at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) {noformat} The attached log [^error.log] contains examples of both the error on shutdown and restore. It seems to occur when shutting down the plugin system.

    Atlassian JIRA | 5 years ago | Brenden Bain [Atlassian]
    java.lang.RuntimeException: org/springframework/context/ConfigurableApplicationContext

    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

      No such property: issueService for class: com.test.LscJiraUtilListener

      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.multitenant
      PeeringEventPublisher.publish
      1. com.atlassian.multitenant.event.DefaultPeeringEventPublisherManager.publish(DefaultPeeringEventPublisherManager.java:17)
      2. com.atlassian.multitenant.event.PeeringEventPublisher.publish(PeeringEventPublisher.java:23)
      2 frames
    4. com.atlassian.jira
      AssignIssue.doExecute
      1. com.atlassian.jira.event.issue.DefaultIssueEventManager.publishEvent(DefaultIssueEventManager.java:124)
      2. com.atlassian.jira.event.issue.DefaultIssueEventManager.dispatchEvent(DefaultIssueEventManager.java:102)
      3. com.atlassian.jira.issue.util.DefaultIssueUpdater.doUpdate(DefaultIssueUpdater.java:88)
      4. com.atlassian.jira.issue.managers.DefaultIssueManager.doUpdate(DefaultIssueManager.java:598)
      5. com.atlassian.jira.issue.managers.DefaultIssueManager.updateIssue(DefaultIssueManager.java:584)
      6. com.atlassian.jira.web.action.issue.AssignIssue.doExecute(AssignIssue.java:141)
      6 frames
    5. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:165)
      1 frame