java.lang.NoClassDefFoundError: com/google/gson/JsonElement
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
- Expert tip
Check if you didn't forget to instantiate your topic in the kafka broker.
This error comes up in the old version of spring-test , you should update tospring test 4.3.2
Solutions on the web
via Google Groups by David Ramer, 1 year ago
via Stack Overflow by mujib009
, 2 years agojava.lang.ClassNotFoundException: com.google.gson.JsonElement
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
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 org.openqa.selenium.firefox.Preferences.readDefaultPreferences(Preferences.java:96)
at org.openqa.selenium.firefox.Preferences.
(Preferences.java:66) at org.openqa.selenium.firefox.FirefoxProfile.
(FirefoxProfile.java:88) at org.openqa.selenium.firefox.FirefoxProfile.
(FirefoxProfile.java:78) at org.openqa.selenium.firefox.FirefoxProfile.
(FirefoxProfile.java:67) at org.openqa.selenium.firefox.FirefoxDriver.getProfile(FirefoxDriver.java:293)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:269)
at org.openqa.selenium.remote.RemoteWebDriver.
(RemoteWebDriver.java:116) at org.openqa.selenium.firefox.FirefoxDriver.
(FirefoxDriver.java:221) at org.openqa.selenium.firefox.FirefoxDriver.
(FirefoxDriver.java:216) at org.openqa.selenium.firefox.FirefoxDriver.
(FirefoxDriver.java:212) at org.openqa.selenium.firefox.FirefoxDriver.
(FirefoxDriver.java:125) at com.common.eTest.eTestScreenCaptureFactory$Test.main(eTestScreenCaptureFactory.java:221)