org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auditEventListener': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.stash.internal.audit.AuditEventListener.setPriorityToLog(com.atlassian.stash.audit.Priority); nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found

Atlassian JIRA | Thiago Bomfim [Atlassian] | 2 years ago
  1. 0

    Stash fails to startup if {{audit.highest.priority.to.log}} is set with an unsupported value. This is a configuration setting that controls how many audit events get logged in your {{STASH_HOME/log/audit/atlassian-stash-audit*.log}}. *Problem:* If the value attributed to that parameter isn't one of the supported values Stash will fail to come up. Stash doesn't check that before trying to convert it to an enum value. Here are the supported values: {noformat:title=atlassian-stash.log} # Defines the lowest priority audit events that will be logged. This does not affect items stored in the audit log UI. # Accepted values are: HIGH, MEDIUM, LOW and NONE. Setting the value to HIGH will result in only HIGH level events being logged # NONE will cause no events to be logged. MEDIUM will only allow events with a priority of MEDIUM and HIGH to be logged. audit.highest.priority.to.log=HIGH {noformat} *PS:* 'low' is in *unsupported* and it will fail. It needs to be in all caps. *Log of the failure:* {noformat} 2014-12-22 15:06:08,392 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auditEventListener': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.stash.internal.audit.AuditEventListener.setPriorityToLog(com.atlassian.stash.audit.Priority); nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[AutowiredAnnotationBeanPostProcessor.class:4.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[AbstractApplicationContext.class:4.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) ~[AbstractApplicationContext.class:4.1.1.RELEASE] at javax.servlet.GenericServlet.init(GenericServlet.java:158) [servlet-api.jar:3.1.FR] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71] ... 16 frames trimmed Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.stash.internal.audit.AuditEventListener.setPriorityToLog(com.atlassian.stash.audit.Priority); nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:643) ~[AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.class:4.1.1.RELEASE] ... 5 common frames omitted Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found at org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:74) ~[TypeConverterSupport.class:4.1.1.RELEASE] at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:47) ~[TypeConverterSupport.class:4.1.1.RELEASE] ... 5 common frames omitted Caused by: java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:287) ~[TypeConverterDelegate.class:4.1.1.RELEASE] at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:107) ~[TypeConverterDelegate.class:4.1.1.RELEASE] at org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:64) ~[TypeConverterSupport.class:4.1.1.RELEASE] ... 6 common frames omitted {noformat}

    Atlassian JIRA | 2 years ago | Thiago Bomfim [Atlassian]
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auditEventListener': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.stash.internal.audit.AuditEventListener.setPriorityToLog(com.atlassian.stash.audit.Priority); nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found
  2. 0

    Stash fails to startup if {{audit.highest.priority.to.log}} is set with an unsupported value. This is a configuration setting that controls how many audit events get logged in your {{STASH_HOME/log/audit/atlassian-stash-audit*.log}}. *Problem:* If the value attributed to that parameter isn't one of the supported values Stash will fail to come up. Stash doesn't check that before trying to convert it to an enum value. Here are the supported values: {noformat:title=atlassian-stash.log} # Defines the lowest priority audit events that will be logged. This does not affect items stored in the audit log UI. # Accepted values are: HIGH, MEDIUM, LOW and NONE. Setting the value to HIGH will result in only HIGH level events being logged # NONE will cause no events to be logged. MEDIUM will only allow events with a priority of MEDIUM and HIGH to be logged. audit.highest.priority.to.log=HIGH {noformat} *PS:* 'low' is in *unsupported* and it will fail. It needs to be in all caps. *Log of the failure:* {noformat} 2014-12-22 15:06:08,392 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auditEventListener': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.stash.internal.audit.AuditEventListener.setPriorityToLog(com.atlassian.stash.audit.Priority); nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[AutowiredAnnotationBeanPostProcessor.class:4.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[AbstractApplicationContext.class:4.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) ~[AbstractApplicationContext.class:4.1.1.RELEASE] at javax.servlet.GenericServlet.init(GenericServlet.java:158) [servlet-api.jar:3.1.FR] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71] ... 16 frames trimmed Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.stash.internal.audit.AuditEventListener.setPriorityToLog(com.atlassian.stash.audit.Priority); nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:643) ~[AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.class:4.1.1.RELEASE] ... 5 common frames omitted Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found at org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:74) ~[TypeConverterSupport.class:4.1.1.RELEASE] at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:47) ~[TypeConverterSupport.class:4.1.1.RELEASE] ... 5 common frames omitted Caused by: java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:287) ~[TypeConverterDelegate.class:4.1.1.RELEASE] at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:107) ~[TypeConverterDelegate.class:4.1.1.RELEASE] at org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:64) ~[TypeConverterSupport.class:4.1.1.RELEASE] ... 6 common frames omitted {noformat}

    Atlassian JIRA | 2 years ago | Thiago Bomfim [Atlassian]
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auditEventListener': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.stash.internal.audit.AuditEventListener.setPriorityToLog(com.atlassian.stash.audit.Priority); nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found
  3. 0

    spring boot: can't initialize a postgresql datasource

    Stack Overflow | 2 years ago | Daniel Wu
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration.dataSources; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'datasourceTest' defined in class path resource [com/testcom/etc/ETLJobRepository.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'datasourceTest' threw exception; nested exception is java.lang.IllegalStateException: No supported DataSource type found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    @Value -> Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'

    Stack Overflow | 2 years ago | Vojtech
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cz.pokus.core.test.config.ConversionServiceTestConfig': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.List cz.pokus.core.test.config.ConversionServiceTestConfig.converterList; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpRequestParamsToPaginationParams': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.lang.Integer cz.pokus.core.cases.converter.HttpRequestParamsToPaginationParams.count; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "${cases.caseList.numberOfCasesPerPage}"
  6. 0

    Cannot configure Neo4j and JUnit with annotations

    Stack Overflow | 2 years ago | SteveS
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hello.TestIt': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: requirement failed: Can't work with a null graph database

  1. asdasd 2 times, last 3 months ago
  2. Tahir 4 times, last 3 months ago
  3. fima 25 times, last 2 months ago
  4. Shadd518 63 times, last 3 months ago
  5. Mark 1 times, last 5 months ago
21 more registered users
17 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.factory.BeanCreationException

    Error creating bean with name 'auditEventListener': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.atlassian.stash.internal.audit.AuditEventListener.setPriorityToLog(com.atlassian.stash.audit.Priority); nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.atlassian.stash.audit.Priority'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [com.atlassian.stash.audit.Priority]: no matching editors or conversion strategy found

    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues()
  2. Spring Beans
    AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues
    1. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)[AutowiredAnnotationBeanPostProcessor.class:4.1.1.RELEASE]
    1 frame
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)[AbstractApplicationContext.class:4.1.1.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)[AbstractApplicationContext.class:4.1.1.RELEASE]
    2 frames
  4. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:158)[servlet-api.jar:3.1.FR]
    1 frame
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.7.0_71]
    1 frame