JIRA Service Desk Mail Processor gets Stuck waiting for Signature Removal script to Complete

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

JIRA Service Desk is very slow to process incoming mails. After some time the Mail Processor gets stuck and JIRA must be restarted for it to work again.

診断

  • Emails are read
  • The Strip quotes option in Administration > Applications > JIRA Service Desk Email requests is Don't strip quotes

(info) So this is not JSDSERVER-5280 - Getting issue details... STATUS

  • Mail Puller job is working fine as shown in Administration > System > Scheduled jobs
  • Mail Processor job's status is Already running
  • In AO_2C4E5C_MAILITEM database table, recent entries are in status NEW instead of PROCESSED or FILTERED
  • There's this long running thread from thread dumps collected when the Mail Processor is stuck:

    "Caesium-1-3" #213 daemon prio=5 tid=0x00007f2dd36a8000 nid=0xbde runnable [0x00007f2c80a58000]
       java.lang.Thread.State: RUNNABLE
    	at java.util.regex.Pattern$5.isSatisfiedBy(Pattern.java:5251)
    	at java.util.regex.Pattern$CharProperty.match(Pattern.java:3776)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4227)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4279)
    ...
    	at java.util.regex.Pattern$Loop.matchInit(Pattern.java:4801)
    	at java.util.regex.Pattern$Prolog.match(Pattern.java:4741)
    	at java.util.regex.Pattern$Start.match(Pattern.java:3461)
    	at java.util.regex.Matcher.search(Matcher.java:1248)
    	at java.util.regex.Matcher.find(Matcher.java:637)
    	at java.util.regex.Matcher.replaceAll(Matcher.java:951)
    	at java.lang.String.replaceAll(String.java:2223)
    	at java_lang_String$replaceAll$2.call(Unknown Source)
    	at Script3.run(Script3.groovy:50)
    	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:352)
    	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:153)
    	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
    	at javax.script.ScriptEngine$eval.call(Unknown Source)
    	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.runScriptAndGetContext(ScriptRunnerImpl.groovy:159)
    	at com.onresolve.scriptrunner.runner.ScriptRunner$runScriptAndGetContext$4.callCurrent(Unknown Source)
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
    ...
    	at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManagerImpl.createCustomerRequest(CustomerRequestManagerImpl.java:295)
    	at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManagerImpl.lambda$createRequest$6(CustomerRequestManagerImpl.java:146)
    	at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManagerImpl$$Lambda$2678/1085299847.apply(Unknown Source)
    	at com.atlassian.pocketknife.step.EitherStep1$$Lambda$2352/762650954.apply(Unknown Source)
    ...
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManagerImpl.createIssueInJiraContext(IncomingEmailManagerImpl.java:542)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManagerImpl.createIssueFromEmail(IncomingEmailManagerImpl.java:214)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.createNewIssueWithRequestType(IncomingEmailServiceImpl.java:281)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$createNewIssueWithMailChannel$25(IncomingEmailServiceImpl.java:263)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2453/1117715385.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.createNewIssueWithMailChannel(IncomingEmailServiceImpl.java:263)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$null$17(IncomingEmailServiceImpl.java:201)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2417/1983654958.get(Unknown Source)
    	at io.atlassian.fugue.Option$None.fold(Option.java:393)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$createNewOrCommentOnIssueWithMailChannelAsEmailSender$19(IncomingEmailServiceImpl.java:200)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2410/1018034089.call(Unknown Source)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2414/60931178.get(Unknown Source)
    	at io.atlassian.fugue.Option$None.fold(Option.java:393)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.createNewOrCommentOnIssueWithMailChannelAsEmailSender(IncomingEmailServiceImpl.java:225)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$null$14(IncomingEmailServiceImpl.java:187)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2407/2076678118.get(Unknown Source)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2409/1494827534.call(Unknown Source)
    ...
    	at java.lang.Thread.run(Thread.java:745)
       Locked ownable synchronizers:
    	- None
    Full thread
    "Caesium-1-3" #213 daemon prio=5 tid=0x00007f2dd36a8000 nid=0xbde runnable [0x00007f2c80a58000]
       java.lang.Thread.State: RUNNABLE
    	at java.util.regex.Pattern$5.isSatisfiedBy(Pattern.java:5251)
    	at java.util.regex.Pattern$CharProperty.match(Pattern.java:3776)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4227)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4279)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.match(Pattern.java:4785)
    	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
    	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
    	at java.util.regex.Pattern$Curly.match0(Pattern.java:4272)
    	at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
    	at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
    	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
    	at java.util.regex.Pattern$Loop.matchInit(Pattern.java:4801)
    	at java.util.regex.Pattern$Prolog.match(Pattern.java:4741)
    	at java.util.regex.Pattern$Start.match(Pattern.java:3461)
    	at java.util.regex.Matcher.search(Matcher.java:1248)
    	at java.util.regex.Matcher.find(Matcher.java:637)
    	at java.util.regex.Matcher.replaceAll(Matcher.java:951)
    	at java.lang.String.replaceAll(String.java:2223)
    	at java_lang_String$replaceAll$2.call(Unknown Source)
    	at Script3.run(Script3.groovy:50)
    	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:352)
    	at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:153)
    	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
    	at javax.script.ScriptEngine$eval.call(Unknown Source)
    	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.runScriptAndGetContext(ScriptRunnerImpl.groovy:159)
    	at com.onresolve.scriptrunner.runner.ScriptRunner$runScriptAndGetContext$4.callCurrent(Unknown Source)
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
    	at com.onresolve.scriptrunner.runner.ScriptRunner$runScriptAndGetContext$4.callCurrent(Unknown Source)
    	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.runStringAsScript(ScriptRunnerImpl.groovy:148)
    	at com.onresolve.scriptrunner.runner.ScriptRunner$runStringAsScript$3.call(Unknown Source)
    	at com.onresolve.scriptrunner.canned.jira.workflow.listeners.CustomListener.doScript(CustomListener.groovy:120)
    	at com.onresolve.scriptrunner.canned.CannedScript$doScript.call(Unknown Source)
    	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.validateAndRunCannedInternal(ScriptRunnerImpl.groovy:445)
    	at sun.reflect.GeneratedMethodAccessor925.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
    	at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.runCanned(ScriptRunnerImpl.groovy:386)
    	at com.onresolve.scriptrunner.runner.ScriptRunner$runCanned$5.call(Unknown Source)
    	at com.onresolve.scriptrunner.runner.AbstractScriptListener.run(ListenerManagerImpl.groovy:249)
    	at com.onresolve.scriptrunner.runner.AbstractScriptListener$run$0.callCurrent(Unknown Source)
    	at com.onresolve.scriptrunner.runner.IssueEventScriptListener.handleEventOrBundle(ListenerManagerImpl.groovy:363)
    	at sun.reflect.GeneratedMethodAccessor877.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021)
    	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
    	at com.onresolve.scriptrunner.runner.IssueEventScriptListener$_invoke_closure1.doCall(ListenerManagerImpl.groovy:326)
    	at sun.reflect.GeneratedMethodAccessor876.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021)
    	at groovy.lang.Closure.call(Closure.java:426)
    	at groovy.lang.Closure.call(Closure.java:442)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
    	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056)
    	at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
    	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
    	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    	at com.onresolve.scriptrunner.runner.IssueEventScriptListener.invoke(ListenerManagerImpl.groovy:324)
    	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:38)
    	at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)
    	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:88)
    	at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:204)
    	at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:115)
    	at com.atlassian.jira.event.issue.DefaultIssueEventManager.publishEventIfNotificationsAreEnabled(DefaultIssueEventManager.java:174)
    	at com.atlassian.jira.event.issue.DefaultIssueEventManager.publishEvent(DefaultIssueEventManager.java:169)
    	at com.atlassian.jira.event.issue.DefaultIssueEventManager.dispatchIssueEventBundle(DefaultIssueEventManager.java:123)
    	at com.atlassian.jira.workflow.function.event.FireIssueEventFunction.execute(FireIssueEventFunction.java:65)
    	at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1014)
    	at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1407)
    	at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:606)
    	at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:742)
    	at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:584)
    	at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:498)
    	at com.atlassian.jira.issue.managers.RequestCachingIssueManager.createIssue(RequestCachingIssueManager.java:192)
    	at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:238)
    	at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:207)
    	at sun.reflect.GeneratedMethodAccessor1002.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
    	at com.sun.proxy.$Proxy207.create(Unknown Source)
    	at sun.reflect.GeneratedMethodAccessor1002.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
    	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
    	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
    	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    	at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
    	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
    	at com.sun.proxy.$Proxy3712.create(Unknown Source)
    	at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManagerImpl.createCustomerRequest(CustomerRequestManagerImpl.java:295)
    	at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManagerImpl.lambda$createRequest$6(CustomerRequestManagerImpl.java:146)
    	at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManagerImpl$$Lambda$2678/1085299847.apply(Unknown Source)
    	at com.atlassian.pocketknife.step.EitherStep1$$Lambda$2352/762650954.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.pocketknife.step.EitherStep1.then(EitherStep1.java:18)
    	at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManagerImpl.createRequest(CustomerRequestManagerImpl.java:146)
    	at com.atlassian.servicedesk.internal.feature.customer.request.InternalCustomerRequestServiceImpl.lambda$createRequest$35(InternalCustomerRequestServiceImpl.java:484)
    	at com.atlassian.servicedesk.internal.feature.customer.request.InternalCustomerRequestServiceImpl$$Lambda$2675/1501612121.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.servicedesk.internal.feature.customer.request.InternalCustomerRequestServiceImpl.createRequest(InternalCustomerRequestServiceImpl.java:484)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManagerImpl.lambda$createIssueInJiraContext$21(IncomingEmailManagerImpl.java:543)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManagerImpl$$Lambda$2582/29477456.apply(Unknown Source)
    	at com.atlassian.pocketknife.step.EitherStep3.lambda$null$0(EitherStep3.java:26)
    	at com.atlassian.pocketknife.step.EitherStep3$$Lambda$2499/1152804665.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.pocketknife.step.EitherStep3.lambda$null$1(EitherStep3.java:26)
    	at com.atlassian.pocketknife.step.EitherStep3$$Lambda$2498/1689762665.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.pocketknife.step.EitherStep3.lambda$then$2(EitherStep3.java:25)
    	at com.atlassian.pocketknife.step.EitherStep3$$Lambda$2497/1693661187.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.pocketknife.step.EitherStep3.then(EitherStep3.java:24)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManagerImpl.createIssueInJiraContext(IncomingEmailManagerImpl.java:542)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailManagerImpl.createIssueFromEmail(IncomingEmailManagerImpl.java:214)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.createNewIssueWithRequestType(IncomingEmailServiceImpl.java:281)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$createNewIssueWithMailChannel$25(IncomingEmailServiceImpl.java:263)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2453/1117715385.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.createNewIssueWithMailChannel(IncomingEmailServiceImpl.java:263)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$null$17(IncomingEmailServiceImpl.java:201)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2417/1983654958.get(Unknown Source)
    	at io.atlassian.fugue.Option$None.fold(Option.java:393)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$createNewOrCommentOnIssueWithMailChannelAsEmailSender$19(IncomingEmailServiceImpl.java:200)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2410/1018034089.call(Unknown Source)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2414/60931178.get(Unknown Source)
    	at io.atlassian.fugue.Option$None.fold(Option.java:393)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.createNewOrCommentOnIssueWithMailChannelAsEmailSender(IncomingEmailServiceImpl.java:225)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$null$14(IncomingEmailServiceImpl.java:187)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2407/2076678118.get(Unknown Source)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2409/1494827534.call(Unknown Source)
    	at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:137)
    	at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.runInContext(ReentrantThreadLocalBasedCodeContext.java:55)
    	at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.runInCustomerContext(CustomerContextServiceImpl.java:37)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.inCustomerContext(IncomingEmailServiceImpl.java:511)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$inEmailContext$44(IncomingEmailServiceImpl.java:504)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2408/842743593.call(Unknown Source)
    	at com.atlassian.pocketknife.internal.util.runner.AuthenticationContextUtilImpl.runAs(AuthenticationContextUtilImpl.java:56)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.inEmailContext(IncomingEmailServiceImpl.java:506)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$doCreateNewOrCommentOnIssueWithMailChannel$15(IncomingEmailServiceImpl.java:187)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2406/284076027.apply(Unknown Source)
    	at io.atlassian.fugue.Either$Right.fold(Either.java:620)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.doCreateNewOrCommentOnIssueWithMailChannel(IncomingEmailServiceImpl.java:185)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$createNewOrCommentOnIssueWithMailChannel$6(IncomingEmailServiceImpl.java:155)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2402/1537518655.apply(Unknown Source)
    	at com.atlassian.pocketknife.step.EitherStep2.lambda$null$0(EitherStep2.java:20)
    	at com.atlassian.pocketknife.step.EitherStep2$$Lambda$2404/1078292720.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.pocketknife.step.EitherStep2.lambda$then$1(EitherStep2.java:20)
    	at com.atlassian.pocketknife.step.EitherStep2$$Lambda$2403/665887990.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.pocketknife.step.EitherStep2.then(EitherStep2.java:20)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.createNewOrCommentOnIssueWithMailChannel(IncomingEmailServiceImpl.java:155)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.lambda$processEmailWithMailChannel$1(IncomingEmailServiceImpl.java:143)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl$$Lambda$2351/1026565908.apply(Unknown Source)
    	at com.atlassian.pocketknife.step.EitherStep1$$Lambda$2352/762650954.apply(Unknown Source)
    	at io.atlassian.fugue.Either$RightProjection.flatMap(Either.java:886)
    	at io.atlassian.fugue.Either.flatMap(Either.java:231)
    	at com.atlassian.pocketknife.step.EitherStep1.then(EitherStep1.java:18)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.IncomingEmailServiceImpl.processEmailWithMailChannel(IncomingEmailServiceImpl.java:143)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.handler.SDMailHandler.processMessage(SDMailHandler.java:76)
    	at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.handler.SDMailHandler.handleNewMessage(SDMailHandler.java:50)
    	at com.atlassian.jira.internal.mail.processor.feature.processor.MailHandlerWorker.handle(MailHandlerWorker.java:64)
    	at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.processMailItem(MailProcessorWorker.java:108)
    	at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.lambda$process$0(MailProcessorWorker.java:85)
    	at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker$$Lambda$2330/716135821.apply(Unknown Source)
    	at com.atlassian.pocketknife.internal.querydsl.DatabaseAccessorImpl.lambda$execute$0(DatabaseAccessorImpl.java:69)
    	at com.atlassian.pocketknife.internal.querydsl.DatabaseAccessorImpl$$Lambda$1396/558538491.execute(Unknown Source)
    	at com.atlassian.sal.core.rdbms.DefaultTransactionalExecutor.executeInternal(DefaultTransactionalExecutor.java:86)
    	at com.atlassian.sal.core.rdbms.DefaultTransactionalExecutor.lambda$execute$0(DefaultTransactionalExecutor.java:42)
    	at com.atlassian.sal.core.rdbms.DefaultTransactionalExecutor$$Lambda$1126/2124326892.execute(Unknown Source)
    	at com.atlassian.sal.jira.rdbms.JiraHostConnectionAccessor.lambda$borrowConnectionAndExecute$0(JiraHostConnectionAccessor.java:95)
    	at com.atlassian.sal.jira.rdbms.JiraHostConnectionAccessor$$Lambda$1359/1880864691.run(Unknown Source)
    	at com.atlassian.jira.database.DatabaseAccessorImpl.executeQuery(DatabaseAccessorImpl.java:68)
    	at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
    	at com.sun.proxy.$Proxy237.executeQuery(Unknown Source)
    	at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)
    	at com.sun.proxy.$Proxy237.executeQuery(Unknown Source)
    	at com.atlassian.sal.jira.rdbms.JiraHostConnectionAccessor.borrowConnectionAndExecute(JiraHostConnectionAccessor.java:84)
    	at com.atlassian.sal.jira.rdbms.JiraHostConnectionAccessor.execute(JiraHostConnectionAccessor.java:48)
    	at com.atlassian.sal.core.rdbms.DefaultTransactionalExecutor.execute(DefaultTransactionalExecutor.java:39)
    	at com.atlassian.pocketknife.internal.querydsl.DatabaseAccessorImpl.execute(DatabaseAccessorImpl.java:67)
    	at com.atlassian.pocketknife.internal.querydsl.DatabaseAccessorImpl.runInNewTransaction(DatabaseAccessorImpl.java:38)
    	at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.process(MailProcessorWorker.java:82)
    	at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorWorker.processAllValidMailChannels(MailProcessorWorker.java:124)
    	at com.atlassian.jira.internal.mail.processor.feature.processor.MailProcessorService.run(MailProcessorService.java:25)
    	at com.atlassian.jira.internal.mail.processor.services.MailProcessorExecutor.run(MailProcessorExecutor.java:29)
    	at com.atlassian.jira.internal.mail.processor.services.AbstractMailExecutor.execute(AbstractMailExecutor.java:45)
    	at com.atlassian.jira.internal.mail.processor.services.MailJobRunner.runJob(MailJobRunner.java:35)
    	at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)
    	at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)
    	at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)
    	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443)
    	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJob(CaesiumSchedulerService.java:438)
    	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJobWithRecoveryGuard(CaesiumSchedulerService.java:462)
    	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:390)
    	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285)
    	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282)
    	at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)
    	at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)
    	at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)
    	at java.lang.Thread.run(Thread.java:745)
       Locked ownable synchronizers:
    	- None

原因

The instance uses ScriptRunner with a script to remove signatures from emails before they get processed by JIRA. This script causes extra overhead to the Mail Processor leading it to get stuck.

(info) A sample script can be found at https://pastebin.com/j5JAx4tg.

回避策

Disable the script so that Mail Processor can do its work normally.

最終更新日 2018 年 11 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.