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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...