CraftBook 3

CraftBook 3

139k Downloads

BlockBags error on startup

LadyCailinBot opened this issue ยท 3 comments

commented

CRAFTBOOK-3190 - Reported by mystikite

[12:34:21 INFO] [craftbook]: Starting CraftBook
[12:34:21 INFO] [craftbook]: Loading Configuration
[12:34:21 INFO] [craftbook]: Enumerating Mechanics
[12:34:21 INFO] [craftbook]: Found 18
[12:34:21 INFO] [craftbook]: Enabled: Variables
[12:34:21 INFO] [craftbook]: Enabled: BlockBag
[12:34:21 ERROR] [STDERR]: java.lang.reflect.InvocationTargetException
[12:34:21 ERROR] [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[12:34:21 ERROR] [STDERR]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[12:34:21 ERROR] [STDERR]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[12:34:21 ERROR] [STDERR]: at java.lang.reflect.Method.invoke(Method.java:498)
[12:34:21 ERROR] [STDERR]: at com.sk89q.craftbook.util.modularframework.module.ModuleWrapper.enableModule(ModuleWrapper.java:88)
[12:34:21 ERROR] [STDERR]: at com.sk89q.craftbook.util.modularframework.ModuleController.lambda$enableModules$0(ModuleController.java:151)
[12:34:21 ERROR] [STDERR]: at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
[12:34:21 ERROR] [STDERR]: at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
[12:34:21 ERROR] [STDERR]: at java.util.Iterator.forEachRemaining(Iterator.java:116)
[12:34:21 ERROR] [STDERR]: at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
[12:34:21 ERROR] [STDERR]: at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
[12:34:21 ERROR] [STDERR]: at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
[12:34:21 ERROR] [STDERR]: at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
[12:34:21 ERROR] [STDERR]: at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
[12:34:21 ERROR] [STDERR]: at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[12:34:21 ERROR] [STDERR]: at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
[12:34:21 ERROR] [STDERR]: at com.sk89q.craftbook.util.modularframework.ModuleController.enableModules(ModuleController.java:149)
[12:34:21 ERROR] [STDERR]: at com.sk89q.craftbook.sponge.CraftBookPlugin.onInitialization(CraftBookPlugin.java:114)
[12:34:21 ERROR] [STDERR]: at org.spongepowered.common.event.listener.GameStartedServerEventListener_CraftBookPlugin_onInitialization4.handle(Unknown Source)
[12:34:21 ERROR] [STDERR]: at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:86)
[12:34:21 ERROR] [STDERR]: at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:258)
[12:34:21 ERROR] [STDERR]: at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:269)
[12:34:21 ERROR] [STDERR]: at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:273)
[12:34:21 ERROR] [STDERR]: at org.spongepowered.common.SpongeImpl.postState(SpongeImpl.java:187)
[12:34:21 ERROR] [STDERR]: at org.spongepowered.server.SpongeVanilla.onServerStarting(SpongeVanilla.java:180)
[12:34:21 ERROR] [STDERR]: at net.minecraft.server.dedicated.DedicatedServer.handler$callServerStarting$0(SourceFile:80)
[12:34:21 ERROR] [STDERR]: at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(SourceFile:211)
[12:34:21 ERROR] [STDERR]: at net.minecraft.server.MinecraftServer.run(SourceFile:421)
[12:34:21 ERROR] [STDERR]: at java.lang.Thread.run(Thread.java:745)
[12:34:21 ERROR] [STDERR]: Caused by: com.owlike.genson.JsonBindingException: Could not deserialize to type class com.sk89q.craftbook.sponge.mechanics.blockbags.BlockBag
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.Genson.deserialize(Genson.java:391)
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.Genson.deserialize(Genson.java:306)
[12:34:21 ERROR] [STDERR]: at com.sk89q.craftbook.sponge.mechanics.blockbags.BlockBag.createFromString(BlockBag.java:63)
[12:34:21 ERROR] [STDERR]: at com.sk89q.craftbook.sponge.mechanics.blockbags.BlockBagManager.onInitialize(BlockBagManager.java:52)
[12:34:21 ERROR] [STDERR]: ... 29 more
[12:34:21 ERROR] [STDERR]: Caused by: com.owlike.genson.JsonBindingException: Could not create bean of type com.sk89q.craftbook.sponge.mechanics.blockbags.BlockBag using creator public com.sk89q.craftbook.sponge.mechanics.blockbags.BlockBag()
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.reflect.BeanCreator.couldNotCreate(BeanCreator.java:51)
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.reflect.BeanCreator$ConstructorBeanCreator.create(BeanCreator.java:81)
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.reflect.BeanDescriptor.deserialize(BeanDescriptor.java:91)
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.convert.ClassMetadataConverter.deserialize(ClassMetadataConverter.java:100)
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.convert.RuntimeTypeConverter.deserialize(RuntimeTypeConverter.java:47)
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.convert.NullConverter$NullConverterWrapper.deserialize(NullConverter.java:56)
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.Genson.deserialize(Genson.java:389)
[12:34:21 ERROR] [STDERR]: ... 32 more
[12:34:21 ERROR] [STDERR]: Caused by: java.lang.InstantiationException
[12:34:21 ERROR] [STDERR]: at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
[12:34:21 ERROR] [STDERR]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[12:34:21 ERROR] [STDERR]: at com.owlike.genson.reflect.BeanCreator$ConstructorBeanCreator.create(BeanCreator.java:77)
[12:34:21 ERROR] [STDERR]: ... 37 more
[12:34:21 INFO] [craftbook]: Enabled: Elevator
[12:34:21 INFO] [craftbook]: Enabled: Snow
[12:34:21 INFO] [craftbook]: Enabled: Bridge
[12:34:21 INFO] [craftbook]: Enabled: Door
[12:34:21 INFO] [craftbook]: Enabled: Gate
[12:34:21 INFO] [craftbook]: Enabled: Footprints
[12:34:21 INFO] [craftbook]: Enabled: LightStone
[12:34:21 INFO] [craftbook]: Enabled: TreeLopper
[12:34:21 INFO] [craftbook]: Enabled: Pipes
[12:34:22 INFO] [craftbook]: Enabled: Ammeter
[12:34:22 INFO] [craftbook]: Enabled: ICSocket
[12:34:22 INFO] [craftbook]: Enabled: GlowStone
[12:34:22 INFO] [craftbook]: Enabled: Netherrack
[12:34:22 INFO] [craftbook]: Enabled: JackOLantern

commented

Comment by mystikite

Originally, when i posted this, The contents of the file was:

blockbags=[]

Since then, i changed it to the following, but that has not seemed to fix the errors.

sponge@woundhealer:~$ cat config/com.sk89q.craftbook/mechanics/BlockBag.conf

blockbags=[
    nearby-chests,
    admin-black-hole,
    admin-black-source
]
commented

Comment by me4502

Fixed in later versions.

commented

Comment by me4502

Could you please pastebin the contents of the BlockBags config.