Monitoring Splunk

Splunk SDK via proxy

MaheshPalemkota
New Member

Hello..
We have trouble connecting to Splunk using splunk sdk for java. Our network should go through proxy. and it is giving me below error

Caused by: java.lang.NoSuchMethodError: com.splunk.SSLSecurityProtocol.(Ljava/lang/String;ILcom/splunk/SSLSecurityProtocol;)V
at com.splunk.SSLSecurityProtocol$2.(SSLSecurityProtocol.java:7)
at com.splunk.SSLSecurityProtocol.(SSLSecurityProtocol.java:7)
at com.t.pmr.di.rest.config.SplunkRestConfiguration.splunkServerConnecter(SplunkRestConfiguration.java:21)
at com.t.pmr.di.rest.config.SplunkRestConfiguration$$EnhancerBySpringCGLIB$$609fdf55.CGLIB$splunkServerConnecter$0()
at com.t.pmr.di.rest.config.SplunkRestConfiguration$$EnhancerBySpringCGLIB$$609fdf55$$FastClassBySpringCGLIB$$eb15fde.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:361)
at com.t.pmr.di.rest.config.SplunkRestConfiguration$$EnhancerBySpringCGLIB$$609fdf55.splunkServerConnecter()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Tags (1)
0 Karma

dkeck
Influencer

Hi,

did you see this post? I think they are close to your problem.

https://answers.splunk.com/answers/67327/splunk-java-sdk-connection-to-splunk-failed.html

0 Karma

dkeck
Influencer

Did this do anything for you :)?

if it helped please accept the question 🙂

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...