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

Samebug tips3

tip

Spring expects that the EntityManagerFactory has to be called "entityManagerFactory". It uses convention over configuration to make it easier to use.


rprp
tip

Check Servers Launch Configuration in Eclipse. See the details below.


rprp

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web569

  • via by Thiago Bomfim [Atlassian],
  • via by Thiago Bomfim [Atlassian],
  • Stack trace

    • 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]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    128 more bugmates