ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladislav Pyatkov <vldpyat...@gmail.com>
Subject Re: [EXTERNAL] Re: SLF4J AND LOG4J delegation exception with ignite dependency
Date Fri, 28 Oct 2016 11:21:37 GMT
Hi,
I will not recommend to use spring boot together with Ignite-rest-http,
because these both dependencies will start Jetty themselves, as soon Jetty
hits on classpath.
You need to exclude spring boot or use matching variant for Jetty 9.3.

On Thu, Oct 27, 2016 at 10:02 AM, chevy <chetan.v.yadav@target.com> wrote:

> Attached gradle file. Please help me out to resolve exception caused by
> ignite-http-rest as I need to use rest services.
>
>
>
> --
>
> Regards,
>
> Chetan.
>
>
>
> *From: *"vdpyatkov [via Apache Ignite Users]" <ml-node+[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=8540&i=0>>
> *Date: *Wednesday, October 26, 2016 at 8:24 PM
> *To: *"Chetan.V.Yadav" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=8540&i=1>>
> *Subject: *Re: [EXTERNAL] Re: SLF4J AND LOG4J delegation exception with
> ignite dependency
>
>
>
> Hi,
>
>
>
> Could you please, provide your gradle file?
>
>
>
> On Mon, Oct 24, 2016 at 9:13 PM, chevy <[hidden email]> wrote:
>
> *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]
> <http:///user/SendEmail.jtp?type=node&node=8444&i=0>>
> *Date: *Monday, October 24, 2016 at 9:07 PM
> *To: *"Chetan.V.Yadav" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=8444&i=1>>
> *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
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
> ------------------------------
>
> View this message in context: Re: [EXTERNAL] Re: SLF4J AND LOG4J
> delegation exception with ignite dependency
> <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
> <http://apache-ignite-users.70518.x6.nabble.com/> 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-tp8415p8511.html
>
> To unsubscribe from SLF4J AND LOG4J delegation exception with ignite
> dependency, click here.
> NAML
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> *build.gradle* (3K) Download Attachment
> <http://apache-ignite-users.70518.x6.nabble.com/attachment/8540/0/build.gradle>
>
> ------------------------------
> View this message in context: Re: [EXTERNAL] Re: SLF4J AND LOG4J
> delegation exception with ignite dependency
> <http://apache-ignite-users.70518.x6.nabble.com/SLF4J-AND-LOG4J-delegation-exception-with-ignite-dependency-tp8415p8540.html>
> Sent from the Apache Ignite Users mailing list archive
> <http://apache-ignite-users.70518.x6.nabble.com/> at Nabble.com.
>



-- 
Vladislav Pyatkov

Mime
View raw message