2016-01-13 605 views
0

我最近决定让JHipster尝试开发新的Java应用程序。到目前为止它已经很好,但是在创建几个实体之后,现在我得到了一个IllegalStateException,用于“检测到Logback配置错误”。JHipster Spring启动失败,出现Logback配置错误

2016-01-12 23:08:00.187 ERROR 5972 --- [ restartedMain] o.s.boot.SpringApplication    : Application startup failed 

java.lang.IllegalStateException: Logback configuration error detected: 
ERROR in [email protected] - There is no conversion class registered for composite conversion word [clr] 
ERROR in [email protected] - Failed to create converter for [%clr] keyword 
ERROR in [email protected] - There is no conversion class registered for composite conversion word [clr] 
ERROR in [email protected] - Failed to create converter for [%clr] keyword 
ERROR in [email protected] - There is no conversion class registered for composite conversion word [clr] 
ERROR in [email protected] - Failed to create converter for [%clr] keyword 
ERROR in [email protected] - There is no conversion class registered for composite conversion word [clr] 
ERROR in [email protected] - Failed to create converter for [%clr] keyword 
ERROR in [email protected] - There is no conversion class registered for composite conversion word [clr] 
ERROR in [email protected] - Failed to create converter for [%clr] keyword 
ERROR in [email protected] - There is no conversion class registered for composite conversion word [clr] 
ERROR in [email protected] - Failed to create converter for [%clr] keyword 
ERROR in [email protected] - There is no conversion class registered for composite conversion word [clr] 
ERROR in [email protected] - Failed to create converter for [%clr] keyword 
ERROR in [email protected] - There is no conversion class registered for conversion word [wEx] 
ERROR in [email protected] - [wEx] is not a valid conversion word 
ERROR in [email protected] - There is no conversion class registered for conversion word [wEx] 
ERROR in [email protected] - [wEx] is not a valid conversion word 
    at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:153) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:71) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:49) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:106) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:262) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:233) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:200) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:176) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:163) ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] 
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:136) ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] 
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:119) ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] 
    at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:65) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:325) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] 
    at com.electom.higgler.Application.main(Application.java:74) [classes/:na] 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_66] 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_66] 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_66] 
    at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_66] 
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.3.1.RELEASE.jar:1.3.1.RELEASE] 

任何援助,可能会呈现非常感谢!

在此先感谢!

+0

错误说你的logback-spring.xml中有一个错误,比较它的当前内容和应用程序生成后的最初内容。 –

回答

0

看起来您的logback配置有不正确的值。特别针对logback布局的着色功能。

我会参考这篇文章,并确保你有正确的布局。也许这样的东西:

public static final String CONSOLE_PATTERN = 
    "%yellow(%d{yyyy-MM-dd HH:mm:ss.SSS})"