Jump to content

[1.15.2] ExampleMod runServer.launch - Could not dispatch a message to the daemon


Anwinity

Recommended Posts

Hey There,

 

First, let me state that I just (today) started playing around with minecraft forge. I haven't really played minecraft or done any modding in years, so I am a bit inexperienced here. That being said, I do development (mostly Java) for a living, so I am quite familiar with most of these technologies. However, we use Maven at work and not Gradle, so I am a little noobish on the gradle concepts. I hope I am not just missing something simple gradle related. Anyway, I think I followed the documentation pretty well, but I cannot get the server (runServer.launch) to work properly.

 

Let me explain what I have done thus far.

 

Using:

JDK 8 Update 251 (Latest JDK8)

Eclipse IDE for Enterprise Java Developers - Version: 2019-12 (4.14.0) - Build id: 20191212-1212

MDK 1.15.2 - 31.1.0 (Recommended / Latest)

 

  • Downloaded MDK, extracted.
  • Found docs at https://mcforge.readthedocs.io/en/1.15.x/gettingstarted/#getting-started-with-forge
  • copied build.gradle, gradlew.bat, gradlew, gradle/ to a new folder called "ExampleMod"
  • Edited build.gradle and changed below items (nothing else, just trying to run example for the moment):
    • group = 'com.anwinity.examplemod'
    • "Specification-Vendor": "anwinity",
    • "Implementation-Vendor": "anwinity",
  • Powershell, went to new directory, ran ".\gradlew --stacktrace genEclipseRuns" - BUILD SUCCESSFUL - celebrated a little bit 
  • Open Eclipse
  • File -> Import -> Gradle -> Existing Gradle Project -> Selected "ExampleMod" folder -> success
  • Copied over ExampleMod src files including ExampleMod.java, META-INF/mods.toml, pack.mcmeta
  • Changed package to com.anwinity.examplemod
  • ModID is still "examplemod" in build.gradle and ExampleMod.java
  • Right Click runServer.launch -> Run As -> runServer
  • It runs, gets to this point in console, then hangs for a minute or so, then just quits. Nothing seems to happen.
    • [m[36m[12:37:11] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.ExplodedDirectoryLocator/SCAN]: Exploded directory scan complete C:\dev_mc\projects\ExampleMod\bin\main
      [m[36m[12:37:11] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning C:\dev_mc\projects\ExampleMod\bin\main with language loader javafml
      [m[36m[12:37:11] [pool-2-thread-1/DEBUG] [ne.mi.fm.ja.FMLJavaModLanguageProvider/SCAN]: Found @Mod class com.anwinity.examplemod.ExampleMod with id examplemod
      [m
  • Tried running the runData.launch in the same way. It launches the UI and everything seems to work ok.
  • Tried running the runClient.launch in the same way. It launches and seems to work fine. I see ExampleMod in the mod list with all of the properties there.
  • Scratch head, try to google for answers about runServer, but nothing seemed to help.
  • Here I am. Halp plz.

 

 

 

 

 

Edited by Anwinity
added error to title
Link to comment
Share on other sites

I decided I could probably run this from command line... which I did and this is the error it gives.

 

Noteworthy errors:

 

16:59:52.497 [ERROR] [org.gradle.launcher.daemon.client.DaemonClient] The message received from the daemon indicates that the daemon has disappeared.

 

16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.launcher.daemon.client.DaemonConnectionException: Could not dispatch a message to the daemon.

 

16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.internal.remote.internal.MessageIOException: Could not write '/127.0.0.1:49900'.

 

16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host

 

...any ideas?

16:59:52.497 [LIFECYCLE] [org.gradle.internal.remote.internal.inet.SocketConnection]
16:59:52.497 [DEBUG] [org.gradle.internal.remote.internal.inet.SocketConnection] Discarding EOFException: java.io.EOFException
16:59:52.497 [ERROR] [org.gradle.launcher.daemon.client.DaemonClient] The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=09ed0514-1d84-445b-aa58-f89bbc201709, currentDir=C:\dev_mc\projects\Attemp3}
Attempting to read last messages from the daemon log...
16:59:52.622 [ERROR] [org.gradle.launcher.daemon.client.DaemonClient] Daemon pid: 67204
  log file: C:\Users\amazar\.gradle\daemon\4.10.3\daemon-67204.out.log
----- Last  20 lines from daemon log file - daemon-67204.out.log -----
16:59:50.780 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting OS memory status event {Total: 21348311040, Free: 15943155712}
16:59:50.780 [DEBUG] [org.gradle.launcher.daemon.server.health.LowMemoryDaemonExpirationStrategy] Received memory status update: {Total: 21348311040, Free: 15943155712}
16:59:50.780 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting JVM memory status event {Maximum: 954728448, Committed: 428867584}
16:59:50.858 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running
16:59:50.860 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
16:59:50.860 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
16:59:50.861 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
16:59:50.862 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
16:59:50.862 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
16:59:50.862 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
16:59:51.872 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: SUCCEEDED
16:59:51.873 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'C:\Program Files\Java\jdk1.8.0_251\bin\java.exe'' finished with exit value 0 (state: SUCCEEDED)
16:59:51.873 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Execute exec for :runServer'
16:59:51.873 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Execute exec for :runServer' completed
16:59:51.873 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Execute doLast {} action for :runServer' started
Daemon vm is shutting down... The daemon has exited normally or was terminated in response to a user interrupt.
16:59:51.874 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Removing daemon address: [d223bc74-07aa-4d9a-9982-dffda0ece7a1 port:49900, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]]
16:59:51.875 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
16:59:51.875 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
16:59:51.877 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
----- End of the daemon log -----

16:59:52.637 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@20a7c8b8
16:59:52.711 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 18: dispatching class org.gradle.launcher.daemon.protocol.CloseInput
16:59:52.713 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] Problem dispatching message to the daemon. Performing 'on failure' operation...
16:59:52.714 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop
16:59:52.739 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:59:52.739 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
16:59:52.739 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:59:52.739 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
16:59:52.740 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not dispatch a message to the daemon.
16:59:52.740 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:59:52.740 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
16:59:52.740 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]  Run with --scan to get full insights.
16:59:52.740 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:59:52.740 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.launcher.daemon.client.DaemonConnectionException: Could not dispatch a message to the daemon.
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:68)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:35)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.client.DaemonClientInputForwarder$ForwardTextStreamToConnection.endOfStream(DaemonClientInputForwarder.java:78)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.client.InputForwarder$1.run(InputForwarder.java:95)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.lang.Thread.run(Thread.java:748)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.internal.remote.internal.MessageIOException: Could not write '/127.0.0.1:49900'.
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.remote.internal.inet.SocketConnection.flush(SocketConnection.java:135)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:59)
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   ... 9 more
16:59:52.741 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at sun.nio.ch.SocketDispatcher.write0(Native Method)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at sun.nio.ch.IOUtil.write(IOUtil.java:51)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.writeWithNonBlockingRetry(SocketConnection.java:273)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.writeBufferToChannel(SocketConnection.java:261)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:255)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.remote.internal.inet.SocketConnection.flush(SocketConnection.java:133)
16:59:52.742 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   ... 10 more

 

