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

Jolokia-agent - File not found exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.17.1, 5.17.2
    • 5.17.3
    • Web Console
    • None

    Description

      Windows server 2019 

      I dowloaded ActiveMQ 5.17.1.

      I ran   InstallService.bat

      I ran:    start-service activemq

      There seems to be an issue with the \ in the path for jolokia-access.xml:

      jolokia-agent: Error while accessing access restrictor at [file:D:APPActiveMQapache-activemq-5.17.1binwin64..../conf/jolokia-access.xml|file:///D:/APPActiveMQapache-activemq-5.17.1binwin64..../conf/jolokia-access.xml]. Denying all access to MBeans for security reasons. 
      2022-05-05 10:16:13,469 | INFO  | Using Persistence Adapter: KahaDBPersistenceAdapter[D:\APP\ActiveMQ\apache-activemq-5.17.1\bin\win64\..\..\data\kahadb] | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
      2022-05-05 10:16:13,614 | INFO  | PListStore:[D:\APP\ActiveMQ\apache-activemq-5.17.1\bin\win64\..\..\data\localhost\tmp_storage] started | org.apache.activemq.store.kahadb.plist.PListStoreImpl | WrapperSimpleAppMain
      2022-05-05 10:16:13,733 | INFO  | Apache ActiveMQ 5.17.1 (localhost, ID:HMSSQLP03-52401-1651738573614-0:1) is starting | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
      2022-05-05 10:16:13,749 | INFO  | Listening for connections at: tcp://HMSSQLP03:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | WrapperSimpleAppMain
      2022-05-05 10:16:13,749 | INFO  | Connector openwire started | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
      2022-05-05 10:16:13,759 | INFO  | Listening for connections at: amqp://HMSSQLP03:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | WrapperSimpleAppMain
      2022-05-05 10:16:13,759 | INFO  | Connector amqp started | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
      2022-05-05 10:16:13,759 | INFO  | Listening for connections at: stomp://HMSSQLP03:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | WrapperSimpleAppMain
      2022-05-05 10:16:13,759 | INFO  | Connector stomp started | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
      2022-05-05 10:16:13,759 | INFO  | Listening for connections at: mqtt://HMSSQLP03:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.TransportServerThreadSupport | WrapperSimpleAppMain
      2022-05-05 10:16:13,759 | INFO  | Connector mqtt started | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
      2022-05-05 10:16:13,759 | INFO  | Starting Jetty server | org.apache.activemq.transport.WebTransportServerSupport | WrapperSimpleAppMain
      2022-05-05 10:16:13,774 | INFO  | Creating Jetty connector | org.apache.activemq.transport.WebTransportServerSupport | WrapperSimpleAppMain
      2022-05-05 10:16:13,806 | WARN  | ServletContext@o.e.j.s.ServletContextHandler@4b8365d9\{/,null,STARTING} has uncovered http methods for path: / | org.eclipse.jetty.security.SecurityHandler | WrapperSimpleAppMain
      2022-05-05 10:16:13,859 | INFO  | Listening for connections at ws://HMSSQLP03:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600 | org.apache.activemq.transport.ws.WSTransportServer | WrapperSimpleAppMain
      2022-05-05 10:16:13,859 | INFO  | Connector ws started | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
      2022-05-05 10:16:13,859 | INFO  | Apache ActiveMQ 5.17.1 (localhost, ID:HMSSQLP03-52401-1651738573614-0:1) started | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
      2022-05-05 10:16:13,859 | INFO  | For help or more information please see: [http://activemq.apache.org|http://activemq.apache.org/] | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
      2022-05-05 10:16:13,859 | WARN  | Store limit is 102400 mb (current store usage is 0 mb). The data directory: D:\APP\ActiveMQ\apache-activemq-5.17.1\bin\win64\..\..\data\kahadb only has 95478 mb of usable space. - resetting to maximum available disk space: 95478 mb | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
      2022-05-05 10:16:14,251 | INFO  | ActiveMQ WebConsole available at [http://127.0.0.1:8161/] | org.apache.activemq.web.WebConsoleStarter | WrapperSimpleAppMain
      2022-05-05 10:16:14,251 | INFO  | ActiveMQ Jolokia REST API available at [http://127.0.0.1:8161/api/jolokia/] | org.apache.activemq.web.WebConsoleStarter | WrapperSimpleAppMain
      2022-05-05 10:16:14,427 | WARN  | jolokia-agent: Error while accessing access restrictor at [file:D:APPActiveMQapache-activemq-5.17.1binwin64..../conf/jolokia-access.xml|file:///D:/APPActiveMQapache-activemq-5.17.1binwin64..../conf/jolokia-access.xml]. Denying all access to MBeans for security reasons. Exception: java.io.FileNotFoundException: D:APPActiveMQapache-activemq-5.17.1binwin64....\conf\jolokia-access.xml (The system cannot find the path specified) | org.eclipse.jetty.server.handler.ContextHandler.api | WrapperSimpleAppMain
      java.io.FileNotFoundException: D:APPActiveMQapache-activemq-5.17.1binwin64....\conf\jolokia-access.xml (The system cannot find the path specified)
          at java.base/java.io.FileInputStream.open0(Native Method)
          at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
          at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
          at java.base/java.io.FileInputStream.<init>(FileInputStream.java:111)
          at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
          at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:189)
          at java.base/java.net.URL.openStream(URL.java:1161)
          at org.jolokia.restrictor.RestrictorFactory.lookupPolicyRestrictor(RestrictorFactory.java:119)
          at org.jolokia.restrictor.RestrictorFactory.createRestrictor(RestrictorFactory.java:50)
          at org.jolokia.http.AgentServlet.createRestrictor(AgentServlet.java:195)
          at org.jolokia.http.AgentServlet.init(AgentServlet.java:135)
          at org.eclipse.jetty.servlet.ServletHolder$Wrapper.init(ServletHolder.java:1345)
          at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:632)
          at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:415)
          at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:731)
          at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357)
          at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510)
          at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
          at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:310)
          at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735)
          at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
          at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:755)
          at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
          at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
          at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
          at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
          at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
          at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
          at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
          at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
          at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:411)
          at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:417)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
          at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
          at org.eclipse.jetty.server.Server.start(Server.java:423)
          at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
          at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
          at org.eclipse.jetty.server.Server.doStart(Server.java:387)
          at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:568)
          at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:283)
          at org.springframework.beans.factory.config.MethodInvokingBean.invokeWithTargetException(MethodInvokingBean.java:123)
          at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet(MethodInvokingFactoryBean.java:108)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
          at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
          at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
          at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:934)
          at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
          at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
          at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
          at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
          at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
          at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
          at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
          at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
          at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
          at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)
          at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
          at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)
          at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)
          at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:568)
          at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
          at org.apache.activemq.console.Main.main(Main.java:115)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:568)
          at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
          at java.base/java.lang.Thread.run(Thread.java:833)

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              j-d-c Jan Declercq
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: