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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Value Insights: Now Generally Available in the CMC

Organizations are under pressure to move faster, control cost, expand AI adoption, and prove value with more ...

What’s New in Splunk AI: Volume 02

Welcome to the second edition of “What’s New in Splunk AI” where we look at the latest and greatest updates, ...

Splunk App Dev Quarterly Roundup: AI, Agents, and Innovation!

Another quarter, another wave of innovation. From complex integrations to pushing the limits ...