Exception Initilization Error

42 views
Skip to first unread message

Julian Zhou

unread,
Jan 1, 2015, 5:24:09 PM1/1/15
to jooq...@googlegroups.com
https://github.com/TechCavern/WaveTact/blob/master/src/main/java/com/techcavern/wavetact/utils/LoadUtils.java#L34 

Stacktrace is as follows:

Welcome to WaveTact!

Extracting natives...
Processing: libjunixsocket-linux-1.5-amd64.so
-> Skipping. File exists.
Processing: libjunixsocket-linux-1.5-i386.so
-> Skipping. File exists.
Processing: libjunixsocket-macosx-1.5-i386.dylib
-> Skipping. File exists.
Processing: libjunixsocket-macosx-1.5-x86_64.dylib
-> Skipping. File exists.
Patching java.library.path...
[2015/01/01 17:20:10] [main] [INFO] org.flywaydb.core.internal.dbsupport.DbSupportFactory - Database: jdbc:sqlite:./db.sqlite (SQLite 3.0)
[2015/01/01 17:20:11] [main] [INFO] org.flywaydb.core.internal.command.DbValidate - Validated 1 migration (execution time 00:00.055s)
[2015/01/01 17:20:11] [main] [INFO] org.flywaydb.core.internal.command.DbMigrate - Current version of schema "main": 1
[2015/01/01 17:20:11] [main] [INFO] org.flywaydb.core.internal.command.DbMigrate - Schema "main" is up to date. No migration necessary.
Getting connection...
Creating DSLContext...
[2015/01/01 17:20:12] [main] [INFO] org.reflections.Reflections - Reflections took 206 ms to scan 1 urls, producing 22 keys and 193 values
java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:340)
    at com.techcavern.wavetact.utils.LoadUtils.initiateDatabaseConnection(LoadUtils.java:33)
    at com.techcavern.wavetact.Main.main(Main.java:27)
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.techcavern.wavetact.utils.Registry
    at com.techcavern.wavetact.utils.LoadUtils.initiateDatabaseConnection(LoadUtils.java:33)
    at com.techcavern.wavetact.Main.main(Main.java:27)

Lukas Eder

unread,
Jan 2, 2015, 2:52:56 AM1/2/15
to jooq...@googlegroups.com
Hello,

I suspect that the implicit question in your error dump is about what may have caused the NoClassDefFoundError, and the answer is not related to jOOQ. A NoClassDefFoundError is generated when code that had a correct compile-time dependency setup no longer has all dependencies on its runtime classpath. This means that your runtime is simply missing the Registry class.

See also:

Best Regards,
Lukas

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages