You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by GB <ga...@gmail.com> on 2017/01/03 10:26:32 UTC

Error with ignite-rest-http

Hi,

I am trying to enable ignite REST api support. For that, I have copied
"ignite-rest-http" from optional into lib. While starting the ignite server
I am getting "No Such Method error". I went through other threads and forums
but couldn't get the solution for it. Can someone help? Let me know if more
information is required.
Error is below :

C:\Users\D-NX29AE\Project\Software\shielding-gridgain-enterprise-fabric-7.5.26\bin>ignite.bat
[11:19:52]    __________  ________________
[11:19:52]   /  _/ ___/ |/ /  _/_  __/ __/
[11:19:52]  _/ // (7 7    // /  / / / _/
[11:19:52] /___/\___/_/|_/___/ /_/ /___/
[11:19:52]
[11:19:52] ver. 1.5.26#20160616-sha1:d8dedc64
[11:19:52] 2016 Copyright(C) Apache Software Foundation
[11:19:52]
[11:19:52] Ignite documentation: http://ignite.apache.org
[11:19:52]
[11:19:52] Quiet mode.
[11:19:52]   ^-- Logging to file
'C:\Users\D-NX29AE\Project\Software\shielding-gridgain-enterprise-fabric-7.5.26\work\log\ignite-7325081b.log'
[11:19:52]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[11:19:52]
[11:19:52] OS: Windows 7 6.1 x86
[11:19:52] VM information: Java(TM) SE Runtime Environment 1.8.0_60-b27
Oracle Corporation Java HotSpot(TM) Server VM 25.60-b23
[11:19:52] Configured plugins:
[11:19:52]   ^-- GridGain 7.5.26#20160616-sha1:ff88903b
[11:19:52]   ^-- 2016 Copyright(C) GridGain Systems
[11:19:52]
[11:19:53] Security status [authentication=off, tls/ssl=off]
[11:19:54,040][ERROR][main][IgniteKernal] Got exception while starting (will
rollback startup routine).
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:828)
        at
org.apache.ignite.internal.processors.rest.GridRestProcessor.start(GridRestProcessor.java:448)
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1496)
        at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:861)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1737)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1590)
        at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1043)
        at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:965)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:851)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:750)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:620)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:590)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
[11:19:54] Ignite node stopped OK [uptime=00:00:02:467]
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:828)
        at
org.apache.ignite.internal.processors.rest.GridRestProcessor.start(GridRestProcessor.java:448)
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1496)
        at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:861)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1737)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1590)
        at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1043)
        at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:965)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:851)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:750)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:620)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:590)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Failed to start grid:
org.eclipse.jetty.util.log.StdErrLog.setProperties(Ljava/util/Properties;)V
Press any key to continue . . .



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Error-with-ignite-rest-http-tp9835.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Error with ignite-rest-http

Posted by Humphrey <hm...@gmail.com>.
Hi I had the same issue when using SpringBoot 1.5.10.RELEASE with apache
ignite 2.4.0.

Was fixed when using telling spring boot to use other (older) version by
specifying the following:
	<properties>
		<jetty.version>9.2.11.v20150529</jetty.version>
	</properties>

Humphrey



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Error with ignite-rest-http

Posted by Gaurav Bajaj <ga...@gmail.com>.
Hi,

Update : I checked and it libs/connector-layer is not standard ignite
folder. It was created for something internal.
So basically it was Jetty Server version mismatch. Thanks Nikolai and
dkarachentsev
for your help.

Regards,
Gaurav

On Tue, Jan 3, 2017 at 1:47 PM, Gaurav Bajaj <ga...@gmail.com> wrote:

> Hello Nikolai,
>
> Based on the hint provided on the thread, I did simple File search for
> "jetty" and found that in Ignite/libs directory, I have connector-layer
> folder and it have Jetty Server jars with different version
> "jetty-util-7.3.0.v20110203.jar". Removing them did that trick. Ignite
> starts up now without any error.
> Thanks a lot. I will still find out why they are there in
> libs/connector-layer folder.
>
>
> Best Regards,
> Gaurav
>
> On Tue, Jan 3, 2017 at 1:38 PM, Nikolai Tikhonov <nt...@apache.org>
> wrote:
>
>> Sorry, I'm missed that you don't use ignite as maven dependency in your
>> project but running it how standalone server. Could you please show which
>> modules in your C:\Users\D-NX29AE\Project\Software\shielding-gridgain-e
>> nterprise-fabric-7.5.26\libs folder? (output dir commond in console)
>>
>> On Tue, Jan 3, 2017 at 3:34 PM, Gaurav Bajaj <ga...@gmail.com>
>> wrote:
>>
>>> Hello Nikolai,
>>>
>>> Sorry I am confused, where do I run this command? On my IntelliJ
>>> workspace?
>>>
>>> On Tue, Jan 3, 2017 at 1:22 PM, Nikolai Tikhonov <nt...@apache.org>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> It's really like on jar hell. You can use maven dependency tree which
>>>> allows to find conflict:
>>>>
>>>> *mvn dependency:tree -Dverbose -Dincludes=jetty-server*
>>>>
>>>> On Tue, Jan 3, 2017 at 2:30 PM, dkarachentsev <
>>>> dkarachentsev@gridgain.com> wrote:
>>>>
>>>>> It looks like you have another version of Jetty in classpath. Do you
>>>>> have
>>>>> IGNITE_HOME environment variable set?
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://apache-ignite-users.705
>>>>> 18.x6.nabble.com/Error-with-ignite-rest-http-tp9835p9838.html
>>>>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>>>>
>>>>
>>>>
>>>
>>
>

Re: Error with ignite-rest-http

Posted by Gaurav Bajaj <ga...@gmail.com>.
Hello Nikolai,

