-
-
Recent Posts
Archives
Categories
Meta
Category Archives: Software
Grails – “Error An error occurred loading the grails-app/conf/BuildConfig.groovy file: null”
If you get this error, check if there’s another (wrong) groovy version on your classpath. For me this happened in IntelliJ because I had @Grab’ed a third party library that depended on an older groovy version, and IntelliJ adds @Grab’ed … Continue reading
Posted in Software
Leave a comment
Workaround for Batik’s NoClassDefFoundError/ClassNotFoundException: TruncatedFileException
Batik’s JPEGRegistryEntry that is repsonsible for handling inline JPEGs in SVGs contains a reference to TruncatedFileException, which is specific to the Sun/Oracle JDK (as well as other classes used in the same code). If you’re running e.g. on OpenJDK, you’ll … Continue reading
Posted in Software
Leave a comment
RuntimeException: No suitable ClassLoader found for grab – Grab with main method in IntelliJ
When running a Groovy class with a main method from IntelliJ (12.1.5) that also uses grape @Grab, you get a Exception in thread “main” java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:188) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:113) Caused by: java.lang.RuntimeException: No suitable ClassLoader found for … Continue reading
Posted in Software
Leave a comment
Grails Start – Error initializing the application: null
When you encounter this error, try grails clean. That helps in my case (the error occurs sometimes when running grails run-app from the command line, Grails 2.2.4) | Error [localhost-startStop-1] ERROR context.GrailsContextLoader – Error initializing the application: null Message: null … Continue reading
Posted in Software
Leave a comment
Grails Log to Database with Custom Log4J Appender
When you move to more asynchronous processing with Grails (e.g. as with quartz jobs), there’s no user-visible error when something goes wrong. There’s only the logs, and those aren’t the most prominent place for putting failures of mission-cricital jobs. In … Continue reading
Posted in Software
14 Comments