<?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 Java to Splunk Cloud connection error: HttpService.setSslSecurityProtocol in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345571#M5398</link>
    <description>&lt;P&gt;I'm trying to connect splunk through java 8 application. While making a connection to splunk cloud, i'm getting below error at&lt;/P&gt;

&lt;P&gt;HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2) line . Can any one provide the solution ?&lt;/P&gt;

&lt;P&gt;Error: java.lang.NoSuchMethodError: com.splunk.SSLSecurityProtocol.(Ljava/lang/String;ILcom/splunk/SSLSecurityProtocol;)V at com.splunk.SSLSecurityProtocol$2.(SSLSecurityProtocol.java:7) ~[splunk-1.6.2.0.jar!/:1.6.2] at com.splunk.SSLSecurityProtocol.(SSLSecurityProtocol.java:7) ~[splunk-1.6.2.0.jar!/:1.6.2]&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 13:06:49 GMT</pubDate>
    <dc:creator>kartik037</dc:creator>
    <dc:date>2017-11-07T13:06:49Z</dc:date>
    <item>
      <title>Java to Splunk Cloud connection error: HttpService.setSslSecurityProtocol</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345571#M5398</link>
      <description>&lt;P&gt;I'm trying to connect splunk through java 8 application. While making a connection to splunk cloud, i'm getting below error at&lt;/P&gt;

&lt;P&gt;HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2) line . Can any one provide the solution ?&lt;/P&gt;

&lt;P&gt;Error: java.lang.NoSuchMethodError: com.splunk.SSLSecurityProtocol.(Ljava/lang/String;ILcom/splunk/SSLSecurityProtocol;)V at com.splunk.SSLSecurityProtocol$2.(SSLSecurityProtocol.java:7) ~[splunk-1.6.2.0.jar!/:1.6.2] at com.splunk.SSLSecurityProtocol.(SSLSecurityProtocol.java:7) ~[splunk-1.6.2.0.jar!/:1.6.2]&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 13:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345571#M5398</guid>
      <dc:creator>kartik037</dc:creator>
      <dc:date>2017-11-07T13:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Java to Splunk Cloud connection error: HttpService.setSslSecurityProtocol</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345572#M5399</link>
      <description>&lt;P&gt;I am not sure whether you have included the below  line in your java code. If not, try to add it in code and compile again. Please let me know if  you are successfully getting your query response.&lt;/P&gt;

&lt;P&gt;HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 16:30:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345572#M5399</guid>
      <dc:creator>rajeshhertz</dc:creator>
      <dc:date>2017-11-08T16:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Java to Splunk Cloud connection error: HttpService.setSslSecurityProtocol</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345573#M5400</link>
      <description>&lt;P&gt;i'm also encountering this error (yes, still an error even though HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2); was in the code)&lt;BR /&gt;
hopefully someone can help us with this&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 10:03:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345573#M5400</guid>
      <dc:creator>mianmembrebe</dc:creator>
      <dc:date>2018-01-10T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Java to Splunk Cloud connection error: HttpService.setSslSecurityProtocol</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345574#M5401</link>
      <description>&lt;P&gt;Which version of splunk dependency you are using ? I solved this problem by using 1.6.3.0 version or latest . Earlier I used 1.6.2.0 when I encountered above error. Use the latest version of splunk. &lt;BR /&gt;
Maven:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;groupId&amp;gt;com.splunk&amp;lt;/groupId&amp;gt;
&amp;lt;artifactId&amp;gt;splunk&amp;lt;/artifactId&amp;gt;
&amp;lt;version&amp;gt;1.6.3.0&amp;lt;/version&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jan 2018 10:12:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345574#M5401</guid>
      <dc:creator>kartik037</dc:creator>
      <dc:date>2018-01-10T10:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Java to Splunk Cloud connection error: HttpService.setSslSecurityProtocol</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345575#M5402</link>
      <description>&lt;P&gt;That did the trick for me too! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 10:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Java-to-Splunk-Cloud-connection-error-HttpService/m-p/345575#M5402</guid>
      <dc:creator>mianmembrebe</dc:creator>
      <dc:date>2018-01-10T10:18:04Z</dc:date>
    </item>
  </channel>
</rss>

