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

Atlassian JIRA | Jeff Thomas | 2 years ago
  1. 0

    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.

    Atlassian JIRA | 2 years ago | Jeff Thomas
    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
  2. 0

    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.

    Atlassian JIRA | 2 years ago | Jeff Thomas
    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
  3. 0

    h4. HTR: - Platform tested: Windows7 x64 - Install 3.5.1 on a path that contains spaces. -- e.g. {{C:\Program Files\Atlassian\Application\Stash\3.5.1}} - Start Stash. h5. Observe the failure: {noformat} 2014-12-23 16:54:34,417 INFO [spring-startup] c.a.s.i.server.BuildInfoLogger Starting Stash 3.5.1 (db2bf99 built on Tue Dec 16 05:57:05 CST 2014) 2014-12-23 16:54:34,428 INFO [spring-startup] c.a.s.i.server.BuildInfoLogger JVM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.7.0_10-b18 2014-12-23 16:54:34,463 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory C:\Program Files\Atlassian\Application_Data\Stash\3.5.1 2014-12-23 16:54:36,566 INFO [spring-startup] c.a.s.internal.ApplicationSettings Updated home version from 3.4.5 to 3.5.1 2014-12-23 16:54:37,940 WARN [spring-startup] com.jolbox.bonecp.BoneCPConfig JDBC password not set in driver properties, copying it from pool config 2014-12-23 16:54:41,892 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory C:\Program Files\Atlassian\Application_Data\Stash\3.5.1\shared 2014-12-23 16:54:44,068 WARN [spring-startup] com.hazelcast.instance.Node [172.20.3.6]:5701 [bamboo-agent] [3.3.1-atlassian-10] No join method is enabled! Starting standalone. 2014-12-23 16:55:13,600 INFO [spring-startup] c.a.s.i.hook.DefaultHookService Hook callback socket listening on 127.0.0.1:62203 2014-12-23 16:55:26,005 WARN [spring-startup] c.a.p.o.f.t.s.ScanDescriptorForHostClassesStage The plugin 'atlassian-universal-plugin-manager-plugin-2.18.1.jar' uses a package 'org.apache.commons.fileupload.servlet' that is also exported by the application. It is highly recommended that the plugin use its own packages. 2014-12-23 16:55:36,894 INFO [ThreadPoolAsyncTaskExecutor::Thread 54] c.a.s.i.s.g.t.DefaultTranscodeServer Callback socket listening at 127.0.0.1:62227 2014-12-23 16:55:46,998 WARN [spring-startup] c.a.s.i.p.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle com.atlassian.oauth.atlassian-oauth-service-provider-plugin as it does not exist 2014-12-23 16:55:51,515 WARN [spring-startup] c.a.s.i.p.StaticPluginPathScanner Cannot scan directory /static/feature/tasks/icons/ in web static as it does not exist 2014-12-23 16:55:52,406 WARN [spring-startup] c.a.stash.internal.home.HomeTracker The shared home directory has been moved from C:\Program Files\Atlassian\Application_Data\Stash\3.4.5\shared to C:\Program Files\Atlassian\Application_Data\Stash\3.5.1\shared 2014-12-23 16:55:52,442 INFO [spring-startup] c.a.stash.internal.home.HomeTracker Invoking 1 handler(s) after shared home directory update 2014-12-23 16:55:52,447 INFO [spring-startup] c.a.stash.internal.home.HomeTracker 1 handler(s) have applied the home directory update successfully 2014-12-23 16:55:52,448 INFO [spring-startup] c.a.stash.internal.home.HomeTracker Updating benchmark shared home directory: C:\Program Files\Atlassian\Application_Data\Stash\3.5.1\shared 2014-12-23 16:55:52,763 INFO [spring-startup] c.a.s.internal.scm.PluginScmService Stash is using c:\devTools\Git\bin\git.exe version 1.7.9 2014-12-23 16:55:52,871 INFO [spring-startup] c.a.s.i.hazelcast.HazelcastLifecycle Updating Hazelcast instance capabilities 2014-12-23 16:55:54,869 ERROR [http-nio-7990-exec-9] @7D0AEUx1015x5x0 1lffhyg 0:0:0:0:0:0:0:1 "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/setup] org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.stash-web-plugin:server-soy-templates at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) ~[FrameworkServlet.class:4.1.1.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:111) ~[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:100) ~[TrustedApplicationsFilter.class:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) ~[TrustedApplicationsFilter.class:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na] at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:32) ~[na:na] at com.atlassian.analytics.client.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32) ~[na:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:85) ~[DefaultRequestManager.class:na] at com.atlassian.stash.internal.hazelcast.ConfigurableWebFilter.doFilter(ConfigurableWebFilter.java:38) ~[ConfigurableWebFilter.class:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_10] at java.lang.Thread.run(Thread.java:722) [na:1.7.0_10] ... 215 frames trimmed Caused by: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.stash-web-plugin:server-soy-templates at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:127) ~[na:na] at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) ~[na:na] at com.atlassian.stash.internal.plugin.OsgiServiceProxyFactoryImpl$DynamicServiceInvocationHandler.invoke(OsgiServiceProxyFactoryImpl.java:119) ~[OsgiServiceProxyFactoryImpl$DynamicServiceInvocationHandler.class:na] at com.atlassian.soy.springmvc.SoyView.render(SoyView.java:55) ~[SoyView.class:na] at com.atlassian.stash.internal.web.soy.StashSoyViewResolver$1.render(StashSoyViewResolver.java:33) ~[StashSoyViewResolver$1.class:na] ... 17 common frames omitted Caused by: com.google.template.soy.base.SoySyntaxException: Error opening Soy file C:\Program%20Files\Atlassian\Application\Stash\3.5.1\atlassian-stash\static\webpanels\stash-getting-started-panels.soy: java.io.FileNotFoundException: C:\Program%20Files\Atlassian\Application\Stash\3.5.1\atlassian-stash\static\webpanels\stash-getting-started-panels.soy (The system cannot find the path specified) at com.google.template.soy.base.SoySyntaxException.createWithoutMetaInfo(SoySyntaxException.java:52) ~[na:na] at com.google.template.soy.soyparse.SoyFileSetParser.parseSoyFileHelper(SoyFileSetParser.java:261) ~[na:na] at com.google.template.soy.soyparse.SoyFileSetParser.parseWithVersions(SoyFileSetParser.java:213) ~[na:na] at com.google.template.soy.soyparse.SoyFileSetParser.parse(SoyFileSetParser.java:173) ~[na:na] at com.google.template.soy.SoyFileSet.compileToTofu(SoyFileSet.java:792) ~[na:na] at com.google.template.soy.SoyFileSet.compileToTofu(SoyFileSet.java:772) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager.strainTofu(DefaultSoyManager.java:213) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager.access$100(DefaultSoyManager.java:31) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager$1.load(DefaultSoyManager.java:71) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager$1.load(DefaultSoyManager.java:67) ~[na:na] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) ~[LocalCache$LoadingValueReference.class:na] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) ~[LocalCache$Segment.class:na] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) ~[LocalCache$Segment.class:na] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) ~[LocalCache$Segment.class:na] at com.google.common.cache.LocalCache.get(LocalCache.java:3965) ~[LocalCache.class:na] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) ~[LocalCache.class:na] at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) ~[LocalCache$LocalManualCache.class:na] at com.google.common.cache.LocalCache$LocalManualCache.getUnchecked(LocalCache.java:4834) ~[LocalCache$LocalManualCache.class:na] at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:108) ~[na:na] ... 21 common frames omitted{noformat} h4. Notes - This was enforced via the installer as early as version 3.2. - This was not an issue in 3.4.5. - Alternatively allow our code to work when Stash is installed in a directory which contains spaces. Current error is with Soy rendering: "C:\Program%20Files\Atlassian\Application\Stash\3.5.1\atlassian-stash\static\webpanels\stash-getting-started-panels.soy (The system cannot find the path specified) at com.google.template.soy.base.SoySyntaxException.createWithoutMetaInfo(SoySyntaxException.java:52) ~[na:na]"

    Atlassian JIRA | 2 years ago | Daniel Rohan [Atlassian]
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.stash-web-plugin:server-soy-templates
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h4. HTR: - Platform tested: Windows7 x64 - Install 3.5.1 on a path that contains spaces. -- e.g. {{C:\Program Files\Atlassian\Application\Stash\3.5.1}} - Start Stash. h5. Observe the failure: {noformat} 2014-12-23 16:54:34,417 INFO [spring-startup] c.a.s.i.server.BuildInfoLogger Starting Stash 3.5.1 (db2bf99 built on Tue Dec 16 05:57:05 CST 2014) 2014-12-23 16:54:34,428 INFO [spring-startup] c.a.s.i.server.BuildInfoLogger JVM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.7.0_10-b18 2014-12-23 16:54:34,463 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory C:\Program Files\Atlassian\Application_Data\Stash\3.5.1 2014-12-23 16:54:36,566 INFO [spring-startup] c.a.s.internal.ApplicationSettings Updated home version from 3.4.5 to 3.5.1 2014-12-23 16:54:37,940 WARN [spring-startup] com.jolbox.bonecp.BoneCPConfig JDBC password not set in driver properties, copying it from pool config 2014-12-23 16:54:41,892 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory C:\Program Files\Atlassian\Application_Data\Stash\3.5.1\shared 2014-12-23 16:54:44,068 WARN [spring-startup] com.hazelcast.instance.Node [172.20.3.6]:5701 [bamboo-agent] [3.3.1-atlassian-10] No join method is enabled! Starting standalone. 2014-12-23 16:55:13,600 INFO [spring-startup] c.a.s.i.hook.DefaultHookService Hook callback socket listening on 127.0.0.1:62203 2014-12-23 16:55:26,005 WARN [spring-startup] c.a.p.o.f.t.s.ScanDescriptorForHostClassesStage The plugin 'atlassian-universal-plugin-manager-plugin-2.18.1.jar' uses a package 'org.apache.commons.fileupload.servlet' that is also exported by the application. It is highly recommended that the plugin use its own packages. 2014-12-23 16:55:36,894 INFO [ThreadPoolAsyncTaskExecutor::Thread 54] c.a.s.i.s.g.t.DefaultTranscodeServer Callback socket listening at 127.0.0.1:62227 2014-12-23 16:55:46,998 WARN [spring-startup] c.a.s.i.p.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/servlet/ in bundle com.atlassian.oauth.atlassian-oauth-service-provider-plugin as it does not exist 2014-12-23 16:55:51,515 WARN [spring-startup] c.a.s.i.p.StaticPluginPathScanner Cannot scan directory /static/feature/tasks/icons/ in web static as it does not exist 2014-12-23 16:55:52,406 WARN [spring-startup] c.a.stash.internal.home.HomeTracker The shared home directory has been moved from C:\Program Files\Atlassian\Application_Data\Stash\3.4.5\shared to C:\Program Files\Atlassian\Application_Data\Stash\3.5.1\shared 2014-12-23 16:55:52,442 INFO [spring-startup] c.a.stash.internal.home.HomeTracker Invoking 1 handler(s) after shared home directory update 2014-12-23 16:55:52,447 INFO [spring-startup] c.a.stash.internal.home.HomeTracker 1 handler(s) have applied the home directory update successfully 2014-12-23 16:55:52,448 INFO [spring-startup] c.a.stash.internal.home.HomeTracker Updating benchmark shared home directory: C:\Program Files\Atlassian\Application_Data\Stash\3.5.1\shared 2014-12-23 16:55:52,763 INFO [spring-startup] c.a.s.internal.scm.PluginScmService Stash is using c:\devTools\Git\bin\git.exe version 1.7.9 2014-12-23 16:55:52,871 INFO [spring-startup] c.a.s.i.hazelcast.HazelcastLifecycle Updating Hazelcast instance capabilities 2014-12-23 16:55:54,869 ERROR [http-nio-7990-exec-9] @7D0AEUx1015x5x0 1lffhyg 0:0:0:0:0:0:0:1 "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/setup] org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.stash-web-plugin:server-soy-templates at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) ~[FrameworkServlet.class:4.1.1.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:111) ~[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:100) ~[TrustedApplicationsFilter.class:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) ~[TrustedApplicationsFilter.class:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) ~[na:na] at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:32) ~[na:na] at com.atlassian.analytics.client.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32) ~[na:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) ~[BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:85) ~[DefaultRequestManager.class:na] at com.atlassian.stash.internal.hazelcast.ConfigurableWebFilter.doFilter(ConfigurableWebFilter.java:38) ~[ConfigurableWebFilter.class:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_10] at java.lang.Thread.run(Thread.java:722) [na:1.7.0_10] ... 215 frames trimmed Caused by: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.stash-web-plugin:server-soy-templates at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:127) ~[na:na] at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) ~[na:na] at com.atlassian.stash.internal.plugin.OsgiServiceProxyFactoryImpl$DynamicServiceInvocationHandler.invoke(OsgiServiceProxyFactoryImpl.java:119) ~[OsgiServiceProxyFactoryImpl$DynamicServiceInvocationHandler.class:na] at com.atlassian.soy.springmvc.SoyView.render(SoyView.java:55) ~[SoyView.class:na] at com.atlassian.stash.internal.web.soy.StashSoyViewResolver$1.render(StashSoyViewResolver.java:33) ~[StashSoyViewResolver$1.class:na] ... 17 common frames omitted Caused by: com.google.template.soy.base.SoySyntaxException: Error opening Soy file C:\Program%20Files\Atlassian\Application\Stash\3.5.1\atlassian-stash\static\webpanels\stash-getting-started-panels.soy: java.io.FileNotFoundException: C:\Program%20Files\Atlassian\Application\Stash\3.5.1\atlassian-stash\static\webpanels\stash-getting-started-panels.soy (The system cannot find the path specified) at com.google.template.soy.base.SoySyntaxException.createWithoutMetaInfo(SoySyntaxException.java:52) ~[na:na] at com.google.template.soy.soyparse.SoyFileSetParser.parseSoyFileHelper(SoyFileSetParser.java:261) ~[na:na] at com.google.template.soy.soyparse.SoyFileSetParser.parseWithVersions(SoyFileSetParser.java:213) ~[na:na] at com.google.template.soy.soyparse.SoyFileSetParser.parse(SoyFileSetParser.java:173) ~[na:na] at com.google.template.soy.SoyFileSet.compileToTofu(SoyFileSet.java:792) ~[na:na] at com.google.template.soy.SoyFileSet.compileToTofu(SoyFileSet.java:772) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager.strainTofu(DefaultSoyManager.java:213) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager.access$100(DefaultSoyManager.java:31) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager$1.load(DefaultSoyManager.java:71) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager$1.load(DefaultSoyManager.java:67) ~[na:na] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) ~[LocalCache$LoadingValueReference.class:na] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) ~[LocalCache$Segment.class:na] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) ~[LocalCache$Segment.class:na] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) ~[LocalCache$Segment.class:na] at com.google.common.cache.LocalCache.get(LocalCache.java:3965) ~[LocalCache.class:na] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) ~[LocalCache.class:na] at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) ~[LocalCache$LocalManualCache.class:na] at com.google.common.cache.LocalCache$LocalManualCache.getUnchecked(LocalCache.java:4834) ~[LocalCache$LocalManualCache.class:na] at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:108) ~[na:na] ... 21 common frames omitted{noformat} h4. Notes - This was enforced via the installer as early as version 3.2. - This was not an issue in 3.4.5. - Alternatively allow our code to work when Stash is installed in a directory which contains spaces. Current error is with Soy rendering: "C:\Program%20Files\Atlassian\Application\Stash\3.5.1\atlassian-stash\static\webpanels\stash-getting-started-panels.soy (The system cannot find the path specified) at com.google.template.soy.base.SoySyntaxException.createWithoutMetaInfo(SoySyntaxException.java:52) ~[na:na]"

    Atlassian JIRA | 2 years ago | Daniel Rohan [Atlassian]
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.stash.stash-web-plugin:server-soy-templates
  6. 0

    h3. Summary User gets 500 error when viewing commits on Bitbucket Server h3. Environment N/A h3. Steps to Reproduce # Set up Bitbucket server # Sync with LDAP # Browse with a user without an email allocated to his profile h3. Expected Results - User is able to browse without issue. h3. Actual Results - End user sees 500 error page - The following is shown in the {{atlassian-bitbucket.log}} {noformat} 2016-07-07 10:37:30,533 ERROR [http-nio-7990-exec-5] @7A44Dx637x190397x0 mg8stc 10.105.138.121,10.115.121.11 "GET /mvc/error 500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/git/projects/AVE/repos/fhd_discover yplatform/commits/961200dd47431e8ddc0fac854f7b9175d942abea] org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.google.template.soy. tofu.SoyTofuException: When evaluating "requirePageData('bitbucket.page.commit', ['commit': $commit, 'watchable': $commitDis cussion, 'repository': $repository])": While computing function "requirePageData('bitbucket.page.commit', ['commit': $commit , 'watchable': $commitDiscussion, 'repository': $repository])": null at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981) ~[spring-webmvc-4.2.4. RELEASE.jar:4.2.4.RELEASE] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:26) ~[na:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:26) ~[na:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:26) ~[na:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:26) ~[na:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:26) ~[na:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:88 ) ~[classes/:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLog inPluginAuthenticationFilter.java:109) ~[classes/:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticat ionFilter.java:75) ~[classes/:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java: 94) ~[atlassian-trusted-apps-core-4.2.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:67) ~[na:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java: 94) ~[atlassian-trusted-apps-core-4.2.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:67) ~[na:na] at com.atlassian.core.filters.ServletContextThreadLocalFilter.doFilter(ServletContextThreadLocalFilter.java:21) ~[at lassian-core-4.6.19.jar:na] at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31) ~[atlassian-core-4.6.19.jar:na ] at com.atlassian.plugin.connect.plugin.auth.user.ThreeLeggedAuthFilter.doFilter(ThreeLeggedAuthFilter.java:122) ~[na :na] at com.atlassian.plugin.connect.plugin.auth.oauth.OAuth2LOFilter.doFilter(OAuth2LOFilter.java:82) ~[na:na] at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) ~[na:na] at com.atlassian.analytics.client.filter.DefaultAnalyticsFilter.doFilter(DefaultAnalyticsFilter.java:38) ~[na:na] at com.atlassian.analytics.client.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:39) ~[na:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLogi nPluginAuthenticationFilter.java:87) ~[classes/:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticat ionFilter.java:73) ~[classes/:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:86) ~[bitbucket -service-impl-4.5.2.jar:na] at com.atlassian.stash.internal.hazelcast.ConfigurableWebFilter.doFilter(ConfigurableWebFilter.java:38) ~[classes/:n a] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40] ... 245 frames trimmed Caused by: com.google.template.soy.tofu.SoyTofuException: When evaluating "requirePageData('bitbucket.page.commit', ['commit ': $commit, 'watchable': $commitDiscussion, 'repository': $repository])": While computing function "requirePageData('bitbuck et.page.commit', ['commit': $commit, 'watchable': $commitDiscussion, 'repository': $repository])": null at bitbucket.internal.page.commit(commit.soy:16) ~[na:na] at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:369) ~[na:na] at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:322) ~[na:na] at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:66) ~[na:na] at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:476) ~[na:na] at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:133) ~[na:na] at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:45) ~[na:na] at com.atlassian.stash.internal.plugin.OsgiServiceProxyFactoryImpl$DynamicServiceInvocationHandler.invoke(OsgiServic eProxyFactoryImpl.java:104) ~[bitbucket-platform-4.5.2.jar:na] at com.atlassian.soy.springmvc.SoyView.render(SoyView.java:50) ~[atlassian-soy-spring-mvc-support-4.2.0.jar:na] at com.atlassian.stash.internal.web.soy.StashSoyViewResolver$1.render(StashSoyViewResolver.java:33) ~[classes/:na] ... 26 common frames omitted Caused by: com.google.template.soy.sharedpasses.render.RenderException: When evaluating "requirePageData('bitbucket.page.com mit', ['commit': $commit, 'watchable': $commitDiscussion, 'repository': $repository])": While computing function "requirePag eData('bitbucket.page.commit', ['commit': $commit, 'watchable': $commitDiscussion, 'repository': $repository])": null at bitbucket.internal.page.commit(commit.soy:16) ~[na:na] at com.google.template.soy.sharedpasses.render.RenderVisitor.eval(RenderVisitor.java:741) ~[na:na] at com.google.template.soy.sharedpasses.render.RenderVisitor.visitPrintNode(RenderVisitor.java:248) ~[na:na] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visit(AbstractSoyNodeVisitor.java:87) ~[na:na] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visit(AbstractSoyNodeVisitor.java:56) ~[na:na] at com.google.template.soy.basetree.AbstractNodeVisitor.visitChildren(AbstractNodeVisitor.java:59) ~[na:na] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visitChildren(AbstractSoyNodeVisitor.java:129) ~[na:na] at com.google.template.soy.sharedpasses.render.RenderVisitor.visitBlockHelper(RenderVisitor.java:702) ~[na:na] at com.google.template.soy.sharedpasses.render.RenderVisitor.visitTemplateNode(RenderVisitor.java:220) ~[na:na] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visitTemplateBasicNode(AbstractSoyNodeVisitor.java:160) ~[ na:na] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visit(AbstractSoyNodeVisitor.java:66) ~[na:na] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visit(AbstractSoyNodeVisitor.java:56) ~[na:na] at com.google.template.soy.basetree.AbstractNodeVisitor.exec(AbstractNodeVisitor.java:40) ~[na:na] at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:366) ~[na:na] ... 34 common frames omitted Caused by: com.google.template.soy.sharedpasses.render.RenderException: While computing function "requirePageData('bitbucket .page.commit', ['commit': $commit, 'watchable': $commitDiscussion, 'repository': $repository])": null at com.google.template.soy.sharedpasses.render.EvalVisitor.computeFunctionHelper(EvalVisitor.java:672) ~[na:na] at com.google.template.soy.sharedpasses.render.EvalVisitor.visitFunctionNode(EvalVisitor.java:653) ~[na:na] at com.google.template.soy.sharedpasses.render.EvalVisitor.visitFunctionNode(EvalVisitor.java:87) ~[na:na] at com.google.template.soy.exprtree.AbstractReturningExprNodeVisitor.visit(AbstractReturningExprNodeVisitor.java:118 ) ~[na:na] at com.google.template.soy.sharedpasses.render.EvalVisitor.visitExprRootNode(EvalVisitor.java:148) ~[na:na] at com.google.template.soy.sharedpasses.render.EvalVisitor.visitExprRootNode(EvalVisitor.java:87) ~[na:na] at com.google.template.soy.exprtree.AbstractReturningExprNodeVisitor.visit(AbstractReturningExprNodeVisitor.java:81) ~[na:na] at com.google.template.soy.exprtree.AbstractReturningExprNodeVisitor.visit(AbstractReturningExprNodeVisitor.java:73) ~[na:na] at com.google.template.soy.basetree.AbstractReturningNodeVisitor.exec(AbstractReturningNodeVisitor.java:43) ~[na:na] at com.google.template.soy.sharedpasses.render.RenderVisitor.eval(RenderVisitor.java:739) ~[na:na] ... 46 common frames omitted Caused by: java.lang.NullPointerException: null at com.atlassian.stash.internal.web.fragments.IsWatchingContextProvider.getContextMap(IsWatchingContextProvider.java :47) ~[classes/:na] at com.atlassian.stash.internal.plugin.web.fragments.RequestCacheClientPageDataHandler.getPageData(RequestCacheClien tPageDataHandler.java:50) ~[bitbucket-platform-4.5.2.jar:na] at com.atlassian.stash.internal.plugin.web.fragments.RequestCacheClientPageDataHandler.requirePageData(RequestCacheC lientPageDataHandler.java:78) ~[bitbucket-platform-4.5.2.jar:na] at com.atlassian.stash.internal.plugin.OsgiSafeProxyProvider$1.invoke(OsgiSafeProxyProvider.java:93) ~[bitbucket-pla tform-4.5.2.jar:na] at com.atlassian.stash.internal.web.soy.functions.pagedata.RequirePageDataFunction.apply(RequirePageDataFunction.jav a:39) ~[classes/:na] at com.atlassian.stash.internal.web.soy.functions.pagedata.RequirePageDataFunction.apply(RequirePageDataFunction.jav a:16) ~[classes/:na] at com.atlassian.soy.impl.modules.SoyJavaFunctionAdapter.computeForJava(SoyJavaFunctionAdapter.java:34) ~[na:na] at com.google.template.soy.sharedpasses.render.EvalVisitor.computeFunctionHelper(EvalVisitor.java:670) ~[na:na] ... 55 common frames omitted {noformat} h3.Workaround Assign an email address to the user.

    Atlassian JIRA | 5 months ago | Thiago Bomfim [Atlassian]
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.google.template.soy. tofu.SoyTofuException: When evaluating "requirePageData('bitbucket.page.commit', ['commit': $commit, 'watchable': $commitDis cussion, 'repository': $repository])": While computing function "requirePageData('bitbucket.page.commit', ['commit': $commit , 'watchable': $commitDiscussion, 'repository': $repository])": null

    7 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Spring MVC
      FrameworkServlet.processRequest
      1. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)[spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE]
      1 frame
    3. com.atlassian.applinks
      ContextFilter.doFilter
      1. com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)[na:na]
      1 frame
    4. com.atlassian.stash
      BeforeLoginPluginAuthenticationFilter.doFilter
      1. com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:83)[StashAuthenticationFilter.class:na]
      2. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111)[BeforeLoginPluginAuthenticationFilter.class:na]
      3. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77)[BeforeLoginPluginAuthenticationFilter.class:na]
      3 frames
    5. com.atlassian.security
      TrustedApplicationsFilter.doFilter
      1. com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103)[atlassian-trusted-apps-core-4.0.0.jar:na]
      1 frame
    6. com.atlassian.oauth
      OAuthFilter.doFilter
      1. com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79)[na:na]
      1 frame