You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Venkatesh Seetharam (JIRA)" <ji...@apache.org> on 2014/11/20 08:55:34 UTC

[jira] [Commented] (FALCON-905) contextDestroyed method is not called when falcon-stop is called

    [ https://issues.apache.org/jira/browse/FALCON-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14219108#comment-14219108 ] 

Venkatesh Seetharam commented on FALCON-905:
--------------------------------------------

Jetty should call this and not the app. Jetty and activemq both register a shutdown hook and should work as designed IMO.

> contextDestroyed method is not called when falcon-stop is called
> ----------------------------------------------------------------
>
>                 Key: FALCON-905
>                 URL: https://issues.apache.org/jira/browse/FALCON-905
>             Project: Falcon
>          Issue Type: Bug
>            Reporter: Suhas Vasu
>            Assignee: Suhas Vasu
>
> When falcon-stop is executed, the contextDestroyed() method of ContextStartupListener is not called, resulting in the shutdown hooks not being executed. This is the reason for the exceptions we see in the application log upon falcon-stop. 
> Upon further checking, this occurs in embedded activemq as well as standalone activemq. Both the times we get exceptions in the activemq that client closed unexpectedly. Looks like there is an issue in one of the shutdown hooks.
> The error in activemq log (using standalone activemq)
> {noformat}
> 014-11-19 17:03:29,333 | DEBUG | Transport failed: java.io.EOFException | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ Transport: tcp:///127.0.0.1:63929
> java.io.EOFException
>         at java.io.DataInputStream.readInt(DataInputStream.java:392)
>         at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:269)
>         at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:227)
>         at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219)
>         at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
>         at java.lang.Thread.run(Thread.java:745)
> 2014-11-19 17:03:29,333 | DEBUG | Transport failed: java.io.EOFException | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ Transport: tcp:///127.0.0.1:63926
> java.io.EOFException
>         at java.io.DataInputStream.readInt(DataInputStream.java:392)
>         at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:269)
>         at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:227)
>         at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:219)
>         at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202)
>         at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)