Category: Error Handling

Java – How to resolve compiler error – clone() has protected access in java.lang.Object

Java – How to resolve compiler error – clone() has protected access in java.lang.ObjectContinue reading Java – How to resolve compiler error – clone() has protected access in java.lang.Object

Java – How to resolve error java.nio.file.NoSuchFileException

This quick coding tip explains how to resolve error java.nio.file.NoSuchFileException when using NIO API in Java … Continue reading Functional Interfaces in Java 8 Explained

Java – Compiler Error “Error: not a statement”

If you are getting the following error at compilation time – “Error: not a statement”
which may be accompanied by – “Error: ‘;’ expected” or “Error: ‘)’ expected”, then there are two possible reasons for these compiler errors to happen … Continue reading Java – How to Resolve “Error: not a statement”

How to Resolve – Syntax error, insert “Dimensions” to complete ReferenceType

If you are getting the following error at compile time or in your IDE – Syntax error, insert "Dimensions" to complete ReferenceType
Cause of this error – You are trying to pass a primitive object into a generic type declaration whereas generic types always expect a … Continue reading How to Resolve – Syntax error, insert “Dimensions” to complete ReferenceType

How to Solve – Error executing script RunApp: _GrailsClasspath_groovy$_run_closure1

If you are getting any of the above errors in Grails then that means the scriptCache folder under your project in ‘.grails’ folder has been corrupted. There is a 2-step fix for this issue – STEP-1. Delete ‘scriptCache‘ folder in the location <HOME_PATH>/<GRAILS_VERSION>/projects/<PROJECT_NAME>/scriptCache     where –     HOME_PATH – is the home folder of your user.         (In … Continue reading How to Solve – Error executing script RunApp: _GrailsClasspath_groovy$_run_closure1