Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A0E18200BA8 for ; Mon, 24 Oct 2016 20:14:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9F3D3160AEB; Mon, 24 Oct 2016 18:14:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 502F7160AD7 for ; Mon, 24 Oct 2016 20:14:00 +0200 (CEST) Received: (qmail 64039 invoked by uid 500); 24 Oct 2016 18:13:59 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 64029 invoked by uid 99); 24 Oct 2016 18:13:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2016 18:13:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 00DF1180BD7 for ; Mon, 24 Oct 2016 18:13:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.072 X-Spam-Level: *** X-Spam-Status: No, score=3.072 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_UNSUB1=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id gFxaVgLtD5K2 for ; Mon, 24 Oct 2016 18:13:52 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 429E65FBCD for ; Mon, 24 Oct 2016 18:13:52 +0000 (UTC) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mbob.nabble.com (Postfix) with ESMTP id 714763466266 for ; Mon, 24 Oct 2016 11:06:14 -0700 (PDT) Date: Mon, 24 Oct 2016 11:13:29 -0700 (MST) From: chevy To: user@ignite.apache.org Message-ID: <5A1888AE-1746-4AEC-B2F2-C17257FC9A6A@target.com> In-Reply-To: References: <1477075303462-8415.post@n6.nabble.com> <1477109956472-8420.post@n6.nabble.com> <1477126680969-8425.post@n6.nabble.com> Subject: Re: [EXTERNAL] Re: SLF4J AND LOG4J delegation exception with ignite dependency MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12825_683159436.1477332809073" archived-at: Mon, 24 Oct 2016 18:14:01 -0000 ------=_Part_12825_683159436.1477332809073 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit My current dependency looks like below [1](I am getting error pop up in eclipse when I use name in exclude as you have suggested). But I still get the same exception [2] mentioned below - 1. dependencies { compile ("org.apache.ignite:ignite-rest-http:1.7.0") { exclude group: "org.slf4j"} //compile 'org.slf4j:slf4j-api:1.7.21' compile("org.springframework.boot:spring-boot-starter-web") compile("org.springframework.boot:spring-boot-starter-jdbc") compile("org.springframework.boot:spring-boot-starter-data-jpa") compile("mysql:mysql-connector-java:5.1.34") // Ignite dependencies compile group: 'org.apache.ignite', name: 'ignite-core', version: '1.7.0' compile group: 'org.apache.ignite', name: 'ignite-spring', version: '1.7.0' compile group: 'org.apache.ignite', name: 'ignite-indexing', version: '1.7.0' compile group: 'org.apache.ignite', name: 'ignite-rest-http', version: '1.7.0' configurations { runtime.exclude group: 'org.slf4j' } } 2. Exception: 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.(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:1589) at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:880) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1739) 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) -- Regards, Chetan. From: "vdpyatkov [via Apache Ignite Users]" Date: Monday, October 24, 2016 at 9:07 PM To: "Chetan.V.Yadav" Subject: [EXTERNAL] Re: SLF4J AND LOG4J delegation exception with ignite dependency 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 <[hidden email]> 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.(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 ________________________________ If you reply to this email, your message will be added to the discussion below: http://apache-ignite-users.70518.x6.nabble.com/SLF4J-AND-LOG4J-delegation-exception-with-ignite-dependency-tp8415p8443.html To unsubscribe from SLF4J AND LOG4J delegation exception with ignite dependency, click here. NAML -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/SLF4J-AND-LOG4J-delegation-exception-with-ignite-dependency-tp8415p8444.html Sent from the Apache Ignite Users mailing list archive at Nabble.com. ------=_Part_12825_683159436.1477332809073 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

My current dependency looks like below [1](I am getting error pop up in eclipse when I use name in exclude as you have suggested). But I still get the same exception [2] mentioned below -

 

1.  dependencies {

    

      compile ("org.apache.ignite:ignite-rest-http:1.7.0") {

            exclude group: "org.slf4j"}

 

    //compile 'org.slf4j:slf4j-api:1.7.21'

     compile("org.springframework.boot:spring-boot-starter-web")

      compile("org.springframework.boot:spring-boot-starter-jdbc")

     compile("org.springframework.boot:spring-boot-starter-data-jpa")

      compile("mysql:mysql-connector-java:5.1.34")

    

      // Ignite dependencies

     compile group: 'org.apache.ignite', name: 'ignite-core', version: '1.7.0'

     compile group: 'org.apache.ignite', name: 'ignite-spring', version: '1.7.0'

     compile group: 'org.apache.ignite', name: 'ignite-indexing', version: '1.7.0'

      compile group: 'org.apache.ignite', name: 'ignite-rest-http', version: '1.7.0'

     

      configurations {

            runtime.exclude group: 'org.slf4j'

      }

}

 

 

2.       Exception:

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:1589)

                at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:880)

                at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1739)

                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)

 

-- 

Regards,

Chetan.

 

From: "vdpyatkov [via Apache Ignite Users]" <ml-node+[hidden email]>
Date: Monday, October 24, 2016 at 9:07 PM
To: "Chetan.V.Yadav" <[hidden email]>
Subject: [EXTERNAL] Re: SLF4J AND LOG4J delegation exception with ignite dependency

 

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 <[hidden email]> 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

 


If you reply to this email, your message will be added to the discussion below:

http://apache-ignite-users.70518.x6.nabble.com/SLF4J-AND-LOG4J-delegation-exception-with-ignite-dependency-tp8415p8443.html

To unsubscribe from SLF4J AND LOG4J delegation exception with ignite dependency, click here.
NAML



View this message in context: Re: [EXTERNAL] Re: SLF4J AND LOG4J delegation exception with ignite dependency
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
------=_Part_12825_683159436.1477332809073--