You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Oscar Pernas <os...@pernas.es> on 2011/03/17 00:16:13 UTC

ACTIVEMQ-CPP. TcpSocketOutputStream

Hi all,

I think that this issue is probably related with others that we've talked
before, but its could help.

How to reproduce:

- Sending data
- close broker
- close producer

And the exception thrown is

terminate called after throwing an instance of 'decaf::io::IOException'
  what():  TcpSocketOutputStream::write - This Stream has been closed.

Could I am doing something wrong? perhaps Im trying to send data after the
connection is closed?  Any decaf exception should be caught in activemq-cpp
code? or activemq-cpp could throw decaf exception and I have to take care
about it?



regards

-- 
Óscar Pernas Plaza.

Re: ACTIVEMQ-CPP. TcpSocketOutputStream

Posted by Timothy Bish <ta...@gmail.com>.
On Thu, 2011-03-17 at 00:16 +0100, Oscar Pernas wrote:
> Hi all,
> 
> I think that this issue is probably related with others that we've talked
> before, but its could help.
> 
> How to reproduce:
> 
> - Sending data
> - close broker
> - close producer
> 
> And the exception thrown is
> 
> terminate called after throwing an instance of 'decaf::io::IOException'
>   what():  TcpSocketOutputStream::write - This Stream has been closed.
> 
> Could I am doing something wrong? perhaps Im trying to send data after the
> connection is closed?  Any decaf exception should be caught in activemq-cpp
> code? or activemq-cpp could throw decaf exception and I have to take care
> about it?
> 
> 

A test app that demonstrates the issue would help here.  It appears that
an exception is not being caught when it should be, which can cause the
app to terminate when the thrown exception doesn't match the exception
specifier on the method its thrown in.  

In trunk the exception specifiers have all been removed.

Regards

-- 
Tim Bish
------------
FuseSource
Email: tim.bish@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/