2017-04-24 12:44:05,502 [http-bio-127.0.0.1-8080-exec-6] WARN org.springframework.web.context.support.AnnotationConfigWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'siteConfigPreferenceHandler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.nrg.prefs.events.AbstractPreferenceHandler.setAvailableMethods(java.util.List); nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requiredChannelHandlerMethod' defined in file [/var/lib/tomcat/webapps/xnat/WEB-INF/classes/org/nrg/xnat/event/listeners/methods/RequiredChannelHandlerMethod.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute
2017-04-24 12:44:05,564 [http-bio-127.0.0.1-8080-exec-6] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'siteConfigPreferenceHandler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.nrg.prefs.events.AbstractPreferenceHandler.setAvailableMethods(java.util.List); nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requiredChannelHandlerMethod' defined in file [/var/lib/tomcat/webapps/xnat/WEB-INF/classes/org/nrg/xnat/event/listeners/methods/RequiredChannelHandlerMethod.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1219)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:778)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:843)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5116)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:615)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.nrg.prefs.events.AbstractPreferenceHandler.setAvailableMethods(java.util.List); nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requiredChannelHandlerMethod' defined in file [/var/lib/tomcat/webapps/xnat/WEB-INF/classes/org/nrg/xnat/event/listeners/methods/RequiredChannelHandlerMethod.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:661)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
... 47 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requiredChannelHandlerMethod' defined in file [/var/lib/tomcat/webapps/xnat/WEB-INF/classes/org/nrg/xnat/event/listeners/methods/RequiredChannelHandlerMethod.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1148)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1075)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1021)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:618)
... 49 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'channelProcessingFilter' defined in org.nrg.xnat.initialization.SecurityConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1022)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1123)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1021)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:814)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
... 62 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.nrg.xnat.security.TranslatingChannelProcessingFilter]: Factory method 'channelProcessingFilter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Unknown channel attribute
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 75 more
Caused by: org.springframework.beans.factory.BeanCreationException: Unknown channel attribute
at org.springframework.security.config.http.ChannelAttributeFactory.createChannelAttributes(ChannelAttributeFactory.java:35)
at org.nrg.xnat.security.TranslatingChannelProcessingFilter.setRequiredChannel(TranslatingChannelProcessingFilter.java:32)
at org.nrg.xnat.initialization.SecurityConfig.channelProcessingFilter(SecurityConfig.java:140)
at org.nrg.xnat.initialization.SecurityConfig$$EnhancerBySpringCGLIB$$f230f267.CGLIB$channelProcessingFilter$8(<generated>)
at org.nrg.xnat.initialization.SecurityConfig$$EnhancerBySpringCGLIB$$f230f267$$FastClassBySpringCGLIB$$6dc9aaaf.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
at org.nrg.xnat.initialization.SecurityConfig$$EnhancerBySpringCGLIB$$f230f267.channelProcessingFilter(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 76 more
I've noticed that some other users are getting similar issues but their logs seem slightly different to mine. It looks like it's having an issue on initializing. I've tried searching various phrases from this log to see if anything comes up but I can't find anything. Interestingly if I roll back to 1.7.0 it all works just fine.
Anyway, I'm at a dead end and hoping someone could help me please.
Cheers,
Mic