Pugmatt / BedrockConnect

Join any Minecraft Bedrock Edition server IP on Xbox One, Nintendo Switch, and PS4/PS5
GNU General Public License v3.0
1.47k stars 162 forks source link

Exception in thread "main" java.lang.AssertionError: java.lang.NullPointerException: stream #534

Open Ma110w opened 2 months ago

Ma110w commented 2 months ago

What happened?

Completely Inability To Launch Bedrock Connect Server

Expected Behaviour?

Bedrock Connect Server Correctly Starts up and does not produce a error

Steps to reproduce.

Open Bedrock Connect

Screenshots/Videos

image

Minecraft Bedrock Version

1.21.20

Console

N/A

Additional Context

"-= BedrockConnect (Release: 1.45) =- Exception in thread "main" java.lang.AssertionError: java.lang.NullPointerException: stream at main.com.pyratron.pugmatt.bedrockconnect.utils.PaletteManager.(PaletteManager.java:42) at main.com.pyratron.pugmatt.bedrockconnect.BedrockConnect.main(BedrockConnect.java:54) Caused by: java.lang.NullPointerException: stream at java.base/java.util.Objects.requireNonNull(Objects.java:246) at org.cloudburstmc.nbt.NbtUtils.createNetworkReader(NbtUtils.java:54) at org.cloudburstmc.nbt.NbtUtils.createNetworkReader(NbtUtils.java:87) at org.cloudburstmc.nbt.NbtUtils.createNetworkReader(NbtUtils.java:83) at main.com.pyratron.pugmatt.bedrockconnect.utils.PaletteManager.(PaletteManager.java:38) ... 1 more"

On Windows 11 23H2

Pugmatt commented 2 months ago

According to the release number in the first line of the log, you are using version 1.45, the current version is 1.49 so you are using an out of date version of the software. (As that version won't work with Minecraft 1.21.20 anyway) Update your BedrockConnect jar to the latest under Releases and see if that fixes it.

Ma110w commented 2 months ago

According to the release number in the first line of the log, you are using version 1.45, the current version is 1.49 so you are using an out of date version of the software. (As that version won't work with Minecraft 1.21.20 anyway) Update your BedrockConnect jar to the latest under Releases and see if that fixes it.

Not contesting this, just it sounds odd, i have only learned that your project existed 3-4 days ago, im unsure how i have such a outdated version?

Pugmatt commented 2 months ago

I'm not really sure either, I checked the latest release files and they are up to date.

Where did you download the BedrockConnect jar originally? I know there's some 3rd-party Docker images and software out there not associated with this project that attempt to bundle BedrockConnect. Those tend to sometimes serve outdated versions. Also possible you followed a link from a tutorial that has the 1.45 version linked directly such as https://github.com/Pugmatt/BedrockConnect/releases/tag/1.45

Ma110w commented 2 months ago

Funnily enough, I found your project's GitHub page through a Google search. I literally searched "minecraft bedrock custom servers", and your GitHub was the first or second link that came up. On the first of this month. image_2024-09-04_035006195

Ma110w commented 2 months ago

alright, now this is really weird, I did a fresh install and its still saying exactly the same thing, down to the version number,

https://github.com/user-attachments/assets/09779adc-6463-4ff3-9ad8-f94811f79d4b

Pugmatt commented 2 months ago

Looks like the version is now showing 1.49 at least. What Java version do you have installed? Just trying to replicate the error, but so far no luck. Looking at the error it's having issues reading resources in the JAR for some reason.

Ma110w commented 2 months ago

i have so many installed im unsure where all of them are, im gonna try and find a tool, or write one

Addition: Java uninstall tool (Oracle) image

Addition: Control Panel Uninstaller image

Ma110w commented 2 months ago

OH AND ALSO, i was wrong earlier, after the fresh install, what i didn't realize was the version swapped from 1.45 to 1.49, but still produced the same or similar error image

Ma110w commented 2 months ago

did i say something wrong?

Pugmatt commented 2 months ago

Sorry I haven't had time lately to review this too deeply. From the time I've had I haven't been able to replicate the issue unfortunately upon many attempts to match the environment. Only other possible anomaly I could see is maybe the storage device you are attempting to run BedrockConnect off of, Samsung Drive it looks like in the screen video. If you haven't already try moving your BedrockConnect setup to a different drive like your C or D drive and see if that changes anything?