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!

Enhance Your Splunk App Development: New Tools & Support

UCC FrameworkAdd-on Builder has been around for quite some time. It helps build Splunk apps faster, but it ...

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...