Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 78706 invoked from network); 7 Aug 2009 08:10:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 08:10:53 -0000 Received: (qmail 59028 invoked by uid 500); 7 Aug 2009 08:11:00 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 58950 invoked by uid 500); 7 Aug 2009 08:11:00 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 58940 invoked by uid 99); 7 Aug 2009 08:11:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 08:11:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 08:10:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C59C2234C052 for ; Fri, 7 Aug 2009 01:10:35 -0700 (PDT) Message-ID: <1368137263.1249632635808.JavaMail.jira@brutus> Date: Fri, 7 Aug 2009 01:10:35 -0700 (PDT) From: "Dejan Bosanac (JIRA)" To: dev@activemq.apache.org Subject: [jira] Assigned: (AMQ-2280) stomp: Transport failed: java.io.IOException: Unexpected error occured In-Reply-To: <1542325722.1244124830931.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dejan Bosanac reassigned AMQ-2280: ---------------------------------- Assignee: Dejan Bosanac > stomp: Transport failed: java.io.IOException: Unexpected error occured > ---------------------------------------------------------------------- > > Key: AMQ-2280 > URL: https://issues.apache.org/activemq/browse/AMQ-2280 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, Connector > Affects Versions: 5.3.0 > Environment: linux 2.6.26.8, Fedora Core 8 > java version "1.6.0_11" > Java(TM) SE Runtime Environment (build 1.6.0_11-b03) > Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing) > apache-activemq-5.3-SNAPSHOT-bin.gz Fri May 29 06:12:47 GMT+00:00 2009 34977374 > Reporter: Aleksandar Ivanisevic > Assignee: Dejan Bosanac > Attachments: AMQ-2280.patch > > > This does not happen in 5.2.0, only in 5.3..SNAPSHOT > I'm getting the above exception with the following STOMP session > > telnet localhost 61613 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > CONNECT > passcode:password > login:login > ^@ > CONNECTED > session:ID:alex-60773-1244124360289-2:2 > SUBSCRIBE > activemq.prefetchSize:1 > ack:client > destination:/queue/COMMAND.HOST.alex > activemq.exclusive:true > ^@ > BEGIN > destination:/queue/COMMANDREPLY.HOST.alex > transaction:ID:alex-58262-1244123488785-2:1-1 > persistent:true > ^@ > SEND > destination:/queue/COMMANDREPLY.HOST.alex > transaction:ID:alex-58262-1244123488785-2:1-1 > receipt:ID:alex-58262-1244123488785-2:1-2 > persistent:true > replytext > ^@ > RECEIPT > receipt-id:ID:alex-58262-1244123488785-2:1-2 > COMMIT > destination:/queue/COMMANDREPLY.HOST.alex > transaction:ID:alex-58262-1244123488785-2:1-1 > ^@ > Connection closed by foreign host. > at this point AMQ closses the TCP connection and I see the following in the log (DEBUG root log level): > DEBUG TransportConnection - Setting up new connection: /127.0.0.1:44692 > DEBUG AMQPersistenceAdapter - dataFilesInProgress.values: (0) [] > DEBUG AMQPersistenceAdapter - lastDataFile: 1 > DEBUG AsyncDataManager - lastFileId=0, purgeList: (0) [] > DEBUG AbstractRegion - localhost adding consumer: ID:alex-60773-1244124360289-2:2:-1:1 for destination: queue://COMMAND.HOST.alex > DEBUG AMQPersistenceAdapter - Checkpoint started. > DEBUG AMQPersistenceAdapter - Checkpoint done. > DEBUG AMQPersistenceAdapter - Checkpoint started. > DEBUG AMQPersistenceAdapter - Checkpoint done. > DEBUG AMQPersistenceAdapter - dataFilesInProgress.values: (0) [] > DEBUG AMQPersistenceAdapter - lastDataFile: 1 > DEBUG AsyncDataManager - lastFileId=0, purgeList: (0) [] > DEBUG AMQPersistenceAdapter - Checkpoint started. > DEBUG AMQPersistenceAdapter - Checkpoint done. > DEBUG AMQMessageStore - Journalled transacted message add for: ID:alex-60773-1244124360289-2:2:-1:1:1, at: offset = 10973, file = 1, size = 375, type = 1 > DEBUG AMQPersistenceAdapter - dataFilesInProgress.values: (0) [] > DEBUG AMQPersistenceAdapter - lastDataFile: 1 > DEBUG AsyncDataManager - lastFileId=0, purgeList: (0) [] > DEBUG AMQPersistenceAdapter - Checkpoint started. > DEBUG AMQPersistenceAdapter - Checkpoint done. > DEBUG Transport - Transport failed: java.io.IOException: Unexpected error occured > java.io.IOException: Unexpected error occured > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:192) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.util.NoSuchElementException > at java.util.LinkedList.getFirst(LinkedList.java:109) > at org.apache.activemq.transport.stomp.StompSubscription.onStompCommit(StompSubscription.java:130) > at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommit(ProtocolConverter.java:337) > at org.apache.activemq.transport.stomp.ProtocolConverter.onStompCommand(ProtocolConverter.java:179) > at org.apache.activemq.transport.stomp.StompTransportFilter.onCommand(StompTransportFilter.java:67) > at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84) > at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:203) > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:185) > ... 1 more > DEBUG TransportConnection - Stopping connection: /127.0.0.1:44692 > DEBUG TcpTransport - Stopping transport tcp:///127.0.0.1:44692 > DEBUG TransportConnection - Stopped transport: /127.0.0.1:44692 > DEBUG TransportConnection - Cleaning up connection resources: /127.0.0.1:44692 > DEBUG AbstractRegion - localhost removing consumer: ID:alex-60773-1244124360289-2:2:-1:1 for destination: queue://COMMAND.HOST.alex > DEBUG LocalTransaction - rollback: TX:ID:alex-60773-1244124360289-2:2:1 syncCount: 3 > DEBUG AMQMessageStore - Transacted message add rollback for: ID:alex-60773-1244124360289-2:2:-1:1:1, at: offset = 10973, file = 1, size = 375, type = 1 > DEBUG TransportConnection - Connection Stopped: /127.0.0.1:44692 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.