Getting kicked from server when using /npc create
Opened this issue · 18 comments
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Disconnect] User NOTTAVINCI has disconnected, reason: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException
23.04 17:20:55 [Server] Server thread/INFO Dillonia left the game
Humm, could you perhaps add Gunpowder as it contains a mixin which stacktraces netty errors?
As this log isn't really useful ...
No, I can't do that as Gunpowder conflicts with Carpet Mod(We need carpet)
Sorry.
Well, at the end of the day, you can try this with local server / even singleplayer ...
Yeah, that's for sure. Perhaps setup a temp server with gunpowder utils instead of carpet or try adding mods and see when it occurs ...
I'll take a look later, as samo said the log you provided isn't very helpful, might take a bit to figure it out.
Sorry about that. I did actually go back and add Gunpowder + Utilities + Pal but it crashed for some reason. The log wasn't helpful either.
I have found the mod that causes the issue by removing one at a time and trying to join.
It was this: https://github.com/SpaceClouds42/PlaytimeTracker
Any chance that you or @spaceclouds42 could try and add some compatibility please?
Cannot invoke "us.spaceclouds42.playtime_tracker.duck.AFKPlayer.isAfk()" because "player" is null
:concern:
That shouldn't be running on anything but ServerPlayerEntities. I thought Taterzens were their own type of entity..
Oh, I think it might be this line
@DillonB07 were you using the command from console?
I've just come around to fix this, seems like it's PlaytimeTracker's fault.
java.lang.NullPointerException: Cannot invoke "us.spaceclouds42.playtime_tracker.duck.AFKPlayer.isAfk()" because "player" is null
I'm yet to get more info about it & find where it's caused.
Yep I mentioned PlaytimeTracker(#9 (comment))
But couldn't find any more info myself from logs.
Cannot invoke "us.spaceclouds42.playtime_tracker.duck.AFKPlayer.isAfk()" because "player" is null
:concern:
That shouldn't be running on anything but ServerPlayerEntities. I thought Taterzens were their own type of entity..
Yes, they are, that's why it's so strange ...
Oh, I think it might be this line
This should throw CommandSyntaxException
if it would be ran from console?
I thought getPlayer()
just returns null if the server command source is not a player entity, which would make sense with the error message because the name of the variable is player, as is in the error. Not sure though, might return the syntax exception
Oh, I think it might be this line
@DillonB07 were you using the command from console?
No, I wasn't(very late reply sorry!