This is an exception because TransportClient still has open requests and
was not closed in time, i.e. before Tomcat closed the web app and removed
the class loader.
Jörg
On Mon, Jan 19, 2015 at 4:37 AM, Subhadip Bagui i.ba...@gmail.com wrote:
Hi,
In the same context... some times when I'm
Hi,
In the same context... some times when I'm shutting down tomcat getting the
below exception. And other times it works. Any idea why ?
Jan 19, 2015 8:59:30 AM org.apache.catalina.core.StandardContext
listenerStop
SEVERE: Exception sending context destroyed event to listener instance of
In Servlet 3.0 you can also add @WebServletContextListener as annotation to
the class, without having to use web.xml
Example:
https://blogs.oracle.com/swchan/entry/servlet_3_0_annotations
Jörg
On Wed, Jan 14, 2015 at 7:50 AM, Subhadip Bagui i.ba...@gmail.com wrote:
Yeah. I'm using listener,
Yeah. I'm using listener, but it was giving some error. Fixed it and now
it's working. My mistake :$
--
You received this message because you are subscribed to the Google Groups
elasticsearch group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
Hi Jorg,
Sorry to open the thread again. But the issue is I'm getting OOM error
currently in tomcat and the webapplication is crushing. As u suggested I'm
calling the static TransportClient instance from contextInitialized() and
shutting down with contextDestroyed(). But the methods are not
Did you declare the listener in your web.xml?
On Tuesday, January 13, 2015 at 3:27:15 AM UTC-8, Subhadip Bagui wrote:
Hi Jorg,
Sorry to open the thread again. But the issue is I'm getting OOM error
currently in tomcat and the webapplication is crushing. As u suggested I'm
calling the
Closing the transport client may not be enough.
Try this:
- wait for all outstanding actions (all actions send responses
asynchronously)
- then shut down client.threadpool() (perhaps with shutdownNow() or
shutdown()), this effectively disables new actions form being started
- then close the
Hi,
I'm using the below code to get a singleton object for TransportClient
object. I'm using the getInstance() to get the client object which is
already alive in webapplication.
public static Client getInstance()
{
if (instance == null)
{
logger.debug(the client instance is null, creating