JS Exception while downgrading the confluence from v4.1.2 to v4.0.5
Asked by Amarendra Thakur:

We have Confluence 4.1.2 running on one of our development box.Since some of important plugins like Adaptavist Community Bubble plugin are not working on Confluence v4.1.2 so we thought of downgrading the Confluence version to 4.0.5.

But after downgrading the Confluence version from 4.1.2 to 4.0.5 , we found that javascript are not working.During the startup we are getting the following exception

```
2012-05-01 08:42:36,275 INFO [main] [com.atlassian.confluence.lifecycle] init Confluence is ready to serve2012-05-01 08:43:00,244 ERROR [scheduler_Worker-2] [confluence.search.lucene.ConfluenceSearcherInitialisation] initialise Error encountered while warming up searcher - The index has not been upgraded. Please reindex.2012-05-01 08:43:26,870 ERROR [http-8090-3] [[Standalone].[localhost].[/].[file-server]] log Servlet.service() for servlet file-server threw exceptionorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.aui.javascript.ContextPathTransformer': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.aui.javascript.ContextPathTransformer]: Constructor threw exception; nested exception is java.lang.NullPointerException        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)        at java.security.AccessController.doPrivileged(Native Method)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:300)        at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)        at java.lang.reflect.Method.invoke(Method.java:597)        at com.atlassian.plugin.osgi.spring.DefaultSpringContainerAccessor.createBean(DefaultSpringContainerAccessor.java:109)        at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:32)        at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:99)        at com.atlassian.plugin.webresource.transformer.WebResourceTransformerModuleDescriptor.getModule(WebResourceTransformerModuleDescriptor.java:21)        at com.atlassian.plugin.webresource.WebResourceTransformation.transformDownloadableResource(WebResourceTransformation.java:64)        at com.atlassian.plugin.webresource.SingleDownloadableResourceBuilder.getDownloadablePluginResource(SingleDownloadableResourceBuilder.java:201)        at com.atlassian.plugin.webresource.SingleDownloadableResourceBuilder.getResourceFromModule(SingleDownloadableResourceBuilder.java:134)        at com.atlassian.plugin.webresource.SingleDownloadableResourceBuilder.locatePluginResource(SingleDownloadableResourceBuilder.java:81)        at com.atlassian.plugin.webresource.SingleDownloadableResourceBuilder.find(SingleDownloadableResourceBuilder.java:68)        at com.atlassian.plugin.webresource.AbstractBatchResourceBuilder$2.apply(AbstractBatchResourceBuilder.java:73)        at com.atlassian.plugin.webresource.AbstractBatchResourceBuilder$2.apply(AbstractBatchResourceBuilder.java:70)        at com.google.common.collect.Iterators$8.next(Iterators.java:730)        at com.google.common.collect.Iterators$7.computeNext(Iterators.java:608)        at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:137)        at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:132)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)       at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Lists.newArrayList(Lists.java:135)        at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:275)        at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:231)        at com.atlassian.plugin.webresource.BatchPluginResource.&lt;init&gt;(BatchPluginResource.java:99)        at com.atlassian.plugin.webresource.BatchPluginResource.&lt;init&gt;(BatchPluginResource.java:81)        at com.atlassian.plugin.webresource.SuperBatchPluginResource.&lt;init&gt;(SuperBatchPluginResource.java:56)        at com.atlassian.plugin.webresource.SuperBatchPluginResource.&lt;init&gt;(SuperBatchPluginResource.java:50)        at com.atlassian.plugin.webresource.SuperBatchDownloadableResourceBuilder.parse(SuperBatchDownloadableResourceBuilder.java:43)        at com.atlassian.plugin.webresource.SuperBatchDownloadableResourceBuilder.parse(SuperBatchDownloadableResourceBuilder.java:19)        at com.atlassian.plugin.webresource.PluginResourceLocatorImpl.getDownloadableResource(PluginResourceLocatorImpl.java:86)        at com.atlassian.plugin.servlet.PluginResourceDownload.serveFile(PluginResourceDownload.java:55)        at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:33)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.core.filters.ServletContextThreadLocalFilter.doFilter(ServletContextThreadLocalFilter.java:19)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:211)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:150)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:71)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)        at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:80)        at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:427)        at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:34)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter.doFilter(RequestParamValidationFilter.java:58)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.plugin.servlet.filter.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:71)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:54)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:65)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)        at java.lang.Thread.run(Thread.java:619)Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.aui.javascript.ContextPathTransformer]: Constructor threw exception; nested exception is java.lang.NullPointerException        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)        ... 183 moreCaused by: java.lang.NullPointerException        at com.atlassian.aui.javascript.ContextPathTransformer.stripTrailingSlash(ContextPathTransformer.java:43)        at com.atlassian.aui.javascript.ContextPathTransformer.&lt;init&gt;(ContextPathTransformer.java:38)        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)        ... 185 more2012-05-01 08:43:26,873 ERROR [http-8090-3] [[Standalone].[localhost].[/].[noop]] log Servlet.service() for servlet noop threw exceptionorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.aui.javascript.ContextPathTransformer': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.aui.javascript.ContextPathTransformer]: Constructor threw exception; nested exception is java.lang.NullPointerException        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)        at java.security.AccessController.doPrivileged(Native Method)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:300)        at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)        at java.lang.reflect.Method.invoke(Method.java:597)        at com.atlassian.plugin.osgi.spring.DefaultSpringContainerAccessor.createBean(DefaultSpringContainerAccessor.java:109)        at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:32)        at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:99)        at com.atlassian.plugin.webresource.transformer.WebResourceTransformerModuleDescriptor.getModule(WebResourceTransformerModuleDescriptor.java:21)        at com.atlassian.plugin.webresource.WebResourceTransformation.transformDownloadableResource(WebResourceTransformation.java:64)        at com.atlassian.plugin.webresource.SingleDownloadableResourceBuilder.getDownloadablePluginResource(SingleDownloadableResourceBuilder.java:201)        at com.atlassian.plugin.webresource.SingleDownloadableResourceBuilder.getResourceFromModule(SingleDownloadableResourceBuilder.java:134)        at com.atlassian.plugin.webresource.SingleDownloadableResourceBuilder.locatePluginResource(SingleDownloadableResourceBuilder.java:81)        at com.atlassian.plugin.webresource.SingleDownloadableResourceBuilder.find(SingleDownloadableResourceBuilder.java:68)        at com.atlassian.plugin.webresource.AbstractBatchResourceBuilder$2.apply(AbstractBatchResourceBuilder.java:73)        at com.atlassian.plugin.webresource.AbstractBatchResourceBuilder$2.apply(AbstractBatchResourceBuilder.java:70)        at com.google.common.collect.Iterators$8.next(Iterators.java:730)        at com.google.common.collect.Iterators$7.computeNext(Iterators.java:608)        at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:137)        at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:132)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Iterators$5.hasNext(Iterators.java:510)        at com.google.common.collect.Lists.newArrayList(Lists.java:135)        at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:275)        at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:231)        at com.atlassian.plugin.webresource.BatchPluginResource.&lt;init&gt;(BatchPluginResource.java:99)        at com.atlassian.plugin.webresource.BatchPluginResource.&lt;init&gt;(BatchPluginResource.java:81)        at com.atlassian.plugin.webresource.SuperBatchPluginResource.&lt;init&gt;(SuperBatchPluginResource.java:56)        at com.atlassian.plugin.webresource.SuperBatchPluginResource.&lt;init&gt;(SuperBatchPluginResource.java:50)        at com.atlassian.plugin.webresource.SuperBatchDownloadableResourceBuilder.parse(SuperBatchDownloadableResourceBuilder.java:43)        at com.atlassian.plugin.webresource.SuperBatchDownloadableResourceBuilder.parse(SuperBatchDownloadableResourceBuilder.java:19)        at com.atlassian.plugin.webresource.PluginResourceLocatorImpl.getDownloadableResource(PluginResourceLocatorImpl.java:86)        at com.atlassian.plugin.servlet.PluginResourceDownload.serveFile(PluginResourceDownload.java:55)        at com.atlassian.plugin.servlet.AbstractFileServerServlet.doGet(AbstractFileServerServlet.java:33)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.core.filters.ServletContextThreadLocalFilter.doFilter(ServletContextThreadLocalFilter.java:19)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:211)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:150)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)       at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:71)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)        at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)       at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:80)        at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:51)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)        at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:427)        at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:34)        at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)        at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:42)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:77)        at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter.doFilter(RequestParamValidationFilter.java:58)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.plugin.servlet.filter.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:71)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:54)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41)        at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:65)        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)        at java.lang.Thread.run(Thread.java:619)Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.aui.javascript.ContextPathTransformer]: Constructor threw exception; nested exception is java.lang.NullPointerException        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)        ... 183 moreCaused by: java.lang.NullPointerException        at com.atlassian.aui.javascript.ContextPathTransformer.stripTrailingSlash(ContextPathTransformer.java:43)        at com.atlassian.aui.javascript.ContextPathTransformer.&lt;init&gt;(ContextPathTransformer.java:38)        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)        ... 185 more2012-05-01 08:43:28,131 INFO [http-8090-3] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLogRequest Unique ID : 6aaade55-5c3b-4d43-9af3-b9587d47999a--------------------------JVM Stats--------------------------allocatedHeap = 444334080availablePermGen = 166309688usedMemory = 342150736totalMemory = 444334080freeMemory = 102183344maxPermGen = 268435456usedPermGen = 102125768freeMemoryInMegabytes = 97freeAllocatedHeap = 102183344availableHeap = 174862768usedMemoryInMegabytes = 326maxHeap = 517013504usedHeap = 342150736totalMemoryInMegabytes = 423--------------------------Request Information--------------------------URL: http://MyURL/500page.jspScheme: httpServer: MyServerPort: 8090URI: /500page.jspContext Path:Servlet Path: /500page.jspPath Info: nullQuery String: null--------------------------Attributes--------------------------javax.servlet.forward.request_uri: /s/en_GB/3058/106/54/_/download/superbatch/js/batch.jsjavax.servlet.forward.context_path:javax.servlet.forward.servlet_path: /sjavax.servlet.forward.path_info: /500page.jspos_securityfilter_already_filtered: truejavax.servlet.error.message:atlassian.core.seraph.original.url: /download/superbatch/js/batch.jscom.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true__cleanup_recursion_counter: 0javax.servlet.error.status_code: 500javax.servlet.error.servlet_name: noopcom.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: truejavax.servlet.error.exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.aui.javascript.ContextPathTransformer': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.aui.javascript.ContextPathTransformer]: Constructor threw exception; nested exception is java.lang.NullPointerExceptioncom.atlassian.gzipfilter.GzipFilter_already_filtered: truejavax.servlet.error.request_uri: /s/en_GB/3058/106/54/_/download/superbatch/js/batch.jsloginfilter.already.filtered: true--------------------------Parameters--------------------------caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.aui.javascript.ContextPathTransformer': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.aui.javascript.ContextPathTransformer]: Constructor threw exception; nested exception is java.lang.NullPointerExceptionat org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.aui.javascript.ContextPathTransformer]: Constructor threw exception; nested exception is java.lang.NullPointerExceptionat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)caused by: java.lang.NullPointerExceptionat com.atlassian.aui.javascript.ContextPathTransformer.stripTrailingSlash(ContextPathTransformer.java:43)
```

```

```

```
Is there anything missing in the confluence stck which we have downloaded
```

```
or is it because we are downgrading the confluence version
```

```

```

```

```

Regards

Amarendra Thakur


Answers:
author: Joe Clark
body: Hi Amarendra,

<br />

Unfortunately upgrading Confluence is a one-way street. We don't support downgrades and all bets are off if you try.

If you took a backup of your system before upgrading, you should restore from that to get your Confluence 4.0.5 instance back up and running again.

Alternatively, maybe someone from Adaptavist can provide some information on how long it will be until the community bubbles plugin is available for Confluence 4.1?

comments: author: Amarendra Thakur
body: Thank you very much Joseph.This clears my doubt.I will try to restore confluence v4.0.5 with my backup.

Regards

Amarendra Thakur


Tags: downgrade