• I have a problem with the following Script:The line with error(begin) is: http.request(method, ContentType.TEXT) hasta el catch)/**Auxiliary Classes for Get and Post requests*/class ApiConsumerResponse {String baseUrlString pathString methodString responseStatusString responseCodeString responseContentTypeString requestTextString responseTextBoolean hasErrors = falseString errorMessageException exceptionString toString() {}}class ApiConsumer {static ApiConsumerResponse postText(String baseUrl, String path, query, method = Method.POST) {ApiConsumerResponse apiConsumerResponse = new ApiConsumerResponse(baseUrl: baseUrl,path: path,requestText: query.toString(),method: method.toString())try {def http = new HTTPBuilder(baseUrl)// perform a POST request, expecting TEXT responsehttp.request(method, ContentType.TEXT) {uri.path = pathuri.query = queryheaders.'User-Agent' = 'Mozilla/5.0 Ubuntu/8.10 Firefox/3.0.4'// response handler for a success response coderesponse.success ={ resp, reader -> apiConsumerResponse.responseStatus = resp.statusLine apiConsumerResponse.responseCode = resp.status apiConsumerResponse.responseText = reader.getText() apiConsumerResponse.hasErrors = false apiConsumerResponse.responseContentType = resp.headers['Content-Type'] }response.failure = { resp, reader -> apiConsumerResponse.responseStatus = resp.statusLine apiConsumerResponse.responseCode = resp.status apiConsumerResponse.responseText = reader.getText() apiConsumerResponse.hasErrors = true apiConsumerResponse.responseContentType = resp.headers['Content-Type'] }}} catch (Exception ex) { apiConsumerResponse.hasErrors = true apiConsumerResponse.errorMessage = ex.message apiConsumerResponse.exception = ex ex.printStackTrace() }return apiConsumerResponse}static def getText(String baseUrl, String path, query) { return postText(baseUrl, path, query, Method.GET) }}/*** Auxiliary Classes for Get and Post requests*/class ApiConsumerResponse {String baseUrlString pathString methodString responseStatusString responseCodeString responseContentTypeString requestTextString responseTextBoolean hasErrors = falseString errorMessageException exceptionString toString() {}}class ApiConsumer {static ApiConsumerResponse postText(String baseUrl, String path, query, method = Method.POST) {ApiConsumerResponse apiConsumerResponse = new ApiConsumerResponse(baseUrl: baseUrl,path: path,requestText: query.toString(),method: method.toString())try {def http = new HTTPBuilder(baseUrl)// perform a POST request, expecting TEXT responsehttp.request(method, ContentType.TEXT) {uri.path = pathuri.query = queryheaders.'User-Agent' = 'Mozilla/5.0 Ubuntu/8.10 Firefox/3.0.4'// response handler for a success response coderesponse.success = { resp, reader -> apiConsumerResponse.responseStatus = resp.statusLine apiConsumerResponse.responseCode = resp.status apiConsumerResponse.responseText = reader.getText() apiConsumerResponse.hasErrors = false apiConsumerResponse.responseContentType = resp.headers['Content-Type'] }response.failure ={ resp, reader -> apiConsumerResponse.responseStatus = resp.statusLine apiConsumerResponse.responseCode = resp.status apiConsumerResponse.responseText = reader.getText() apiConsumerResponse.hasErrors = true apiConsumerResponse.responseContentType = resp.headers['Content-Type'] }}} catch (Exception ex){ apiConsumerResponse.hasErrors = true apiConsumerResponse.errorMessage = ex.message apiConsumerResponse.exception = ex ex.printStackTrace() }return apiConsumerResponse}static def getText(String baseUrl, String path, query){ return postText(baseUrl, path, query, Method.GET) }}

    Environment Database EnginePostgres

    Steps To ReproduceLogs error: 2016-06-07 13:09:00,091 Caesium-1-1 INFO anonymous JETI [c.a.mail.incoming.ma ilfetcherservice] JETI[10200]: Mail is disabled. 07-Jun-2016 13:09:01.299 WARNING [http-nio-8080-exec-14] com.sun.jersey.spi.cont ainer.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://agile.hotelbeds.com/jira2/rest/servicedesk/1/customer/pages/portal/21/crea te/121, contains form parameters in the request body but the request body has be en consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. 2016-06-07 13:09:01,748 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] debug statements 2016-06-07 13:09:01,783 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] USERRRRRRRRRRRRRRRRRR SIN CODIFICARispericas(ispericas) 2016-06-07 13:09:01,785 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] USERRRRRRRRRRRRRRRRRRR CODIFICADO 2aXNwZXJpY2FzKGlzcGVyaWNh cyk= 2016-06-07 13:09:01,785 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] Queryyyyyyy++++++++++++++++ [P_ACCOUNT:aXNwZXJpY2FzKGlzcGVy aWNhcyk=] 2016-06-07 13:09:01,785 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] urllllllllllllllllllllllllllllhttp://sapfi0d02.hotelbeds.od s:8002/ 2016-06-07 13:09:01,785 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] pathhhhhhhhhhhhhhhhhhhhhhhhhh sap(bD1lcyZjPTEwMQ==)/bc/bsp/ sap/zpass_jira/default.htm 2016-06-07 13:09:01,933 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] Spectrum : Start Sending email... 2016-06-07 13:09:01,936 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] false 2016-06-07 13:09:01,936 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] true 2016-06-07 13:09:01,937 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] false 2016-06-07 13:09:01,937 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] false 2016-06-07 13:09:01,937 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] false 2016-06-07 13:09:01,937 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] false 2016-06-07 13:09:02,009 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] Spectrum : just efore Sending email 2016-06-07 13:09:02,023 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.o.jira. groovy.PostFunction] Spectrum : End Sending email 2016-06-07 13:09:02,755 http-nio-8080-exec-14 DEBUG ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.a.activ eobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.metainf.jira.p lugin.emailissue] 2016-06-07 13:09:02,880 http-nio-8080-exec-14 ERROR ispericas 789x8953x1 f4s01j 10.162.124.93,10.162.63.29 /servicedesk/customer/portal/21/create/121 [c.a.event .internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.jira.event.issue.IssueEvent@1c89112[issue=SD-13 327,comment=,worklog=,changelog=,eventTypeId=1,sendMail=true,p arams={eventsource=workflow, baseurl=https://agile.hotelbeds.com/jira2},subtasks Updated=false]] from the invoker [SingleParameterMethodListenerInvoker{method=pu blic void com.example.tutorial.plugins.IssueCreatedResolvedListener.onIssueEvent (com.atlassian.jira.event.issue.IssueEvent), listener=com.example.tutorial.plugins.IssueCreatedResolvedListener@257d31ec}] java.lang.RuntimeException: com.atlassian.jira.issue.Issue.getAssignee()Lcom/atl assian/crowd/embedded/api/User;         at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.inv oke(SingleParameterMethodListenerInvoker.java:54)         at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run( AsynchronousAbleEventDispatcher.java:48)         at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService .execute(MoreExecutors.java:299)         at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch (AsynchronousAbleEventDispatcher.java:107)         at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(Event PublisherImpl.java:160)         at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublishe rImpl.java:79)         at com.atlassian.jira.event.issue.DefaultIssueEventManager.publishEvent( DefaultIssueEventManager.java:120)         at com.atlassian.jira.event.issue.DefaultIssueEventManager.publishAsRedu ndant(DefaultIssueEventManager.java:132)         at com.atlassian.jira.event.issue.DefaultIssueEventManager.dispatchRedun dantEvent(DefaultIssueEventManager.java:83)         at com.atlassian.jira.workflow.function.event.FireIssueEventFunction.exe cute(FireIssueEventFunction.java:53)         at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWo rkflow.java:1050)         at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(Abstrac tWorkflow.java:1446)         at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflo w.java:615)         at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowM anager.java:741)         at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(Def aultIssueManager.java:580)         at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(Def aultIssueManager.java:494)         at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueSe rvice.java:230)         at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueSe rvice.java:199)         ... 3 filtered         at java.lang.reflect.Method.invoke(Method.java:498)         at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler. invoke(ContextClassLoaderSettingInvocationHandler.java:26)         at com.sun.proxy.$Proxy266.create(Unknown Source)         ... 3 filtered         at java.lang.reflect.Method.invoke(Method.java:498)         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:317)         at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.Se rviceInvoker.doInvoke(ServiceInvoker.java:56)         at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.Se rviceInvoker.invoke(ServiceInvoker.java:60)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179)         at org.springframework.aop.support.DelegatingIntroductionInterceptor.doP roceed(DelegatingIntroductionInterceptor.java:133)         at org.springframework.aop.support.DelegatingIntroductionInterceptor.inv oke(DelegatingIntroductionInterceptor.java:121)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179)         at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInt erceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)         at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInt erceptor.invoke(ServiceTCCLInterceptor.java:53)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179)         at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleCont extAdvice.invoke(LocalBundleContextAdvice.java:57)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179)         at org.springframework.aop.support.DelegatingIntroductionInterceptor.doP roceed(DelegatingIntroductionInterceptor.java:133)         at org.springframework.aop.support.DelegatingIntroductionInterceptor.inv oke(DelegatingIntroductionInterceptor.java:121)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179)         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami cAopProxy.java:207)         at com.sun.proxy.$Proxy2930.create(Unknown Source)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager.com$atlassian$servicedesk$internal$feature$customer$request$Custom erRequestManager$$createCustomerRequest(CustomerRequestManager.scala:107)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$apply$3$$anonfu n$apply$4.apply(CustomerRequestManager.scala:86)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$apply$3$$anonfu n$apply$4.apply(CustomerRequestManager.scala:85)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$apply$3.apply(C ustomerRequestManager.scala:85)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$apply$3.apply(C ustomerRequestManager.scala:78)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager$$anonfun$createRequest$2$$anonfun$apply$1.apply(CustomerRequestMan ager.scala:78)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager$$anonfun$createRequest$2$$anonfun$apply$1.apply(CustomerRequestMan ager.scala:77)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager$$anonfun$createRequest$2.apply(CustomerRequestManager.scala:77)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager$$anonfun$createRequest$2.apply(CustomerRequestManager.scala:75)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.feature.customer.request.CustomerR equestManager.createRequest(CustomerRequestManager.scala:75)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$ap ply$2$$anonfun$apply$3.apply(InternalCustomerRequestServiceScala.scala:127)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$ap ply$2$$anonfun$apply$3.apply(InternalCustomerRequestServiceScala.scala:123)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$ap ply$2.apply(InternalCustomerRequestServiceScala.scala:123)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala$$anonfun$createRequest$2$$anonfun$apply$1$$anonfun$ap ply$2.apply(InternalCustomerRequestServiceScala.scala:122)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala$$anonfun$createRequest$2$$anonfun$apply$1.apply(Inter nalCustomerRequestServiceScala.scala:122)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala$$anonfun$createRequest$2$$anonfun$apply$1.apply(Inter nalCustomerRequestServiceScala.scala:121)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala$$anonfun$createRequest$2.apply(InternalCustomerReques tServiceScala.scala:121)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala$$anonfun$createRequest$2.apply(InternalCustomerReques tServiceScala.scala:120)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.feature.customer.request.InternalC ustomerRequestServiceScala.createRequest(InternalCustomerRequestServiceScala.sca la:120)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$$$$$bcffe462fb1f3a83ef7575c68fe012$$$$nonfun$apply$25$$anonfun$apply$27$$ano nfun$apply$28.apply(CustomerWeb.scala:649)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$$$$$bcffe462fb1f3a83ef7575c68fe012$$$$nonfun$apply$25$$anonfun$apply$27$$ano nfun$apply$28.apply(CustomerWeb.scala:647)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$$$$$bcffe462fb1f3a83ef7575c68fe012$$$$nonfun$apply$25$$anonfun$apply$27.appl y(CustomerWeb.scala:647)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$$$$$bcffe462fb1f3a83ef7575c68fe012$$$$nonfun$apply$25$$anonfun$apply$27.appl y(CustomerWeb.scala:646)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21$$anonfun$apply$22$$anonfun$apply$23$$anonfun$appl y$24$$anonfun$apply$25.apply(CustomerWeb.scala:646)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21$$anonfun$apply$22$$anonfun$apply$23$$anonfun$appl y$24$$anonfun$apply$25.apply(CustomerWeb.scala:645)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21$$anonfun$apply$22$$anonfun$apply$23$$anonfun$appl y$24.apply(CustomerWeb.scala:645)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21$$anonfun$apply$22$$anonfun$apply$23$$anonfun$appl y$24.apply(CustomerWeb.scala:644)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21$$anonfun$apply$22$$anonfun$apply$23.apply(Custome rWeb.scala:644)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21$$anonfun$apply$22$$anonfun$apply$23.apply(Custome rWeb.scala:643)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21$$anonfun$apply$22.apply(CustomerWeb.scala:643)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21$$anonfun$apply$22.apply(CustomerWeb.scala:642)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21.apply(CustomerWeb.scala:642)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20$$anonfun$apply$21.apply(CustomerWeb.scala:641)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20.apply(CustomerWeb.scala:641)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16$$anon fun$apply$20.apply(CustomerWeb.scala:640)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16.apply (CustomerWeb.scala:640)         at com.atlassian.servicedesk.internal.rest.CustomerWeb$$anonfun$16.apply (CustomerWeb.scala:639)         at scalaz.$bslash$div.flatMap(Either.scala:134)         at com.atlassian.servicedesk.internal.rest.CustomerWeb.submitForm(Custom erWeb.scala:639)         ... 3 filtered         at java.lang.reflect.Method.invoke(Method.java:498)         at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMe thodInvokerFactory.java:60)         ... 13 filtered         at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyO sgiServletContainer.doFilter(RestDelegatingServletFilter.java:154)         ... 1 filtered         at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilte r(RestDelegatingServletFilter.java:68)         ... 37 filtered         at com.atlassian.servicedesk.internal.web.PopulateEyeballForRestFilter.d oFilter(PopulateEyeballForRestFilter.java:27)         ... 41 filtered         at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityF ilter.java:70)         ... 22 filtered         at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.d oFilter(CustomerContextSettingFilter.java:107)         ... 16 filtered         at java.lang.reflect.Method.invoke(Method.java:498)         at net.bull.javamelody.JspWrapper.invoke(JspWrapper.java:150)         at net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(Jd bcWrapper.java:286)         at com.sun.proxy.$Proxy3761.forward(Unknown Source)         ... 34 filtered         at com.atlassian.servicedesk.project.internal.web.filters.NormaliseUrlFi lter.doFilter(NormaliseUrlFilter.java:25)         ... 16 filtered         at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityF ilter.java:70)         ... 31 filtered         at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.l ambda$invokeFilterChain$0(CustomerContextSettingFilter.java:169)         at com.atlassian.servicedesk.internal.util.scala.ScalaJavaInterOp$1.appl y(ScalaJavaInterOp.java:25)         at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil$ .inCustomerContext(CustomerContextUtil.scala:24)         at com.atlassian.servicedesk.internal.utils.context.CustomerContextUtil. inCustomerContext(CustomerContextUtil.scala)         at com.atlassian.servicedesk.internal.utils.context.CustomerContextServi ceImpl.inCustomerContext(CustomerContextServiceImpl.java:19)         at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.i nCustomerContext(CustomerContextSettingFilter.java:160)         at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.d oFilterImpl(CustomerContextSettingFilter.java:118)         at com.atlassian.servicedesk.internal.web.CustomerContextSettingFilter.d oFilter(CustomerContextSettingFilter.java:112)         ... 12 filtered         at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:2 01)         at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:1 78)         at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringF ilter.java:85)         at net.bull.javamelody.JiraMonitoringFilter.doFilter(JiraMonitoringFilte r.java:105)         ... 46 filtered         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1142)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:617)         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskTh read.java:61)        at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: com.atlassian.jira.issue.Issue.getAssign ee()Lcom/atlassian/crowd/embedded/api/User;         at com.example.tutorial.plugins.IssueCreatedResolvedListener.onIssueEven t(IssueCreatedResolvedListener.java:85)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:498)         ... 400 more 

ReferenceSRJSUP-484

People involved
  • Pedro Olmo RuedaCreator
You can
Actions

4 answers

1 accepted

0 votes
Accepted answer

Hello Jamie and Mahesh,

 

Attach groovy script:

 

Attach logs error jira.

 

Regards

As I mentioned to you on the support ticket the problem is in 

com.example.tutorial.plugins.IssueCreatedResolvedListener, which is your code...

Looks like it needs upgrading for JIRA 7:

Caused by: java.lang.NoSuchMethodError: com.atlassian.jira.issue.Issue.getAssign ee()Lcom/atlassian/crowd/embedded/api/User

Hello Jamie ,

 

I need resolve this problem. 

Can i help me?

You might need some library or something in the code that this bad.

 

Regards

Hello Jamie,

 

Can you explain to me, how to do  "Looks like it needs upgrading for JIRA"?

 

Regards

Do you know what that class (com.example.tutorial.plugins.IssueCreatedResolvedListener) does? If not, just remove it.

 Hello Jamie,

 

We need this class in JIRA 7 (Resolver).

 

In Jira 6, the jar containing the library is the bndlib - 1.43.0 - atlassian - 1.jar
 This is the content of this library :
 drwxr -xr - x 2 vass atsap20 signing 4,0K April 1, 2011 signing
drwxr -xr - x 2 vass atsap20 settings 4,0K April 1, 2011 settings
 drwxr -xr - x 3 vass atsap20 4,0K service April 1, 2011 service
drwxr -xr - x 2 vass atsap20 solve 4,0K April 1, 2011 resolver
drwxr -xr - x 3 vass atsap20 4,0K Repo April 1, 2011 repo
drwxr -xr - x 2 vass atsap20 4,0K April 1, 2011 maven
 maven drwxr -xr - x 6 Vass atsap20 4,0K April 1, 2011 make
drwxr -xr - x 2 vass atsap20  4,0K April 1, 2011 help
drwxr -xr - x 2 vass atsap20  4,0K April 1, 2011 compatibility
drwxr -xr - x 2 vass atsap20 4,0K April 1, 2011 build 
drwxr -xr - x 4 vass atsap20 4,0K April 1, 2011 annotation 

 

In the case of Jira 7 we have a jar that replaces the previous one, is the biz.aQute.bndlib-2.4.1.jar 
This is the content of the library: 
drwxr-xr-x 3 root root build 4.0K Jan 16 2015 
drwxr-xr-x 7 root root 4.0K Jan 16 2015 annotation 
drwxr-xr-x 11 root root 4.0K service Jan 16 2015
 drwxr-xr-x 3 root root resource 4.0K Jan 16 2015
 drwxr-xr-x 2 root root 2015 4.0K Jan 16 properties
 drwxr-xr-x 7 root root 4.0K Jan 16 2015 plugin
 drwxr-xr-x 4 root root 4.0K Jan 16 2015 osgi 
drwxr-xr-x 2 root root 4.0K Jan 16 2015 obr 
drwxr-xr-x 2 root root 4.0K Jan 16 2015 metatype 
drwxr-xr-x 3 root root 4.0K maven 
Jan 16 2015 drwxr-xr-x 6 root root 4.0K Jan 16 2015 make
 drwxr-xr-x 3 root root 4.0K Jan 16 2015 indexer 
drwxr-xr-x 2 root root 4.0K Jan 16 2015 help
 drwxr-xr-x 2 root root 4.0K Jan 16 2015 header 
drwxr-xr-x 2 root root 4.0K Jan 16 2015 filerepo
 drwxr-xr-x 2 root root 4.0K Jan 16 2015 Differ 
drwxr-xr-x 3 root root 2015 4.0K Jan 16 component
 drwxr-xr-x 2 root root 4.0K Jan 16 2015 compatibility
 drwxr-xr-x 2 root root 2015 version 4.0K Jan 16 
drwxr-xr-x 3 root root useful 4.0K Jan 16 2015
 drwxr-xr-x 2 root root url 4.0K Jan 16 2015
 drwxr-xr-x 2 root root testing 4.0K Jan 16 2015
 drwxr-xr-x 2 root root 2015 signing 4.0K Jan 16
 As you can see, we have included more classes in the new libraries bnd, so it is not possible replacement, and trying to implement any jar containing the "solve" causes a bug duplication of classes or incompatibilities.


On the part of atlassian , we need to know that we JAR is downloaded to indicate that it does not conflict with its bookstores or replaces the method call " resolve


Regards and thanks in advance.

Hi - please could you stop cross-posting.

I still fail to see how this has anything to do with ScriptRunner

can you format this properly, it's unreadable.

0 votes
Mahesh S Community Champion Jun 16, 2016

Yes, Please attach this error separately.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Statuspage

How do your teams prepare for really high (planned) traffic days like Cyber Monday?

Hi there! Shannon from Statuspage here.  👋  With Cyber Monday quickly approaching, we're looking to hear from Atlassian customers – specifically from teams who touch incident response li...

43 views 0 4
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you