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!

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...

Splunk AppDynamics Agents Webinar Series

Mark your calendars! On June 24th at 12PM PST, we’re going live with the second session of our Splunk ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...