2016-01-13 607 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})"