我已将springboot版本从1.2.1升级到1.3.3但我遇到了一些回滚问题:
版本1.2.1它完全正常:
异常:
while (curLog.moveToNext()) {
String callNumber = curLog.getString( curLog.getColumnIndex(android.provider.CallLog.Calls.NUMBER));
conNumbers.add(callNumber);
String callName = curLog.getString( curLog.getColumnIndex(android.provider.CallLog.Calls.CACHED_NAME));
conNames.add(callName);
String callType = curLog.getString(curLog.getColumnIndex(android.provider.CallLog.Calls.TYPE));
String dir = null;
int dircode = Integer.parseInt(callType);
switch (dircode) {
case CallLog.Calls.OUTGOING_TYPE:
dir = "Outgoing";
break;
case CallLog.Calls.INCOMING_TYPE:
dir = "Incoming";
break;
case CallLog.Calls.MISSED_TYPE:
dir = "Missed";
break;
}
conType.add(dir);
String callDate = curLog.getString( curLog.getColumnIndex(android.provider.CallLog.Calls.DATE));
SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yyyy HH:mm");
String dateString = formatter.format(new Date(Long.parseLong(callDate)));
condateTime.add(dateString);
}
Logback.xml:
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.spi.Interpreter@14:16 - no applicable action for [pattern], current ElementPath is [[configuration][appender][layout][pattern]]
ERROR in ch.qos.logback.core.joran.action.NestedBasicPropertyIA - Unexpected aggregationType AS_BASIC_PROPERTY_COLLECTION
ERROR in ch.qos.logback.core.joran.spi.Interpreter@23:66 - no applicable action for [staticField], current ElementPath is [[configuration][appender][layout][staticField]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@24:24 - no applicable action for [key], current ElementPath is [[configuration][appender][layout][staticField][key]]
ERROR in ch.qos.logback.core.joran.spi.Interpreter@25:26 - no applicable action for [value], current ElementPath is [[configuration][appender][layout][staticField][value]]
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:151)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.reinitialize(LogbackLoggingSystem.java:195)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:65)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:50)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:106)
at org.springframework.boot.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:277)
at org.springframework.boot.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:255)
at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:224)
at org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:200)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121)
at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:65)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:330)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
at com.xx.yy.zz.hh.Application.main(Application.java:14)
我尝试使用此问题中提到的依赖关系管理,但它对我不起作用:
答案 0 :(得分:0)
升级到Spring Boot 1.3.4是一个选项吗?
虽然症状不完全相同,但它仍然指向1.3.3中的logback依赖性问题。它似乎在1.3.4:https://github.com/logstash/logstash-logback-encoder/issues/153
中得到修复Ugrading to Spring Boot 1.3.4 fixed this for me