All Apps and Add-ons

SA-ldapsearch problems with java

500wan
Engager

I have installed java7

  • C:\Users\Administrator>java -version java version "1.7.0_55" Java(TM) SE Runtime Environment (build 1.7.0_55-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

but when I use ldapsearch command,it returns errors like the following:
- at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
Exception in thread "main"
External search command 'ldapsearch' returned error code 1.
java.lang.UnsupportedClassVersionError: com/splunk/program/LDAPSearch : Unsupported major.minor version 52.0

Tags (1)

dchodur
Path Finder

Believe I have the same issue as well.

at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/splunk/program/LDAPSearch : Unsupported major.minor version 52.0
External search command 'ldapsearch' returned error code 1.

java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

Running version 1.1.12 of the app.

Thanks,

0 Karma

ahall_splunk
Splunk Employee
Splunk Employee

Thanks for your patience.

We have recompiled SA-ldapsearch 1.1.12 with Java 1.7. If you re-download the SA-ldapsearch 1.1.12 (the latest at http://apps.splunk.com/app/1151), then you will get the updated version that works on Java 1.7

fsanche8
Explorer

I'm having this issue too. I have a support case into Splunk asking about this, but I believe that one of their jars was compiled with a version higher than the current 1.7.0_55 Java version (version 51.0). When extracting some of the jars and looking in their manifest files, I noticed customcommands.jar was compiled by Java version 1.8.0-b132, which I believe is only available on the Oracle site right now and matches as version 52.0 due to some searching around I did.

There's no indication that the app requires Java 8 at this time - at least from what I saw - but I could be wrong and this could be a new requirement.

0 Karma

ahall_splunk
Splunk Employee
Splunk Employee

I'll post an answer here with what we do.

0 Karma

fsanche8
Explorer

Thank you! Will the fix come in the form of a new version update or will you just comment in this thread when it's fixed?

Appreciate it.

0 Karma

ahall_splunk
Splunk Employee
Splunk Employee

This should not be required. I'll get it fixed.

500wan
Engager

I think you are right.
I have download jre-8u5 and install it, the the problem has been solved.
Thank you.

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...