Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Error 'failed to notify build listener'when doing gradlew setupDecompWorkspace


Recommended Posts

Hi.

 

I'm trying to download the source for the latest recommended Forge (1.8)

 

I got the zipfile, extracted it to a directory, and now I'm at the point where according to the readme.txt I should run:

 

gradlew setupDevWorkspace

 

and according to various tutorials I should run

 

gradlew setupDecompWorkspace

 

 

Anyway, whatever I do, I get the error listed above -  'failed to notify build listener'

 

Help?

 

Thx

Link to post
Share on other sites

First, the difference between setupDevWorkspace and setupDecompWorkspace is that setupDecompWorkspace gives you the minecraft sources (decompiled), setupDevWorkspace doesn't and is therefor faster.

 

For your error, post the complete error.

Link to post
Share on other sites

Well, all the stack traces scroll off the top of the window, but the last one is:

 

> Configuring > 1/1 projectsjava.lang.NullPointerException

        at net.minecraftforge.gradle.FileLogListenner.onOutput(FileLogListenner.

java:58)

        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:43)

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

        at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionD

ispatch.java:35)

        at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionD

ispatch.java:24)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:83)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:31)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:83)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:31)

        at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocat

ionHandler.invoke(ProxyDispatchAdapter.java:93)

        at com.sun.proxy.$Proxy1.onOutput(Unknown Source)

        at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:43)

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

        at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionD

ispatch.java:35)

        at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionD

ispatch.java:24)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:83)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:31)

        at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocat

ionHandler.invoke(ProxyDispatchAdapter.java:93)

        at com.sun.proxy.$Proxy1.onOutput(Unknown Source)

        at org.gradle.logging.internal.StreamingStyledTextOutput.doAppend(Stream

ingStyledTextOutput.java:54)

        at org.gradle.logging.internal.AbstractStyledTextOutput.text(AbstractSty

ledTextOutput.java:73)

        at org.gradle.logging.internal.StyledTextOutputBackedRenderer$OutputEven

tTextOutputImpl.doLineText(StyledTextOutputBackedRenderer.java:76)

        at org.gradle.logging.internal.AbstractLineChoppingStyledTextOutput.doAp

pend(AbstractLineChoppingStyledTextOutput.java:55)

        at org.gradle.logging.internal.AbstractStyledTextOutput.text(AbstractSty

ledTextOutput.java:73)

        at org.gradle.logging.internal.LogEvent.render(LogEvent.java:40)

        at org.gradle.logging.internal.StyledTextOutputBackedRenderer.onOutput(S

tyledTextOutputBackedRenderer.java:55)

        at org.gradle.logging.internal.ProgressLogEventGenerator.doOutput(Progre

ssLogEventGenerator.java:58)

        at org.gradle.logging.internal.ProgressLogEventGenerator.onOutput(Progre

ssLogEventGenerator.java:48)

        at org.gradle.logging.internal.OutputEventRenderer$2.onOutput(OutputEven

tRenderer.java:128)

        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:43)

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

        at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionD

ispatch.java:35)

        at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionD

ispatch.java:24)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:83)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:31)

        at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocat

ionHandler.invoke(ProxyDispatchAdapter.java:93)

        at com.sun.proxy.$Proxy0.onOutput(Unknown Source)

        at org.gradle.logging.internal.OutputEventRenderer.onOutput(OutputEventR

enderer.java:175)

        at org.gradle.logging.internal.logback.LogbackLoggingConfigurer$GradleAp

pender.append(LogbackLoggingConfigurer.java:132)

        at org.gradle.logging.internal.logback.LogbackLoggingConfigurer$GradleAp

pender.append(LogbackLoggingConfigurer.java:124)

        at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:85)

        at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(

AppenderAttachableImpl.java:48)

        at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:272)

        at ch.qos.logback.classic.Logger.callAppenders(Logger.java:259)

        at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:

441)

        at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:395)

 

        at ch.qos.logback.classic.Logger.info(Logger.java:619)

        at org.gradle.api.logging.Logging$LoggerImpl.lifecycle(Logging.java:92)

        at net.minecraftforge.gradle.common.BasePlugin.afterEvaluate(BasePlugin.

java:195)

        at net.minecraftforge.gradle.user.UserBasePlugin.afterEvaluate(UserBaseP

lugin.java:917)

        at net.minecraftforge.gradle.common.BasePlugin$2.execute(BasePlugin.java

:124)

        at net.minecraftforge.gradle.common.BasePlugin$2.execute(BasePlugin.java

:116)

        at org.gradle.listener.BroadcastDispatch$ActionInvocationHandler.dispatc

h(BroadcastDispatch.java:109)

        at org.gradle.listener.BroadcastDispatch$ActionInvocationHandler.dispatc

h(BroadcastDispatch.java:98)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:83)

        at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java

:31)

        at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocat

ionHandler.invoke(ProxyDispatchAdapter.java:93)

        at com.sun.proxy.$Proxy14.afterEvaluate(Unknown Source)

        at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfte

rEvaluate(LifecycleProjectEvaluator.java:67)

        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(L

ifecycleProjectEvaluator.java:61)

        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:43)

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

        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:43)

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

        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)

:extractMcpData

 

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Failed to notify build listener.

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug

option to get more log output.

 

 

Link to post
Share on other sites
  • 2 weeks later...

I can't see any evidence of such a thing existing (perhaps this is the problem?)

 

I unzipped the original forge source download to c:\Program Files\Minecraft\Forge

 

Inside that are three directories - eclipse, gradle (no dot)  and src

 

I presume by  "in my project" you mean inside the gradle folder? In there is just a directory called wrapper. There is definitely no directory called .gradle anywhere under the Forge directory, only in my user dir, and there's definitely no gradle.log anywhere on my computer.

Link to post
Share on other sites

Why not? You have to unzip it somewhere.

 

Anyway, after some experimentation, it seems it doesn't like being unzipped into Program Files. So I unzipped a copy into c:\forge and, yeah, why not, into c:\forge-1.8-11.14.1.1334-src in case that was what you were suggesting the problem was.

 

Now (in both cases) that error has gone away. Gradle.log exists and says that everything has downloaded correctly.

 

I was expecting more in the way of actual .java files mind you. All that's there in src right now is src\main\java\com\example\examplemod\ExampleMod.java - everything else is in a jar file. Is that right? The tute video I was originally working off (admittedly from some time last year, so out of date) seems to suggest I should expect an mcp directory, and a whole bunch of .java files. I've dropped off the end of http://www.minecraftforge.net/wiki/Installation/Source now, and it's not immediately apparent where to go for information on the next stage, or how to check that this stage actually completed correctly.

Link to post
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.

Guest
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 Privacy Policy.