Jump to content

The game crashed whilst initializing game Error: java.lang.NullPointerException: Registry Object not present


Recommended Posts

Posted

Hi, I am trying to make my own modpack, but when I try to test thing out, this problem pops out:

The game crashed whilst initializing game
Error: java.lang.NullPointerException: Registry Object not present

 

Here is the crash file:

---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 11.3.20 15:31
Description: Initializing game

java.lang.NullPointerException: Registry Object not present
    at java.util.Objects.requireNonNull(Objects.java:228) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:91) ~[?:?] {re:classloading}
    at mekanism.common.registration.DoubleWrappedRegistryObject.getPrimary(DoubleWrappedRegistryObject.java:23) ~[?:?] {re:classloading}
    at mekanism.common.registration.impl.BlockRegistryObject.getBlock(BlockRegistryObject.java:19) ~[?:?] {re:classloading}
    at mekanism.client.ClientRegistrationUtil.registerBlockColorHandler(ClientRegistrationUtil.java:108) ~[?:?] {re:classloading}
    at mekanism.client.ClientRegistration.registerItemColorHandlers(ClientRegistration.java:394) ~[?:?] {re:classloading}
    at net.minecraftforge.eventbus.ASMEventHandler_271_ClientRegistration_registerItemColorHandlers_Item.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:168) ~[?:31.1] {re:classloading}
    at net.minecraftforge.fml.ModLoader.lambda$postEvent$30(ModLoader.java:243) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader$$Lambda$2677/1878082702.accept(Unknown Source) ~[?:?] {}
    at java.util.HashMap.forEach(HashMap.java:1280) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:217) ~[?:?] {re:classloading}
    at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:243) ~[?:?] {re:classloading}
    at net.minecraftforge.client.ForgeHooksClient.onItemColorsInit(ForgeHooksClient.java:209) ~[?:?] {re:classloading}
    at net.minecraft.client.renderer.color.ItemColors.func_186729_a(ItemColors.java:84) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:421) [?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(SourceFile:166) [?:?] {re:classloading}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56) [forge-1.15.2-31.1.19.jar:31.1] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$419/1461360262.call(Unknown Source) [forge-1.15.2-31.1.19.jar:31.1] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.0.0-milestone.4.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.0.0-milestone.4.jar:?] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at java.util.Objects.requireNonNull(Objects.java:228)
    at net.minecraftforge.fml.RegistryObject.get(RegistryObject.java:91)
    at mekanism.common.registration.DoubleWrappedRegistryObject.getPrimary(DoubleWrappedRegistryObject.java:23)
    at mekanism.common.registration.impl.BlockRegistryObject.getBlock(BlockRegistryObject.java:19)
    at mekanism.client.ClientRegistrationUtil.registerBlockColorHandler(ClientRegistrationUtil.java:108)
    at mekanism.client.ClientRegistration.registerItemColorHandlers(ClientRegistration.java:394)
    at net.minecraftforge.eventbus.ASMEventHandler_271_ClientRegistration_registerItemColorHandlers_Item.invoke(.dynamic)
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:168)
    at net.minecraftforge.fml.ModLoader.lambda$postEvent$30(ModLoader.java:243)
    at net.minecraftforge.fml.ModLoader$$Lambda$2677/1878082702.accept(Unknown Source)
    at java.util.HashMap.forEach(HashMap.java:1280)
    at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:217)
    at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:243)
    at net.minecraftforge.client.ForgeHooksClient.onItemColorsInit(ForgeHooksClient.java:209)
    at net.minecraft.client.renderer.color.ItemColors.func_186729_a(ItemColors.java:84)
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:421)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.main.Main.main(SourceFile:166)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:56)
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$419/1461360262.call(Unknown Source)
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 3575196368 bytes (3409 MB) / 4294967296 bytes (4096 MB) up to 4294967296 bytes (4096 MB)
    CPUs: 8
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 5.0.0-milestone.4+67+b1a340b
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services:
        /eventbus-2.0.0-milestone.1-service.jar eventbus PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar object_holder_definalize PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar runtime_enum_extender PLUGINSERVICE
        /accesstransformers-2.0.4-shadowed.jar accesstransformer PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar capability_inject_definalize PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar runtimedistcleaner PLUGINSERVICE
        /forge-1.15.2-31.1.19.jar fml TRANSFORMATIONSERVICE
    FML: 31.1
    Forge: net.minecraftforge:31.1.19
    FML Language Providers:
        [email protected]
        minecraft@1
    Mod List:
        inventorysorter-1.15.2-17.0.0.jar Simple Inventory Sorter {[email protected] CREATE_REGISTRIES}
        Cucumber-1.15.2-3.0.1.jar Cucumber Library {[email protected] CREATE_REGISTRIES}
        NetherPortalFix_1.15.2-6.0.0.jar NetherPortalFix {[email protected] CREATE_REGISTRIES}
        jei-1.15.2-6.0.0.2.jar Just Enough Items {[email protected] CREATE_REGISTRIES}
        Mekanism-1.15.2-9.9.15.407.jar Mekanism {[email protected] CREATE_REGISTRIES}
        caelus-FORGE-1.15.2-2.0-beta1.jar Caelus API {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Core]-1.15.2-1.6.4.jar Industrial Agriculture {[email protected] CREATE_REGISTRIES}
        colytra-FORGE-1.15.2-3.0.jar Colytra {[email protected] CREATE_REGISTRIES}
        RingOfRepair-1.15.2-1.1.17.jar Ring of Repair {[email protected] CREATE_REGISTRIES}
        journeymap-1.15.2-5.7.0beta1.jar Journeymap {[email protected] CREATE_REGISTRIES}
        Placebo-1.15.2-3.0.2.jar Placebo {[email protected] CREATE_REGISTRIES}
        dankstorage-2.5.jar Dank Storage {[email protected] ERROR}
        Powah-1.15.2-1.1.7.jar Powah {[email protected] CREATE_REGISTRIES}
        rangedpumps-0.7.1.jar Ranged Pumps {[email protected] CREATE_REGISTRIES}
        FarmingForBlockheads_1.15.2-6.1.0.jar Farming for Blockheads {[email protected] CREATE_REGISTRIES}
        mcjtylib-1.15-4.0.2-alpha.jar McJtyLib {[email protected] CREATE_REGISTRIES}
        rftoolsbase-1.15-1.0.0-alpha.jar RFToolsBase {[email protected] CREATE_REGISTRIES}
        xnet-1.15-2.0.1-alpha.jar XNet {[email protected] CREATE_REGISTRIES}
        Apotheosis-1.15.2-3.0.6.jar Apotheosis {[email protected] CREATE_REGISTRIES}
        Morpheus-1.15.2-4.2.47.jar Morpheus {morpheus@version CREATE_REGISTRIES}
        ClickMachine-1.15.2-3.0.1.jar Click Machine {[email protected] CREATE_REGISTRIES}
        MekanismGenerators-1.15.2-9.9.15.407.jar Mekanism: Generators {[email protected] CREATE_REGISTRIES}
        PackingTape-1.15.2-0.9.5.jar Packing Tape {[email protected] CREATE_REGISTRIES}
        rftoolspower-1.15-2.0.1-alpha.jar RFToolsPower {[email protected] CREATE_REGISTRIES}
        forge-1.15.2-31.1.19-universal.jar Forge {[email protected] CREATE_REGISTRIES}
        MysticalAgradditions-1.15.2-3.0.0.jar Mystical Agradditions {[email protected] CREATE_REGISTRIES}
        MysticalAgriculture-1.15.2-3.0.0.jar Mystical Agriculture {[email protected] CREATE_REGISTRIES}
        forge-1.15.2-31.1.19-client.jar Minecraft {[email protected] CREATE_REGISTRIES}
        industrial-foregoing-1.15.2-2.2.1-f27c515.jar Industrial Foregoing {[email protected] CREATE_REGISTRIES}
        rftoolsutility-1.15-2.0.0-alpha.jar RFToolsUtility {[email protected] CREATE_REGISTRIES}
        titanium-1.15.2-2.3.6.jar Titanium {[email protected] CREATE_REGISTRIES}
        SilentLib-1.15.2-4.6.0+48.jar Silent Lib {[email protected]+48 CREATE_REGISTRIES}
        MekanismAdditions-1.15.2-9.9.15.407.jar Mekanism: Additions {[email protected] CREATE_REGISTRIES}
        Lollipop-1.15.2-1.0.9.jar Lollipop {[email protected] CREATE_REGISTRIES}
        concreteconversion-1.15.2-4.0.0.0.jar Concrete Conversion {[email protected] CREATE_REGISTRIES}
        beesknees-1.15.2-1.0.1.jar The Bees Knees Mod {beesknees@1 CREATE_REGISTRIES}
        SilentGear-1.15.2-1.5.3+78.jar Silent Gear {[email protected]+78 CREATE_REGISTRIES}
        forbidden_arcanus-1.15.2-1.1.jar Forbidden & Arcanus {[email protected] CREATE_REGISTRIES}
        rftoolsbuilder-1.15-2.0.0-alpha.jar RFToolsBuilder {[email protected] CREATE_REGISTRIES}
        curios-FORGE-1.15.2-2.0.1.jar Curios API {[email protected] CREATE_REGISTRIES}
        rftoolsstorage-1.15-1.0.2-alpha.jar RFToolsStorage {[email protected] CREATE_REGISTRIES}
        FastWorkbench-1.15.1-3.0.0.jar FastWorkbench {[email protected] CREATE_REGISTRIES}
        StorageDrawers-1.15.2-7.0.2.jar Storage Drawers {[email protected] CREATE_REGISTRIES}
        OreExcavation-1.7.151.jar Ore Excavation {oreexcavation@NONE CREATE_REGISTRIES}
        angelring-1.15.2-1.2.0.jar Angel Ring {[email protected] CREATE_REGISTRIES}
        elevatorid-1.15.2-1.7.0.jar Elevator Mod {[email protected] CREATE_REGISTRIES}
        MekanismTools-1.15.2-9.9.15.407.jar Mekanism: Tools {[email protected] CREATE_REGISTRIES}
        AppleSkin-mc1.15.2-forge-1.0.13.jar AppleSkin {[email protected] CREATE_REGISTRIES}
        AI-Improvements-1.15.2-0.3.0.jar AI-Improvements {[email protected] CREATE_REGISTRIES}
        solcarrot-1.15.2-1.9.4.jar Spice of Life: Carrot Edition {[email protected] CREATE_REGISTRIES}
        RingOfAttraction-1.15.2-1.1.20.jar Ring of Attraction {[email protected] CREATE_REGISTRIES}
        Aquaculture-1.15.2-2.0.9.jar Aquaculture 2 {[email protected] CREATE_REGISTRIES}
        SilentGems-1.15.2-3.5.1+84.jar Silent's Gems 3 {[email protected]+84 CREATE_REGISTRIES}
        XL-Food-Mod-1.15.2-2.2.2.jar XL Food Mod {[email protected] CREATE_REGISTRIES}
        Industrial+Agriculture[Mekanism]-1.15.2-1.6.1.jar Industrial Agriculture Plugin-Mekanism {[email protected] CREATE_REGISTRIES}
        FastLeafDecay-v20.jar FastLeafDecay {fastleafdecay@v20 CREATE_REGISTRIES}
        Cyclic-1.15.2-0.1.11.jar Cyclic {[email protected] CREATE_REGISTRIES}
    Launched Version: 1.15.2-forge-31.1.19
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: GeForce GTX 760 (192-bit)/PCIe/SSE2 GL version 4.6.0 NVIDIA 419.35, NVIDIA Corporation
    GL Caps: Using framebuffer using OpenGL 3.0
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    CPU: 8x AMD FX(tm)-8300 Eight-Core Processor

