Jump to content

Outdated version of JRE for forge 1.8.9 causes issues via accessing trusted sites.


Recommended Posts

Hello, I am writing about an issue I have been experiencing whilst modding for forge 1.8.9.

A few days ago I started modding my small own mod using the 1.8.9 version of forge. everything worked smooth & fast, and no issues occurred.

after giving my friend the mod to test it out, it kept crashing & crashing, and upon inspection in the logs, I saw that I had an error while trying to access an endpoint on my site.

I happened to use a site provider to load data from my api site, which is not certified in java version "1.8.0_51" of the "Java HotSpot(TM) 64-Bit Server VM".

Upon further inspection, I found out that the reason the mod worked fluidly inside my IDE, (and also inside the modrinth app, ) was that they use java version "1.8.0_202" of the "Java HotSpot(TM) 64-Bit Server VM"

The difference over here is minor, they both use the JRE of the java HotSpot server, using java 8, but the difference between them is

"1.8.0_51" vs "1.8.0_202" -> modrinth & my IDE both use the new small version with the new patches, & forge normally installs on an older instance of this same version.

When taking a look inside .\jre1.8.0_202\lib\security\cacerts (modrinth & intellij idea normal) and .\jre-legacy\lib\security\cacerts (forge normal) I noticed that the caret file forge uses is indeed lighter in size, leading even more evidence to this assumption.

 

An explanation the error:

When establishing a connection with a site using HttpURLConnection, java checks through its certified list to make sure the website is secure, at this part all of the above information comes into play and the error fires:

Error executing task
java.util.concurrent.ExecutionException: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)

Key part: "unable to find valid certification path in ..."

The mod fails to create a connection with the site *only in this particular version of java*.

 

The current site provider is pythonanywhere, which allowed me to set up a website using a python backend for free (hence, why used).

 

There is a chance I was wrong about "blaming it on forge", but only while using it and not vanilla minecraft, I got the log about the java version (The one that stated what version I am using).

Please let me know if there is anything I can do in the situation, even pointing me into another place to address my issue, really all help appriciated.

Kind regards, Whiteout12.

 

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • For hours I have been trying to just instal Mr. Crayfish's Refurbished Furniture Mod, but each step to fix the error codes, the more problems arise. The farthest I got through the steps was getting to the Forge Installer, but once I had selected the file, an error saying "The directory is missing a launcher profile. Please run the minecraft launcher first". At this point I don;'t know what more I can do. Please help.
    • I create my mod pack,yesterday my mod pack is fine but i add one mod and error. I'm delete this mmod but minecraft is still stop on CONFIG_LOAD then I tried to delete config and restart it but again. If you can pleace help me. https://imgur.com/ngZBzuv
    • game crashes before even opening (log:https://mclo.gs/M8xvX7c)
    • I have created a custom entity that extends "TamableAnimal", but I am wanting to have it spawn in the ocean. I have it spawning right now, but it spawns way too frequently even with weight set to 1. I am guessing it is because it is rolling in the spawn pool of land animals since TameableAnimal extends Animal and is different than WaterAnimal, and since no land animals spawn in the ocean it just fills every inch up with my custom entity. I have followed basic tutorials for spawning entities with Forge, but I feel like I am missing something about how to change what spawn pool this custom entity ends up in. Is it possible to change that or do I need to refactor it to be based off of WaterAnimal to get those spawn? My biome modifier JSON file: { "type": "forge:add_spawns", "biomes": "#minecraft:is_ocean", "spawners": { "type": "darwinsmysticalmounts:water_animal", "weight": 20, "minCount": 1, "maxCount": 1 } } My client event: event.register(ModEntityTypes.WATER_ANIMAL.get(), SpawnPlacements.Type.NO_RESTRICTIONS, Heightmap.Types.MOTION_BLOCKING_NO_LEAVES, WaterWyvernEntity::checkCustomWaterAnimalSpawnRules, SpawnPlacementRegisterEvent.Operation.REPLACE); And the actual custom spawn rule that makes it spawn in the water: public static boolean checkCustomWaterAnimalSpawnRules(EntityType<WaterAnimalEntity> pAnimal, LevelAccessor pLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) { return pPos.getY() > pLevel.getSeaLevel() - 16 && pLevel.getFluidState(pPos.below()).is(FluidTags.WATER); }  
    • Starting today, I am unable to load my modded minecraft world. Forge crash log initially said it was a specific mod called Doggy Talents, which I disabled. Then it blamed JEI, and when that was disabled it blamed another mod so I assume it's something more than a specific mod. Minecraft launcher log claims "Exit Code 1". Nothing had changed since last night when it was working fine Forge Log: https://pastebin.com/S1GiBGVJ Client Log: https://pastebin.com/aLwuGUNL  
  • Topics

×
×
  • Create New...

Important Information

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