FATAL com.appiancorp.common.web.StartupHaltingServletContextListener - Appian initialization FAILED

Certified Lead Developer

Hi all,

i tried to perform upgrade my local server from 23.1 to 23.2 inorder to upgrade the env i followed all the steps mentioned in https://docs.appian.com/suite/help/23.2/Upgrade_Guide.html while starting the tomcat appserver i noticed the fatal error pointing to local port by default appian install pointing to 9300 but search server poinitng to 9200, please find the log

Jun 20, 2023 5:06:38 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
log4j:ERROR Unable to deduce date from C:\appian_23.2\appian\logs\perflogs\http-requests-and-responses\integration_req_resp_activity.2023_06_16.1686880664795.log rotated log file.
log4j:ERROR Unable to deduce date from C:\appian_23.2\appian\logs\perflogs\http-requests-and-responses\integration_req_resp_activity.2023_06_15.1686825944448.log rotated log file.
2023-06-20 17:06:41,485 [wait-for-component] INFO  com.appiancorp.tools.WaitForServers - Waiting for servers to be up...
2023-06-20 17:06:41,528 [wait-for-component] INFO  com.appiancorp.common.persistence.search.SearchServerClientConfiguration - Using the Search Server client configuration specified in C:\appian_23.2\appian\conf\appian-topology.xml.
2023-06-20 17:06:41,583 [wait-for-component] INFO  com.appiancorp.common.startup.WaitForStatefulComponents - Appian component Primary datasource RDBMS is healthy
2023-06-20 17:06:42,137 [wait-for-component] INFO  com.appiancorp.common.persistence.search.AppianSearchSpringConfig - initializing client with server addresses: [localhost:9200]
2023-06-20 17:06:43,702 [wait-for-component] INFO  com.appiancorp.common.startup.WaitForStatefulComponents - Appian component Data Server is healthy
2023-06-20 17:06:45,720 [wait-for-component] INFO  com.appiancorp.common.startup.WaitForStatefulComponents - Appian component Kafka Topics is healthy
2023-06-20 17:06:46,067 [wait-for-component] INFO  com.appiancorp.cache.CacheBase - Initializing Cache komodo_lastUpdateTxId [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MaxSpoolPerRun=-1, appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs, appian.cacheattributes.MaxObjects=10000, appian.cacheattributes.MemoryUsageSamplePercentage=0.1, appian.cache.metrics.tracingEnabled=false, appian.cacheattributes.MaxEntrySizeBytes=-1, appian.cacheattributes.MaxCacheSizeBytes=-1, appian.cacheattributes.SegmentCount=-1, appian.cacheattributes.distributionMode=LOCAL_WITH_DISTRIBUTED_CLEAR, appian.elementattributes.MaxLifeSeconds=-1, appian.cacheattributes.cacheKey=komodo_lastUpdateTxId, appian.cacheattributes.bytesTrackingEnabled=false, appian.cacheattributes.MaxMemoryIdleTimeSeconds=300, appian.cacheattributes.cacheName=komodo_lastUpdateTxId, appian.cacheattributes.ShrinkerIntervalSeconds=3600}
2023-06-20 17:06:46,098 [wait-for-component] INFO  com.appiancorp.tools.WaitForServers - Waiting for analytics to be ready...
2023-06-20 17:06:46,303 [wait-for-component] INFO  com.appiancorp.cache.CacheBase - Initializing Cache types.type [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemCoupledLirs, appian.cacheattributes.MaxObjects=20000, //=AN-165948 use a single segment to work around deadlocks due to coupled keys having different hashes, appian.cacheattributes.SegmentCount=1, appian.cacheattributes.distributionMode=LOCAL_WITH_DISTRIBUTED_CLEAR, appian.cacheattributes.cacheKey=appian/cache/jcs-datatype-config.ccf, appian.cacheattributes.MaxMemoryIdleTimeSeconds=14400, appian.cacheattributes.cacheName=types.type, appian.cacheattributes.ShrinkerIntervalSeconds=3600}
2023-06-20 17:06:46,402 [wait-for-component] INFO  com.appiancorp.cache.CacheBase - Initializing Cache userPreferences [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MaxMemoryIdleTimeSeconds=1200, appian.cache.metrics.collectFullMetrics=false, appian.cacheattributes.ShrinkerIntervalSeconds=600, appian.cacheattributes.distributionMode=LOCAL_WITH_DISTRIBUTED_CLEAR, appian.cacheattributes.MaxObjects=5000, appian.cacheattributes.cacheKey=appian/cache/jcs-userPreferences-config.ccf, appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs, appian.cacheattributes.cacheName=userPreferences}
2023-06-20 17:06:46,495 [wait-for-component] INFO  com.appiancorp.cache.CacheBase - Initializing Cache globalization [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MaxMemoryIdleTimeSeconds=14400, appian.cache.metrics.collectFullMetrics=false, appian.cacheattributes.ShrinkerIntervalSeconds=3600, appian.cacheattributes.distributionMode=LOCAL_WITH_DISTRIBUTED_CLEAR, appian.cacheattributes.MaxObjects=10, appian.cacheattributes.cacheKey=appian/cache/jcs-globalization-config.ccf, appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs, appian.cacheattributes.cacheName=globalization}
2023-06-20 17:06:46,506 [wait-for-component] INFO  com.appiancorp.cache.CacheBase - Initializing Cache i18n [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MaxMemoryIdleTimeSeconds=14400, appian.cache.metrics.collectFullMetrics=false, appian.cacheattributes.ShrinkerIntervalSeconds=3600, appian.cacheattributes.distributionMode=LOCAL_ONLY, appian.cacheattributes.MaxObjects=1500, appian.cacheattributes.cacheKey=appian/cache/jcs-i18n-config.ccf, appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs, appian.cacheattributes.cacheName=i18n}
2023-06-20 17:06:46,560 [wait-for-component] INFO  com.appiancorp.cache.CacheBase - Initializing Cache groupNames [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs, appian.cacheattributes.MaxObjects=5000, appian.cache.metrics.collectFullMetrics=false, appian.cacheattributes.distributionMode=LOCAL_WITH_DISTRIBUTED_CLEAR, appian.cacheattributes.cacheKey=appian/cache/jcs-groupNameCache-config.ccf, appian.elementattributes.MaxLifeSeconds=5400, appian.cacheattributes.MaxMemoryIdleTimeSeconds=1800, appian.cacheattributes.cacheName=groupNames, appian.cacheattributes.ShrinkerIntervalSeconds=2700}
2023-06-20 17:06:46,564 [wait-for-component] INFO  com.appiancorp.cache.CacheBase - Initializing Cache groupMemberships [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MaxMemoryIdleTimeSeconds=1200, appian.cache.metrics.collectFullMetrics=false, appian.cacheattributes.ShrinkerIntervalSeconds=600, appian.cacheattributes.distributionMode=LOCAL_WITH_DISTRIBUTED_CLEAR, appian.cacheattributes.MaxObjects=5000, appian.cacheattributes.cacheKey=appian/cache/jcs-groupMembershipCache-config.ccf, appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs, appian.cacheattributes.cacheName=groupMemberships}
2023-06-20 17:06:47,272 [wait-for-component] INFO  com.appiancorp.tools.WaitForServers - ... done.
2023-06-20 17:06:48,584 [wait-for-component] INFO  com.appiancorp.cache.CacheBase - Initializing Cache favoritesCache [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs, appian.cacheattributes.MaxObjects=40000, appian.cache.metrics.collectFullMetrics=false, appian.cacheattributes.distributionMode=LOCAL_ONLY, appian.cacheattributes.cacheKey=appian/cache/jcs-favoritesCache-config.ccf, appian.elementattributes.MaxLifeSeconds=7200, appian.cacheattributes.MaxMemoryIdleTimeSeconds=7200, appian.cacheattributes.cacheName=favoritesCache, appian.cacheattributes.ShrinkerIntervalSeconds=10800}
2023-06-20 17:06:48,665 [wait-for-component] INFO  com.appiancorp.common.persistence.search.AppianSearchSpringConfig - client configured nodes: [[host=http://localhost:9200]]
2023-06-20 17:06:48,710 [wait-for-component] INFO  com.appiancorp.common.startup.WaitForStatefulComponents - Appian component Engines is healthy
2023-06-20 17:06:49,858 [wait-for-component] ERROR com.appiancorp.common.persistence.search.AppianSearchSpringConfig - error initializing client
com.appiancorp.suiteapi.common.exceptions.AppianException: The search server cannot be reached. Failed to connect to server at [localhost:9200]. Check that the search server is started. If running multiple application servers, check that appian-topology.xml is properly configured with the search cluster details. The appian-topology.xml file must be distributed to each /conf/ and /search-server/conf/ directory. See documentation for details. (APNX-1-4274-001)
	at com.appiancorp.suiteapi.common.exceptions.AppianRuntimeException.<init>(AppianRuntimeException.java:45)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig.clientManager(AppianSearchSpringConfig.java:113)
	at com.appiancorp.common.startup.healthcheck.SearchServerHealthCheck.isComponentHealthy(SearchServerHealthCheck.java:33)
	at com.appiancorp.common.startup.WaitForStatefulComponents.waitUntilComponentIsHealthy(WaitForStatefulComponents.java:105)
	at com.appiancorp.common.startup.WaitForStatefulComponents.lambda$null$0(WaitForStatefulComponents.java:117)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)
Caused by: ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [GET], host [http://localhost:9200], URI [/], 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:2154)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2118)
	at org.elasticsearch.client.RestHighLevelClient.info(RestHighLevelClient.java:969)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig.clientManager(AppianSearchSpringConfig.java:96)
	... 7 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)
		... 12 more
Caused by: org.elasticsearch.client.ResponseException: method [GET], host [http://localhost:9200], URI [/], 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)
	... 11 more
2023-06-20 17:06:50,042 [wait-for-component] INFO  com.appiancorp.common.startup.WaitForStatefulComponents - Appian component Search Server is healthy
2023-06-20 17:06:50,044 [main] INFO  com.appiancorp.common.startup.WaitForStatefulComponents - All Appian components required for webapp are ready [Primary datasource RDBMS, Engines, Kafka Topics, Search Server, Data Server].  Initializing Appian webapp...
2023-06-20 17:06:56,272 [main] INFO  com.appiancorp.cache.CacheBase - Initializing Cache idByUuid [com.appiancorp.cache.DefaultLirsCacheWrapper] with Configuration:
{appian.cacheattributes.MemoryCacheName=com.appiancorp.cache.JavaCachingSystemLirs, appian.cacheattributes.MaxObjects=64, appian.cache.metrics.collectFullMetrics=false, appian.cacheattributes.distributionMode=LOCAL_ONLY, appian.cacheattributes.cacheKey=appian/cache/jcs-idByUuidCache-config.ccf, appian.elementattributes.MaxLifeSeconds=3600, appian.cacheattributes.MaxMemoryIdleTimeSeconds=3600, appian.cacheattributes.cacheName=idByUuid, appian.cacheattributes.ShrinkerIntervalSeconds=3600}
Jun 20, 2023 5:06:56 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
2023-06-20 17:06:56,325 [main] INFO  org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
2023-06-20 17:07:18,163 [main] INFO  com.appiancorp.common.persistence.search.SearchServerClientConfiguration - Using the Search Server client configuration specified in C:\appian_23.2\appian\conf\appian-topology.xml.
2023-06-20 17:07:18,171 [main] INFO  com.appiancorp.common.persistence.search.AppianSearchSpringConfig - initializing client with server addresses: [localhost:9200]
2023-06-20 17:07:18,184 [main] INFO  com.appiancorp.common.persistence.search.AppianSearchSpringConfig - client configured nodes: [[host=http://localhost:9200]]
2023-06-20 17:07:18,205 [main] ERROR com.appiancorp.common.persistence.search.AppianSearchSpringConfig - error initializing client
com.appiancorp.suiteapi.common.exceptions.AppianException: The search server cannot be reached. Failed to connect to server at [localhost:9200]. Check that the search server is started. If running multiple application servers, check that appian-topology.xml is properly configured with the search cluster details. The appian-topology.xml file must be distributed to each /conf/ and /search-server/conf/ directory. See documentation for details. (APNX-1-4274-001)
	at com.appiancorp.suiteapi.common.exceptions.AppianRuntimeException.<init>(AppianRuntimeException.java:45)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig.clientManager(AppianSearchSpringConfig.java:113)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$9e9c6883.CGLIB$clientManager$4(<generated>)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$9e9c6883$$FastClassBySpringCGLIB$$694a0baa.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$$9e9c6883.clientManager(<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)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
	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)
	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.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)
	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)
	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 com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.lambda$contextInitialized$1(AppianSpringContextLoaderListener.java:34)
	at com.appiancorp.security.changelog.AuditLogLocationService.runWithLocation(AuditLogLocationService.java:34)
	at com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.contextInitialized(AppianSpringContextLoaderListener.java:29)
	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)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4494)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4946)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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:662)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:689)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1888)
	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:582)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:898)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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:871)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:428)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:914)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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: ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [GET], host [http://localhost:9200], URI [/], 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:2154)
	at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:2118)
	at org.elasticsearch.client.RestHighLevelClient.info(RestHighLevelClient.java:969)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig.clientManager(AppianSearchSpringConfig.java:96)
	... 113 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)
		... 118 more
