Gradel Caches Keep Getting Corrupted

Started by Xredarchannel on

Topic category: Troubleshooting, bugs, and solutions

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Gradel Caches Keep Getting Corrupted

Hi everyone. Here's my problem: Gradle Caches keep getting corrupted, over and over. I know that are plenty of topic about this problem and the main culprit is some antivirus.
i had this problem before, like one month ago or less and everything I did to solve it was to deleting the .gradle folder and deactivating temporary mi antivirus. It worked, so everything ok.
Then, today, I reopened MCreator after like a week or two only to find that the gradle caches got corrupted again. Then I deactivated the antivirus, deleted the folder and reopen MCreator and my workspace. This time it didn't worked. I tryed it a cople of time and the result were always the same. So I got really pissed and decied to do a Clean Boot directly.
After it I opened my antivirus just to check if it was still deactivated and tryed to run grandle in my workspace. It failed. I was REALLY pissed. I opened the task manager and terminated EVERYTHING that wasn't indispensable for my pc to run, tryed again and got the same result.
I did everything I could and my conclusion is that is not a third part program that mess with gradle. So, or is Windows itself or, I really don't know.

Here everything you need. If you need something else, just ask it.
OS: Windows 10
Antivirus: Norton
MCreator: 2021.1 (lastest update)
 

Executing 
    Gradle task: eclipse

Build 
    info: MCreator 2021.1.18117, forge-1.16.5, 64-bit, 16202 MB, Windows 10, 
    JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk

FAILURE: 
    Build failed with an exception.

* 
    What went wrong:

A 
    problem occurred configuring root project 'tutorial'.

> 
    Invalid patcher dependency: 
    de.oceanlabs.mcp:mcp_config:1.16.5-20210115.111550@zip

* 
    Try:

Run 
    with --stacktrace option to get the stack trace. Run with --info or 
    --debug option to get more log output. Run with --scan to get full 
    insights.

* 
    Get more help at https://help.gradle.org

BUILD 
    FAILED in 5s

BUILD 
    FAILED

Task 
    completed in 5 seconds

 

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, I didn't anything…
Mon, 05/17/2021 - 19:56

Okay, I didn't anything differend but now the console say something else. (But the problem is still not fixed)

Here it is:

Executing 
    Gradle task: eclipse

Build 
    info: MCreator 2021.1.18117, forge-1.16.5, 64-bit, 16202 MB, Windows 10, 
    JVM 1.8.0_275, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk

org.gradle.tooling.GradleConnectionException: 
    Could not execute build using connection to Gradle distribution 
    'https://services.gradle.org/distributions/gradle-6.8.1-all.zip'.


 
      at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(
ExceptionTransformer.java:55
)

 
      at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(
ExceptionTransformer.java:29
)

 
      at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(
ResultHandlerAdapter.java:43
)

 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(
DefaultAsyncConsumerActionExecutor.java:69
)

 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(
ExecutorPolicy.java:64
)

 
      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(
ManagedExecutorImpl.java:48
)

 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1149
)

 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:624
)

 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(
ThreadFactoryImpl.java:56
)

 
      at java.lang.Thread.run(
Thread.java:748
)

Caused 
    by: org.gradle.api.GradleException: Unable to start the daemon process.

This 
    problem might be caused by incorrect configuration of the daemon.

For 
    example, an unrecognized jvm option is used.

Please 
    refer to the User Manual chapter on the daemon at 
    https://docs.gradle.org/6.8.1/userguide/gradle_daemon.html

Process 
    command line: C:\Program Files\Pylo\MCreator\jdk\bin\java.exe -Xms625m 
    -Xmx2048m -Dfile.encoding=windows-1252 -Duser.country=US 
    -Duser.language=en -Duser.variant -cp 
    C:\Users\Xredar\.mcreator\gradle\wrapper\dists\gradle-6.8.1-all\923to48kq3drqywuppfjkcokx\gradle-6.8.1\lib\gradle-launcher-6.8.1.jar 
    org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.8.1

Please 
    read the following process output to find out more:

-----------------------

FAILURE: 
    Build failed with an exception.


* 
    What went wrong:


java.lang.ExceptionInInitializerError 
    (no error message)


* 
    Try:


Run 
    with --info or --debug option to get more log output. Run with --scan to 
    get full insights.


* 
    Exception is:


java.lang.ExceptionInInitializerError


 
      at org.gradle.launcher.daemon.bootstrap.DaemonMain.doAction(
DaemonMain.java:107
)

 
      at org.gradle.launcher.bootstrap.EntryPoint.run(
EntryPoint.java:50
)

 
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


 
      at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62
)

 
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43
)

 
      at java.lang.reflect.Method.invoke(
Method.java:498
)

 
      at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(
ProcessBootstrap.java:60
)

 
      at org.gradle.launcher.bootstrap.ProcessBootstrap.run(
ProcessBootstrap.java:37
)

 
      at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(
GradleDaemon.java:22
)

