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

lootEntries not found? #1449

Closed
LemADEC opened this Issue Sep 13, 2016 · 8 comments

Comments

Projects
None yet
5 participants
@LemADEC

LemADEC commented Sep 13, 2016

When starting server with forge-1.10.2-12.18.1.2086-universal.jar and ImmersiveEngineering-0.10-40.jar, the following error is reported in console:

[17:44:34] [Server thread/INFO] [FML]: Loading dimension 0 (Zen) (net.minecraft.server.dedicated.DedicatedServer@4533c1cc)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]: java.lang.NoSuchFieldException: lootEntries
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at java.lang.Class.getDeclaredField(Class.java:2070)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at blusunrize.immersiveengineering.common.EventHandler.lootLoad(EventHandler.java:160)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_372_EventHandler_lootLoad_LootTableLoadEvent.invoke(
.dynamic)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.event.ForgeEventFactory.loadLootTable(ForgeEventFactory.java:595)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.common.ForgeHooks.loadLootTable(ForgeHooks.java:1048)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager$Loader.func_186518_c(LootTableManager.java:148)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager$Loader.load(LootTableManager.java:71)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager$Loader.load(LootTableManager.java:52)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager.func_186521_a(LootTableManager.java:39)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager.func_186522_a(LootTableManager.java:48)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager.<init>(LootTableManager.java:34)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.WorldServer.func_175643_b(WorldServer.java:152)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:252)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:266)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at java.lang.Thread.run(Thread.java:745)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]: java.lang.NoSuchFieldException: lootEntries
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at java.lang.Class.getDeclaredField(Class.java:2070)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at blusunrize.immersiveengineering.common.EventHandler.lootLoad(EventHandler.java:160)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_372_EventHandler_lootLoad_LootTableLoadEvent.invoke(.dynamic)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.event.ForgeEventFactory.loadLootTable(ForgeEventFactory.java:595)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraftforge.common.ForgeHooks.loadLootTable(ForgeHooks.java:1048)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager$Loader.func_186518_c(LootTableManager.java:148)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager$Loader.load(LootTableManager.java:71)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager$Loader.load(LootTableManager.java:52)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager.func_186521_a(LootTableManager.java:39)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager.func_186522_a(LootTableManager.java:48)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.storage.loot.LootTableManager.<init>(LootTableManager.java:34)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.world.WorldServer.func_175643_b(WorldServer.java:152)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:252)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:266)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)
[17:44:34] [Server thread/INFO] [STDERR]: [blusunrize.immersiveengineering.common.EventHandler:lootLoad:170]:   at java.lang.Thread.run(Thread.java:745)

BluSunrize added a commit that referenced this issue Sep 14, 2016

Fixed loot entries not working right, closes #1449
Fixed Crusher outputting secondaries with 100% chance, closes #1446
@BluSunrize

This comment has been minimized.

Show comment
Hide comment
@BluSunrize

BluSunrize Sep 14, 2016

Owner

Fixed for future releases, see commit above!

Owner

BluSunrize commented Sep 14, 2016

Fixed for future releases, see commit above!

@BluSunrize BluSunrize closed this Sep 14, 2016

malte0811 added a commit to malte0811/ImmersiveEngineering that referenced this issue Sep 14, 2016

changed OC crusher compat to have a getInputQueue method rather than …
…a getInputStack method, closes BluSunrize#1421

fixed a stacktrace on startup, closes BluSunrize#1449
@malte0811

This comment has been minimized.

Show comment
Hide comment
@malte0811

malte0811 Sep 14, 2016

Collaborator

And we pushed commits simultaneously again... You pushed at 12:40, I created the commit at 12:40 and pushed it at 12:44 😄
I think my solution is safer since

The elements in the array returned are not sorted and are not in any particular order.

(From the documentation of the getDeclaredFields method)
LootPool declares multiple fields and while your solution might work with the Oracle JDK, there is no guarantee that that will be the case with other versions like OpenJDK.

Collaborator

malte0811 commented Sep 14, 2016

And we pushed commits simultaneously again... You pushed at 12:40, I created the commit at 12:40 and pushed it at 12:44 😄
I think my solution is safer since

The elements in the array returned are not sorted and are not in any particular order.

(From the documentation of the getDeclaredFields method)
LootPool declares multiple fields and while your solution might work with the Oracle JDK, there is no guarantee that that will be the case with other versions like OpenJDK.

@BluSunrize

This comment has been minimized.

Show comment
Hide comment
@BluSunrize

BluSunrize Sep 14, 2016

Owner

hrmph. Alright, fair enough, you win =P

Owner

BluSunrize commented Sep 14, 2016

hrmph. Alright, fair enough, you win =P

BluSunrize added a commit that referenced this issue Sep 14, 2016

@C0rn3j

This comment has been minimized.

Show comment
Hide comment
@C0rn3j

C0rn3j Sep 20, 2016

Line 1645 - http://pastebin.com/hzFyhNV0

Forge 2092, IE build 42. Looks like a similar issue to me

C0rn3j commented Sep 20, 2016

Line 1645 - http://pastebin.com/hzFyhNV0

Forge 2092, IE build 42. Looks like a similar issue to me

@malte0811

This comment has been minimized.

Show comment
Hide comment
@malte0811

malte0811 Sep 21, 2016

Collaborator

Looks like I messed up my fix. I'll look into it later today.

Collaborator

malte0811 commented Sep 21, 2016

Looks like I messed up my fix. I'll look into it later today.

@Drakonas

This comment has been minimized.

Show comment
Hide comment
@Drakonas

Drakonas Oct 6, 2016

Not sure why this was closed. It still happens in Release 42.

http://pastebin.com/cxGGKVfM

Drakonas commented Oct 6, 2016

Not sure why this was closed. It still happens in Release 42.

http://pastebin.com/cxGGKVfM

@BluSunrize

This comment has been minimized.

Show comment
Hide comment
@BluSunrize

BluSunrize Oct 6, 2016

Owner

I dunno. We never reopened it, and I don't think @malte0811 ever wrote a different fix either =P

Owner

BluSunrize commented Oct 6, 2016

I dunno. We never reopened it, and I don't think @malte0811 ever wrote a different fix either =P

@BluSunrize BluSunrize reopened this Oct 6, 2016

@malte0811

This comment has been minimized.

Show comment
Hide comment
@malte0811

malte0811 Oct 6, 2016

Collaborator

Yeah, I'll try to fix it right now.

Collaborator

malte0811 commented Oct 6, 2016

Yeah, I'll try to fix it right now.

@BluSunrize BluSunrize closed this in 92ac190 Oct 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment