<?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: Java bridge not running - jbridge.log has SSL Exception Received fatal alert: bad_record_mac in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Java-bridge-not-running-jbridge-log-has-SSL-Exception-Received/m-p/136691#M97852</link>
    <description>&lt;P&gt;I found a fix for this bad_record_mac error  that prevented java bridge from starting. . &lt;BR /&gt;
The clue was SSL error, turns out my Splunk Cert was TLS.&lt;BR /&gt;
Found this link  &lt;A href="https://wiki.almworks.com/display/kb/bad_record_mac+error+when+connecting+to+SSLv3-only+server" target="_blank"&gt;jira wiki&lt;/A&gt; which says that Java has a bug.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Problem "When trying to establish a connection to a server with HTTPS-based URL, Client reports the following problem: Received fatal alert: bad_record_mac&lt;BR /&gt;
Check if the server allows only SSL v3 as the protocol for HTTPS connection.&lt;BR /&gt;
The problem is caused by issues with Sun Java security package (#4815023),&lt;BR /&gt;
which makes the client try TLS even if it's not supported on the server. This results in aborted connection.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The wiki page suggests changing the java options to force sslv3.&lt;BR /&gt;
Splunk DB Connect app by default, the java options say: &lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
-Xmx256m -Dfile.encoding=UTF-8 -server -Duser.language=en -Duser.region=&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Changed the java options to force SSLv3 (merged both options together):&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
-Xmx256m -Duse.metal=true -Dhttps.protocols=SSLv3 -Dforce.http.jre.executor=true -Dfile.encoding=UTF-8 -server -Duser.language=en -Duser.region=&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;WORKS NOW, no restart needed.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:54:10 GMT</pubDate>
    <dc:creator>mcronkrite</dc:creator>
    <dc:date>2020-09-28T18:54:10Z</dc:date>
    <item>
      <title>Java bridge not running - jbridge.log has SSL Exception Received fatal alert: bad_record_mac</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Java-bridge-not-running-jbridge-log-has-SSL-Exception-Received/m-p/136690#M97851</link>
      <description>&lt;P&gt;Splunk 6.1 and Splunk DB Connect 1.1.6 - Added java home path manually via config file, but java bridge  wouldn't start, checked the jbridge.log and found this error message repeated regularly. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR Java process returned error code 1! Error: Initializing Splunk context... Environment: SplunkEnvironment{SPLUNK_HOME=/splunk/splunk,SPLUNK_DB=/splunk/splunk/var/lib/splunk} Configuring Log4j... Exception in thread "main" com.splunk.config.SplunkConfigurationException: IO Error while reading configuration from Splunkd: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.splunk.config.rest.RESTAdapter.request(RESTAdapter.java:199) at com.splunk.config.rest.RESTAdapter.readConfig(RESTAdapter.java:207) at com.splunk.config.cache.CachedConfigurationAdapter.readConfig(CachedConfigurationAdapter.java:32) at com.splunk.config.cache.CachedConfigurationAdapter.readStanza(CachedConfigurationAdapter.java:40) at com.splunk.env.SplunkContext.getConfigStanza(SplunkContext.java:313) at com.splunk.env.SplunkContext.initialize(SplunkContext.java:128) at com.splunk.bridge.JavaBridgeServer.main(JavaBridgeServer.java:34) Caused by: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1774) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133) at com.splunk.rest.Splunkd.request(Splunkd.java:216) at com.splunk.rest.Splunkd.request(Splunkd.java:102) at com.splunk.config.rest.RESTAdapter.request(RESTAdapter.java:197)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Java-bridge-not-running-jbridge-log-has-SSL-Exception-Received/m-p/136690#M97851</guid>
      <dc:creator>mcronkrite</dc:creator>
      <dc:date>2015-02-12T17:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Java bridge not running - jbridge.log has SSL Exception Received fatal alert: bad_record_mac</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Java-bridge-not-running-jbridge-log-has-SSL-Exception-Received/m-p/136691#M97852</link>
      <description>&lt;P&gt;I found a fix for this bad_record_mac error  that prevented java bridge from starting. . &lt;BR /&gt;
The clue was SSL error, turns out my Splunk Cert was TLS.&lt;BR /&gt;
Found this link  &lt;A href="https://wiki.almworks.com/display/kb/bad_record_mac+error+when+connecting+to+SSLv3-only+server" target="_blank"&gt;jira wiki&lt;/A&gt; which says that Java has a bug.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Problem "When trying to establish a connection to a server with HTTPS-based URL, Client reports the following problem: Received fatal alert: bad_record_mac&lt;BR /&gt;
Check if the server allows only SSL v3 as the protocol for HTTPS connection.&lt;BR /&gt;
The problem is caused by issues with Sun Java security package (#4815023),&lt;BR /&gt;
which makes the client try TLS even if it's not supported on the server. This results in aborted connection.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The wiki page suggests changing the java options to force sslv3.&lt;BR /&gt;
Splunk DB Connect app by default, the java options say: &lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
-Xmx256m -Dfile.encoding=UTF-8 -server -Duser.language=en -Duser.region=&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Changed the java options to force SSLv3 (merged both options together):&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
-Xmx256m -Duse.metal=true -Dhttps.protocols=SSLv3 -Dforce.http.jre.executor=true -Dfile.encoding=UTF-8 -server -Duser.language=en -Duser.region=&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;WORKS NOW, no restart needed.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Java-bridge-not-running-jbridge-log-has-SSL-Exception-Received/m-p/136691#M97852</guid>
      <dc:creator>mcronkrite</dc:creator>
      <dc:date>2020-09-28T18:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java bridge not running - jbridge.log has SSL Exception Received fatal alert: bad_record_mac</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Java-bridge-not-running-jbridge-log-has-SSL-Exception-Received/m-p/136692#M97853</link>
      <description>&lt;P&gt;You are my hero &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 07:56:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Java-bridge-not-running-jbridge-log-has-SSL-Exception-Received/m-p/136692#M97853</guid>
      <dc:creator>Muryoutaisuu</dc:creator>
      <dc:date>2015-03-26T07:56:47Z</dc:date>
    </item>
  </channel>
</rss>

