[TIME-217] Timesheet gadget not working (unable to load json data)

Issue #217 wontfix
Andriy Zhdanov created an issue

Hello, I can see there are similar issues like this, however looks like we don't fall under those iterms conditions.

Problem: TimeSheet Group gadget gives the following error: An internal server error occurred when requesting resource /rest/timesheet-gadget/1.0/timesheet.json. By clicking on the url, we get the HTTP Status 404 error. If I change the Jira context (from /jira to /), I am able to see the plain-text html when clicking on that url.

  1. Problem appears with both plugin versions: 2.2.2 and 2.2.5
  2. Problem appears with both plain http and https
  3. It appears also when changing the context (from /jira to /)
  4. Tomcat is not listening on port 8443 : should not be a redirection problem

Do you have any advice to troubleshoot/solve the issue? We are out of ideas

By rdemarco/Rosa De Marco on Wed, 18 Jan 2012 07:31:47 -0800

Comments (4)

  1. Andriy Zhdanov reporter

    Hi,
    I disabled the SSL, this time the gadget simply hangs (no error displayed).

    I turned on the DEBUG logging, and I noticed the following exception (on different xml):

    can you please have a look?

    2012-01-20 19:00:23,790 DirectoryEntryResolverThread-8 DEBUG /rest/config/1.0/directory.json directory.internal.impl.GadgetSpecProviderDirectoryEntryProvider Couldn't retrieve rest/gadget/1.0/legacy/spec/com.atlassian.jira.ext.charting:workloadpie.xml
    com.atlassian.gadgets.GadgetParsingException: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 404
    at com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:154)
    at com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:76)
    at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
    at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
    at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy952.getGadgetSpec(Unknown Source)
    at com.atlassian.gadgets.directory.internal.impl.AbstractDirectoryEntryProvider.getGadgetSpec(AbstractDirectoryEntryProvider.java:90)
    at com.atlassian.gadgets.directory.internal.impl.GadgetSpecProviderDirectoryEntryProvider$3.apply(GadgetSpecProviderDirectoryEntryProvider.java:107)
    at com.atlassian.gadgets.directory.internal.impl.GadgetSpecProviderDirectoryEntryProvider$3.apply(GadgetSpecProviderDirectoryEntryProvider.java:102)
    at com.atlassian.gadgets.directory.internal.impl.AbstractDirectoryEntryProvider$1.call(AbstractDirectoryEntryProvider.java:53)
    at com.atlassian.gadgets.directory.internal.impl.AbstractDirectoryEntryProvider$1.call(AbstractDirectoryEntryProvider.java:50)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:34)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: org.apache.shindig.gadgets.GadgetException: Unable to retrieve gadget xml. HTTP error 404
    at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.fetchObjectAndCache(DefaultGadgetSpecFactory.java:127)
    at org.apache.shindig.gadgets.DefaultGadgetSpecFactory.getGadgetSpec(DefaultGadgetSpecFactory.java:90)
    at com.atlassian.gadgets.renderer.internal.local.LocalGadgetSpecFactory.getGadgetSpec(LocalGadgetSpecFactory.java:82)
    at com.atlassian.gadgets.renderer.internal.local.LocalGadgetSpecFactory.getGadgetSpec(LocalGadgetSpecFactory.java:64)
    at com.atlassian.gadgets.renderer.internal.GadgetSpecFactoryImpl.getGadgetSpec(GadgetSpecFactoryImpl.java:130)

    By rdemarco on Fri, 20 Jan 2012 17:46:22 -0800

  2. Andriy Zhdanov reporter

    Sorry, don't have any idea what can be the problem.

    By azhdanov on Tue, 24 Jan 2012 05:15:23 -0800

  3. Andriy Zhdanov reporter

    Andrew,
    any suggestion to troubleshoot the issue?

    Which level of DEBUG should I enable to better investigate the issue?

    By rdemarco on Tue, 24 Jan 2012 05:51:00 -0800

  4. Log in to comment