Zookeeper Exception

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Zookeeper Exception

Cyrille Savelief

Hi,

 

Since a few weeks, we are having the following recurring warnings (tens of megabytes) :

 

02-07-2017 15:17:39 - WARN - org.apache.zookeeper.ClientCnxn run - Session 0x159d0669ef70043 for server 10.91.176.82/10.91.176.82:2181, unexpected error, closing socket connection and attempting reconnect

java.lang.IllegalStateException: Can't overwrite cause with java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already.  Could not load org.apache.zookeeper.proto.SetWatches.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.

        at java.lang.Throwable.initCause(Throwable.java:457)

        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1305)

        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1185)

        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1146)

        at org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:926)

        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:363)

        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)

Caused by: java.lang.ClassNotFoundException

        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1304)

        ... 5 more

 

Apart from this warning, we have no other errors in the log and everything is running fine. Do you have any idea where it might come from ?

 

Best,

 

Cyrille SAVELIEF

��Z7�>� 4��
Reply | Threaded
Open this post in threaded view
|

Re: Zookeeper Exception

Keith Turner
Accumulo has some static resources that can cause problems for web
applications.  You could try calling CleanUp.shutdownNow() [1]  before
the container unloads the web app.

[1]: https://github.com/apache/accumulo/blob/rel/1.7.2/core/src/main/java/org/apache/accumulo/core/util/CleanUp.java#L36

On Tue, Feb 7, 2017 at 9:39 AM, Cyrille Savelief <[hidden email]> wrote:

> Hi,
>
>
>
> Since a few weeks, we are having the following recurring warnings (tens of
> megabytes) :
>
>
>
> 02-07-2017 15:17:39 - WARN - org.apache.zookeeper.ClientCnxn run - Session
> 0x159d0669ef70043 for server 10.91.176.82/10.91.176.82:2181, unexpected
> error, closing socket connection and attempting reconnect
>
> java.lang.IllegalStateException: Can't overwrite cause with
> java.lang.IllegalStateException: Illegal access: this web application
> instance has been stopped already.  Could not load
> org.apache.zookeeper.proto.SetWatches.  The eventual following stack trace
> is caused by an error thrown for debugging purposes as well as to attempt to
> terminate the thread which caused the illegal access, and has no functional
> impact.
>
>         at java.lang.Throwable.initCause(Throwable.java:457)
>
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1305)
>
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1185)
>
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1146)
>
>         at
> org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:926)
>
>         at
> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:363)
>
>         at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
>
> Caused by: java.lang.ClassNotFoundException
>
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1304)
>
>         ... 5 more
>
>
>
> Apart from this warning, we have no other errors in the log and everything
> is running fine. Do you have any idea where it might come from ?
>
>
>
> Best,
>
>
>
> Cyrille SAVELIEF
>
> ��Z7�>� 4��
Reply | Threaded
Open this post in threaded view
|

Re: Zookeeper Exception

Cyrille Savelief
It solved our problem. Thank you !

Le mar. 7 févr. 2017 à 16:02, Keith Turner <[hidden email]> a écrit :
Accumulo has some static resources that can cause problems for web
applications.  You could try calling CleanUp.shutdownNow() [1]  before
the container unloads the web app.

[1]: https://github.com/apache/accumulo/blob/rel/1.7.2/core/src/main/java/org/apache/accumulo/core/util/CleanUp.java#L36

On Tue, Feb 7, 2017 at 9:39 AM, Cyrille Savelief <[hidden email]> wrote:
> Hi,
>
>
>
> Since a few weeks, we are having the following recurring warnings (tens of
> megabytes) :
>
>
>
> <a href="tel:02%2007%2020%2017%2015" value="+33207201715" class="gmail_msg" target="_blank">02-07-2017 15:17:39 - WARN - org.apache.zookeeper.ClientCnxn run - Session
> 0x159d0669ef70043 for server 10.91.176.82/10.91.176.82:2181, unexpected
> error, closing socket connection and attempting reconnect
>
> java.lang.IllegalStateException: Can't overwrite cause with
> java.lang.IllegalStateException: Illegal access: this web application
> instance has been stopped already.  Could not load
> org.apache.zookeeper.proto.SetWatches.  The eventual following stack trace
> is caused by an error thrown for debugging purposes as well as to attempt to
> terminate the thread which caused the illegal access, and has no functional
> impact.
>
>         at java.lang.Throwable.initCause(Throwable.java:457)
>
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1305)
>
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1185)
>
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1146)
>
>         at
> org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(ClientCnxn.java:926)
>
>         at
> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:363)
>
>         at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
>
> Caused by: java.lang.ClassNotFoundException
>
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1304)
>
>         ... 5 more
>
>
>
> Apart from this warning, we have no other errors in the log and everything
> is running fine. Do you have any idea where it might come from ?
>
>
>
> Best,
>
>
>
> Cyrille SAVELIEF
>
> ��Z7�>� 4��