mojira.dev
MC-113337

java.lang.NullPointerException when trying to join servers

Possible fix

Click your name in the launcher, press Log out, then log back in

Launcher - version 1.11.2 - multiplayer - join server - error message (see above)

Related issues

MC-5566 Random ghasts fireball MC-5571 Wither skeleton falling from Nether Fortress MC-5678 When combining tools with enchanted books in SMP, Anvil rejects materials and keeps experience MC-5808 Redstone comparitor setting issue MC-5913 Redstone Block disappearing when pushed by piston MC-6197 Still bugs in Hoppers MC-6301 mobs pass through closed hatches MC-6319 Hopper Glitch MC-6512 Extending maps does not work if the new map is shift-clicked into your inventory (from the crafting table). MC-6561 The snow biome (or maybe others to) dont end until i get striped biomes. MC-6658 ''Exception Ticking World'' MC Crash MC-6796 Dispenser has furnace front-texture MC-7198 13w02b crash MC-113342 Servers Not working MC-113346 I can't join multiplayer servers MC-113367 HELP ME MC-113408 I can't join any multiplayer servers MC-113413 Servers MC-113465 Cannot play on servers because of java.lang.NullPointerException MC-113470 java.lang.NullPointerException MC-113471 java.lang.NullPointerException: How do I fix this error? MC-113490 Cannot connect to minecraft servers due to a Java error MC-113491 Cannot connect to minecraft servers due to a Java error MC-113514 I cant Play multiplayer MC-113582 java.lang.NullPointerexception MC-113591 Can't join any multiplayer servers since new update. MC-113612 I cant play on servers MC-113614 The server connecting bug has come up with a message saying: java.lang.NullPointerException MC-113640 Multiplayer isn't connecting properly MC-113662 "InternalException: java.lang.NullPointerException" MC-113663 java.lang.NullPointerException MC-113715 when i join a server it says Java.Lang.NullPointerException MC-113753 Servers wont load Ive tried evrything and now im thinking its the games fault MC-113765 When i try join a server it gives me a error code that says Failed to connect to sever Internal Exception: java.lang.NullPointException MC-113886 I can't play minecraft multiplayer for some reason, when I try to enter it says Internal Exception:java.lang.NullPointerException MC-114137 internal exception java.lang.nullpointerexception MC-115179 Not loading servers MC-115561 cant do multiplayer MC-115680 all versions, this happens when i try to go multiplayer Internal Exception: java.lang.NullPointerException MC-115748 Internal Exception: io.netty.handler.codec.Decoder.Exception java.lang.NullPointerException MC-120491 Null.Pointer.Exception MC-133438 Can't join muliplayer game/server - java.lang.NullPointerException MC-235255 Can’t join any server MCL-5566 When I attempt to click on a server to join, a message reads "java.lang.NullPointerException". I cannot access any servers. MCL-5571 i cannot play by server please help me MCL-5678 When ever i join a server it just says "Internal Exception: java.lang.NullPointException" MCL-5808 Server Playing MCL-5913 Can not play multiplayer mode- Internal Exception: java.lang.NullPointerException MCL-6197 Getting Java.lang.nullpointer.exception error MCL-6301 when i play minecraft multiplayer and try to join a server is says Internal Exception:java.lang.NullPointerException and also my username is back at my very first old one! :( MCL-6319 failed to connect ot the server internal exception: java.lang.nullpointerexception MCL-6512 Cant play on servers MCL-6561 null.lang. MCL-6658 Can't play on servers at all MCL-6796 java.lang.nullpointerexception Server Error MCL-7198 Can't play on servers at all

Attachments

Comments

migrated
[media][media][media][media]
Uriel Salischiker

Seems to be related to a invalid session ID that only happens on the new launcher, hmm

migrated

Hi, I've had the same problem after my client updated. I can't access the server I play on and I have the same error message.

I play on a Mac.

Uriel Salischiker

You still have the issue in 17W06A?

migrated

What is 17W06A?

kumasasa

17w06a is the newest Minecraft development version AKA Snapshot.

To get it, you need to enable that in the Launcher.

migrated

How do you enable it in the launcher? Do I need to enable it?

SunCat

See this for information about the snapshot and how to get it.

migrated

I don't think I want the snapshot. I just want my client to be fixed or rolled back, so I can get onto my server.

migrated

I'm having exactly the same issue & I've just tried to go on the Snapshot version and whilst the problem has disappeared, when trying to join digital forge serve I get "outdated server" and then Hypixel, I get told I should be playing on one of the older versions. Please solve this soon, I only bought minecraft the other day & it's kinda disappointing... :/

migrated

Hi guys,

Guess what! I fixed my launcher myself. I deleted my java. It works now. So, perhaps this will work for you since java is the thing that is conflicting. Good luck. Have a nice day. Thanks to the mods for trying to fix this problem. Cheers.

migrated

I configured my launcher to enable snapshots and launched with the new snapshot you referenced, 17w06a. I was not allowed to connect to Hypixel (it says it only supports 1.8-1.11), and when I tried to attach to another server my daughter was unable to attach to, I receive a different version of the same error message, "Outdated server!"

SunCat

@unknown, you should use 17w06a server. You can get it from minecraft.net snapshot page

migrated

I don't want to use a 17w06a server. I want to be able to use ANY server, the way I could before. The servers I used aren't upgraded beyond 1.11.2.

migrated

Got this Error while trying to connect through the home LAN.
It Worked great BEFORE the launcher update.
Both Machines see the correct address and port ...yet I get the java.lang.NullPointerException
As Adelheid Brown suggested I renamed the Java directory for both Machines so it would install a new version ...as it did ....NO LUCK ...still gives the error.
PLEASE ELEVATE!!

migrated

If no easy fix can be found, could you at least come up with a way to let us revert back to the previous launcher? Whatever you changed with that seems to be the cause.

migrated

FWIW, I've updated all my drivers, my Java, my Windows 10. I'm on an HP Pavilion dv7 Notebook. Everything's up-to-date, Windows is getting sick of me querying their server for updates (okay, not really, but almost!). So far this issue isn't even assigned to anyone, f'real? Wow. That sucks. I've seen this issue all over the net, but I suppose most people just don't know how to report bugs. 😞

migrated

This is making me so pissed right now. I've tried all the things others have tried, and none of it works. it wasn't happening before the new launcher. can u PLEASE FIND A FIX???

migrated

I figured out that all you have to do is nuke your minecraft folder(after backing up your saves of course) but don't delete the minecraft launcher because that how you get al the minecraft stuff back

migrated

Collin Woolson - Yup, worked for me. Thanks!

Just renamed my .minecraft folders under AppData/Roaming to something else. Had to log in to the launcher again, then it re-downloaded everything, and now I can use servers again. Don't know if it works for everyone, but it worked for two of us, at least! Thanks, Collin! 🙂

migrated

That solution worked, thank you very much Collin!

migrated

MAC USER FIX

Make another computer account in 1.System Preference then click Users & Groups, and so on.
Then you sign out of original account and sign into new account. You should already have Minecraft downloaded, so just sign into your Minecraft account, make sure you can play, then go back to original account and you should be able to play!!

migrated

JacuzziLaFleur, thank you so much for the Mac fix. My daughter is up and running again!

GoodKingFilms

Try to log out in the launcher and then login again.

migrated

GoodKingFilms thanks it worked

migrated

I´ve got the same problem.
Guess what, login out and then in again works...
Thanks GoodKingFilms

migrated

Persists in 17w15a, Just updated my server and got this on connect.

Much more severe this time ... It does this every time!

Tried logging out/in with official launcher (usually use MultiMC) did not resolve.

[media]

Further info:

Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at h.a(SourceFile:47)
at bgu.aw(SourceFile:951)
at bgu.a(SourceFile:399)
at net.minecraft.client.main.Main.main(SourceFile:123)
Caused by: java.lang.NullPointerException
at bqs.a(SourceFile:461)
at jh.a(SourceFile:42)
at jh.a(SourceFile:11)
at hb$1.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at h.a(SourceFile:46)
... 3 more

migrated

I'm experiencing the same issues as Nigel Todman. Some further info:

Happens when I join a server (notably a private survival), or after a few minutes of play.
At one point the debug window was spammed with over 5000 of those 'error executing task' 'NullPointerException' messages, with varying class names (jh, jc, etc.). Only happened once.

It isn't consistent. Sometimes it kicks me instantly, sometimes I can move for a few seconds, sometimes I can play for extensive periods of time. It also seems to depend on location. It occurs mostly in my base. I've never seen it happen in the nether. Don't know if this is actually the case, just some notable observations.

Occurs in bouts. Sometimes there's an episode of a couple dozen times, sometimes it doesn't happen.

It appears to not be a server side issue as there are no messages on the server, only on the client, and only that one time.

Things I've tried:
Renaming .minecraft for a reinstall of the launcher info.
Logging out, then back in, in the launcher.
Logging out, then back in, on my computer account. Seemed to temporarily pacify, although it still happened.

Specs: MC 17w15a, Java 1.8.0_74 64bit, macOS 10.12.

migrated

It doesnt always devolve into a persistent loop of them. Was able to play briefly on an updated 17w15a server.

But eventually it did.

Was able to play 23 minutes on my recent Livestream. Then a string of persistent nullPointerException issues.

https://www.twitch.tv/videos/135256600

Switched to single player for remainder of stream.

Also as I can continuously connect. The server instance still remains. It is just the client that is crashing.

migrated

I notice that the NullPointerException happens mainly when/if there is a parrot on the screen.

My spawn has some parrots in a glass box. If i stand there. I get NullPointerException, If I can get on the server and tp away from spawn where there is no parrots before they load. No NullPointerException error.

migrated

Getting the same problem with a parrot.
Private server was fine until the parrot we tamed appeared. It didn't follow us or teleport to the main base when originally found in 17w14, so we went back looking for it today after updating. It only teleports within a very small number of chunks...maybe the render distance?
now that it appeared no one can connect to the server without the error every one else is reporting... (we all went looking for it as only one spawned in about 2.5 hours of looking).

[media]

I can't attach the client log it seems, but it has lots of this:
[20:05:16] [Client thread/WARN]: Received passengers for unknown entity
and loading 157 achievements all though it

Momibelle

We are also experiencing persistent NullPointerExceptions ... deleting our profiles does not help.

migrated

This issue has been coming up recently for a few of our players. It will happen at random times, usually the player can join the server and play normally for a few minutes. After a short period of time, the client either crashes abruptly, or when opening a GUI (crafting, etc).

Things we have tried:

  • Allocating more RAM to client

  • Reinstalling .minecraft

  • Logging in/out of the Minecraft launcher

Using Minecraft 1.12-pre1

https://pastebin.com/QeWSMzwm

migrated

For me it happens only on premium servers, cracked are working well...

bemoty

@unknown That's because you can join cracked servers with an invalid session ID.

migrated

I think this error came with Launcher version 2.0.805/6.

Asteraoth

Is this still an issue in Minecraft 1.13.1?

migrated

For me i cannot reproduce this bug i can play in multiplayer

migrated

(Unassigned)

Confirmed

join, null-pointer-exception, server

Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w15a, Minecraft 1.12 Pre-Release 1, Minecraft 1.12.1

Retrieved