Security

connection to splunk with splunk java sdk failed with error - java.lang.IllegalArgumentException: Empty cookie header string

hansrajsgh
New Member

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.

Code used
HttpService.setSslSecurityProtocol(SSLSecurityProtocol.TLSv1_2);

ServiceArgs loginArgs = new ServiceArgs();
loginArgs.setHost("myhost");
loginArgs.setPort(8090);
loginArgs.setUsername("abc");
loginArgs.setPassword("abc123");

Service service = Service.connect(loginArgs);

While working this code via jnlp throws error with java 7 and java8
stackTrace=java.lang.IllegalArgumentException: Empty cookie header string

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...