activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-1594) Closing an ActiveMQ connection causes 1.5 JVM to crash
Date Tue, 14 Oct 2008 22:38:52 GMT

    [ https://issues.apache.org/activemq/browse/AMQ-1594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46462#action_46462
] 

Bruce Snyder commented on AMQ-1594:
-----------------------------------

It looks like the JVM crashed trying to read an entry in a ZIP file. I'm not sure if it's
an issue with the libzip.so in the JRE/JDK that you're using or a problem with the JAR file
from which the class is being loaded. First, I'd try to install a new copy of the JRE/JDK
(from a fresh download of it) to check that it's not the libzip.so. If the JVM still crashes,
then I'd try grabbing a fresh copy of the ActiveMQ libraries. It's possible that something
was damaged during a download. 

FWIW, when I encounter oddities like this with JAR files, I tend to use the {{jar}} utility
to get a table of contents on the JARs as a test of those JARs. Below is an example: 

{code}
$ for i in `ls /path/to/location/of/jar/files/*.jar`; do echo $i; jar tvf $i; done 
{code}

> 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: 4.1.1, 5.0.0, 5.1.0
>         Environment: Linux (see attached file for more specs)
>            Reporter: Denis Abramov
>            Priority: Critical
>             Fix For: 5.3.0
>
>         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:
> {code}
> 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();
> }
> }
> {code}

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


Mime
View raw message