MC5000 doesn't work with Spigot
LadyCailinBot opened this issue ยท 8 comments
CRAFTBOOK-2551 - Reported by frdmn
As soon as i interact with that IC i receive console errors:
When i place the sign:
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1382)
at net.minecraft.server.v1_5_R3.Packet130UpdateSign.handle(SourceFile:46)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:186)
at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path;
at com.sk89q.craftbook.circuits.plc.PlcIC.getStorageLocation(PlcIC.java:134)
at com.sk89q.craftbook.circuits.plc.PlcIC.loadState(PlcIC.java:178)
at com.sk89q.craftbook.circuits.plc.PlcIC.tryLoadState(PlcIC.java:168)
at com.sk89q.craftbook.circuits.plc.PlcIC.<init>(PlcIC.java:102)
at com.sk89q.craftbook.circuits.plc.PlcFactory.create(PlcFactory.java:46)
at com.sk89q.craftbook.circuits.ic.ICMechanicFactory.detect(ICMechanicFactory.java:237)
at com.sk89q.craftbook.circuits.ic.ICMechanicFactory.detect(ICMechanicFactory.java:149)
at com.sk89q.craftbook.circuits.ic.ICMechanicFactory.detect(ICMechanicFactory.java:34)
at com.sk89q.craftbook.MechanicManager.detect(MechanicManager.java:560)
at com.sk89q.craftbook.MechanicManager.load(MechanicManager.java:434)
at com.sk89q.craftbook.MechanicManager.dispatchSignChange(MechanicManager.java:163)
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.onSignChange(MechanicListenerAdapter.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 15 more```
When i delete the sign:
```java|title=Code2013-05-14 19:29:32 [SEVERE]2013-05-14 19:28:52 [SEVERE] Could not pass event BlockBreakEvent to CraftBook v2123-024220d
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at net.minecraft.server.v1_5_R3.PlayerInteractManager.breakBlock(PlayerInteractManager.java:276)
at net.minecraft.server.v1_5_R3.PlayerInteractManager.dig(PlayerInteractManager.java:125)
at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:541)
at net.minecraft.server.v1_5_R3.Packet14BlockDig.handle(SourceFile:46)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:186)
at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path;
at com.sk89q.craftbook.circuits.plc.PlcIC.getStorageLocation(PlcIC.java:134)
at com.sk89q.craftbook.circuits.plc.PlcIC.loadState(PlcIC.java:178)
at com.sk89q.craftbook.circuits.plc.PlcIC.tryLoadState(PlcIC.java:168)
at com.sk89q.craftbook.circuits.plc.PlcIC.<init>(PlcIC.java:102)
at com.sk89q.craftbook.circuits.plc.PlcFactory.create(PlcFactory.java:46)
at com.sk89q.craftbook.circuits.ic.ICMechanicFactory.detect(ICMechanicFactory.java:113)
at com.sk89q.craftbook.circuits.ic.ICMechanicFactory.detect(ICMechanicFactory.java:34)
at com.sk89q.craftbook.MechanicManager.detect(MechanicManager.java:508)
at com.sk89q.craftbook.MechanicManager.load(MechanicManager.java:361)
at com.sk89q.craftbook.MechanicManager.dispatchBlockBreak(MechanicManager.java:201)
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter.onBlockBreak(MechanicListenerAdapter.java:168)
at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)```
Update of the redstone signal:
```java|title=Code
[SEVERE] [CraftBook] java.lang.NoSuchMethodError: java.io.File.toPath()Ljava/nio/file/Path;
at com.sk89q.craftbook.circuits.plc.PlcIC.getStorageLocation(PlcIC.java:134)
at com.sk89q.craftbook.circuits.plc.PlcIC.loadState(PlcIC.java:178)
at com.sk89q.craftbook.circuits.plc.PlcIC.tryLoadState(PlcIC.java:168)
at com.sk89q.craftbook.circuits.plc.PlcIC.<init>(PlcIC.java:102)
at com.sk89q.craftbook.circuits.plc.PlcFactory.create(PlcFactory.java:46)
at com.sk89q.craftbook.circuits.ic.ICMechanicFactory.detect(ICMechanicFactory.java:113)
at com.sk89q.craftbook.circuits.ic.ICMechanicFactory.detect(ICMechanicFactory.java:34)
at com.sk89q.craftbook.MechanicManager.detect(MechanicManager.java:508)
at com.sk89q.craftbook.MechanicManager.load(MechanicManager.java:361)
at com.sk89q.craftbook.MechanicManager.enumerate(MechanicManager.java:598)
at com.sk89q.craftbook.bukkit.MechanicListenerAdapter$1.run(MechanicListenerAdapter.java:344)
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:58)
at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:509)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)```
CraftBook version 2123-024220d
CraftBukkit version git-Spigot-844 (MC: 1.5.2) (Implementing API version 1.5.2-R0.2-SNAPSHOT)
Comment by me4502
What version of java do you use? Is it older than java 6 and 5?
Comment by frdmn
No its not:
$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.
Thank you for your response, me4502 :)
Comment by me4502
Hmm. Are you using Oracle or a third party version of Java? Eg, OpenJDK.
This error is saying a core part of Java is missing.
Can you uninstall all versions of java and install the latest java 7? Reinstalling may fix it.
Comment by me4502
This is being marked as invalid until any information stating it is a craftbook issue is provided.
Comment by frdmn
I use OpenJDK's Java.
Also i've heard that Java 7 is not that good in performance as Java 6. Thats why i decided for Java 6. "Should" the plugin work with Java 6 as well?
Comment by me4502
It should work with java 6. Java 7 has better performance than java 6. In the off case you have a issue with the GC you can turn on the old ConcMarkSweep GC.
This isn't really an issue with CraftBook not being compatible with java 6, as the missing content is from Java 6. My guess is due to it being OpenJDK.