Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira SD : 'com.atlassian.servicedesk.api.NoSuchEntityException - The request type does not exist

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

1 answer

0 votes

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)

@Channa patna What exactly doing your code? 

@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.

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. 

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

852 views 30 33
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you