Based on the hint provided on the thread, I did simple File search for
"jetty" and found that in Ignite/libs directory, I have connector-layer
folder and it have Jetty Server jars with different version
"jetty-util-7.3.0.v20110203.jar". Removing them did that trick. Ignite
starts up now without any error.
Thanks a lot. I will still find out why they are there in
libs/connector-layer folder.


Best Regards,
Gaurav

On Tue, Jan 3, 2017 at 1:38 PM, Nikolai Tikhonov <nt...@apache.org>
wrote:

> Sorry, I'm missed that you don't use ignite as maven dependency in your
> project but running it how standalone server. Could you please show which
> modules in your C:\Users\D-NX29AE\Project\Software\shielding-gridgain-
> enterprise-fabric-7.5.26\libs folder? (output dir commond in console)
>
> On Tue, Jan 3, 2017 at 3:34 PM, Gaurav Bajaj <ga...@gmail.com>
> wrote:
>
>> Hello Nikolai,
>>
>> Sorry I am confused, where do I run this command? On my IntelliJ
>> workspace?
>>
>> On Tue, Jan 3, 2017 at 1:22 PM, Nikolai Tikhonov <nt...@apache.org>
>> wrote:
>>
>>> Hi,
>>>
>>> It's really like on jar hell. You can use maven dependency tree which
>>> allows to find conflict:
>>>
>>> *mvn dependency:tree -Dverbose -Dincludes=jetty-server*
>>>
>>> On Tue, Jan 3, 2017 at 2:30 PM, dkarachentsev <
>>> dkarachentsev@gridgain.com> wrote:
>>>
>>>> It looks like you have another version of Jetty in classpath. Do you
>>>> have
>>>> IGNITE_HOME environment variable set?
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context: http://apache-ignite-users.705
>>>> 18.x6.nabble.com/Error-with-ignite-rest-http-tp9835p9838.html
>>>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>
>

Re: Error with ignite-rest-http

Posted by Nikolai Tikhonov <nt...@apache.org>.
Sorry, I'm missed that you don't use ignite as maven dependency in your
project but running it how standalone server. Could you please show which
modules in your C:\Users\D-NX29AE\Project\Software\shielding-gridgain-
enterprise-fabric-7.5.26\libs folder? (output dir commond in console)

On Tue, Jan 3, 2017 at 3:34 PM, Gaurav Bajaj <ga...@gmail.com> wrote:

> Hello Nikolai,
>
> Sorry I am confused, where do I run this command? On my IntelliJ workspace?
>
> On Tue, Jan 3, 2017 at 1:22 PM, Nikolai Tikhonov <nt...@apache.org>
> wrote:
>
>> Hi,
>>
>> It's really like on jar hell. You can use maven dependency tree which
>> allows to find conflict:
>>
>> *mvn dependency:tree -Dverbose -Dincludes=jetty-server*
>>
>> On Tue, Jan 3, 2017 at 2:30 PM, dkarachentsev <dkarachentsev@gridgain.com
>> > wrote:
>>
>>> It looks like you have another version of Jetty in classpath. Do you have
>>> IGNITE_HOME environment variable set?
>>>
>>>
>>>
>>> --
>>> View this message in context: http://apache-ignite-users.705
>>> 18.x6.nabble.com/Error-with-ignite-rest-http-tp9835p9838.html
>>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>>
>>
>>
>

Re: Error with ignite-rest-http

Posted by Gaurav Bajaj <ga...@gmail.com>.
Hello Nikolai,

Sorry I am confused, where do I run this command? On my IntelliJ workspace?

On Tue, Jan 3, 2017 at 1:22 PM, Nikolai Tikhonov <nt...@apache.org>
wrote:

> Hi,
>
> It's really like on jar hell. You can use maven dependency tree which
> allows to find conflict:
>
> *mvn dependency:tree -Dverbose -Dincludes=jetty-server*
>
> On Tue, Jan 3, 2017 at 2:30 PM, dkarachentsev <dk...@gridgain.com>
> wrote:
>
>> It looks like you have another version of Jetty in classpath. Do you have
>> IGNITE_HOME environment variable set?
>>
>>
>>
>> --
>> View this message in context: http://apache-ignite-users.705
>> 18.x6.nabble.com/Error-with-ignite-rest-http-tp9835p9838.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
>
>

Re: Error with ignite-rest-http

Posted by Nikolai Tikhonov <nt...@apache.org>.
Hi,

It's really like on jar hell. You can use maven dependency tree which
allows to find conflict:

*mvn dependency:tree -Dverbose -Dincludes=jetty-server*

On Tue, Jan 3, 2017 at 2:30 PM, dkarachentsev <dk...@gridgain.com>
wrote:

> It looks like you have another version of Jetty in classpath. Do you have
> IGNITE_HOME environment variable set?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Error-with-ignite-rest-http-tp9835p9838.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Error with ignite-rest-http

Posted by Gaurav Bajaj <ga...@gmail.com>.
Hi,

Thanks for quick reply. I don't have IGNITE_HOME setup in my environment
variables.
Please not I am using ignite.bat to start IGNITE instance. I am using
Windows 7.
Also I don't have another Jetty instance which I have installed or
configured.

On Tue, Jan 3, 2017 at 12:30 PM, dkarachentsev <dk...@gridgain.com>
wrote:

> It looks like you have another version of Jetty in classpath. Do you have
> IGNITE_HOME environment variable set?
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Error-with-ignite-rest-http-tp9835p9838.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Error with ignite-rest-http

Posted by dkarachentsev <dk...@gridgain.com>.
It looks like you have another version of Jetty in classpath. Do you have
IGNITE_HOME environment variable set? 



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Error-with-ignite-rest-http-tp9835p9838.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.