You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2019/10/27 00:27:00 UTC

[jira] [Resolved] (CALCITE-3444) Upgrade SQLLine to 1.9.0, and solve "Class path contains multiple SLF4J bindings" problem

     [ https://issues.apache.org/jira/browse/CALCITE-3444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-3444.
----------------------------------
    Resolution: Fixed

Fixed in [293059c1|https://github.com/apache/calcite/commit/293059c190d5347438f5bc77a4f844f86ce60226].

> Upgrade SQLLine to 1.9.0, and solve "Class path contains multiple SLF4J bindings" problem
> -----------------------------------------------------------------------------------------
>
>                 Key: CALCITE-3444
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3444
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.22.0
>
>
> The "Class path contains multiple SLF4J bindings" is as follows:
> {noformat}
> sqlline version 1.9.0
> sqlline> !connect jdbc:hsqldb:res:scott SCOTT TIGER
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:/Users/julianhyde/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:/Users/julianhyde/.m2/repository/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> 0: jdbc:hsqldb:res:scott> {noformat}
> Calcite's {{sqlline}} script generates {{target/fullclasspath.txt}} with both of the above jar files on it. The solution is to remove one of them. I propose to remove {{slf4j-log4j12}} from the generated classpath.
> Windows uses a different technique (copying dependencies to each module's target/dependencies directory). This change does not fix Windows.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)