I appreciate everyones help.

  • 4 months later...

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

    • Hello , when I try to launch the forge installer it just crash with a message for 0,5 secondes. I'm using java 17 to launch it. Here's the link of the error :https://cdn.corenexis.com/view/?img=d/ma24/qs7u4U.jpg  
    • You will find the crash-report or log in your minecraft directory (crash-report or logs folder)
    • Use a modpack which is using these 2 mods as working base:   https://www.curseforge.com/minecraft/modpacks/life-in-the-village-3
    • inicie un mundo donde instale Croptopia y Farmer's Delight, entonces instale el addon Croptopia Delight pero no funciona. es la version 1.18.2
    • Hello all. I'm currently grappling with the updateShape method in a custom class extending Block.  My code currently looks like this: The conditionals in CheckState are there to switch blockstate properties, which is working fine, as it functions correctly every time in getStateForPlacement.  The problem I'm running into is that when I update a state, the blocks seem to call CheckState with the position of the block which was changed updated last.  If I build a wall I can see the same change propagate across. My question thus is this: is updateShape sending its return to the neighbouring block?  Is each block not independently executing the updateShape method, thus inserting its own current position?  The first statement appears to be true, and the second false (each block is not independently executing the method). I have tried to fix this by saving the block's own position to a variable myPos at inception, and then feeding this in as CheckState(myPos) but this causes a worse outcome, where all blocks take the update of the first modified block, rather than just their neighbour.  This raises more questions than it answers, obviously: how is a different instance's variable propagating here?  I also tried changing it so that CheckState did not take a BlockPos, but had myPos built into the body - same problem. I have previously looked at neighbourUpdate and onNeighbourUpdate, but could not find a way to get this to work at all.  One post on here about updatePostPlacement and other methods has proven itself long superceded.  All other sources on the net seem to be out of date. Many thanks in advance for any help you might offer me, it's been several days now of trying to get this work and several weeks of generally trying to get round this roadblock.  - Sandermall
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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