Jump to content

java.io.EOFException when building project or setting up workspace


Snap64

Recommended Posts

Hello, I suddenly started getting this error for no apparent reason recently. It happens any time I try to do anything with gradle, such as building my mod, or setting up a new workspace, even when I start with a clean slate. It doesn't matter what version I'm using, I tried with the latest version of 1.8, and it still had the exact same error.

Here is the output when I run gradlew setupDecompWorkspace --stacktrace:

 

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Zshandi\Desktop\MC modding\workspace\Economy_\build.gradle'
line: 18

* What went wrong:
A problem occurred evaluating root project 'Economy_'.
> java.io.EOFException: End of input at line 5354 column 16

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project
'Economy_'.
        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR
unnerImpl.run(DefaultScriptRunnerFactory.java:54)
        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.
apply(DefaultScriptPluginFactory.java:187)
        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc
riptProcessor.java:39)
        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc
riptProcessor.java:26)
        at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.eva
luate(ConfigureActionsProjectEvaluator.java:34)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(L
ifecycleProjectEvaluator.java:55)
        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
ect.java:470)
        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
ect.java:79)
        at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuil
dConfigurer.java:31)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
GradleLauncher.java:128)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
Launcher.java:105)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
cher.java:85)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon
troller.run(InProcessBuildActionExecuter.java:81)
        at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav
a:33)
        at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav
a:24)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
ssBuildActionExecuter.java:39)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
ssBuildActionExecuter.java:29)
        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav
a:171)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
execute(CommandLineActionFactory.java:237)
        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
execute(CommandLineActionFactory.java:210)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
meValidationAction.java:35)
        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
meValidationAction.java:24)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
CommandLineActionFactory.java:206)
        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
CommandLineActionFactory.java:169)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
ortingAction.java:33)
        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
ortingAction.java:22)
        at org.gradle.launcher.Main.doAction(Main.java:33)
        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots
trap.java:54)
        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j
ava:35)
        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
va:30)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
Caused by: com.google.gson.JsonSyntaxException: java.io.EOFException: End of inp
ut at line 5354 column 16
        at com.google.gson.Gson.fromJson(Gson.java:813)
        at com.google.gson.Gson.fromJson(Gson.java:768)
        at com.google.gson.Gson.fromJson(Gson.java:717)
        at com.google.gson.Gson.fromJson(Gson.java:689)
        at net.minecraftforge.gradle.user.patch.UserPatchBasePlugin.setVersionIn
foJson(UserPatchBasePlugin.java:143)
        at net.minecraftforge.gradle.user.patch.UserPatchBasePlugin.applyPlugin(
UserPatchBasePlugin.java:55)
        at net.minecraftforge.gradle.common.BasePlugin.apply(BasePlugin.java:138
)
        at net.minecraftforge.gradle.common.BasePlugin.apply(BasePlugin.java:41)

        at org.gradle.api.internal.plugins.DefaultPluginContainer.providePlugin(
DefaultPluginContainer.java:110)
        at org.gradle.api.internal.plugins.DefaultPluginContainer.addPluginInter
nal(DefaultPluginContainer.java:69)
        at org.gradle.api.internal.plugins.DefaultPluginContainer.apply(DefaultP
luginContainer.java:35)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.appl
yPlugin(DefaultObjectConfigurationAction.java:117)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.acce
ss$200(DefaultObjectConfigurationAction.java:36)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.ru
n(DefaultObjectConfigurationAction.java:85)
        at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.exec
ute(DefaultObjectConfigurationAction.java:130)
        at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPlu
ginAware.java:41)
        at org.gradle.api.Project$apply$0.call(Unknown Source)
        at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.gro
ovy:34)
        at org.gradle.api.Script$apply$0.callCurrent(Unknown Source)
        at build_7929keab7itq9p2l73ggniskva.run(C:\Users\Zshandi\Desktop\MC modd
ing\workspace\Economy_\build.gradle:18)
        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR
unnerImpl.run(DefaultScriptRunnerFactory.java:52)
        ... 34 more
Caused by: java.io.EOFException: End of input at line 5354 column 16
        at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1
377)
        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:538)
        at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)
        at com.google.gson.internal.bind.TypeAdapters$13.read(TypeAdapters.java:
349)
        at com.google.gson.internal.bind.TypeAdapters$13.read(TypeAdapters.java:
346)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref
lectiveTypeAdapterFactory.java:93)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re
ad(ReflectiveTypeAdapterFactory.java:172)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(Type
AdapterRuntimeTypeWrapper.java:40)
        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapT
ypeAdapterFactory.java:187)
        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapT
ypeAdapterFactory.java:145)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(Ref
lectiveTypeAdapterFactory.java:93)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.re
ad(ReflectiveTypeAdapterFactory.java:172)
        at com.google.gson.Gson.fromJson(Gson.java:803)
        ... 54 more


BUILD FAILED

 

I really have no idea what's went wrong, and the fact that it keeps happening no matter what I do is very frustrating.

Thanks for everyone who will help :)

Link to comment
Share on other sites

I finally solved my problem! I'm not entirely sure, but I think there was a corrupt file in the .gradle folder, I just realized that I wasn't considering that. So I deleted the whole folder and ran the setup command, and now it seems to be fixed :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.