Caused 
    by: java.lang.NullPointerException


 
      at sun.misc.Resource.getBytes(
Resource.java:143
)

 
      at java.net.URLClassLoader.defineClass(
URLClassLoader.java:463
)

 
      at java.net.URLClassLoader.access$100(
URLClassLoader.java:74
)

 
      at java.net.URLClassLoader$1.run(
URLClassLoader.java:369
)

 
      at java.net.URLClassLoader$1.run(
URLClassLoader.java:363
)

 
      at java.security.AccessController.doPrivileged(Native Method)


 
      at java.net.URLClassLoader.findClass(
URLClassLoader.java:362
)

 
      at java.lang.ClassLoader.loadClass(
ClassLoader.java:418
)

 
      at java.lang.ClassLoader.loadClass(
ClassLoader.java:351
)

 
      at 
    org.gradle.internal.service.DefaultServiceRegistry.findProviderMethods(
DefaultServiceRegistry.java:162
)

 
      at org.gradle.internal.service.DefaultServiceRegistry.<init>(
DefaultServiceRegistry.java:111
)

 
      at org.gradle.internal.service.DefaultServiceRegistry.<init>(
DefaultServiceRegistry.java:88
)

 
      at org.gradle.internal.nativeintegration.services.NativeServices.<init>(
NativeServices.java:159
)

 
      at 
    org.gradle.internal.nativeintegration.services.NativeServices.<clinit>(
NativeServices.java:74
)

 
      ... 9 more


* 
    Get more help at https://help.gradle.org


 
      at org.gradle.launcher.daemon.client.DaemonGreeter.parseDaemonOutput(
DaemonGreeter.java:38
)

 
      at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startProcess(
DefaultDaemonStarter.java:176
)

 
      at org.gradle.launcher.daemon.client.DefaultDaemonStarter.startDaemon(
DefaultDaemonStarter.java:137
)

 
      at 
    org.gradle.launcher.daemon.client.DefaultDaemonConnector.doStartDaemon(
DefaultDaemonConnector.java:217
)

 
      at org.gradle.launcher.daemon.client.DefaultDaemonConnector.startDaemon(
DefaultDaemonConnector.java:211
)

 
      at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connect(
DefaultDaemonConnector.java:133
)

 
      at org.gradle.launcher.daemon.client.DaemonClient.execute(
DaemonClient.java:144
)

 
      at org.gradle.launcher.daemon.client.DaemonClient.execute(
DaemonClient.java:98
)

 
      at 
    org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(
DaemonBuildActionExecuter.java:46
)

 
      at 
    org.gradle.tooling.internal.provider.DaemonBuildActionExecuter.execute(
DaemonBuildActionExecuter.java:31
)

 
      at 
    org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(
LoggingBridgingBuildActionExecuter.java:60
)

 
      at 
    org.gradle.tooling.internal.provider.LoggingBridgingBuildActionExecuter.execute(
LoggingBridgingBuildActionExecuter.java:37
)

 
      at org.gradle.tooling.internal.provider.ProviderConnection.run(
ProviderConnection.java:218
)

 
      at org.gradle.tooling.internal.provider.ProviderConnection.run(
ProviderConnection.java:144
)

 
      at org.gradle.tooling.internal.provider.DefaultConnection.getModel(
DefaultConnection.java:202
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableModelBuilderBackedModelProducer.produceModel(
CancellableModelBuilderBackedModelProducer.java:54
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.PluginClasspathInjectionSupportedCheckModelProducer.produceModel(
PluginClasspathInjectionSupportedCheckModelProducer.java:38
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.AbstractConsumerConnection.run(
AbstractConsumerConnection.java:64
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.ParameterValidatingConsumerConnection.run(
ParameterValidatingConsumerConnection.java:49
)

 
      at org.gradle.tooling.internal.consumer.DefaultBuildLauncher$1.run(
DefaultBuildLauncher.java:97
)

 
      at org.gradle.tooling.internal.consumer.DefaultBuildLauncher$1.run(
DefaultBuildLauncher.java:89
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(
LazyConsumerActionExecutor.java:144
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(
CancellableConsumerActionExecutor.java:45
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(
ProgressLoggingConsumerActionExecutor.java:61
)

 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(
RethrowingErrorsConsumerActionExecutor.java:38
)

 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(
DefaultAsyncConsumerActionExecutor.java:67
)

 
      ... 6 more


TASK 
    EXECUTION FAILED

Task 
    completed in 46 seconds

 

This usually happens if…
Tue, 05/18/2021 - 07:44

This usually happens if antivirus blocks MCreator. Try adding exception, clearing caches and try again.

The solution to this problem and many other problems can be found in our knowledge base: https://mcreator.net/support/knowledgebase Please check the knowledge base before opening a new topic on the issue which has a known fix.

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have the same problem but…
Mon, 10/30/2023 - 17:11

I have the same problem but helpers Always said there is already the solution in the knowledgebase and it piss me off really