Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NoSuchMethodError - org.hsqldb.DatabaseURL.parseURL

When using hsql for running test I'm getting this exception:

NoSuchMethodError: org.hsqldb.DatabaseURL.parseURL(Ljava/lang/String; ZZ)Lorg/hsqldb/persist/HsqlProperties

I found this problem in another post which links to a solution which says it's a clash between jar of version 1.8 and another of version 2.2.5. I checked the project's libraries and the .classpath and it only has 1.8. Also I deleted this from the classpath and still got the same exception.

Still couldn't figure it out.

like image 741
Avi Avatar asked Dec 15 '22 06:12

Avi


1 Answers

You're compiling with a later version of the library, and running it with an earlier version.

The method that exists at compile time doesn't exist at runtime -> NoSuchMethodError.

Solution: Use the same library at runtime.

like image 97
Kayaman Avatar answered Dec 26 '22 11:12

Kayaman