Jump to content

Recommended Posts

Posted (edited)

I have a mod compiled with JDK 1.6 that I attempted to recompile with Java 1.8,  i.e. want to update a 1.7.10 mod and play it in 1.14.4.  I have the source code.  Working on Windows 10 with IntelliJ 2019.3 Build #IC-193.5233.102, Forge MDK-1.14.4-28.1.98-mdk. 

When testing updated mod, runClient, got "Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://myurl.me/"  

 

Any pointers in resolving this issue/updating the mod are greatly appreciated. 

Edited by JMAS
Posted

It would help if you provided the full debug.log

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)

I actually pulled all of my source (.java) files and ran the runClient with just the gradle files and received the same error message.    Minecraft loads.  No error message is generated in the logs subfolder of .Minecraft. 

 

The gradle files are: gradlew, build.gradle, gradle.properties, and gradlew.bat, with the folders: build, gradle, run and src. 

The error message listed in the opening post is within IntelliJ.

Edited by JMAS
Posted

There should be a debug.log in run/logs

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

There is this:

 

[07Dec2019 21:24:35.481] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20190829.143755, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 28.1.98, --version, MOD_DEV, --assetIndex, 1.14, --assetsDir, C:\Users\Dad\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ????????, --userProperties, {}]

[07Dec2019 21:24:35.485] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 4.1.0+62+5bfa59b starting: java version 1.8.0_231 by Oracle Corporation
[07Dec2019 21:24:36.480] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[07Dec2019 21:24:37.335] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Dad\.gradle\caches\forge_gradle\assets, --assetIndex, 1.14, --username, Dev, --accessToken, ????????, --userProperties, {}]
[07Dec2019 21:24:39.841] [Client thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
[07Dec2019 21:24:50.488] [Client thread/INFO] [net.minecraft.client.Minecraft/]: LWJGL Version: 3.2.2 build 10
[07Dec2019 21:24:51.530] [modloading-worker-9/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 28.1.98, for MC 1.14.4 with MCP 20190829.143755
[07Dec2019 21:24:51.530] [modloading-worker-9/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v28.1.98 Initialized
[07Dec2019 21:24:51.703] [Client thread/INFO] [com.example.examplemod.ExampleMod/]: HELLO from Register Block
[07Dec2019 21:24:54.443] [Client thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
[07Dec2019 21:24:54.578] [modloading-worker-4/INFO] [com.example.examplemod.ExampleMod/]: HELLO FROM PREINIT
[07Dec2019 21:24:54.579] [modloading-worker-4/INFO] [com.example.examplemod.ExampleMod/]: DIRT BLOCK >> minecraft:dirt
[07Dec2019 21:24:54.710] [modloading-worker-11/INFO] [com.example.examplemod.ExampleMod/]: Got game settings net.minecraft.client.GameSettings@2398c858
[07Dec2019 21:24:54.712] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[07Dec2019 21:24:56.205] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: OUTDATED Current: 28.1.98 Target: 28.1.104
[07Dec2019 21:24:56.205] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [examplemod] Starting version check at http://myurl.me/
[07Dec2019 21:24:56.585] [Forge Version Check/WARN] [net.minecraftforge.fml.VersionChecker/]: Failed to process update information
java.io.IOException: Server returned HTTP response code: 400 for URL: http://myurl.me/
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_231]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_231]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_231]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_231]
    at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1950) ~[?:1.8.0_231]
    at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1945) ~[?:1.8.0_231]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_231]
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1944) ~[?:1.8.0_231]
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1514) ~[?:1.8.0_231]
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_231]
    at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:189) ~[?:?]
    at net.minecraftforge.fml.VersionChecker$1.process(VersionChecker.java:206) ~[?:?]
    at java.lang.Iterable.forEach(Iterable.java:75) [?:1.8.0_231]
    at net.minecraftforge.fml.VersionChecker$1.run(VersionChecker.java:157) [?:?]
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://myurl.me/
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900) ~[?:1.8.0_231]
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_231]
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[?:1.8.0_231]
    at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:173) ~[?:?]
    ... 3 more
[07Dec2019 21:25:00.700] [modloading-worker-11/INFO] [com.example.examplemod.ExampleMod/]: Hello world from the MDK
[07Dec2019 21:25:00.700] [modloading-worker-11/INFO] [com.example.examplemod.ExampleMod/]: Got IMC [Hello world]
[07Dec2019 21:25:01.174] [Client thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
[07Dec2019 21:25:01.174] [Client thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
[07Dec2019 21:25:01.312] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512 textures-atlas
[07Dec2019 21:25:01.894] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256 textures/particle-atlas
[07Dec2019 21:25:01.895] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256 textures/painting-atlas
[07Dec2019 21:25:01.895] [Client thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128 textures/mob_effect-atlas
[07Dec2019 21:25:02.413] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id
[07Dec2019 21:25:41.394] [Client thread/INFO] [net.minecraft.client.Minecraft/]: Stopping!
 

Posted

Comment out updateJSONURL in mods.toml, or replace the URL with a functioning one

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)

Thank you for your quick and direct response.

 

After making the changes directed, (commenting out), I now receive the following error:

Execution failed for task ':runClient'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_231\bin\java.exe'' finished with non-zero exit value 1 

 

Minecraft no longer loads.

No new debug.log was generated in run/logs.

?

Edited by JMAS
more data included
Posted

I continued poking around this morning, removing the 'comment out' and instead replacing the URL with a more complete version (updateJSONURL="https://www.myurl.me/") which threw this error:

 

Caused by: java.security.cert.CertificateException: No subject alternative DNS name matching www.myurl.me found.

Minecraft did load, but with the above error.

Mods.toml is created by Forge, yes?  Is myurl.me listed merely as an example?  Sorry if this is a stupid question, I've been learning Java for about 12 minutes now, so I'm a little short on experience.

 

I guess this resolves the first part of my issue, as runClient succeeds despite the errors.  Thank you for that.  Still hopeful for some wisdom or direction on attempting to recompile the mod from JDK 1.6 up to Java 1.8.  Perhaps a tutorial, video or some other instructional to succeed in this epic task?

Many thanks,

M

Posted

Thank you diesieben07.  

Go ahead and close this ticket.  I will continue learning about IntelliJ and the proper way to structure mods.  ?  

 

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.

Announcements



  • Create New...

Important Information

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