Jira gadget throws: An internal server error occurred when requesting resource

When gadget preference page is left(unsubmited), after some time I get an error: 

perf.PNG

On Jira server console I get:

2017-07-04 14:37:26,411 http-nio-2990-exec-60 ERROR admin 877x1897x1 18rok0v 0:0:0:0:0:0:0:1 /rest/timesheet-gadget/1.0/timesheet-date-table.json [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
[INFO] [talledLocalContainer] com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
[INFO] [talledLocalContainer] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
[INFO] [talledLocalContainer] at com.google.gson.Gson.fromJson(Gson.java:887)
[INFO] [talledLocalContainer] at com.google.gson.Gson.fromJson(Gson.java:852)
[INFO] [talledLocalContainer] at com.google.gson.Gson.fromJson(Gson.java:801)
[INFO] [talledLocalContainer] at com.google.gson.Gson.fromJson(Gson.java:773)
[INFO] [talledLocalContainer] at com.levi9.jira.jiraserver.rest.resource.RestCallClientImpl$1.handle(RestCallClientImpl.java:49)
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.jersey.JerseyRequest$1.handle(JerseyRequest.java:115)
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.jersey.JerseyRequest$1.handle(JerseyRequest.java:113)
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.jersey.JerseyRequest$2.handle(JerseyRequest.java:134)
[INFO] [talledLocalContainer] at com.atlassian.sal.core.net.HttpClientRequest.executeAndReturn(HttpClientRequest.java:104)
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.jersey.JerseyRequest.executeAndReturn(JerseyRequest.java:131)
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.jersey.JerseyRequest.execute(JerseyRequest.java:113)
[INFO] [talledLocalContainer] ... 2 filtered
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498)
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.ContextClassLoaderSwitchingProxy.invoke(ContextClassLoaderSwitchingProxy.java:22)
[INFO] [talledLocalContainer] at com.sun.proxy.$Proxy5388.execute(Unknown Source)
[INFO] [talledLocalContainer] at com.levi9.jira.jiraserver.rest.resource.RestCallClientImpl.getRestResponse(RestCallClientImpl.java:42)
[INFO] [talledLocalContainer] at com.levi9.jira.jiraserver.rest.resource.TimesheetDateTableResource.getUsers(TimesheetDateTableResource.java:172)
[INFO] [talledLocalContainer] at com.levi9.jira.jiraserver.rest.resource.TimesheetDateTableResource.getTableView(TimesheetDateTableResource.java:96)
[INFO] [talledLocalContainer] ... 3 filtered
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498)
[INFO] [talledLocalContainer] ... 18 filtered
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154)
[INFO] [talledLocalContainer] ... 1 filtered
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68)
[INFO] [talledLocalContainer] ... 36 filtered
[INFO] [talledLocalContainer] at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
[INFO] [talledLocalContainer] ... 24 filtered
[INFO] [talledLocalContainer] at com.atlassian.labs.httpservice.resource.ResourceFilter.doFilter(ResourceFilter.java:59)
[INFO] [talledLocalContainer] ... 32 filtered
[INFO] [talledLocalContainer] at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:76)
[INFO] [talledLocalContainer] ... 1 filtered
[INFO] [talledLocalContainer] at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:74)
[INFO] [talledLocalContainer] ... 16 filtered
[INFO] [talledLocalContainer] at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)
[INFO] [talledLocalContainer] ... 20 filtered
[INFO] [talledLocalContainer] at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
[INFO] [talledLocalContainer] ... 10 filtered
[INFO] [talledLocalContainer] at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
[INFO] [talledLocalContainer] ... 4 filtered
[INFO] [talledLocalContainer] at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
[INFO] [talledLocalContainer] ... 29 filtered
[INFO] [talledLocalContainer] at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
[INFO] [talledLocalContainer] ... 27 filtered
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:748)
[INFO] [talledLocalContainer] Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $
[INFO] [talledLocalContainer] at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
[INFO] [talledLocalContainer] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)
[INFO] [talledLocalContainer] ... 256 more

 

And in web browser console I get:

Error: Unknown RPC service: update_security_token batch.js:3473:1677
gadgets.rpc</services[DEFAULT_NAME] http://localhost:2990/jira/s/##############################-CDN/-###############/72004/#################/#################/_/download/contextbatch/js/atl.dashboard,atl.admin,jira.global,jira.admin,-_super/batch.js:3473:1677
process http://localhost:2990/jira/s/#########################-CDN/-##########/########/##############/################/_/download/contextbatch/js/atl.dashboard,atl.admin,jira.global,jira.admin,-_super/batch.js:3473:2657
receiveSameDomain/< http://localhost:2990/jira/s/###################-CDN/-#########/##########/#######################/##############/_/download/contextbatch/js/atl.dashboard,atl.admin,jira.global,jira.admin,-_super/batch.js:3473:7488

 

So, to sum up, when I add gadget but don't populate preference page and leave it like that, after 10, 15 minutes this error occurs. When I refresh page, error is gone. Is this some kind of session timeout error or something? Any help is welcome.

 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

87 views 0 1
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