Suhas Vasu created FALCON-905:
---------------------------------
Summary: 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)