Caused by: org.elasticsearch.client.ResponseException: method [GET], host [http://localhost:9200], URI [/], 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)
	... 117 more
2023-06-20 17:07:18,227 [main] INFO  com.appiancorp.common.persistence.search.SearchServerClientConfiguration - Using the Search Server client configuration specified in C:\appian_23.2\appian\conf\appian-topology.xml.
2023-06-20 17:07:19,812 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
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://localhost: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 com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.lambda$contextInitialized$1(AppianSpringContextLoaderListener.java:34)
	at com.appiancorp.security.changelog.AuditLogLocationService.runWithLocation(AuditLogLocationService.java:34)
	at com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.contextInitialized(AppianSpringContextLoaderListener.java:29)
	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)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4494)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4946)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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:662)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:689)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1888)
	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:582)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:898)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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:871)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:428)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:914)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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: 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://localhost: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)
	... 64 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://localhost: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)
	... 74 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://localhost: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)
	... 88 more
Caused by: ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://localhost: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:322)
	at com.appian.dl.repo.es.CdtRepoEsImpl$2.initialize(CdtRepoEsImpl.java:301)
	at com.appian.dl.core.base.LazyInitializer.get(LazyInitializer.java:43)
	at com.appian.dl.repo.es.CdtRepoEsImpl.<init>(CdtRepoEsImpl.java:270)
	at com.appian.dl.repo.es.CdtRepoEsImpl.<init>(CdtRepoEsImpl.java:148)
	at com.appian.dl.repo.es.CdtRepoEsImpl$Builder.build(CdtRepoEsImpl.java:701)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig.userActivityCdtRepo(AppianSearchSpringConfig.java:163)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$9e9c6883.CGLIB$userActivityCdtRepo$1(<generated>)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$9e9c6883$$FastClassBySpringCGLIB$$694a0baa.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$$9e9c6883.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)
	... 89 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)
		... 111 more
