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!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...