This question already has answers here:
CorruptedCacheException: Corrupted IndexBlock 298298 found in cache '/Users/macuser/.gradle/caches/journal-1/file-access.bin'
(11 answers)
Closed 1 year ago.
I have been executing my app in Android Studio, but the task is failed with an error message 'Caused by: org.gradle.cache.internal.btree.CorruptedCacheException: Corrupted DataBlock 1277548 found in cache 'C:\Users\pc.gradle\caches\journal-1\file-access.bin'.'
Please someone help me out
you can delete the file-access.bin in path C:\Users.gradle\caches\journal-1. After deleting it, I restarted Android Studio and rebuilt the project.
Related
This question already has answers here:
What does "Could not find or load main class" mean?
(61 answers)
What is a classpath and how do I set it?
(10 answers)
Closed 1 year ago.
I'm running into an issue where I am able to compile Java files but I cannot run any of them. I have currently created a Hello World java file in my Desktop folder and compiled it and there is a HelloWorld.class that has been created as well. But when I run java HelloWorld, I get the following error:
Error: Could not find or load main class HelloWorld Caused by: java.lang.ClassNotFoundException: HelloWorld
I have googled around and it seems to have something to do with CLASSPATH? I have tried the command ECHO ${CLASSPATH} and it has returned me nothing but apparently it should return me . ? Could someone point me in the direction of how to fix this java issue and does it have anything to do with CLASSPATH? Thank you!
This question already has answers here:
Minimum Spring version compatible with Java 11
(3 answers)
exception in initializer error in java when using Netbeans
(9 answers)
Closed 4 years ago.
I upgraded my project from Java 8 to Java 11 and received
Error: java: java.lang.ExceptionInInitializerError
while building the project. Everything seems working properly but I do not know how I get such kind of error. Do you have any idea about that?
In order to run the project I use Run/Debug Configurations -> Spring Boot -> Application -> Run
Here is the error message :
This question already has answers here:
How to fix -Djava.endorsed.dirs not supported, that emerged after installing WTP in Eclipse?
(3 answers)
Closed 2 years ago.
When I try to start a domain in Glassfish 4.1 from IntelliJ I'm presented with this error:
JVM failed to start: com.sun.enterprise.admin.launcher.GFLauncherException: The server exited prematurely with exit code 1.
Before it died, it produced the following output:
-Djava.endorsed.dirs=/opt/glassfish4/glassfish/modules/endorsed:/opt/glassfish4/glassfish/lib/endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
I found that endorsed dirs have been deprecated in Java 9, so I checked my configurations, and all seems to be using Java 8.
I also tried to start from the command line, with the same output.
I had to remove all mentions of -Djava.endorsed.dirs and -Djava.ext.dirs from my config/domain.xml
This question already has answers here:
ArrayIndexOutOfBound Error - Java [closed]
(2 answers)
Closed 8 years ago.
I'm having this error while trying to analyze a project with Sonar Server:
INFO: EXECUTION FAILURE
INFO: Total time: 50.063s Final Memory: 13M/164M
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Can not execute Findbugs
ERROR: Caused by: java.lang.ArrayIndexOutOfBoundsException: 30344
ERROR: Caused by: 30344
We were using the default rules before and everything was working. We changed to other rules, and this error happened. It's weird 'cause they worked in other PC with the same set-up described below:
Sonar-runner version: 2.4
Sonarqube version:4.5.1
Finbugs version: 2.4
Upgrade to the latest Findbugs SonarQube plugin, 3.1. That solved the issue for me. Please let us know.
Log in as admin
Under "settings" on the top menu
Click "Update center" in the left navigation
Now under "Plugin updates" in the content pane tabs
...
But mostly I can't take my eyes off the righthand side of your screenshot. Some really excellent recursion going on. Thanks for that.
This question already has answers here:
Check if file is already open
(8 answers)
Closed 8 years ago.
I want to rename folders using Java 7. I have tried using:
srcDir.renameTo(desDir);
But from what I can understand (and personal experience) .renameTo only works for renaming files. I have also tired using:
FileUtils.moveDirectory(srcDir, desDir);
But I get this error:
Exception in thread "main" java.io.IOException: Unable to delete file: C:\webapps\37\WEB-INF\lib\stax-api-1.0-2.jar
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
at org.apache.commons.io.FileUtils.moveDirectory(FileUtils.java:2756)
at batDel.batDelJavaC.main(batDelJavaC.java:52)
Note: I am running on a Tomcat 8 server, but have stopped it before running my project.
It is very likely that the .jar file in question is actually opened by some process like the application server. Until it closes the file, you won't be able to move or delete it.
On Windows (which it looks like you're using) you can use a utility like Process Explorer from SysInternals to see if some process has the file open.