Caused by: org.elasticsearch.client.ResponseException: method [PUT], host [http://localhost: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)
	... 110 more
2023-06-20 17:07:19,819 [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://localhost: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:4494)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4946)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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:662)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:689)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1888)
	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:582)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:898)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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:871)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:428)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:914)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	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://localhost: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:42)
	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://localhost: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 com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.lambda$contextInitialized$1(AppianSpringContextLoaderListener.java:34)
	at com.appiancorp.security.changelog.AuditLogLocationService.runWithLocation(AuditLogLocationService.java:34)
	at com.appiancorp.common.AppianSpringContextLoaderListener$AppianContextLoaderListener.contextInitialized(AppianSpringContextLoaderListener.java:29)
	... 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://localhost: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)
	... 64 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://localhost: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)
	... 74 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://localhost: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)
	... 88 more
Caused by: ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [PUT], host [http://localhost: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:322)
	at com.appian.dl.repo.es.CdtRepoEsImpl$2.initialize(CdtRepoEsImpl.java:301)
	at com.appian.dl.core.base.LazyInitializer.get(LazyInitializer.java:43)
	at com.appian.dl.repo.es.CdtRepoEsImpl.<init>(CdtRepoEsImpl.java:270)
	at com.appian.dl.repo.es.CdtRepoEsImpl.<init>(CdtRepoEsImpl.java:148)
	at com.appian.dl.repo.es.CdtRepoEsImpl$Builder.build(CdtRepoEsImpl.java:701)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig.userActivityCdtRepo(AppianSearchSpringConfig.java:163)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$9e9c6883.CGLIB$userActivityCdtRepo$1(<generated>)
	at com.appiancorp.common.persistence.search.AppianSearchSpringConfig$$EnhancerBySpringCGLIB$$9e9c6883$$FastClassBySpringCGLIB$$694a0baa.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$$9e9c6883.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)
	... 89 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)
		... 111 more
