Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3058

Stopping ActiveMQ won´t work if the ActiveMQ path contains a whitespace.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.4.1
    • AGING_TO_DIE
    • Broker
    • None
    • Mac OS 10.6.5

    Description

      The script command "./activemq stop" fails when the path to ActiveMQ contains a whitespace. The broker continues to execute. Find a CLI output reproducing this bug below:

      zaphod:Software Jule$ cd /Users/Jule/White\ Space/
      zaphod:White Space Jule$ cd bin

      zaphod:bin Jule$ ./activemq start
      INFO: Using default configuration
      (you can configure options in one of these file: /etc/default/activemq /Users/Jule/.activemqrc)

      INFO: Invoke the following command to create a configuration file
      ./activemq setup [ /etc/default/activemq | /Users/Jule/.activemqrc ]

      INFO: Using java '/System/Library/Frameworks/JavaVM.framework/Home/bin/java'
      INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
      INFO: pidfile created : '/Users/Jule/White' (pid '3506')

      zaphod:bin Jule$ echo juleq: Waiting for broker to come up...
      juleq: Waiting for broker to come up...

      zaphod:bin Jule$ ./activemq stop
      INFO: Using default configuration
      (you can configure options in one of these file: /etc/default/activemq /Users/Jule/.activemqrc)

      INFO: Invoke the following command to create a configuration file
      ./activemq setup [ /etc/default/activemq | /Users/Jule/.activemqrc ]

      INFO: Using java '/System/Library/Frameworks/JavaVM.framework/Home/bin/java'
      ActiveMQ not running

      zaphod:bin Jule$ ps -A | grep ctive
      3506 ttys000 0:11.78 /System/Library/Frameworks/JavaVM.framework/Home/bin/java -Xms256M -Xmx256M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Dactivemq.classpath=/Users/Jule/White Space/conf; -Dactivemq.home=/Users/Jule/White Space -Dactivemq.base=/Users/Jule/White Space -jar /Users/Jule/White Space/bin/run.jar start
      3528 ttys000 0:00.00 grep ctive

      zaphod:bin Jule$ echo "juleq: Broker is still running ..."
      juleq: Broker is still running ...
      zaphod:bin Jule$

      Attachments

        Activity

          People

            Unassigned Unassigned
            juleq Julian Quindt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified