Dear Community,
I am facing the below issue whenever I am running Post-function groovy script in Jira ( with ScriptRunner plugin) for calling a SOAP WebService or a REST API call.
2021-04-21 05:18:20,884+0000 PsmqAsyncExecutors-job:thread-66 WARN kumar 413x434x1 rgx917 188.214.152.130 /rest/api/2/issue/11000/comment [c.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'com.atlassian.servicedesk.api.NoSuchEntityException - The request type you are trying to view does not exist.'.
This is stopping my Jira instance in receiving the response from the target REST API and SOAP WebService.
Searched online for solution for this, but no luck.
Could any of our community Leaders/Members help me on this please.
Thanks
Please, add into logging the next package,
com.atlassian.ozymandias.SafePluginPointAccess
then you can see the root cause stacktrace
Hi @Gonchik Tsymzhitov ,
Added this package in logging and got the below Debug info which I do not understand.
Please have a look and advise.
The same exception I got for :
1. /rest/jddap/1.0/attachment [c.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'com.atlassian.servicedesk.api.NoSuchEntityException - The request type you are trying to view does not exist.'.
2. /rest/api/2/issue/11000/comment [c.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'com.atlassian.servicedesk.api.NoSuchEntityException - The request type you are trying to view does not exist.'.
com.atlassian.servicedesk.api.NoSuchEntityException: The request type you are trying to view does not exist.
at com.atlassian.servicedesk.internal.api.util.EitherExceptionUtils.httpStatusCodeToException(EitherExceptionUtils.java:93)
at com.atlassian.servicedesk.internal.api.util.EitherExceptionUtils.lambda$anErrorEitherToException$0(EitherExceptionUtils.java:36)
at io.atlassian.fugue.Either$Left.fold(Either.java:586)
at com.atlassian.servicedesk.internal.api.util.EitherExceptionUtils.anErrorEitherToException(EitherExceptionUtils.java:32)
at com.atlassian.servicedesk.plugins.automation.modules.ruleif.CustomerVisibleStatusChangeIfConditionHelper.retrieveCustomerVisibleStatus(CustomerVisibleStatusChangeIfConditionHelper.java:63)
at com.atlassian.servicedesk.plugins.automation.modules.ruleif.CustomerVisibleStatusChangeIfConditionHelper.retrieveCustomerVisibleFromStatus(CustomerVisibleStatusChangeIfConditionHelper.java:43)
at com.atlassian.servicedesk.plugins.automation.modules.ruleif.CustomerVisibleStatusChangeIfCondition.matches(CustomerVisibleStatusChangeIfCondition.java:21)
at com.atlassian.servicedesk.plugins.automation.internal.module.IfConditionManagerImpl$3.onModuleShouldDisplay(IfConditionManagerImpl.java:135)
at com.atlassian.servicedesk.plugins.automation.internal.module.IfConditionManagerImpl$3.onModuleShouldDisplay(IfConditionManagerImpl.java:128)
at com.atlassian.servicedesk.plugins.automation.internal.descriptors.condition.ConditionAwarePluginPointFunction.onModule(ConditionAwarePluginPointFunction.java:19)
at com.atlassian.ozymandias.SafePluginPointAccess$AccumulatingVisitor.visit(SafePluginPointAccess.java:710)
at com.atlassian.ozymandias.SafePluginPointAccess.invokeModule(SafePluginPointAccess.java:644)
at com.atlassian.ozymandias.SafePluginPointAccess.visitPluginPointImpl(SafePluginPointAccess.java:325)
at com.atlassian.ozymandias.SafePluginPointAccess.descriptor(SafePluginPointAccess.java:255)
at com.atlassian.ozymandias.SafePluginPointAccess.forKey(SafePluginPointAccess.java:151)
at com.atlassian.ozymandias.SafePluginPointAccess.forKey(SafePluginPointAccess.java:129)
at com.atlassian.servicedesk.plugins.automation.internal.module.IfConditionManagerImpl.evaluateIfCondition(IfConditionManagerImpl.java:127)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleMatcher.evaluateIfCondition(RuleMatcher.java:108)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleMatcher.match(RuleMatcher.java:81)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.processIfThen(RuleProcessorImpl.java:171)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.processImpl(RuleProcessorImpl.java:142)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.process(RuleProcessorImpl.java:99)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.doExecute(RuleProcessorImpl.java:71)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.doExecute(RuleProcessorImpl.java:43)
at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.runInterceptors(RuleExecutionInterceptorManagerImpl.java:70)
at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.access$100(RuleExecutionInterceptorManagerImpl.java:20)
at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl$TailInterceptorChain.next(RuleExecutionInterceptorManagerImpl.java:98)
at com.atlassian.servicedesk.internal.automation.OutsideCustomerContextRuleRuleExecutionInterceptor.doIntercept(OutsideCustomerContextRuleRuleExecutionInterceptor.java:63)
at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.runInterceptors(RuleExecutionInterceptorManagerImpl.java:76)
at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.access$100(RuleExecutionInterceptorManagerImpl.java:20)
at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl$TailInterceptorChain.next(RuleExecutionInterceptorManagerImpl.java:98)
at com.atlassian.servicedesk.internal.api.util.fp.InternalFpKit.lambda$runnableToNoExceptionsCallable$8(InternalFpKit.java:185)
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.lambda$wrapNoExceptionsCallable$0(ReentrantThreadLocalBasedCodeContext.java:144)
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.rteInvoke(ReentrantThreadLocalBasedCodeContext.java:136)
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:89)
at com.atlassian.servicedesk.internal.api.util.context.ReentrantThreadLocalBasedCodeContext.runOutOfContext(ReentrantThreadLocalBasedCodeContext.java:100)
at com.atlassian.servicedesk.internal.utils.context.CustomerContextServiceImpl.runOutOfCustomerContext(CustomerContextServiceImpl.java:52)
at com.atlassian.servicedesk.internal.automation.CustomerContextRuleExecutionInterceptor.doIntercept(CustomerContextRuleExecutionInterceptor.java:26)
at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.runInterceptors(RuleExecutionInterceptorManagerImpl.java:76)
at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.runInterceptors(RuleExecutionInterceptorManagerImpl.java:39)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl.processWithInterceptors(ExecutionJobProcessorImpl.java:193)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl$1.run(ExecutionJobProcessorImpl.java:180)
at com.atlassian.servicedesk.plugins.automation.internal.execution.context.user.RunAsUserServiceImpl.runAsUser(RunAsUserServiceImpl.java:42)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl.processInUserContext(ExecutionJobProcessorImpl.java:169)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl.processJobImpl(ExecutionJobProcessorImpl.java:151)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl.processJob(ExecutionJobProcessorImpl.java:84)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.runners.async.psmq.PsmqExecutionJobRunnerImpl.lambda$processJobs$4(PsmqExecutionJobRunnerImpl.java:161)
at com.atlassian.pocketknife.step.OptionalStep2.lambda$null$0(OptionalStep2.java:20)
at java.util.Optional.flatMap(Optional.java:241)
at com.atlassian.pocketknife.step.OptionalStep2.lambda$then$1(OptionalStep2.java:20)
at java.util.Optional.flatMap(Optional.java:241)
at com.atlassian.pocketknife.step.OptionalStep2.then(OptionalStep2.java:20)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.runners.async.psmq.PsmqExecutionJobRunnerImpl.processJobs(PsmqExecutionJobRunnerImpl.java:160)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.runners.async.psmq.PsmqExecutionJobRunnerImpl.accessQueueAndProcessJobs(PsmqExecutionJobRunnerImpl.java:145)
at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.runners.async.psmq.PsmqExecutionJobRunnerImpl.lambda$runJobsInQueues$1(PsmqExecutionJobRunnerImpl.java:79)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Channa patna What exactly doing your code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gonchik Tsymzhitov , I have written a groovy code to call a Third-party REST API to upload the attachment of an Issue using the ScriptRunner plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you wrap your code into another way?
0. So the response you get as I understood from third-party goes to non-create yet ticket is that right?
you can check it , via ordering post-function. your post-function is last in your order
1. From post-function to listener (recommend to have async)
2. Review conditions, what if attachment is quite huge? what if null ? etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am able to get the REST API response with some change. Also, I have changed the post-function order to come in the last.
Attachment file is fine, no issues wrt size, format.
But, I am still getting this exception.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.