Java error when trying to join hub

240 views
Skip to first unread message

Mark Matthews

unread,
Sep 20, 2016, 6:40:36 AM9/20/16
to Selenium Users
Hi

I am trying to get a nose to join a hub and getting the following error:

[root@ie-slm-srv02 selenium]# java -jar selenium-server-standalone-3.0.0-beta3.jar -role node  -hub http://00.00.00.00:5872/grid/register
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/openqa/grid/selenium/GridLauncherV3 : Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
        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:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

The hub is running Windows 2012 with "Java 8 Update 101".
I have one node with Windows 2012 and "Java 8 Update 101" installed on it, and i has connected to the hub fine.

I am now trying to connect a CentOS 7 node to the hub. And keep getting the above error??
If I check the java version on the CentOS server I get the following:

[root@ie-slm-srv02 selenium]# java -version
java version "1.7.0_111"
OpenJDK Runtime Environment (rhel-2.6.7.2.el7_2-x86_64 u111-b01)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)

What could be causing this error, and how can it be resolved?

Cheers
Mark




⇜Krishnan Mahadevan⇝

unread,
Sep 20, 2016, 6:41:42 AM9/20/16
to Selenium Users
Mark,

Selenium 3 requires JDK 1.8
Please upgrade your JDK version and then try again.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c4756413-dd39-4681-9d9e-de438acf3fd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages