Jump to content

Cant get into my server due to java.lang.NullPointerException [1.19.2]


Recommended Posts

singleplayer works normal and doesnt crash

 

server debug: https://gist.github.com/Xplodin/3ec81a8128191b8e3c5ca3be2316dd83

 

client debug: https://gist.github.com/Xplodin/15f5e00f435ad1893baddc07067fc241

 

Currently in  the process of removing mods that seem to add the same functions, but any help would be appreciated.

had to install connectivity due to packet and payload size restrictions, mod cant be removed or I get the payload error, and other mods that do the same wont work.

Creator of BeanPack: Refried

Link to comment
Share on other sites

Quote

[23Mar2023 14:21:23.502] [Netty Epoll Server IO #6/WARN] [com.connectivity.Connectivity/]: io.netty.handler.codec.EncoderException: java.lang.NullPointerException

[23Mar2023 14:21:23.508] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: KillianPC joined the game

-- snip --

[23Mar2023 14:21:23.887] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: KillianPC lost connection: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException

[23Mar2023 14:21:23.887] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: KillianPC left the game

[23Mar2023 14:21:23.887] [Server thread/INFO] [voicechat/]: Disconnecting client KillianPC

 

Something has broken networking.

The error message does not say which mod is responsible.

You can try adding the following to your user_jvm_args.txt

 -Dforge.logging.mojang.level=debug

to see if that gives any extra information in the server logs/debug.log

Otherwise will need to experiment with removing mods until the problem goes away. (Backup your world before removing mods).

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

8 minutes ago, warjort said:

 

Something has broken networking.

The error message does not say which mod is responsible.

You can try adding the following to your user_jvm_args.txt

 -Dforge.logging.mojang.level=debug

to see if that gives any extra information in the server logs/debug.log

Otherwise will need to experiment with removing mods until the problem goes away. (Backup your world before removing mods).

Ill give this a shot right now, thanks for the debug logging argument. Hopefully this provides more detail

Creator of BeanPack: Refried

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi, i want to add an item to player's inventory when specific event is fired, but i don't know how to do that
    • Try searching for the Shapeless Recipe in your workspace program's external libraries, which should have been downloaded along with the assets when you set up gradle for Forge. Looking at that file will show you how Minecraft sets it up and you can tinker with it in a custom file of your own from there. Additionally, take a look at how the crafting table handles the matching up of ingredients for shapeless recipes. You can also look at my two-slot fuel free furnace type that uses shapeless recipes. I did exactly as described above to design my custom recipe class and then built my entity class. https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/recipe/CoinPressRecipe.java https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/block/entity/CoinPressBlockEntity.java An alternative recipe check method can be looked at here:  https://github.com/toadie-odie/TodeVillagers/blob/master_03/src/main/java/net/warrentode/todevillagers/blocks/entity/GlassKilnBlockEntity.java I think maybe that the Glass Kiln one would be easier for you starting out, it was for me. In your case the points of interest are at lines 164 and 215.
    • I copied the Totem of Undying event for my coin charm, and as you can see in line 113 it has the method removeAllEffects in there, so if you're building a similar event, simply don't add the method to prevent it from removing effects. https://github.com/toadie-odie/TodeCoins/blob/1.3.2/src/main/java/net/warrentode/todecoins/event/ModEvents.java
    • Okay I got on the discord server and followed there steps and got it to start working, however the log is constantly being filled with this error code. It is creating additional copies of the config file, up to 5 copies.
    • I would like to force the pose of a living entity to a standing position (i.e. Pose.STANDING) when it is riding a certain vehicle. I have tried to call Entity#setPose every tick via LivingTickEvent, but the living entity remains in a sitting position. Here is my code: // I made it a low-priority event because I was wondering if the code should be executed at the end of each tick. @SubscribeEvent(priority = EventPriority.LOWEST) public static void livingTickEvent(LivingEvent.LivingTickEvent event) { LivingEntity livingEntity = event.getEntity(); if (!livingEntity.level.isClientSide && livingEntity.getVehicle() instanceof TheVehicle) { livingEntity.setPose(Pose.STANDING); } }   By the way, I am aware there is a setForcedPose method, but it's only for the Player class.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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