ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladislav Pyatkov <vldpyat...@gmail.com>
Subject Re: SLF4J AND LOG4J delegation exception with ignite dependency
Date Mon, 24 Oct 2016 15:37:01 GMT
Hi,

1) You can exclude slf4j-log4j12 dependency from ignite-rest-http.
Like this:

compile ('org.apache.ignite:ignite-rest-http:1.6.0') {
    exclude group: "org.slf4j", name: "slf4j-log4j12"
  }

2) Ignite 1.6 supports h2 1.3 version. You need to use last version 1.7 of
Ignite, with support h2 1.4.

On Sat, Oct 22, 2016 at 11:58 AM, chevy <chetan.v.yadav@target.com> wrote:

> 1. Now I am getting below exception. Saw in one of the threads that
> removing
> ignite-rest-http will solve the issue which it does. But I need to include
> rest-api as I will be using ignite rest services. Please help me fix this.
>
> java.lang.NoSuchMethodError:
> org.eclipse.jetty.util.log.StdErrLog.setProperties(Ljava/
> util/Properties;)V
>         at
> org.apache.ignite.internal.processors.rest.protocols.http.jetty.
> GridJettyRestProtocol.<clinit>(GridJettyRestProtocol.java:72)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:264)
>         at
> org.apache.ignite.internal.processors.rest.GridRestProcessor.
> startHttpProtocol(GridRestProcessor.java:831)
>         at
> org.apache.ignite.internal.processors.rest.GridRestProcessor.start(
> GridRestProcessor.java:451)
>         at
> org.apache.ignite.internal.IgniteKernal.startProcessor(
> IgniteKernal.java:1549)
>         at org.apache.ignite.internal.IgniteKernal.start(
> IgniteKernal.java:876)
>         at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(
> IgnitionEx.java:1736)
>         at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(
> IgnitionEx.java:1589)
>         at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.
> java:1042)
>         at
> org.apache.ignite.internal.IgnitionEx.startConfigurations(
> IgnitionEx.java:964)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.
> java:850)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.
> java:749)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.
> java:619)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.
> java:589)
>         at org.apache.ignite.Ignition.start(Ignition.java:347)
>         at com.boot.NodeStartup.main(NodeStartup.java:21)
>
> ---------------------------------------------------------------------
> 2. If I include ignite-indexing dependency (h2 is available in class path),
> I get below exception -
>
> java.lang.NoClassDefFoundError: org/h2/constant/SysProperties
>         at
> org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.start(
> IgniteH2Indexing.java:1487)
>         at
> org.apache.ignite.internal.processors.query.GridQueryProcessor.start(
> GridQueryProcessor.java:171)
>         at
> org.apache.ignite.internal.IgniteKernal.startProcessor(
> IgniteKernal.java:1549)
>         at org.apache.ignite.internal.IgniteKernal.start(
> IgniteKernal.java:869)
>         at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(
> IgnitionEx.java:1736)
>         at
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(
> IgnitionEx.java:1589)
>         at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.
> java:1042)
>         at
> org.apache.ignite.internal.IgnitionEx.startConfigurations(
> IgnitionEx.java:964)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.
> java:850)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.
> java:749)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.
> java:619)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.
> java:589)
>         at org.apache.ignite.Ignition.start(Ignition.java:347)
>         at com.boot.NodeStartup.main(NodeStartup.java:21)
> Caused by: java.lang.ClassNotFoundException: org.h2.constant.SysProperties
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 14 more
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/SLF4J-AND-LOG4J-delegation-exception-
> with-ignite-dependency-tp8415p8425.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 
Vladislav Pyatkov

Mime
View raw message