Dashboards & Visualizations

Java Bridge not running...

DavidHourani
Super Champion

Hello Splunkers,

I recently updated to 6.2.3 and db connect stopped working... anyone has had the same problem ?

I am running DBconnect v1.

I have the following message that is being repeated in /var/log/splunk/jbridge.log

2015-06-11 10:29:29,075 ERROR Command output: None
2015-06-11 10:29:31,563 INFO Checking for obsolete java libraries in /mnt/sdb1/ProdSplunk/splunk/etc/apps/dbx/bin/lib
2015-06-11 10:29:31,566 INFO Started JavaBridgeServer PID=32154
2015-06-11 10:29:31,685 ERROR Java process returned error code 1! Error: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/splunk/bridge/JavaBridgeServer : Unsupported major.minor version 52.0   at java.lang.ClassLoader.defineClass1(Native Method)    at java.lang.ClassLoader.defineClass(ClassLoader.java:791)      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)      at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71)   at java.net.URLClassLoader$1.run(URLClassLoader.java:361)       at java.net.URLClassLoader$1.run(URLClassLoader.java:355)       at java.security.AccessController.doPrivileged(Native Method)   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)   at java.lang.ClassLoader.loadClass(ClassLoader.java:423)        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:480)

Thanks !
David

Tags (2)
0 Karma

laserval
Communicator

You are using the wrong Java version:

2015-06-11 10:29:31,685 ERROR Java process returned error code 1! Error: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/splunk/bridge/JavaBridgeServer : Unsupported major.minor version 52.0

The error means that the Java Bridge is Java 8, and your JVM is not.

If your're using DBConnect v1.2, it looks like you need Java 8 (although the app page says not):
http://docs.splunk.com/Documentation/DBX/1.2.0/DeployDBX/Deploymentrequirements#Java_Runtime_Environ...

DavidHourani
Super Champion

Thanks for your help. Eventually i found the fix on the troubleshooting guide:

Fix: If you suspend and restart a VM on which the Java Bridge Server is running, make sure to restart Splunk. Also, remove any stale state.xml files from $SPLUNK_HOME/var/lib/splunk/persistentstorage/dbx.

Simply had to delete the state.xml file and restart ^^

0 Karma

splunker12er
Motivator

$SPLUNK_HOME/var/log/splunk/jbridge.log
What does the log say ?

DavidHourani
Super Champion

I added the content above in the question.

0 Karma

splunker12er
Motivator

Your java version is incompatible.

Supported versions:
DB Connect 1.1.x requires Java 1.6 or 1.7 only.
DB Connect 1.2 requires Java 8 only.
DB Connect 2.0 requires Java 8 only.

http://docs.splunk.com/Documentation/DBX/1.2.0/DeployDBX/Deploymentrequirements#Java_Runtime_Environ...

0 Karma

ppablo
Retired

Hi @DavidHourani

Can you include what version you're using? DB Connect 1 or DB Connect 2?

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...