Hey everyone,
I'm working on a Warp10 extension and I cannot make it work because of a
casting exception which does not make any sense to me.
My extension has this in its dependencies: io.warp10:warpscript:2.6.0
I'm trying to make it run in a standalone Warp10 2.6.0 (clean install).
This is the "main" class:
package com.clevercloud.warp10.script.ext.pulsarwriter;
import java.util.HashMap;
> import java.util.Map;
>
> import io.warp10.warp.sdk.WarpScriptExtension;
>
> public class PulsarWriterExtension extends WarpScriptExtension {
>
> private static final Map<String, Object> functions;
>
> static {
> functions = new HashMap<String, Object>();
> functions.put("SENDTOPULSAR", new SENDTOPULSAR("SENDTOPULSAR"));
> }
>
> @Override
> public Map<String, Object> getFunctions() {
> return functions;
> }
> }
>
Here is how I added it in the configuration: warpscript.extension.pulsarwriter
= com.clevercloud.warp10.script.ext.pulsarwriter.PulsarWriterExtension
Now, here's the error I'm getting when starting Warp10:
Exception in thread "main" java.lang.RuntimeException:
> java.lang.ClassCastException:
> com.clevercloud.warp10.script.ext.pulsarwriter.PulsarWriterExtension cannot
> be cast to io.warp10.warp.sdk.WarpScriptExtension
> at
> io.warp10.script.WarpScriptLib.registerExtensions(WarpScriptLib.java:2496)
> at io.warp10.standalone.Warp.main(Warp.java:270)
>
Am I missing something obvious? Could there be a dependency issue somewhere
in the sdk?
Thanks for your help!
--
You received this message because you are subscribed to the Google Groups "Warp
10 users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/warp10-users/2b5dc660-8941-4a0b-9c75-43f29efcb567o%40googlegroups.com.