Carpenter's Blocks

Carpenter's Blocks

24M Downloads

Exception caught during firing event

EmanYm opened this issue · 3 comments

commented

Greetings.

I am testing CarpenterBlocks version 3.4 for MineCraft 1.10.2.

Here is the console errors
I'm wondering if maybe it's not going to work on Sponge...if that's the case, would you consider porting it to the Sponge api?

System:
Minecraft 1.10.2
Forge 2221
SpongeForge 5.1.0 β2086

commented

In addition to the above, I get this in the console when I try to right-click a normal carpenter block with a grass block in my main hand.
[10:58:30] [Server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_45-internal]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_45-internal]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45-internal]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
at com.carpentersblocks.util.protection.PlayerPermissions.hasElevatedPermission(PlayerPermissions.java:38) ~[PlayerPermissions.class:?]
at com.carpentersblocks.block.BlockCoverable.func_180639_a(BlockCoverable.java:353) ~[BlockCoverable.class:?]
at net.minecraft.server.management.PlayerInteractionManager.func_187251_a(PlayerInteractionManager.java:1249) ~[lv.class:?]
at net.minecraft.network.NetHandlerPlayServer.redirect$onProcessRightClickBlock$zhb000(NetHandlerPlayServer.java:2275) ~[me.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_184337_a(NetHandlerPlayServer.java:679) ~[me.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.func_148833_a(SourceFile:55) ~[jj.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.func_148833_a(SourceFile:11) ~[jj.class:?]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:156) ~[PacketUtil.class:1.10.2-2202-5.1.0-BETA-2086]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zje000(SourceFile:539) ~[fl$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[fl$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_45-internal]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_45-internal]
at net.minecraft.util.Util.func_181617_a(SourceFile:45) ~[h.class:?]
... 5 more

And this when I break the normal carpenter block

[11:00:49] [Server thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.event.entity.player.PlayerInteractEvent$LeftClickBlock@60693dc6:
java.lang.NullPointerException
at com.carpentersblocks.util.handler.EventHandler.getNormalizedHitVec(EventHandler.java:75) ~[EventHandler.class:?]
at com.carpentersblocks.util.handler.EventHandler.onLeftClickBlock(EventHandler.java:95) ~[EventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_60_EventHandler_onLeftClickBlock_LeftClickBlock.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:637) [EventBus.class:?]
at org.spongepowered.mod.event.SpongeForgeEventFactory.createPlayerInteractEvent(SpongeForgeEventFactory.java:805) [SpongeForgeEventFactory.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.mod.event.SpongeForgeEventFactory.callForgeEvent(SpongeForgeEventFactory.java:461) [SpongeForgeEventFactory.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:281) [SpongeModEventManager.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:326) [SpongeModEventManager.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:314) [SpongeModEventManager.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:141) [SpongeImpl.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractBlockEventPrimary(SpongeCommonEventFactory.java:444) [SpongeCommonEventFactory.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.common.network.PacketUtil.firePreEvents(PacketUtil.java:221) [PacketUtil.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:89) [PacketUtil.class:1.10.2-2202-5.1.0-BETA-2086]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zje000(SourceFile:539) [fl$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fl$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45-internal]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45-internal]
at net.minecraft.util.Util.func_181617_a(SourceFile:45) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45-internal]
[11:00:49] [Server thread/ERROR] [FML]: Index: 1 Listeners:
[11:00:49] [Server thread/ERROR] [FML]: 0: NORMAL
[11:00:49] [Server thread/ERROR] [FML]: 1: ASM: com.carpentersblocks.util.handler.EventHandler@6c485fb4 onLeftClickBlock(Lnet/minecraftforge/event/entity/player/PlayerInteractEvent$LeftClickBlock;)V
[11:00:49] [Server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_45-internal]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_45-internal]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387) [ld.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45-internal]
Caused by: java.lang.NullPointerException
at com.carpentersblocks.util.handler.EventHandler.getNormalizedHitVec(EventHandler.java:75) ~[Eve
ntHandler.class:?]
at com.carpentersblocks.util.handler.EventHandler.onLeftClickBlock(EventHandler.java:95) ~[EventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_60_EventHandler_onLeftClickBlock_LeftClickBlock.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:637) ~[EventBus.class:?]
at org.spongepowered.mod.event.SpongeForgeEventFactory.createPlayerInteractEvent(SpongeForgeEventFactory.java:805) ~[SpongeForgeEventFactory.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.mod.event.SpongeForgeEventFactory.callForgeEvent(SpongeForgeEventFactory.java:461) ~[SpongeForgeEventFactory.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:281) ~[SpongeModEventManager.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:326) ~[SpongeModEventManager.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:314) ~[SpongeModEventManager.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:141) ~[SpongeImpl.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.common.event.SpongeCommonEventFactory.callInteractBlockEventPrimary(SpongeCommonEventFactory.java:444) ~[SpongeCommonEventFactory.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.common.network.PacketUtil.firePreEvents(PacketUtil.java:221) ~[PacketUtil.class:1.10.2-2202-5.1.0-BETA-2086]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:89) ~[PacketUtil.class:1.10.2-2202-5.1.0-BETA-2086]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zje000(SourceFile:539) ~[fl$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) ~[fl$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_45-internal]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_45-internal]
at net.minecraft.util.Util.func_181617_a(SourceFile:45) ~[h.class:?]
... 5 more

commented

Until the mod is complete I have to focus on Forge implementation first. It can be freely ported to whichever API you are using after that.

The error looks like you're running it on a server -- this hasn't been tested. I plan on pushing the current 1.10.2 code here soon.

commented

I think this was in single player, and the second set of crash logs is from "open to LAN".
I think I had the SpongeForge api in my mods folder like an eedjit.

I didn't find any indication it wasn't going to work on Sponge (except that I found it on curse.com). Other plugins and mods from curse.com work, but you can't win them all.

I will eagerly await a port to Sponge!
(Take your time, I'm not in any rush. I would rather wait for a 100% working port than a "chewing gum and bail twine" hack-job that could fall apart if you look at it funny.)

(You can close this when you read it.)