<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to resolve the error &amp;quot;java.net.ConnectException: Connection refused:&amp;quot; in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304188#M36228</link>
    <description>&lt;P&gt;I would check your firewalls, that is the reason I see most often for that error message.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2017 08:30:15 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2017-11-27T08:30:15Z</dc:date>
    <item>
      <title>How to resolve the error "java.net.ConnectException: Connection refused:"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304187#M36227</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am very new to the application 'Monitoring of Java Virtual Machines with JMX' and also to JMX concept. For installation and other configuration steps, I go through the below site:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/668/#/details"&gt;https://splunkbase.splunk.com/app/668/#/details&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I have done modifications only in the config.xml file with my localhost as hostname and its corresponding port details. Then created a data input through 'JMX' by entering necessary details. When I check for the index or sourcetype which I specified in the data input, no results are returned. When I check in the splunkd.log, it is writing the error as "java.net.ConnectException: Connection refused:"&lt;/P&gt;

&lt;P&gt;I am able to connect to the host through jconsole without any issues. But when I configure the same details in the config file, it is unable to connect to the host.&lt;BR /&gt;
Note: I have made changes only on config.xml file only added hostname and its port.&lt;/P&gt;

&lt;P&gt;Could you let me know if anything I am missing to configure. Please help on this.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 07:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304187#M36227</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2017-11-27T07:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the error "java.net.ConnectException: Connection refused:"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304188#M36228</link>
      <description>&lt;P&gt;I would check your firewalls, that is the reason I see most often for that error message.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 08:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304188#M36228</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2017-11-27T08:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the error "java.net.ConnectException: Connection refused:"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304189#M36229</link>
      <description>&lt;P&gt;Hi @Damien,&lt;/P&gt;

&lt;P&gt;I have turned off the windows firewall completely in my system. But still throwing the below error;&lt;/P&gt;

&lt;P&gt;11-27-2017 14:55:39.385 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\SPLUNK4JMX\bin\jmx.py"" host=localhost, jmxServiceURL=, jmxport=0, jvmDescription=test, processID=0,stanza=jmx://testjmx,systemErrorMessage="Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: &lt;/P&gt;

&lt;P&gt;11-27-2017 14:55:39.385 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\SPLUNK4JMX\bin\jmx.py""  java.net.ConnectException: Connection refused: connect]"&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 09:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304189#M36229</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2017-11-27T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the error "java.net.ConnectException: Connection refused:"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304190#M36230</link>
      <description>&lt;P&gt;Does "localhost" resolve correctly? Try 127.0.0.1&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 18:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304190#M36230</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2017-11-27T18:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the error "java.net.ConnectException: Connection refused:"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304191#M36231</link>
      <description>&lt;P&gt;@Damien,&lt;/P&gt;

&lt;P&gt;I have tried with 127.0.0.1, still I am getting the same error on splunkd log.&lt;/P&gt;

&lt;P&gt;11-28-2017 11:05:30.541 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\SPLUNK4JMX\bin\jmx.py"" host=127.0.0.1, jmxServiceURL=, jmxport=0, jvmDescription=test, processID=0,stanza=jmx://testjmx,systemErrorMessage="Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: &lt;/P&gt;

&lt;P&gt;11-28-2017 11:05:30.541 +0530 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\SPLUNK4JMX\bin\jmx.py""  java.net.ConnectException: Connection refused: connect]"&lt;/P&gt;

&lt;P&gt;I have also made the below changes but no luck.&lt;BR /&gt;
mbean domain="&lt;EM&gt;" properties="&lt;/EM&gt;" dumpAllAttributes="true"&lt;/P&gt;

&lt;P&gt;Could you please help me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 05:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304191#M36231</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2017-11-28T05:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the error "java.net.ConnectException: Connection refused:"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304192#M36232</link>
      <description>&lt;P&gt;Hi @Damien,&lt;/P&gt;

&lt;P&gt;I have reinstalled the complete setup once again and updated only the config.xml file with the hostname and port details. Now I am getting the below error as failed to initialize the stanza.&lt;/P&gt;

&lt;P&gt;ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\SPLUNK4JMX\bin\jmx.py"" The root config object(JMXPoller) failed to initialize, stanza : jmx://helloworld&lt;/P&gt;

&lt;P&gt;Could you please help me on this. Due to this I am unable to proceed further on this setup.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 11:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304192#M36232</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2017-11-29T11:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve the error "java.net.ConnectException: Connection refused:"</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304193#M36233</link>
      <description>&lt;P&gt;The only times I've ever seen that error are when the user has a typo or misconfiguration in the config xml file. The xsd is shipped with the app if you need to validate your config.xml.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-resolve-the-error-quot-java-net-ConnectException/m-p/304193#M36233</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2017-11-29T21:41:28Z</dc:date>
    </item>
  </channel>
</rss>