Link to comment
Share on other sites

K so... I've tried a number of things based on stuff I've found online. Nothing has seemed to work yet.

 

I thought it might be my anti virus. I tried adding various exception, which did not help. Then I tried outright disabling my antivirus altogether. No help. I tried this on multiple computers - my personal desktop which has AVG, and my work laptop which has Symantic Endpoint Protection. Both have the same issue.

 

I tried a gradlew clean. I tried deleting the daemon stuff in the .gradle folder. I tried deleting the .gradle folder altogether.

 

I tried downloading the latest gradle version (6.3) and running it from command line using that instead of gradlew... it was a long shot, but suffice it to say that did not work.

 

No idea what else to try at this point...

 

Link to comment
Share on other sites

Ok, some more info...

 

PS C:\dev_mc> java -jar .\forge-1.15.2-31.1.0-launcher.jar
FATAL ERROR, You need to run the installer. The libraries required to launch a server are missing

 

This is weird. As far as I know, I have installed the server.

I've run forge-1.15.2-31.1.0-installer.jar and ran both the client and server installation, which both appeared to run successfully.

 

I guess I could probably develop using just the runClient, but I'd really like to test stuff using a dedicated server environment.

 

I'm going to proceed with the runClient for now... but if anyone has any ideas for anything else I can try here, please let me know...

 

 

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.