org.springframework.osgi.service.importer.ServiceProxyDestroyedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • After upgrading or installing Stash 3.9.1, accessing a repository causes a 500 error. The following message is shown: {noformat} Oops, an error occurred. Please contact your system administrator {noformat} The following can be seen in {{atlassian-stash.log}}: {code}2015-05-18 17:29:49,665 WARN [http-nio-7990-exec-5] admin @5EGP3Fx1049x2325x0 aabcbi 10.10.10.10 "GET /projects/PROJ/repos/REPO/browse HTTP/1.1" c.atlassian.stash.json.JsonRenderer Failed to marshal com.atlassian.stash.internal.repository.InternalRepository to JSON org.springframework.osgi.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:105) ~[na:na] at com.atlassian.stash.scm.protocol.AbstractPluginScmProtocol.getHandlerDescriptors(AbstractPluginScmProtocol.java:121) ~[stash-scm-common-3.9.1.jar:na] at com.atlassian.stash.scm.protocol.AbstractPluginScmProtocol.supports(AbstractPluginScmProtocol.java:110) ~[stash-scm-common-3.9.1.jar:na] at com.atlassian.stash.internal.scm.PluginScmService.getProtocols(PluginScmService.java:265) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.internal.repository.DefaultRepositoryService.getCloneLinks(DefaultRepositoryService.java:352) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher.enrichRepository(DefaultLinkEnricher.java:96) ~[na:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher.access$100(DefaultLinkEnricher.java:21) ~[na:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher$1.apply(DefaultLinkEnricher.java:40) ~[na:na] at com.atlassian.stash.rest.util.RestUtils.processEntities(RestUtils.java:229) ~[na:na] ... 2015-05-18 17:29:50,175 ERROR [http-nio-7990-exec-5] @5EGP3Fx1049x2326x0 aabcbi 10.10.10.10 "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/projects/PROJ/repos/REPO/browse] org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.google.template.soy.tofu.SoyTofuException: When evaluating "to_json($repository)": While computing function "to_json($repository)": null at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) ~[spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) ~[na:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:83) ~[StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103) ~[atlassian-trusted-apps-core-4.0.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na] ...{code} *Workaround* Restarting Stash after the upgrade should resolve this.
    via by Jeff Thomas,
  • After upgrading or installing Stash 3.9.1, accessing a repository causes a 500 error. The following message is shown: {noformat} Oops, an error occurred. Please contact your system administrator {noformat} The following can be seen in {{atlassian-stash.log}}: {code}2015-05-18 17:29:49,665 WARN [http-nio-7990-exec-5] admin @5EGP3Fx1049x2325x0 aabcbi 10.10.10.10 "GET /projects/PROJ/repos/REPO/browse HTTP/1.1" c.atlassian.stash.json.JsonRenderer Failed to marshal com.atlassian.stash.internal.repository.InternalRepository to JSON org.springframework.osgi.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:105) ~[na:na] at com.atlassian.stash.scm.protocol.AbstractPluginScmProtocol.getHandlerDescriptors(AbstractPluginScmProtocol.java:121) ~[stash-scm-common-3.9.1.jar:na] at com.atlassian.stash.scm.protocol.AbstractPluginScmProtocol.supports(AbstractPluginScmProtocol.java:110) ~[stash-scm-common-3.9.1.jar:na] at com.atlassian.stash.internal.scm.PluginScmService.getProtocols(PluginScmService.java:265) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.internal.repository.DefaultRepositoryService.getCloneLinks(DefaultRepositoryService.java:352) ~[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher.enrichRepository(DefaultLinkEnricher.java:96) ~[na:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher.access$100(DefaultLinkEnricher.java:21) ~[na:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher$1.apply(DefaultLinkEnricher.java:40) ~[na:na] at com.atlassian.stash.rest.util.RestUtils.processEntities(RestUtils.java:229) ~[na:na] ... 2015-05-18 17:29:50,175 ERROR [http-nio-7990-exec-5] @5EGP3Fx1049x2326x0 aabcbi 10.10.10.10 "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/projects/PROJ/repos/REPO/browse] org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.google.template.soy.tofu.SoyTofuException: When evaluating "to_json($repository)": While computing function "to_json($repository)": null at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) ~[spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) ~[na:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:83) ~[StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103) ~[atlassian-trusted-apps-core-4.0.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na] ...{code} *Workaround* Restarting Stash after the upgrade should resolve this.
    via by Jeff Thomas,
  • Re: ClassNotFoundException Question
    via by Unknown author,
  • In our plugin, I have an additional JIRA top navigation bar menu with a dynamically generated section (like in the Issues dropdown), implemented via <simple-link-factory> plugin module. The problem is that if I disable the plugin, and then enable it again, the factory no longer works. The only workaround is to reinstall the plugin or restart JIRA. The important observation is that when the plugin is Enabled and then the drop-down link is clicked, the constructor of StructureBoardLinkFactory (our instance of SimpleLinkFactory) is not getting called -- therefore, the old instance of the module with stale references to all other components is used. (First posted as a question here: https://answers.atlassian.com/questions/26118 - assuming this is really a bug) Having an old instance with bad links leads to the exceptions like this: {code} [WARNING] [talledLocalContainer] SEVERE: Internal server error [WARNING] [talledLocalContainer] org.springframework.osgi.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed [WARNING] [talledLocalContainer] at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:105) [WARNING] [talledLocalContainer] at org.springframework.osgi.service.importer.support.internal.support.RetryTemplate.execute(RetryTemplate.java:83) [WARNING] [talledLocalContainer] at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.lookupService(ServiceDynamicInterceptor.java:430) [WARNING] [talledLocalContainer] at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterceptor.java:415) [WARNING] [talledLocalContainer] at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) [WARNING] [talledLocalContainer] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [WARNING] [talledLocalContainer] at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) [WARNING] [talledLocalContainer] at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) [WARNING] [talledLocalContainer] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [WARNING] [talledLocalContainer] at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) [WARNING] [talledLocalContainer] at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) [WARNING] [talledLocalContainer] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [WARNING] [talledLocalContainer] at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) [WARNING] [talledLocalContainer] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [WARNING] [talledLocalContainer] at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) [WARNING] [talledLocalContainer] at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) [WARNING] [talledLocalContainer] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [WARNING] [talledLocalContainer] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [WARNING] [talledLocalContainer] at $Proxy1354.hasPermission(Unknown Source) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.services.StructurePluginHelper.isAdmin(StructurePluginHelper.java:259) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.services.BackendBasedStructureManager.getPermission0(BackendBasedStructureManager.java:248) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.services.BackendBasedStructureManager.getStructurePermission(BackendBasedStructureManager.java:232) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.services.BackendBasedStructureManager.isAccessible(BackendBasedStructureManager.java:895) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.services.BackendBasedStructureManager.getStructure(BackendBasedStructureManager.java:161) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.web.StructureBoardOpenParams.toDisplayString(StructureBoardOpenParams.java:70) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.web.StructureBoardLinkFactory.createLink(StructureBoardLinkFactory.java:88) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.web.StructureBoardLinkFactory.addLink(StructureBoardLinkFactory.java:82) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.web.StructureBoardLinkFactory.addFromCookie(StructureBoardLinkFactory.java:74) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.web.StructureBoardLinkFactory.getLinks0(StructureBoardLinkFactory.java:51) [WARNING] [talledLocalContainer] at com.almworks.jira.structure.web.StructureBoardLinkFactory.getLinks(StructureBoardLinkFactory.java:39) [WARNING] [talledLocalContainer] at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinks(DefaultSimpleLinkManager.java:207) {code}
    via by Igor Sereda,
    • org.springframework.osgi.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:105)[na:na] at com.atlassian.stash.scm.protocol.AbstractPluginScmProtocol.getHandlerDescriptors(AbstractPluginScmProtocol.java:121)[stash-scm-common-3.9.1.jar:na] at com.atlassian.stash.scm.protocol.AbstractPluginScmProtocol.supports(AbstractPluginScmProtocol.java:110)[stash-scm-common-3.9.1.jar:na] at com.atlassian.stash.internal.scm.PluginScmService.getProtocols(PluginScmService.java:265)[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.internal.repository.DefaultRepositoryService.getCloneLinks(DefaultRepositoryService.java:352)[stash-service-impl-3.9.1.jar:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher.enrichRepository(DefaultLinkEnricher.java:96)[na:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher.access$100(DefaultLinkEnricher.java:21)[na:na] at com.atlassian.stash.rest.enrich.DefaultLinkEnricher$1.apply(DefaultLinkEnricher.java:40)[na:na] at com.atlassian.stash.rest.util.RestUtils.processEntities(RestUtils.java:229)[na:na]

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,