java - AbstractMethodError due to slf4j api and sl4j marker call apacheds-all-1.5.5 -


i landed on famous error:

java.lang.abstractmethoderror: ch.qos.logback.classic.logger.log(lorg/slf4j/marker;ljava/lang/string;iljava/lang/string;ljava/lang/throwable;)v @ org.apache.commons.logging.impl.slf4jlocationawarelog.debug(slf4jlocationawarelog.java:120) 

after going thru lot of questions here progress:

  • mvn.cmd dependency:tree -dskiptests | findstr /r /c:slf4j proof i'm using same versions of slf4j on slf4j-api, jcl-over-slf4j (1.5.5, can't use later versions coz of following)
  • looking classpath classes loaded see following results:

    debugjars(org.slf4j.spi.locationawarelogger.class); debugjars(org.apache.commons.logging.impl.slf4jlocationawarelog.class); debugjars(org.slf4j.marker.class);

    debugjars(ch.qos.logback.classic.logger.class);

returns:

file:/c:/users/user/.m2/repository/org/apache/directory/server/apacheds-all/1.5.5/apacheds-all-1.5.5.jar!/org/slf4j/spi/

file:/c:/users/user/.m2/repository/org/slf4j/jcl-over-slf4j/1.5.5/jcl-over-slf4j-1.5.5.jar!/org/apache/commons/logging/impl/

file:/c:/users/user/.m2/repository/org/apache/directory/server/apacheds-all/1.5.5/apacheds-all-1.5.5.jar!/org/slf4j/

file:/c:/users/user/.m2/repository/ch/qos/logback/logback-classic/1.1.2/logback-classic-1.1.2.jar!/ch/qos/logback/classic/

how of rid of fact apacheds-all override correct sl4j dependencies?

pom.xml doesn't include appacheds-all dependency understand may implicit dependency how can solve this?

i using same dependency, not facing issues can try following

<org.slf4j-version>1.5.5</org.slf4j-version>  <!-- logging -->         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-api</artifactid>             <version>${org.slf4j-version}</version>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>jcl-over-slf4j</artifactid>             <version>${org.slf4j-version}</version>             <scope>runtime</scope>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-log4j12</artifactid>             <version>${org.slf4j-version}</version>             <scope>runtime</scope>         </dependency>  <dependency>             <groupid>log4j</groupid>             <artifactid>log4j</artifactid>             <version>1.2.15</version>             <exclusions>                 <exclusion>                     <groupid>javax.mail</groupid>                     <artifactid>mail</artifactid>                 </exclusion>                 <exclusion>                     <groupid>javax.jms</groupid>                     <artifactid>jms</artifactid>                 </exclusion>                 <exclusion>                     <groupid>com.sun.jdmk</groupid>                     <artifactid>jmxtools</artifactid>                 </exclusion>                 <exclusion>                     <groupid>com.sun.jmx</groupid>                     <artifactid>jmxri</artifactid>                 </exclusion>             </exclusions>             <scope>runtime</scope>         </dependency> 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -