<?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 connection to splunk with splunk java sdk failed with error - java.lang.IllegalArgumentException: Empty cookie header string in Security</title>
    <link>https://community.splunk.com/t5/Security/connection-to-splunk-with-splunk-java-sdk-failed-with-error-java/m-p/384417#M13198</link>
    <description>&lt;P&gt;I have used splunk sdk - 1.5.0.0 and while running it in IDE(Intellij) with java 6, java7 and java8 it works fine. But when the same java code is run via jnlp file then connection to spliunk fails with java7 and java8 whereas it works with java 6.&lt;/P&gt;

&lt;P&gt;Code used&lt;BR /&gt;
HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);&lt;/P&gt;

&lt;P&gt;ServiceArgs loginArgs = new ServiceArgs();&lt;BR /&gt;
            loginArgs.setHost("myhost");&lt;BR /&gt;
            loginArgs.setPort(8090);&lt;BR /&gt;
            loginArgs.setUsername("abc");&lt;BR /&gt;
            loginArgs.setPassword("abc123");&lt;/P&gt;

&lt;P&gt;Service service = Service.connect(loginArgs);&lt;/P&gt;

&lt;P&gt;While working this code via jnlp throws error with java 7 and java8 &lt;BR /&gt;
stackTrace=java.lang.IllegalArgumentException: Empty cookie header string&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 11:09:36 GMT</pubDate>
    <dc:creator>hansrajsgh</dc:creator>
    <dc:date>2019-05-22T11:09:36Z</dc:date>
    <item>
      <title>connection to splunk with splunk java sdk failed with error - java.lang.IllegalArgumentException: Empty cookie header string</title>
      <link>https://community.splunk.com/t5/Security/connection-to-splunk-with-splunk-java-sdk-failed-with-error-java/m-p/384417#M13198</link>
      <description>&lt;P&gt;I have used splunk sdk - 1.5.0.0 and while running it in IDE(Intellij) with java 6, java7 and java8 it works fine. But when the same java code is run via jnlp file then connection to spliunk fails with java7 and java8 whereas it works with java 6.&lt;/P&gt;

&lt;P&gt;Code used&lt;BR /&gt;
HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);&lt;/P&gt;

&lt;P&gt;ServiceArgs loginArgs = new ServiceArgs();&lt;BR /&gt;
            loginArgs.setHost("myhost");&lt;BR /&gt;
            loginArgs.setPort(8090);&lt;BR /&gt;
            loginArgs.setUsername("abc");&lt;BR /&gt;
            loginArgs.setPassword("abc123");&lt;/P&gt;

&lt;P&gt;Service service = Service.connect(loginArgs);&lt;/P&gt;

&lt;P&gt;While working this code via jnlp throws error with java 7 and java8 &lt;BR /&gt;
stackTrace=java.lang.IllegalArgumentException: Empty cookie header string&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 11:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/connection-to-splunk-with-splunk-java-sdk-failed-with-error-java/m-p/384417#M13198</guid>
      <dc:creator>hansrajsgh</dc:creator>
      <dc:date>2019-05-22T11:09:36Z</dc:date>
    </item>
  </channel>
</rss>

