17.02.2016, 11:16
I'm having trouble with my streamer wrapper.
StreamerPlugin.java
Callbacks.java(generated via wrapper-generator)
I tried to decompile Callbacks.class to confirm the function does end up there, but sadly my decompiler failed.
StreamerPlugin.java
Код:
@Override public void onEnable() throws Throwable { instance = this; logger = getLogger(); Callbacks.registerHandlers(AmxInstanceManager.get()); // line 35 Functions.registerFunctions(AmxInstance.getDefault()); logger.info("Streamer wrapper initialized"); }
Код:
public static void registerHandlers(AmxInstanceManager instanceManager) { EventManager eventManager = StreamerPlugin.getInstance().getEventManager(); // The usual implementation }
Код:
2016-02-17 14:12:31,497 ERROR [err] - java.lang.NoSuchMethodError: lt.maze.Callbacks.registerHandlers(Lnet/gtaun/shoebill/amx/AmxInstanceManager;)V 2016-02-17 14:12:31,497 ERROR [err] - at lt.maze.StreamerPlugin.onEnable(StreamerPlugin.java:35) 2016-02-17 14:12:31,498 ERROR [err] - at net.gtaun.shoebill.resource.Resource.enable(Resource.java:91) 2016-02-17 14:12:31,498 ERROR [err] - at net.gtaun.shoebill.resource.Plugin.enable(Plugin.java:52) 2016-02-17 14:12:31,498 ERROR [err] - at net.gtaun.shoebill.resource.ResourceManagerImpl.loadPlugin(ResourceManagerImpl.java:109) 2016-02-17 14:12:31,498 ERROR [err] - at net.gtaun.shoebill.resource.ResourceManagerImpl.loadPlugin(ResourceManagerImpl.java:89) 2016-02-17 14:12:31,499 ERROR [err] - at net.gtaun.shoebill.resource.ResourceManagerImpl$$Lambda$32/31094415.accept(Unknown Source) 2016-02-17 14:12:31,499 ERROR [err] - at java.util.ArrayList.forEach(ArrayList.java:1234) 2016-02-17 14:12:31,499 ERROR [err] - at net.gtaun.shoebill.resource.ResourceManagerImpl.loadAllResource(ResourceManagerImpl.java:61) 2016-02-17 14:12:31,499 ERROR [err] - at net.gtaun.shoebill.ShoebillImpl.loadPluginsAndGamemode(ShoebillImpl.java:289) 2016-02-17 14:12:31,500 ERROR [err] - at net.gtaun.shoebill.ShoebillImpl.access$100(ShoebillImpl.java:47) 2016-02-17 14:12:31,500 ERROR [err] - at net.gtaun.shoebill.ShoebillImpl$1.onAmxLoad(ShoebillImpl.java:233) 2016-02-17 14:12:31,500 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$null$80(SampCallbackManagerImpl.java:60) 2016-02-17 14:12:31,500 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$Lambda$31/30327649.call(Unknown Source) 2016-02-17 14:12:31,501 ERROR [err] - at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:21) 2016-02-17 14:12:31,501 ERROR [err] - at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:14) 2016-02-17 14:12:31,501 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$onAmxLoad$81(SampCallbackManagerImpl.java:60) 2016-02-17 14:12:31,501 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$Lambda$30/33016375.accept(Unknown Source) 2016-02-17 14:12:31,502 ERROR [err] - at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) 2016-02-17 14:12:31,502 ERROR [err] - at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) 2016-02-17 14:12:31,502 ERROR [err] - at java.util.concurrent.ConcurrentLinkedQueue$CLQSpliterator.forEachRemaining(ConcurrentLinkedQueue.java:851) 2016-02-17 14:12:31,502 ERROR [err] - at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) 2016-02-17 14:12:31,502 ERROR [err] - at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) 2016-02-17 14:12:31,503 ERROR [err] - at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) 2016-02-17 14:12:31,503 ERROR [err] - at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) 2016-02-17 14:12:31,509 ERROR [err] - at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 2016-02-17 14:12:31,509 ERROR [err] - at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) 2016-02-17 14:12:31,509 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.onAmxLoad(SampCallbackManagerImpl.java:60)