Re: [Dev] Why are we issuing refresh tokens is SAML 2.0 OAuth Grant type..?
Created a JIRA at [1]. [1] https://wso2.org/jira/browse/IDENTITY-2530 On Fri, May 30, 2014 at 7:15 PM, Prabath Siriwardena prab...@wso2.com wrote: $subject.. Ideally we should not... Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +94 71 809 6732 http://blog.facilelogin.com http://blog.api-security.org -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] Need to add a setter for appFactoryRepositoryAuthorizationClient in the appfactory-gitblit-plugin's AppFactoryGitBlitUserModel class
Hi all, If there are no issues, shall I go ahead and commit the fix. Thanks SumedhaS On Fri, May 30, 2014 at 7:24 PM, Danushka Fernando danush...@wso2.com wrote: In that case +1 to adding this to the plugin, which will make it extensible. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, May 30, 2014 at 4:37 PM, Sumedha Kodithuwakku sumed...@wso2.com wrote: Hi Danushka, The issue is when we override authenticate method in AppFactoryGitBlitAuthenticationProvider, we have to call the supper method which will return a AppFactoryGitBlitUserModel which cannot be casted to the extended one. If we are to get the extended one, we will have to write our own authenticate method and if we do that we will not get the changes you may do in future. Thanks SumedhaS On Fri, May 30, 2014 at 3:52 PM, Danushka Fernando danush...@wso2.com wrote: Hi Sumedha This fix doesn't seems harmful. So I am ok with adding this to our code if its necessary. But question I got is since you are writing a plugin extended from our code, Isn't it possible to extend AppFactoryGitBlitUserModel and write your own and add it there? And IIRC you can configure gitblit to use it. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, May 30, 2014 at 3:39 PM, Sumedha Kodithuwakku sumed...@wso2.com wrote: Hi AF team, We need to extend the appfactory-gitblit-plugin [1] to do some changes so that it can authenticate/authorize users with only their email address. So basically we want to override authenticate method of AppFactoryGitBlitAuthenticationProvider and authorize method in AppFactoryRepositoryAuthorizationClient. So doing that it was required to set the authorization client in the AppFactoryGitBlitUserModel to a custom one. To do that I had to include the following setter; --- src/main/java/org/wso2/carbon/appfactory/git/AppFactoryGitBlitUserModel.java (revision 204299) +++ src/main/java/org/wso2/carbon/appfactory/git/AppFactoryGitBlitUserModel.java (working copy) @@ -116,4 +116,7 @@ return new AppFactoryRepositoryAuthorizationClient(getConfiguration()); } -} \ No newline at end of file + public void setAppFactoryRepositoryAuthorizationClient(AppFactoryRepositoryAuthorizationClient appFactoryRepositoryAuthorizationClient) { + this.appFactoryRepositoryAuthorizationClient = appFactoryRepositoryAuthorizationClient; + } +} I have locally made the necessary change and then wrote the new plugin extending yours and it works as expected (cloning, pushing and UI access etc). If the above is ok, Shall we include the above..? [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/appfactory/2.0.0/modules/webapps/gitbilit/appfactory-gitblit-plugin/ Thanks SumedhaS -- *Sumedha Kodithuwakku* Software Engineer WSO2 Inc. : wso2.com lean . enterprise . middleware Email: sumed...@wso2.com; Mobile: +94 71 808 1124 Blog: http://sumedhask.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Sumedha Kodithuwakku* Software Engineer WSO2 Inc. : wso2.com lean . enterprise . middleware Email: sumed...@wso2.com; Mobile: +94 71 808 1124 Blog: http://sumedhask.blogspot.com/ -- *Sumedha Kodithuwakku* Software Engineer WSO2 Inc. : wso2.com lean . enterprise . middleware Email: sumed...@wso2.com; Mobile: +94 71 808 1124 Blog: http://sumedhask.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AM-1.7]AM publisher doing redundant calls to GW.
Hi Ruwan On Sat, May 31, 2014 at 7:43 AM, Ruwan Yatawara ruw...@wso2.com wrote: Hi Ajith, As per the latest release of APIM, we added a new life cycle state called prototyped. In that stage (it can be either and endpoint or a In line script implementation) also the api gets deployed in the gateway (mock api). In a production setup , what is the purpose of deploying mock API in the GW ? Thanks. Ajith However, if u just press just the save button at each stage and straight away move on to the manage section, said gateway calls will not be made. Thanks and Regards, Ruwan - sent from my mobile On 31 May 2014 02:43, Ajith Vitharana aji...@wso2.com wrote: Hi All, I have observed that publisher invoking the GW while creating a new API (at the each API design steps ). Why do we need that call before publishing to the GW ? Because we know that the state of the API is CREATED. org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 3 ms at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) *at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)* at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.login(AbstractAPIGatewayAdminClient.java:90) at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.setup(AbstractAPIGatewayAdminClient.java:53) at org.wso2.carbon.apimgt.impl.utils.RESTAPIAdminClient.init(RESTAPIAdminClient.java:40) * at org.wso2.carbon.apimgt.impl.APIGatewayManager.isAPIPublished(APIGatewayManager.java:247)* at org.wso2.carbon.apimgt.impl.APIProviderImpl.isAPIPublished(APIProviderImpl.java:929) at org.wso2.carbon.apimgt.impl.APIProviderImpl.updateAPI(APIProviderImpl.java:508) at org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.updateAPI(UserAwareAPIProvider.java:58) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.saveAPI(APIProviderHostObject.java:727) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_updateAPIDesign(APIProviderHostObject.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.api.c4._c_anonymous_6(/publisher/modules/api/add.jag:119) at org.jaggeryjs.rhino.publisher.modules.api.c4.call(/publisher/modules/api/add.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_29(/publisher/modules/api/module.jag:95) at
Re: [Dev] [AM-1.7]AM publisher doing redundant calls to GW.
On Saturday, May 31, 2014, Ajith Vitharana aji...@wso2.com wrote: Hi Ruwan On Sat, May 31, 2014 at 7:43 AM, Ruwan Yatawara ruw...@wso2.com javascript:_e(%7B%7D,'cvml','ruw...@wso2.com'); wrote: Hi Ajith, As per the latest release of APIM, we added a new life cycle state called prototyped. In that stage (it can be either and endpoint or a In line script implementation) also the api gets deployed in the gateway (mock api). In a production setup , what is the purpose of deploying mock API in the GW ? No need of doing that if you don't want to. You can provide the sandbox URL only and deploy the API in the sandbox Gateway only. The API will be put into the Prod Gateway once you provide the prod URL and save. You need to configure the Gateways appropriately in the APIGatewayEnvironments section for this type of deployment to be possible. Thanks, NuwanD. Thanks. Ajith However, if u just press just the save button at each stage and straight away move on to the manage section, said gateway calls will not be made. Thanks and Regards, Ruwan - sent from my mobile On 31 May 2014 02:43, Ajith Vitharana aji...@wso2.com wrote: Hi All, I have observed that publisher invoking the GW while creating a new API (at the each API design steps ). Why do we need that call before publishing to the GW ? Because we know that the state of the API is CREATED. org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 3 ms at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) *at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)* at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.login(AbstractAPIGatewayAdminClient.java:90) at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.setup(AbstractAPIGatewayAdminClient.java:53) at org.wso2.carbon.apimgt.impl.utils.RESTAPIAdminClient.init(RESTAPIAdminClient.java:40) * at org.wso2.carbon.apimgt.impl.APIGatewayManager.isAPIPublished(APIGatewayManager.java:247)* at org.wso2.carbon.apimgt.impl.APIProviderImpl.isAPIPublished(APIProviderImpl.java:929) at org.wso2.carbon.apimgt.impl.APIProviderImpl.updateAPI(APIProviderImpl.java:508) at org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.updateAPI(UserAwareAPIProvider.java:58) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.saveAPI(APIProviderHostObject.java:727) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_updateAPIDesign(APIProviderHostObject.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com javascript:_e(%7B%7D,'cvml','aji...@wso2.com'); Mobile : +94772217350 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing
Re: [Dev] [AM-1.7]AM publisher doing redundant calls to GW.
On Sat, May 31, 2014 at 1:41 PM, Nuwan Dias nuw...@wso2.com wrote: On Saturday, May 31, 2014, Ajith Vitharana aji...@wso2.com wrote: Hi Ruwan On Sat, May 31, 2014 at 7:43 AM, Ruwan Yatawara ruw...@wso2.com wrote: Hi Ajith, As per the latest release of APIM, we added a new life cycle state called prototyped. In that stage (it can be either and endpoint or a In line script implementation) also the api gets deployed in the gateway (mock api). In a production setup , what is the purpose of deploying mock API in the GW ? No need of doing that if you don't want to. You can provide the sandbox URL only and deploy the API in the sandbox Gateway only. The API will be put into the Prod Gateway once you provide the prod URL and save. You need to configure the Gateways appropriately in the APIGatewayEnvironments section for this type of deployment to be possible. In a future version plan is to provide an option of selecting deployment environment for mock implementations. Even now you can omit the option of deploying a mock version by hitting 'Save' button and continuing to next step. Thanks, NuwanD. Thanks. Ajith However, if u just press just the save button at each stage and straight away move on to the manage section, said gateway calls will not be made. Thanks and Regards, Ruwan - sent from my mobile On 31 May 2014 02:43, Ajith Vitharana aji...@wso2.com wrote: Hi All, I have observed that publisher invoking the GW while creating a new API (at the each API design steps ). Why do we need that call before publishing to the GW ? Because we know that the state of the API is CREATED. org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 3 ms at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) *at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)* at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.login(AbstractAPIGatewayAdminClient.java:90) at org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.setup(AbstractAPIGatewayAdminClient.java:53) at org.wso2.carbon.apimgt.impl.utils.RESTAPIAdminClient.init(RESTAPIAdminClient.java:40) * at org.wso2.carbon.apimgt.impl.APIGatewayManager.isAPIPublished(APIGatewayManager.java:247)* at org.wso2.carbon.apimgt.impl.APIProviderImpl.isAPIPublished(APIProviderImpl.java:929) at org.wso2.carbon.apimgt.impl.APIProviderImpl.updateAPI(APIProviderImpl.java:508) at org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.updateAPI(UserAwareAPIProvider.java:58) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.saveAPI(APIProviderHostObject.java:727) at org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_updateAPIDesign(APIProviderHostObject.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.FunctionObject. -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email :
Re: [Dev] Can we make SAML issuer configurable per service provider?
On Thu, May 29, 2014 at 1:56 AM, Prabath Siriwardena prab...@wso2.com wrote: I am doing some testing with Salesforce SAML grant type for OAuth 2.0. It would be great if we can make following parameters configurable per service provider - currently its a global configuration.. 1. Issuer (currently its a global configuration - defined under Resident Idp) Created a JIRa for this at [1]. 2. Recipient (this is picked from the ACS - but we should let ppl configure what they want if its going to be different from the ACS) This is already available in SAML2 SSO registration page. Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +94 71 809 6732 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev [1] https://wso2.org/jira/browse/IDENTITY-2531 -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Gettiing statistics from a JMX profile visualized in BAM dashboards
Hi, For my training project, it was planned to create a toolbox and a data agent for JBoss AS. Since BAM already has a JMX agent and JBoss exposes its stats through a JMX server, it is not useful to create a separate toolbox and a data agent for specifically for JBoss. After a discussion with Jaminda, Anjana and Sagara, we planned to extend the functionalities of the existing JMX agent. Existing JMX toolbox can be used to collect statistics from OS, memory and threads and also it is possible to add other MBeans exposed by the remote JMX server. If I want to collect statistics from a specific JMX server, I can create a JMX profile and select the MBeans and attributes, and then save that JMX profile. How could these profiles be used to visualize JMX statistics on BAM dashboards? -- Gimantha Bandara Software Engineer WSO2. Inc : http://wso2.com Mobile : +94714961919 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Exception when Invoking GmailConnector ReadMailMessage Operation
Hi Sewwandi, Still if a client set sequent=false he might get the same error. Either the bug should be fixed or limitation should be documented. IMO it is better to fix it since it is a valid scenario for a client to set it false in case he expects parallel processing. Touched, not typed. Erroneous words are a feature, not a typo. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [BAM] BAM Mediator doesn't send events when invoked from a sequence.
Hi, $Subject. From the following code chunks, BamMediator.java AxisService service = msgCtx.getAxisService(); if(service == null) { return true; } // When this is not inside an API theses parameters should be there if ((!service.getName().equals(__SynapseService)) (service.getParameter(ADMIN_SERVICE_PARAMETER) != null || service.getParameter(HIDDEN_SERVICE_PARAMETER) != null)) { return true; } PayloadDataBuilder.java try { service = msgCtx.getAxisService().getName(); } catch (Exception e) { String errorMsg = Error occurred while Service Name is extracted. + e.getMessage(); log.error(errorMsg, e); service = ; } --- StreamDefinitionBuilder.java attributes.add(new Attribute(BamMediatorConstants.SERVICE_NAME, AttributeType.STRING)); --- if the it is invoked from a proxy the value of service = proxy which it is invoked and it works. when it is invoked from a sequence service is null and it ends there as a solution to that I have removed the parts which checks the service and dropped it from sending with events. if it isn't violating any use case, attached patch to the jira issue can be used as a fix. jira issue: https://wso2.org/jira/browse/BAM-1642 Thanks, --Rajith -- *Rajith Siriwardana* Software Engineer WSO2 Inc. ; http://wso2.com *lean. enterprise. middleware* *www: **http://people.apache.org/~siriwardana http://people.apache.org/~siriwardana* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] BAM mediator and streams definitions.
Hi, When using BAM mediator, there is little control over how the streams gets defined. This will make some inconsistent behavior when we try to use some features at BAM side. For example, how to use the incremental analysis feature[1] for streams which are created when using BAM mediator? The doc mentions about how this feature can be enabled using toolbox approach when defining streams. But with BAM mediator, the streams are automatically created. As a workaround, what we can do is pre-define the stream with toolbox and then start using BAM mediator. But this also leads to a situation where you will have to know the exact definition of the stream beforehand. Do we have a proper workaround for this or can we take this as an improvement? Thanks, Kishanthan. [1] https://docs.wso2.org/display/BAM241/Incremental+Analysis -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] JavaScript API for Script mediator
I tried following script language=js ![CDATA[var a=dushanabeyruwan; var b=a.substring(1,6); print(b)]]/script it works [2014-05-31 20:22:35,699] INFO - LogMediator Progress check = Starting *pring##ushan* even you can directly invoke Rihno to see what sort of string funtions available dushan@xx:~/poc/rihno/rhino1_7R4/build/rhino1_7R4$ java -jar js.jar Rhino 1.7 release 4 2014 02 18 js var a=abced js var b=a.substring(1,3) js print(b) bc js On Thu, May 29, 2014 at 3:53 PM, Ramindu Deshapriya rasad...@gmail.com wrote: Hi Ishan, Thanks. Seems most Synapse-based methods are implemented as JavaScript functions. However, when I attempted to use the substring function, it gave the following error: com.sun.phobos.script.util.ExtendedScriptException: org.mozilla.javascript.EcmaError: TypeError: Cannot find function substring. (Unknown Source#25) in Unknown Source at line number 25 Are the basic JavaScript functions not available? Thanks. On Thu, May 29, 2014 at 3:43 PM, Ishan Jayawardena-2 [via WSO2 Oxygen Tank] [hidden email] http://user/SendEmail.jtp?type=nodenode=97416i=0 wrote: You can find it in org.apache.synapse.mediators.bsf.ScriptMessageContext. Thanks, Ishan. On Thu, May 29, 2014 at 3:29 PM, Ramindu Deshapriya [hidden email] http://user/SendEmail.jtp?type=nodenode=97415i=0 wrote: Hi, I am having trouble finding the functions available to the JavaScript API when used within a Script Mediator in the ESB. Could someone please direct me to a list of functions which are available for use within a Script Mediator? Thanks. -- View this message in context: http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-JavaScript-API-for-Script-mediator-tp97411.html Sent from the WSO2 Development mailing list archive at Nabble.com. ___ Dev mailing list [hidden email] http://user/SendEmail.jtp?type=nodenode=97415i=1 http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ishan Jayawardena Senior Software Engineer Mobile: a href=tel:%2B94%20%2877%29%20408%202330 value=+94774082330 target=_blank+94 (77) 408 2330 ___ Dev mailing list [hidden email] http://user/SendEmail.jtp?type=nodenode=97415i=2 http://wso2.org/cgi-bin/mailman/listinfo/dev -- If you reply to this email, your message will be added to the discussion below: http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-JavaScript-API-for-Script-mediator-tp97411p97415.html To start a new topic under WSO2 Development, email [hidden email] http://user/SendEmail.jtp?type=nodenode=97416i=1 To unsubscribe from WSO2 Development, click here. NAML http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- Au revoir! Ramindu Deshapriya. Member - Sahana Software Foundation http://sahanafoundation.org http://rdeshapriya.com http://www.facebook.com/rdeshapriya http://twitter.com/#%21/rami_desh https://plus.google.com/113801459480978566130 http://www.linkedin.com/profile/view?id=84017607trk=tab_pro http://rdeshapriya.com http://lmakuthan.blogspot.com -- View this message in context: Re: [Dev] [ESB] JavaScript API for Script mediator http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-JavaScript-API-for-Script-mediator-tp97411p97416.html Sent from the WSO2 Development mailing list archive http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html at Nabble.com. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dushan Abeyruwan | Associate Tech Lead Integration Technologies Team PMC Member Apache Synpase WSO2 Inc. http://wso2.com/ Blog:http://dushansview.blogspot.com/ Mobile:(0094)713942042 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] Class mediator - task scheduler error
ute(MessageInjector.java:315) at org.apache.synapse.startup.quartz.SimpleQuartzJob.execute(SimpleQuartzJob.java:88) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) Caused by: java.lang.NullPointerException at org.wso2.cloud.monitor.agent.esb.mediators.icinga.IcingaAdapter.mediate(IcingaAdapter.java:89) what this class mediator does ? its obvious theat error thrown from your class mediator, debug it. at org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78) ... 11 more [2014-05-30 15:16:12,137] ERROR - ErrorLogger Job (synapse.simple.quartz.TriggerSequence threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.apache.synapse.SynapseException: Error occured in the mediation of the class mediator] at org.quartz.core.JobRunShell.run(JobRunShell.java:224) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) Caused by: org.apache.synapse.SynapseException: Error occured in the mediation of the class mediator at org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:82) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47) at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:228) at org.apache.synapse.startup.tasks.MessageInjector.execute(MessageInjector.java:315) at org.apache.synapse.startup.quartz.SimpleQuartzJob.execute(SimpleQuartzJob.java:88) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) ... 1 more Caused by: java.lang.NullPointerException at org.wso2.cloud.monitor.agent.esb.mediators.icinga.IcingaAdapter.mediate(IcingaAdapter.java:89) at org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78) ... 11 more Any help would be much appreciated! Thanks. /Gayashan -- Gayashan Amarasinghe Software Engineer WSO2, Inc. ; http://wso2.com lean. enterprise. middleware Mobile: +94718314517 Blog: gayashan-a.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dushan Abeyruwan | Associate Tech Lead Integration Technologies Team PMC Member Apache Synpase WSO2 Inc. http://wso2.com/ Blog:http://dushansview.blogspot.com/ Mobile:(0094)713942042 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Sohani Weerasinghe
congrats!!! On Sat, May 31, 2014 at 8:58 AM, Tania Mahanama ta...@wso2.com wrote: Congrats!! On Sat, May 31, 2014 at 7:58 AM, Thanuja Jayasinghe than...@wso2.com wrote: Congratz!!! On 30 May 2014 17:00, Lali Devamanthri l...@wso2.com wrote: Congratulations On Fri, May 30, 2014 at 11:06 AM, Jasintha Dasanayake jasin...@wso2.com wrote: Hi All, It's my distinct pleasure to welcome Sohani as a WSO2 Committer. Sohani has been a valuable contributor for WSO2 Developer Studio since she joined WSO2. In recognition of her contributions to WSO2, she has been voted as a WSO2 Committer. Sohani, Congratulations and Keep up the good work! Thanks and Regards, /Jasintha -- *Jasintha Dasanayake * *Senior Software EngineerWSO2 Inc. | http://wso2.com http://wso2.com/ lean . enterprise . middleware* *mobile :- 0711368118 0711368118* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lali Sudaththa Devamanthri* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 71 895 4922 http://www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Tania Mahanama Senior Technical Writer Contact: Mob: +94 077 5129270 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev