SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
来源:互联网 发布:在线报名表单系统源码 编辑:程序博客网 时间:2024/05/16 09:32
在测试hibernate环境是否搭建成功时,出现错误如下:
SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;
at org.slf4j.impl.Log4jLoggerAdapter.debug(Log4jLoggerAdapter.java:246)
at org.hibernate.type.BasicTypeRegistry.register(BasicTypeRegistry.java:147)
at org.hibernate.type.BasicTypeRegistry.<init>(BasicTypeRegistry.java:50)
at org.hibernate.type.TypeResolver.<init>(TypeResolver.java:59)
at org.hibernate.cfg.Configuration.<init>(Configuration.java:250)
at org.hibernate.cfg.Configuration.<init>(Configuration.java:302)
at liu.qin.TestHibernate.main(TestHibernate.java:13)
在lib中,此时slf4j的版本是1.6,而slf4j-log4j的版本是1.5.8。由于版本的不兼容性,导致了这个错误。另外下载slf4j-log4j的1.6版本后,解决问题。
- SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
- SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6] SLF4J: See htt
- The requested version 1.6 by your slf4j binding is not compatible with [1.5.
- SLF4J: The requested version 1.5.8 by your slf4j
- Genymotion:the app is not compatible with your genymotion
- slf4j-api 1.6.x (or later) is incompatible with this binding.解决方案及原理
- slf4j-api 1.6.x (or later) is incompatible with this binding.解决方案及原理
- hadoop slf4j-api 1.6.x (or later) is incompatible with this binding
- slf4j-api 1.6.x (or later) is incompatible with this binding.解决方案及原理
- slf4j-api 1.6.x (or later) is incompatible with this binding.解决方案及原理
- slf4j-api 1.6.x (or later) is incompatible with this binding.解决方案及原理
- The provider is not compatible with the version of Oracle client
- Ubuntu Error: the system network service is not compatible with this version
- Google Chrome Your browser is not compatible with FlexPaper问题解决
- Android Studio Error: Error:CreateProcess error=216, This version of %1 is not compatible with the v
- SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
- mvn install Geoserver under ubuntu10.04 时遇到的错误:the API of the mojo scanner is not compatible with this plugin version. 的解决方法
- The provider is not compatible with the version of Oracle client sometimes (提供程序与此版本的 Oracle 客户机不兼容)
- Js中的history.back()在FireFox和Chrome
- C++箴言:接口继承和实现继承
- Android资源
- linux下的动态库
- Uva 177 Paper Folder 题解
- SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]
- JSP,服务器引擎加载jsp的时候,jsp中读取路径的有关疑问
- 与Java的MD5算法一致的C/C++的MD5算法
- 春秋战国诸侯世系表及周天子世系表
- 【linux】这不是一个好的开始
- JDBC事务的实现
- 修改mysql数据库导入大小
- gson对各种Java对象与json的转换的支持
- Linux相关介绍