You are currently reviewing an older revision of this page.

"Error creating bean with name 'pojoDatatypesConfig'" returned during Application Server startup

Symptoms

During JBoss 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