wso2carbon - Not able to execute custom function extension in wso2 cep -


i using wso2cep 4.1.0 , have created custom function extension class following package name:

package org.wso2.siddhi.extension.custom;  .....  public class myfunction extends functionexecutor { ..... } 

then have created file : custom.siddhiext

an put following entry it.

mycount=org.wso2.siddhi.extension.custom.myfunction 

i have created jar including both of above files. have created maven project above.

then put jar /repository/components/dropins folder.

and restarted cep wso2server.

now executing following execution plan: my execution plan:

from inputstream#window.timebatch( 1 sec )  select custom:mycount(param1) outparam insert outputstream; 

on creating outputsteam following exception:

exception when validating stream, exception : 'mycount' neither function extension nor aggregated attribute extension in execution plan "executionplan"

it seems jar put in dropin folder not read wso2server followed steps stated in [https://docs.wso2.com/display/cep410/writing+a+custom+function+extension]

anybody have face similar issues or have solution it.

during restart of wso2cepserver following error:

error {org.wso2.carbon.server.extensions.dropinsbundledeployer} - required bundle manifest headers not exists: /home/analytics/wso2cep-4.1 .0/repository/components/dropins/function-extension-1.0-snapshot.jar

i assume you're using maven-bundle-plugin build bundle. if so, in extension project pom file, recheck maven-bundle-plugin configurations.

check whether bundle-symbolicname has being provided plugin. may refer this example of extension, being written siddhi.

according source code (the source of carbon 4.4.3 dropinsbundledeployer deploys bundles put dropins folder), error occur:

  1. when bundle-symbolicname has not being given or
  2. when bundle-version has not being given.

so in case, putting bundle-symbolicname in config didn't make difference, try adding bundle-version well. can find sample config in maven-bundle-plugin tutorial.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -