KB-1427 Factory method 'primaryDataSourceConfig' threw exception; nested exception is java.lang.StackOverflowError

Symptoms

During application server startup, the following error is shown in the application server log:

INFO  [stdout] (ServerService Thread Pool -- 61) 2017-11-29 08:54:30,476 [ServerService Thread Pool -- 61] FATAL com.appiancorp.common.web.StartupHaltingServletContextListener - Halting JVM startup: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pojoDatatypesConfig' defined in com.appiancorp.common.spring.BootstrapSpringConfig: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.appiancorp.rdbms.config.PrimaryDataSourceConfig]: : Error creating bean with name 'primaryDataSourceConfig' defined in com.appiancorp.common.spring.BootstrapSpringConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.appiancorp.rdbms.config.PrimaryDataSourceConfig]: Factory method 'primaryDataSourceConfig' threw exception; nested exception is java.lang.StackOverflowError; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'primaryDataSourceConfig' defined in com.appiancorp.common.spring.BootstrapSpringConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.appiancorp.rdbms.config.PrimaryDataSourceConfig]: Factory method 'primaryDataSourceConfig' threw exception; nested exception is java.lang.StackOverflowError

Cause

The index-primary indices are out of sync with the primary data source.

Action

  1. Stop the application server. 
  2. Delete the <APPIAN_HOME>/_admin/search-local/index-primary directory.
  3. Start the application server.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: November 2017

Related
Recommended