Caused by: org.elasticsearch.client.ResponseException: method [PUT], host [http://localhost: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)
	... 110 more
2023-06-20 17:07:19,822 [main] FATAL com.appiancorp.common.web.StartupHaltingServletContextListener - Appian initialization FAILED: see above stacktrace for details

  Discussion posts and replies are publicly visible

  • +1
    Certified Lead Developer

    Did you start your search server?

    https://docs.appian.com/suite/help/23.2/Search_Server.html

    For communication with the application server, the search server will use the port specified by an optional httpPort element. When not specified, it defaults to the value of 9200. Thus, customers should have the 9200 port open for the search server

  • Hi @Srinivas 

    There are some general troubleshooting steps that you can try to resolve the issue you're facing. Here are a few suggestions:

    1. Verify the upgrade steps: Double-check that you followed all the steps mentioned in the Appian Upgrade Guide accurately, including any prerequisites, configuration changes, and database updates.

    2. Check the logs: Look for any additional error messages or stack traces in the logs, specifically related to the Appian initialization failure. The logs may provide more specific information about the cause of the issue.

    3. Port conflict: As you mentioned, there seems to be a conflict between the default ports used by Appian. Ensure that there are no other services or processes running on the same ports (9300 and 9200) that Appian requires. If necessary, you can modify the port configuration in the Appian configuration files.

    4. Validate database connectivity: Confirm that the upgraded Appian version can connect to the database successfully. Check the database connection configuration in the Appian configuration files and ensure that the database server is accessible.

    5. Review system requirements: Verify that your environment meets all the system requirements for the Appian version you're upgrading to. Check for any specific software versions or dependencies mentioned in the upgrade guide.

    6. Seek support: If the issue persists, consider reaching out to Appian support or consulting the Appian community forums. They may have specific insights or solutions related to the upgrade process or the error you encountered.

    Remember to take appropriate precautions, such as backing up your data and configuration files, before attempting any modifications or upgrades.

    Hope that helps