Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pls fix this Exception in your Plugin #98

Open
hola6 opened this issue Dec 9, 2023 · 1 comment
Open

Pls fix this Exception in your Plugin #98

hola6 opened this issue Dec 9, 2023 · 1 comment

Comments

@hola6
Copy link

hola6 commented Dec 9, 2023

This started when I moved my server from my PC to another host. I have already tried reinstalling the plugin and updating it several times, and I haven't added any other plugins that could cause incompatibility.

[07:15:31 WARN]: [ServersNPC] Plugin ServersNPC v4.5 generated an exception while executing task 23
io.github.gonalez.znpcs.UnexpectedCallException: java.lang.AssertionError: can't invoke method: updateScoreboard
        at io.github.gonalez.znpcs.npc.NPC.spawn(NPC.java:299) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.task.NPCManagerTask.run(NPCManagerTask.java:32) ~[znpcs-4.5.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.2.jar:git-Paper-307]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.2.jar:git-Paper-307]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.2.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.lang.AssertionError: can't invoke method: updateScoreboard
        at io.github.gonalez.znpcs.npc.packet.PacketCache.lambda$getOrCache$0(PacketCache.java:54) ~[znpcs-4.5.jar:?]
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache.getOrCache(PacketCache.java:50) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache.access$000(PacketCache.java:12) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache$PacketHandler.invoke(PacketCache.java:82) ~[znpcs-4.5.jar:?]
        at jdk.proxy13.$Proxy143.updateScoreboard(Unknown Source) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.NPC.spawn(NPC.java:278) ~[znpcs-4.5.jar:?]
        ... 7 more
Caused by: java.lang.reflect.InvocationTargetException
        at jdk.internal.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache.lambda$getOrCache$0(PacketCache.java:52) ~[znpcs-4.5.jar:?]
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache.getOrCache(PacketCache.java:50) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache.access$000(PacketCache.java:12) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache$PacketHandler.invoke(PacketCache.java:82) ~[znpcs-4.5.jar:?]
        at jdk.proxy13.$Proxy143.updateScoreboard(Unknown Source) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.NPC.spawn(NPC.java:278) ~[znpcs-4.5.jar:?]
        ... 7 more
Caused by: java.lang.IllegalArgumentException
        at jdk.internal.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at io.github.gonalez.znpcs.npc.packet.Packet.updateScoreboard(Packet.java:84) ~[znpcs-4.5.jar:?]
        at jdk.internal.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache.lambda$getOrCache$0(PacketCache.java:52) ~[znpcs-4.5.jar:?]
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[?:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache.getOrCache(PacketCache.java:50) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache.access$000(PacketCache.java:12) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.packet.PacketCache$PacketHandler.invoke(PacketCache.java:82) ~[znpcs-4.5.jar:?]
        at jdk.proxy13.$Proxy143.updateScoreboard(Unknown Source) ~[znpcs-4.5.jar:?]
        at io.github.gonalez.znpcs.npc.NPC.spawn(NPC.java:278) ~[znpcs-4.5.jar:?]
        ... 7 more
@TheShadowModsUK
Copy link

I Get this error on 4.4/4.5/4.6 but not on 4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants