Error setting Log implementation. with slfj4j-api-1.7.12.jar

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error setting Log implementation. with slfj4j-api-1.7.12.jar

李硕
I use the settings <setting name="logImpl" value="SLF4J" /> in mybatis-confg.xml. ( logback v.1.2.1   slfj4j  v.1.7.12 ) But it throw a exception like this:

Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.logging.LogException: Error setting Log implementation.  Cause: java.lang.reflect.InvocationTargetException

when I update the version of slf4j to v.1.7.21,it work find !

But why? How can I get the correct version dependencies ?

Wish for response. 

THANKS.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error setting Log implementation. with slfj4j-api-1.7.12.jar

Kazuki Shimizu
See https://github.com/mybatis/mybatis-3/issues/1087

On Thursday, August 24, 2017 at 11:49:53 AM UTC+9, 李硕 wrote:
I use the settings <setting name="logImpl" value="SLF4J" /> in mybatis-confg.xml. ( logback v.1.2.1   slfj4j  v.1.7.12 ) But it throw a exception like this:

Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.logging.LogException: Error setting Log implementation.  Cause: java.lang.reflect.InvocationTargetException

when I update the version of slf4j to v.1.7.21,it work find !

But why? How can I get the correct version dependencies ?

Wish for response. 

THANKS.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.