java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.arrayFormat
=====問題1:=========================================================================
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data/elasticsearch/plugins/transport-thrift/slf4j-log4j12-1.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/elasticsearch/plugins/mapper-attachments/tika-app-1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See
產生原因:在slf4j-log4j12-1.6.2.jar和tika-app-1.1.jar裡都有SLF4J,重複了
解決方法:我是把slf4j-log4j12-1.6.2.jar改成了slf4j-log4j12-1.6.2.jar.bak,也就是讓此jar包失效
======問題2:==========================================================================
SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible with [1.6]
產生原因:tika-app-1.1.jar裡面包含了一個SLF4J的舊版本的class
解決方法:把tika-app-1.1.jar改成tika-app-1.1.jar.bak,也是讓jar包失效
=======問題3========================================================================
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
產生原因:上面的兩個jar檔案被失效了,所以在呼叫的時候報錯
解決方法:乾脆把這兩個外掛都刪掉【transport-thrift和mapper-attachments】