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

Export feature does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.11.1
    • Fix Version/s: None
    • Component/s: Broker
    • Labels:
      None
    • Environment:

      Ubuntu 14.04 64 Bit
      OpenJDK 1.7.0_79

      Description

      The export feature seems to be broken.

      $ cd /tmp/
      $ wget http://apache.arvixe.com/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz
      --2015-07-25 16:40:53--  http://apache.arvixe.com/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz
      Auflösen des Hostnamen »apache.arvixe.com (apache.arvixe.com)«... 198.58.87.82
      Verbindungsaufbau zu apache.arvixe.com (apache.arvixe.com)|198.58.87.82|:80... verbunden.
      HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
      Länge: 43399561 (41M) [application/x-gzip]
      In »»apache-activemq-5.11.1-bin.tar.gz«« speichern.
      
      100%[=====================================================================================================================================================================================================================================>] 43.399.561  6,40MB/s   in 12s    
      
      2015-07-25 16:41:05 (3,54 MB/s) - »»apache-activemq-5.11.1-bin.tar.gz«« gespeichert [43399561/43399561]
      
      $ tar zxf apache-activemq-5.11.1-bin.tar.gz 
      $ cd apache-activemq-5.11.1/
      $ java -version
      java version "1.7.0_79"
      OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
      OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
      marc@bart(2015-07-25 16:41:20) /tmp/apache-activemq-5.11.1 
      $ cd bin/
      $ ./activemq start
      INFO: Loading '/tmp/apache-activemq-5.11.1/bin/env'
      INFO: Using java '/usr/bin/java'
      INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
      INFO: pidfile created : '/tmp/apache-activemq-5.11.1/data/activemq.pid' (pid '30387')
      $ ./activemq stop
      INFO: Loading '/tmp/apache-activemq-5.11.1/bin/env'
      INFO: Using java '/usr/bin/java'
      INFO: Waiting at least 30 seconds for regular process termination of pid '30387' : 
      Java Runtime: Oracle Corporation 1.7.0_79 /usr/lib/jvm/java-7-openjdk-amd64/jre
        Heap sizes: current=1005568k  free=995061k  max=1005568k
          JVM args: -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/tmp/apache-activemq-5.11.1/conf/login.config -Dactivemq.classpath=/tmp/apache-activemq-5.11.1/conf: -Dactivemq.home=/tmp/apache-activemq-5.11.1 -Dactivemq.base=/tmp/apache-activemq-5.11.1 -Dactivemq.conf=/tmp/apache-activemq-5.11.1/conf -Dactivemq.data=/tmp/apache-activemq-5.11.1/data
      Extensions classpath:
        [/tmp/apache-activemq-5.11.1/lib,/tmp/apache-activemq-5.11.1/lib/camel,/tmp/apache-activemq-5.11.1/lib/optional,/tmp/apache-activemq-5.11.1/lib/web,/tmp/apache-activemq-5.11.1/lib/extra]
      ACTIVEMQ_HOME: /tmp/apache-activemq-5.11.1
      ACTIVEMQ_BASE: /tmp/apache-activemq-5.11.1
      ACTIVEMQ_CONF: /tmp/apache-activemq-5.11.1/conf
      ACTIVEMQ_DATA: /tmp/apache-activemq-5.11.1/data
      Connecting to pid: 30387
      .Stopping broker: localhost
      .. FINISHED
      $ ./activemq export --file=/tmp/archive.tgz
      INFO: Loading '/tmp/apache-activemq-5.11.1/bin/env'
      INFO: Using java '/usr/bin/java'
      Java Runtime: Oracle Corporation 1.7.0_79 /usr/lib/jvm/java-7-openjdk-amd64/jre
        Heap sizes: current=1005568k  free=995061k  max=1005568k
          JVM args: -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/tmp/apache-activemq-5.11.1/conf/login.config -Dactivemq.classpath=/tmp/apache-activemq-5.11.1/conf: -Dactivemq.home=/tmp/apache-activemq-5.11.1 -Dactivemq.base=/tmp/apache-activemq-5.11.1 -Dactivemq.conf=/tmp/apache-activemq-5.11.1/conf -Dactivemq.data=/tmp/apache-activemq-5.11.1/data
      Extensions classpath:
        [/tmp/apache-activemq-5.11.1/lib,/tmp/apache-activemq-5.11.1/lib/camel,/tmp/apache-activemq-5.11.1/lib/optional,/tmp/apache-activemq-5.11.1/lib/web,/tmp/apache-activemq-5.11.1/lib/extra]
      ACTIVEMQ_HOME: /tmp/apache-activemq-5.11.1
      ACTIVEMQ_BASE: /tmp/apache-activemq-5.11.1
      ACTIVEMQ_CONF: /tmp/apache-activemq-5.11.1/conf
      ACTIVEMQ_DATA: /tmp/apache-activemq-5.11.1/data
      ERROR | Could not set property file on org.apache.activemq.console.command.store.StoreExporter@5ecfca71
      java.lang.IllegalArgumentException: Cannot convert from class java.lang.String to class java.io.File with value /tmp/archive.tgz
              at org.apache.activemq.util.IntrospectionSupport.convert(IntrospectionSupport.java:219)[activemq-client-5.11.1.jar:5.11.1]
              at org.apache.activemq.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:178)[activemq-client-5.11.1.jar:5.11.1]
              at org.apache.activemq.console.command.store.amq.CommandLineSupport.setOptions(CommandLineSupport.java:81)[activemq-console-5.11.1.jar:5.11.1]
              at org.apache.activemq.console.command.StoreExportCommand.execute(StoreExportCommand.java:51)[activemq-console-5.11.1.jar:5.11.1]
              at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)[activemq-console-5.11.1.jar:5.11.1]
              at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)[activemq-console-5.11.1.jar:5.11.1]
              at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.11.1.jar:5.11.1]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_79]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_79]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_79]
              at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_79]
              at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.11.1]
              at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.11.1]
      ERROR: java.lang.Exception: Unexpected arguments: [--file=/tmp/archive.tgz]
      java.lang.Exception: Unexpected arguments: [--file=/tmp/archive.tgz]
              at org.apache.activemq.console.command.StoreExportCommand.execute(StoreExportCommand.java:53)
              at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
              at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
              at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
              at org.apache.activemq.console.Main.main(Main.java:115)
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              scoopex Marc Schöchlin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: