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

Jolokia throws exception during startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 5.17.2
    • 5.18.0, 5.17.3
    • Broker
    • None
    • Windows 10
      Java 11

    Description

      During startup of a freshly downloaded activemq-5.17.2 for windows the jolokia agent scrambles up the path of the jolokia-access.xml file, fails to open it, and throws an exception:

      C:\Tools\Brokers\apache-activemq-5.17.2>bin\activemq start
      Java Runtime: AdoptOpenJDK 11.0.7 C:\Tools\Java\jdk-11.0.7.10-hotspot
        Heap sizes: current=1048576k  free=1040894k  max=1048576k
          JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\conf\login.config -Dactivemq.classpath=C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\conf;C:\Tools\Brokers\apache-activemq-5.17.2\bin\../conf;C:\Tools\Brokers\apache-activemq-5.17.2\bin\../conf; -Dactivemq.home=C:\Tools\Brokers\apache-activemq-5.17.2\bin\.. -Dactivemq.base=C:\Tools\Brokers\apache-activemq-5.17.2\bin\.. -Dactivemq.conf=C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\conf -Dactivemq.data=C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\data -Djava.io.tmpdir=C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\data\tmp
      Extensions classpath:
        [C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\lib,C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\lib\camel,C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\lib\optional,C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\lib\web,C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\lib\extra]
      ACTIVEMQ_HOME: C:\Tools\Brokers\apache-activemq-5.17.2\bin\..
      ACTIVEMQ_BASE: C:\Tools\Brokers\apache-activemq-5.17.2\bin\..
      ACTIVEMQ_CONF: C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\conf
      ACTIVEMQ_DATA: C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\data
      Loading message broker from: xbean:activemq.xml
       INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\data\kahadb]
       INFO | PListStore:[C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\data\localhost\tmp_storage] started
       INFO | Apache ActiveMQ 5.17.2 (localhost, ID:DESKTOP-ENEPHES-56664-1666030664750-0:1) is starting
       INFO | Listening for connections at: tcp://DESKTOP-ENEPHES:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector openwire started
       INFO | Listening for connections at: amqp://DESKTOP-ENEPHES:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector amqp started
       INFO | Listening for connections at: stomp://DESKTOP-ENEPHES:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector stomp started
       INFO | Listening for connections at: mqtt://DESKTOP-ENEPHES:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector mqtt started
       INFO | Starting Jetty server
       INFO | Creating Jetty connector
       WARN | ServletContext@o.e.j.s.ServletContextHandler@58437801{/,null,STARTING} has uncovered http methods for path: /
       INFO | Listening for connections at ws://DESKTOP-ENEPHES:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
       INFO | Connector ws started
       INFO | Apache ActiveMQ 5.17.2 (localhost, ID:DESKTOP-ENEPHES-56664-1666030664750-0:1) started
       INFO | For help or more information please see: http://activemq.apache.org
       WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: C:\Tools\Brokers\apache-activemq-5.17.2\bin\..\data\kahadb only has 95573 mb of usable space. - resetting to maximum available disk space: 95573 mb
       INFO | ActiveMQ WebConsole available at http://127.0.0.1:8161/
       INFO | ActiveMQ Jolokia REST API available at http://127.0.0.1:8161/api/jolokia/
       WARN | jolokia-agent: Error while accessing access restrictor at file:C:ToolsBrokersapache-activemq-5.17.2bin..conf/jolokia-access.xml. Denying all access to MBeans for security reasons. Exception: java.io.FileNotFoundException: C:ToolsBrokersapache-activemq-5.17.2bin..conf\jolokia-access.xml (Het systeem kan het opgegeven pad niet vinden)
      
      

      It seems to have removed the slashes from the base path somehow.

      No files have been changed after unpacking the zip distribution.

       

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              cathodion Geert Schuring
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m