Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.

Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com

java.lang.NoClassDefFoundError: de/schlichtherle/license/LicenseParam

I started getting the below exception recently. Not sure what this is or where to download the jar I need.

Runs fine on my dev box failing on the build server. I am running sahi_opensource on my dev box but sahi_pro is on the build server.

And help would be much appreciated.


Error:
Exception in thread "Thread-6" java.lang.NoClassDefFoundError: de/schlichtherle/license/LicenseParam
at net.sf.sahi.Proxy.startProxy(Proxy.java:148)
at net.sf.sahi.Proxy.access$000(Proxy.java:47)
at net.sf.sahi.Proxy$1.run(Proxy.java:124)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: de.schlichtherle.license.LicenseParam
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:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 4 more

Answers

  • java.lang.NoClassDefFoundError This exception indicates that the JVM looked in its internal class definition data structure for the definition of a class and did not find it. This is different than saying that it could not be loaded from the classpath. Usually this indicates that we previously attempted to load a class from the classpath, but it failed for some reason - now we're trying to use the class again (and thus need to load it, since it failed last time), but we're not even going to try to load it, because we failed loading it earlier (and reasonably suspect that we would fail again). The earlier failure could be a ClassNotFoundException or an ExceptionInInitializerError (indicating a failure in the static initialization block) or any number of other problems. The point is, a NoClassDefFoundError is not necessarily a classpath problem.
Sign In or Register to comment.