You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by kajzur <ka...@o2.pl> on 2016/05/09 17:58:30 UTC
Unexpexted exception
Hi!
I'm trying to setup a "Web Session Clustering" in Tomcat 7. I followed by
http://apacheignite.gridgain.org/v1.5/docs/web-session-clustering with
replicated cacheMode. And I'm getting an exception:
And this is my web.xml:
and my default-config.xml:
And ofcourse my pom.xml:
I will be very grateful if some one could help me with it :)
Best regards!
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by vkulichenko <va...@gmail.com>.
Hard to tell since we don't know what was actually failing. Probably you
faced some bug that was fixed in 1.6.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5182.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
Hi,
I downloaded version 1.6.0 from https://ignite.apache.org/download.cgi and
all is working! :)
What was wrong?
Thanks for your help!
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5150.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by vkulichenko <va...@gmail.com>.
There is some exception exception happening during the cache update. Due to a
bug in the code it's lost and actual reason is not shown. I just fixed this
in master, can you build from there and try? There trace should appear in
the log.
You can also wait for a nightly build which should be available tomorrow. It
can be downloaded from here:
https://builds.apache.org/view/H-L/view/Ignite/job/Ignite-nightly/lastSuccessfulBuild/
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5110.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
I turn on logs and I have an message:
[14:45:41,764][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,770][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,776][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,781][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,788][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,798][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,805][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,812][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,824][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,850][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,873][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,885][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,898][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,909][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,916][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (will retry): 109FAEC0CB2406A7AE6E9143C8CB7CB6
[14:45:41,928][WARN ][http-bio-8080-exec-11][root] Failed to apply updates
for session (maximum number of retries exceeded)
[sesId=109FAEC0CB2406A7AE6E9143C8CB7CB6, retries=25]
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5076.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
Client (no clientMode):
http://pastebin.com/kmQ41aqJ
and server (one from three servers):
http://pastebin.com/3Y9D36rf
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5063.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by vkulichenko <va...@gmail.com>.
Are there any exceptions or errors? Please check both client and server logs.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5061.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
Yes of course, I have seen your answer - I have accepted it.
Yes it still the same issue, all node's are working but session is no
stored.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5060.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by vkulichenko <va...@gmail.com>.
What is not working? Do you still have the original issue? Did you see my
response on SO?
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5058.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
I have added default constructor but it still not working. How to enable
logs?
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p5053.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by Roman Shtykh <rs...@yahoo.com>.
Hi,
Your Externalizable StringWrapper does not have a default constructor and is not saved.
Please enable logging to see the error messages.
-Roman
On Friday, May 13, 2016 8:36 PM, kajzur <ka...@o2.pl> wrote:
Hi,
thanks for response. This is link for git repository -
https://gitlab.com/kajzur/temp.git - repository has no access restrictions,
so every one can clone it.
My config is in first mail :)
Thanks!
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4929.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
Hi,
thanks for response. This is link for git repository -
https://gitlab.com/kajzur/temp.git - repository has no access restrictions,
so every one can clone it.
My config is in first mail :)
Thanks!
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4929.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by vkulichenko <va...@gmail.com>.
Responded on SO:
http://stackoverflow.com/questions/37143793/unexpexted-exception-apache-ignite-web-session-clustering
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4919.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by Alexey Kuznetsov <ak...@gridgain.com>.
MRE - minimal reproducible example
This may be a simple project with a couple of files.
On Thu, May 12, 2016 at 10:31 PM, kajzur <ka...@o2.pl> wrote:
> What is MRE? Whole code of project? Repository on github?
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4900.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
What is MRE? Whole code of project? Repository on github?
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4900.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by Roman Shtykh <rs...@yahoo.com>.
Hi,
Do you have an MRE on github or elsewhere I can reproduce it?
-Roman
On Thursday, May 12, 2016 3:23 AM, kajzur <ka...@o2.pl> wrote:
Hi,
thank, now it's working, but now I have other problem.
All is working but my session isn't saved. I have HttpSession object and in
one servler setting an attr and in other servler I trying to get this attr
and it's not there. I checked in debugger - my session is WebSession from
ingniter.
Have you got, maybe, aby idea, why it's not working?
I have four servers:
[18:13:58,879][INFO][disco-event-worker-#44%null%][GridDiscoveryManager]
Topology snapshot [ver=148, servers=4, clients=0, CPUs=6, heap=4.7GB]
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4879.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
Hi,
thank, now it's working, but now I have other problem.
All is working but my session isn't saved. I have HttpSession object and in
one servler setting an attr and in other servler I trying to get this attr
and it's not there. I checked in debugger - my session is WebSession from
ingniter.
Have you got, maybe, aby idea, why it's not working?
I have four servers:
[18:13:58,879][INFO][disco-event-worker-#44%null%][GridDiscoveryManager]
Topology snapshot [ver=148, servers=4, clients=0, CPUs=6, heap=4.7GB]
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4879.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by Roman Shtykh <rs...@yahoo.com>.
I think you have to1. Have <property name="cacheConfiguration"> with your CacheConfiguration inside IgniteConfiguration in your default-config.xml2. Have <property name="gridName" value="some_gridName"/> in your default-config.xml and specify the grid name with IgniteWebSessionsGridName at web.xml
-Roman
Re: Unexpexted exception
Posted by Roman Shtykh <rs...@yahoo.com>.
It is possible to see the full log? As the error message says, grid is not started.
-Roman
On Wednesday, May 11, 2016 12:14 AM, kajzur <ka...@o2.pl> wrote:
Hi!
Thanks for response, but is still the same error :(
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4863.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by kajzur <ka...@o2.pl>.
Hi!
Thanks for response, but is still the same error :(
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847p4863.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Unexpexted exception
Posted by Roman Shtykh <rs...@yahoo.com>.
How about adding<property name="name" value="replicated"/>
to CacheConfiguration in your default-config.xml?
-Roman
On Tuesday, May 10, 2016 3:13 AM, kajzur <ka...@o2.pl> wrote:
Hi!
I'm trying to setup a "Web Session Clustering" in Tomcat 7. I followed by
http://apacheignite.gridgain.org/v1.5/docs/web-session-clustering with
replicated cacheMode. And I'm getting an exception:
And this is my web.xml:
and my default-config.xml:
And ofcourse my pom.xml:
I will be very grateful if some one could help me with it :)
Best regards!
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Unexpexted-exception-tp4847.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.