Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 61589 invoked from network); 22 Feb 2008 16:30:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Feb 2008 16:30:57 -0000 Received: (qmail 48221 invoked by uid 500); 22 Feb 2008 16:30:51 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 48201 invoked by uid 500); 22 Feb 2008 16:30:51 -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 48192 invoked by uid 99); 22 Feb 2008 16:30:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2008 08:30:51 -0800 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, 22 Feb 2008 16:30:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3A7A9234C010 for ; Fri, 22 Feb 2008 08:30:14 -0800 (PST) Message-ID: <1850836914.1203697814234.JavaMail.jira@brutus> Date: Fri, 22 Feb 2008 08:30:14 -0800 (PST) From: "Denis Abramov (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-1594) Closing an ActiveMQ connection causes 1.5 JVM to crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Closing an ActiveMQ connection causes 1.5 JVM to crash ------------------------------------------------------ Key: AMQ-1594 URL: https://issues.apache.org/activemq/browse/AMQ-1594 Project: ActiveMQ Issue Type: Bug Components: Broker Affects Versions: 5.0.0, 4.1.1, 5.1.0 Environment: Linux (see attached file for more specs) Reporter: Denis Abramov Priority: Critical Attachments: hs_err_pid858.log When I call "closeConnection()" (see below) after establishing a new connection to activeMQ my JVM crashes (see jvm crash log attached): Here are the details: I open a connection to activemq in the following manner: private Session _session; private Connection _connection; private String _jms_url; private boolean _is_durable_subscriber; private MessageWrapperIntf _msg_wrapper_intf; protected static Logger log = Log.getLogger(MessageManager.class); public void createConnection(String jms_url, MessageWrapperIntf intf, boolean is_durable_subscriber) throws Exception { _jms_url = jms_url; _is_durable_subscriber = is_durable_subscriber; _msg_wrapper_intf = intf; log.info(""); log.info(""); log.info("Creating Connection to: " + jms_url); log.info(""); String user = ActiveMQConnection.DEFAULT_USER; String password = ActiveMQConnection.DEFAULT_PASSWORD; //jms_url = addJMSOptions(jms_url); ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(user, password, jms_url); connectionFactory.setDispatchAsync(true); connectionFactory.setUseAsyncSend(true); _connection = connectionFactory.createConnection(); _connection.setExceptionListener(this); if (is_durable_subscriber) _connection.setClientID(_msg_wrapper_intf.getClass().getName()); _connection.start(); _session = _connection.createSession(false, Session.AUTO_ACKNOWLEDGE); } and then I close the connection as following: public void closeConnection() throws Exception { if (_session != null) _session.close(); if (_connection != null) { _connection.stop(); _connection.close(); } } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.