activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bastian Krol (JIRA)" <>
Subject [jira] Commented: (AMQ-2902) ResourceAdapter logs confusing Exception upon pool connection disposal
Date Fri, 01 Oct 2010 08:20:43 GMT


Bastian Krol commented on AMQ-2902:

I too see that issue in the current 5.4.1. This has nothing to do with JBoss. It is reproducible
in an ordinary Java application (see below). Claus, who told you that is fixed in the trunk?
From looking at the sources in the trunk I have the impression that the related code has not
changed (but I'm guessing a bit here and could be wrong). The small test below reproduces
the problem. Note that the exception gets logged less frequently if you start and stop the
connection before closing it (enable the two commented lines). But it still occurs. It occurs
every time if you do not start and stop the connection.

import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.JMSException;

import org.apache.activemq.ActiveMQConnectionFactory;

public class AMQ2902
  public static void main(String[] arguments) throws JMSException
    ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(
    Connection connection = connectionFactory.createConnection();
    // connection.start();
    // connection.stop();

> ResourceAdapter logs confusing Exception upon pool connection disposal
> ----------------------------------------------------------------------
>                 Key: AMQ-2902
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JCA Container
>    Affects Versions: 5.4.0
>         Environment: AMQ 5.4.0 ResourceAdapter running with an embedded broker within
JBoss 4.2.3
>            Reporter: Jörg Henne
> After upgrading to 5.4.0 we see many exceptions of the following kind being logged with
level INFO:
> {quote}
> 2010-09-07 13:23:25,824 INFO  []
Transport failed: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://caa.embedded?waitForStart=300000&async=false#13)
> org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://caa.embedded?waitForStart=300000&async=false#13)
> 	at org.apache.activemq.transport.vm.VMTransport.stop(
> 	at org.apache.activemq.transport.vm.VMTransportServer$1.stop(
> 	at org.apache.activemq.transport.TransportFilter.stop(
> 	at org.apache.activemq.transport.TransportFilter.stop(
> 	at org.apache.activemq.transport.ResponseCorrelator.stop(
> 	at org.apache.activemq.util.ServiceSupport.dispose(
> 	at org.apache.activemq.ActiveMQConnection.close(
> 	at org.apache.activemq.ra.ActiveMQManagedConnection.destroy(
> 	at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.doDestroy(
> 	at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.removeTimedOut(
> 	at org.jboss.resource.connectionmanager.IdleRemover$
> 	at
> {quote}
> I suppose that the cause for the message is actually harmless - hence the INFO level
- but the messages are confusing and annoying nonetheless.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message