Having application server issues with creating bean with name userActivityFilter on v22.4

I am having trouble starting the application server on a new Appian 22.4 Windows installation.

I am getting this in tomcat-stdout.log. Is there a solution to this? Thank you!

2024-06-11 15:42:49,629 [main] FATAL com.appiancorp.common.web.StartupHaltingServletContextListener - Halting JVM startup
com.appiancorp.suiteapi.common.exceptions.AppianException: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userActivityFilter' defined in ServletContext resource [/WEB-INF/conf/security/spring-security-01-common.xml]: Cannot resolve reference to bean 'userActivityService' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userActivityService' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Unsatisfied dependency expressed through method 'userActivityService' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userActivityCdtRepo' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.appian.dl.repo.cdt.CdtRepo]: Factory method 'userActivityCdtRepo' threw exception; nested exception is ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://XCBN2E1AWDAPN01.ds.xc.nga.mil:9200], URI [/user-activity-7-0/_settings?master_timeout=30s&timeout=30s], status line [HTTP/1.1 401 Unauthorized]
];
at com.appiancorp.common.web.StartupHaltingServletContextListener.contextInitialized(StartupHaltingServletContextListener.java:62)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4462)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4914)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:661)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:691)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1897)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:584)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1619)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userActivityFilter' defined in ServletContext resource [/WEB-INF/conf/security/spring-security-01-common.xml]: Cannot resolve reference to bean 'userActivityService' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userActivityService' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Unsatisfied dependency expressed through method 'userActivityService' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userActivityCdtRepo' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.appian.dl.repo.cdt.CdtRepo]: Factory method 'userActivityCdtRepo' threw exception; nested exception is ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://XCBN2E1AWDAPN01.ds.xc.nga.mil:9200], URI [/user-activity-7-0/_settings?master_timeout=30s&timeout=30s], status line [HTTP/1.1 401 Unauthorized]
];
at com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.contextInitialized(AppianSpringContextLoaderListener.java:32)
at com.appiancorp.common.web.StartupHaltingServletContextListener.doContextInitialized(StartupHaltingServletContextListener.java:81)
at com.appiancorp.common.web.StartupHaltingServletContextListener.lambda$contextInitialized$0(StartupHaltingServletContextListener.java:55)
at com.appiancorp.security.changelog.AuditLogLocationService.runWithLocation(AuditLogLocationService.java:38)
at com.appiancorp.common.web.StartupHaltingServletContextListener.contextInitialized(StartupHaltingServletContextListener.java:55)
... 41 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userActivityFilter' defined in ServletContext resource [/WEB-INF/conf/security/spring-security-01-common.xml]: Cannot resolve reference to bean 'userActivityService' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userActivityService' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Unsatisfied dependency expressed through method 'userActivityService' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userActivityCdtRepo' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.appian.dl.repo.cdt.CdtRepo]: Factory method 'userActivityCdtRepo' threw exception; nested exception is ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://XCBN2E1AWDAPN01.ds.xc.nga.mil:9200], URI [/user-activity-7-0/_settings?master_timeout=30s&timeout=30s], status line [HTTP/1.1 401 Unauthorized]
];
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:707)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:198)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:399)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:278)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
at com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.lambda$contextInitialized$0(AppianSpringContextLoaderListener.java:27)
at com.appiancorp.security.changelog.AuditLogLocationService.runWithLocation(AuditLogLocationService.java:34)
at com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.contextInitialized(AppianSpringContextLoaderListener.java:25)
... 45 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userActivityService' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Unsatisfied dependency expressed through method 'userActivityService' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userActivityCdtRepo' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.appian.dl.repo.cdt.CdtRepo]: Factory method 'userActivityCdtRepo' threw exception; nested exception is ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://XCBN2E1AWDAPN01.ds.xc.nga.mil:9200], URI [/user-activity-7-0/_settings?master_timeout=30s&timeout=30s], status line [HTTP/1.1 401 Unauthorized]
];
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:541)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330)
... 65 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userActivityCdtRepo' defined in class path resource [com/appiancorp/common/persistence/search/AppianSearchSpringConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.appian.dl.repo.cdt.CdtRepo]: Factory method 'userActivityCdtRepo' threw exception; nested exception is ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://XCBN2E1AWDAPN01.ds.xc.nga.mil:9200], URI [/user-activity-7-0/_settings?master_timeout=30s&timeout=30s], status line [HTTP/1.1 401 Unauthorized]
];
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
... 75 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.appian.dl.repo.cdt.CdtRepo]: Factory method 'userActivityCdtRepo' threw exception; nested exception is ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://XCBN2E1AWDAPN01.ds.xc.nga.mil:9200], URI [/user-activity-7-0/_settings?master_timeout=30s&timeout=30s], status line [HTTP/1.1 401 Unauthorized]
];
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
... 89 more
Caused by: ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://XCBN2E1AWDAPN01.ds.xc.nga.mil:9200], URI [/user-activity-7-0/_settings?master_timeout=30s&timeout=30s], status line [HTTP/1.1 401 Unauthorized]
];
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2464)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2184)
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:2137)
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2105)
at org.elasticsearch.client.IndicesClient.putSettings(IndicesClient.java:1771)
at com.appian.dl.repo.es.IndexManager.updateSettings(IndexManager.java:92)
at com.appian.dl.repo.es.CdtRepoEsImpl$2.initialize(CdtRepoEsImpl.java:324)
at com.appian.dl.repo.es.CdtRepoEsImpl$2.initialize(CdtRepoEsImpl.java:303)
at com.appian.dl.core.base.LazyInitializer.get(LazyInitializer.java:43)
at com.appian.dl.repo.es.CdtRepoEsImpl.<init>(CdtRepoEsImpl.java:272)
at com.appian.dl.repo.es.CdtRepoEsImpl.<init>(CdtRepoEsImpl.java:150)
at com.appian.dl.repo.es.CdtRepoEsImpl$Builder.build(CdtRepoEsImpl.java:703)
at com.appiancorp.common.persistence.search.AppianSearchSpringConfig.userActivityCdtRepo(AppianSearchSpringConfig.java:163)
at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$d47cd80e.CGLIB$userActivityCdtRepo$2(<generated>)
at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$d47cd80e$$FastClassBySpringCGLIB$$b8b674bc.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$d47cd80e.userActivityCdtRepo(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
... 90 more
Suppressed: java.lang.IllegalStateException: Unsupported Content-Type: text/plain; charset=UTF-8
at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:2481)
at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:2461)
... 112 more
Caused by: org.elasticsearch.client.ResponseException: method [PUT], host [http://XCBN2E1AWDAPN01.ds.xc.nga.mil:9200], URI [/user-activity-7-0/_settings?master_timeout=30s&timeout=30s], status line [HTTP/1.1 401 Unauthorized]

at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:347)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:313)
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:288)
at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2699)
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:2171)
... 111 more
2024-06-11 15:42:49,632 [main] FATAL com.appiancorp.common.web.StartupHaltingServletContextListener - Appian initialization FAILED: see above stacktrace for details

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data