Re: [Dev] ESB script mediator - inject Java class as a JS native object

2015-04-01 Thread Akila Ravihansa Perera
Hi Malaka,

That didn't work either but your comment put me into the right direction. I
was able to get it working by using importClass(PackagesJSUtils); in
the javascript.

Thanks a bunch for responding!

Thought of documenting everything in case someone else faces the same issue.

Here is my ESB API


http://ws.apache.org/ns/synapse";
 name="MySampleAPI2"
 context="/MySampleAPI2">
   
  
 

   http://demo3177833.mockable.io/students"/>

 
  
  
 

 

 

 
 
  
   



And here is my JS

function executeMain(mc){

   importClass(Packages.org.example.JSUtils);

   var obj = {};
   var myJSUtilsTest = new JSUtils();
   obj.foo = myJSUtilsTest.getTestMessage("echo 123");
   obj.tee = myJSUtilsTest.getMessage();

}


Your class mediator can be anything but you need to have a plain simple
class like JSUtils with public methods which you want to expose to JS
engine. Make sure to package everything into the final jar file. Deploy
this jar file in /repository/components/lib and restart ESB.

public class JSUtils {

private static final Log logger =
LogFactory.getLog(JSUtils.class.getName());
private ScriptEngineManager manager = new ScriptEngineManager();
private ScriptEngine scriptEngine;

public JSUtils() {
manager.registerEngineExtension("jsEngine", new
RhinoScriptEngineFactory());
scriptEngine = manager.getEngineByExtension("jsEngine");
}
public String getTestMessage(String test) {
return "Testing JSUtils with " + test;
}
public Object getMessage() {
return "Testing JSUtils with getMessage()";
}

public Object parseJSON(String jsonStr) {
try {
return scriptEngine.eval("(" + jsonStr + ")");
} catch (Exception e) {
logger.error("Error when creating native object", e);
}
return null;
}

public Object stringifyJSON(Object jsonObject) {
try {
Object returnObj = ((Invocable)
scriptEngine).invokeMethod(this.scriptEngine.eval("JSON"), "stringify",
jsonObject);
return returnObj;
} catch (Exception e) {
logger.error("Error when creating native object", e);
}
return null;
   }
}

This should work with ESB 4.8.0 and 4.8.1. Hope this will be useful.


Thanks.

On Tue, Mar 31, 2015 at 4:18 AM, Malaka Silva  wrote:

> Hi Akila,
>
> You can try following,
>
>   importPackage(Packages.org...JSUtils);
>  ..
>  var result = JSUtils.parseJSON(someJsonVar);
>  ]]>
>
>
> On Tue, Mar 31, 2015 at 3:31 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi,
>>
>> Is it possible to do $subject? I've been playing around with wso2-synapse
>> code base but couldn't find a way around without overriding ScriptMediator
>> class which is something I'm trying to avoid.
>>
>> My requirement is that I've developed some Java Util methods which I
>> would like to expose as JS native functions. I tried writing a class
>> mediator and do the bindings but couldn't get it working.
>>
>> ScriptEngineManager manager = new ScriptEngineManager();
>> manager.registerEngineExtension("jsEngine", new
>> RhinoScriptEngineFactory());
>> ScriptEngine scriptEngine = manager.getEngineByExtension("jsEngine");
>>
>> Bindings bindings = scriptEngine.createBindings();
>> bindings.put("jsUtils", new JSUtils());
>>
>> JSUtils Java class has some string operations that should be accessible
>> via JS. Inside JS script mediator I should be able to something like this;
>>
>> var result = jsUtils.parseJSON(someJsonVar);
>>
>>
>> I know this can be done by purely using the class mediator to evaluate
>> the whole JS source. But I'd much rather use built-in script mediator and
>> only inject my custom Java classes onto it.
>>
>> I think this would be a cool feature to have, if it is not already
>> supported.
>>
>> Thanks.
>>
>> --
>> Akila Ravihansa Perera
>> Software Engineer, WSO2
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Akila Ravihansa Perera
Software Engineer, WSO2

Blog: http://ravihansa3000.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding apacheds/1.5.7.wso2v3 and nimbus/2.26.1.wso2v3

2015-04-01 Thread Prasad Tissera
Hi Kernel team,

Can you please review and merge [1].

[1]. https://github.com/wso2/orbit/pull/80

Thanks,

-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-04-01 Thread Lasitha Wattaladeniya
Hi johan,

This is the fix PR [1] for public jira [2].

[1]. https://github.com/wso2/carbon-identity/pull/160
[2]. https://wso2.org/jira/browse/IDENTITY-2957

Thanks.

-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] [EMM] Patch for EMM to work with AppM 1.0.0

2015-04-01 Thread Chathura Dilan
Hi Yasassri,

I attached the README with the task

On Thu, Apr 2, 2015 at 11:23 AM, Yasassri Ratnayake 
wrote:

> Hi Chathura,
>
> I'm unable to find a READ-ME file in the patch. Can you kindly point me to
> the correct location if I have missed it. If its not there can we add a
> Read-Me with the instructions?
>
> With Regards,
>
> On Thu, Apr 2, 2015 at 11:18 AM, Chathura Dilan 
> wrote:
>
>> Hi All,
>>
>> I have created patch for EMM 1.1.0 to work it with AppM 1.0.0. You can
>> find the patch from this JIRA[1]
>>
>>
>> [1] - https://wso2.org/jira/browse/APPM-692
>>
>>
>> --
>> Regards,
>>
>> Chatura Dilan Perera
>> *(Senior Software Engineer** - WSO2 Inc.**)*
>> www.dilan.me
>>
>
>
>
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blog : http://yasassriratnayake.blogspot.com/
> *
>



-- 
Regards,

Chatura Dilan Perera
*(Senior Software Engineer** - WSO2 Inc.**)*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] [EMM] Patch for EMM to work with AppM 1.0.0

2015-04-01 Thread Yasassri Ratnayake
Hi Chathura,

I'm unable to find a READ-ME file in the patch. Can you kindly point me to
the correct location if I have missed it. If its not there can we add a
Read-Me with the instructions?

With Regards,

On Thu, Apr 2, 2015 at 11:18 AM, Chathura Dilan  wrote:

> Hi All,
>
> I have created patch for EMM 1.1.0 to work it with AppM 1.0.0. You can
> find the patch from this JIRA[1]
>
>
> [1] - https://wso2.org/jira/browse/APPM-692
>
>
> --
> Regards,
>
> Chatura Dilan Perera
> *(Senior Software Engineer** - WSO2 Inc.**)*
> www.dilan.me
>



-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168*
*Blog : http://yasassriratnayake.blogspot.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppM] [EMM] Patch for EMM to work with AppM 1.0.0

2015-04-01 Thread Chathura Dilan
Hi All,

I have created patch for EMM 1.1.0 to work it with AppM 1.0.0. You can find
the patch from this JIRA[1]


[1] - https://wso2.org/jira/browse/APPM-692


-- 
Regards,

Chatura Dilan Perera
*(Senior Software Engineer** - WSO2 Inc.**)*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] CodePlex ESB connector review

2015-04-01 Thread Shakila Sivagnanarajah
Hi Ashalya,

They gave all required instructions to run test cases in README file. If
request body needs to be changed in
{Codeplex_Connector_Home}/src/test/resources/artifacts/ESB/config/restRequests,
they should mention it in the README clearly.

Thank you.

On Thu, Apr 2, 2015 at 9:59 AM, Sriashalya Srivathsan 
wrote:

> Hi Pumudu,
> Normally in all connectors we describe the way of integration tests in the
> README file. User need to run the integration test first, for that they
> need different credentials and datas to update. so those details also
> should be given in the README file.
>
>
> Thank you,
> Rgds,
>
> On Wed, Apr 1, 2015 at 3:52 PM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi Pumudu,
>>
>> All methods are working fine with the patches given in [1].
>>
>> [1] -[Dev] WSO2 ESB 4.8.1 HTTP Patch support.
>>
>> Thank you.
>>
>> On Wed, Apr 1, 2015 at 3:31 PM, Kesavan Yogarajah 
>> wrote:
>>
>>> Hi Shakila please find the patches from the following mail thread[1].
>>>
>>> [1] -[Dev] WSO2 ESB 4.8.1 HTTP Patch support
>>>
>>>
>>>
>>> Kesavan Yogarajah
>>> Associate Software Engineer
>>> WSO2 Inc.
>>>
>>> Mob: +94 779758021
>>>
>>> On Wed, Apr 1, 2015 at 3:10 PM, Shakila Sivagnanarajah >> > wrote:
>>>
 Hi Pumudu,

 If you are using any patches can you please update that on README.

 On Wed, Apr 1, 2015 at 3:06 PM, Pumudu Ruhunage 
 wrote:

> Hi Shakila,
>
> AFAIK integration test resources are not user configurable. therefore,
> not required to document in user README. Regarding the test failures, i
> think it's due to some of the patches missing in your esb
> instance.integration tests are passing with patched esb and with given 
> test
> resources.
> @Tharik, can you please help shakila with esb patches needed for
> codeplex connector?
>
> Regards,
>
> On Wed, Apr 1, 2015 at 11:33 AM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Pumudu and Tharik,
>>
>> I have tried with the request bodies given in the connector, there
>> are 6 test cases failed. Please find the Log file here. In your 
>> connector,
>> you are giving all inputs in 
>> */codeplex/src/test/resources/artifacts/ESB/config/restRequests/codeplex
>> *so you have to mention it in README. If anyone need to test this
>> connector, he/she may needs to change the values in those files.
>>
>> Thank you.
>>
>> On Fri, Mar 20, 2015 at 9:26 AM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Thank you Pumudu.
>>>
>>> On Thu, Mar 19, 2015 at 9:31 PM, Pumudu Ruhunage 
>>> wrote:
>>>
 Hi,

 We have fixed issues as requested. Please find codeplex connector
 pull request[1] and jira[2]. Documentation has updated in jira.

 [1] https://github.com/wso2/esb-connectors/pull/83
 [2] https://wso2.org/jira/browse/ESBCONNECT-31

 Regards,

 On Tue, Mar 10, 2015 at 5:24 PM, Pumudu Ruhunage 
 wrote:

> Hi Shakila,
>
> Currently I'm making necessary changes to test cases. i'll let you
> know once it's done.
>
> Regards,
>
> On Tue, Mar 10, 2015 at 2:40 PM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Tharik and Pumudu,
>>
>> Can you please give a quick update on this?
>>
>> Thank you.
>>
>> On Wed, Feb 25, 2015 at 3:44 PM, Pumudu Ruhunage > > wrote:
>>
>>> Adding my correct email.
>>>
>>> On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi Tharik,

 Ok, Go ahead.


 On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka <
 tha...@wso2.com> wrote:

> Hi Shakila,
>
> We have removed and updated the Snapshot dependencies of the
> automation and integration. Since automation and integration 
> dependencies
> have been updated recently our old test cases (which were working 
> in last
> year) are getting failed now. So we will update test automation 
> code
> accordingly and send a pull request.
>
> Regards,
>
> On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Tharik and Pumudu,
>>
>> Please find the feedbacks regarding the CodePlex connector.
>>
>>1. Some dependencies need to be changed.
>>2. Instead of SNAPSHOT versions, use stable versions for
>>libraries.
>>3. Please modify 

Re: [Dev] MB Recovery Code

2015-04-01 Thread Ramith Jayasinghe
Please create a L1.

On Thu, Apr 2, 2015 at 3:11 AM, Hasitha Hiranya  wrote:

> Hi Team,
>
> There is a code written to sync following memory caches time to time with
> the database. Individual node has a scheduled task to do this periodically.
> Idea is, if a hazelcast notification was lost, even late, try to act
> correct.
>
> 1. Subscriptions
> 2. Bindings
> 3. Exchanges
> 4. Queues
>
> I have put a warning of some entry is added or deleted from above caches
> by this task. I have seen this runs and prints warnings in long running
> tests. Butter to check this code before release. I had my developer testing
> at old times, but given this is critical for behavior of node, better
> double check.
>
> Thanks
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] issue with changing application level tier is not working 1.9.0 SNAPSHOT.

2015-04-01 Thread Sewmini Jayaweera
Hi Saneth,

APMK once the EnableGatewayResourceCache is set to false system should no
longer keep throttling cache. Therefore Once your change the throttling
tier It should reflect the change immediately. Please refer to [1] and [2]
for more clarifications.

In APIM 1.8.0 there is an issue reported [3] for this scenario and
according to [3] the fix will come in 1.9.0 pack.

Further more after setting EnableGatewayResourceCache to false did you
restart the server? If not you need to restart in order to reflect changes.
If this still doesn't work In the 1.9.0 pack as a work around you will have
to restart the saver once you edit throttling tier prior to invoking or
invoke after 15 to 20 mins of the change.

[1] https://wso2.org/jira/browse/APIMANAGER-2701
[2]
https://docs.wso2.com/display/AM180/Configuring+Caching#ConfiguringCaching-Resourcecaching
[3] https://wso2.org/jira/browse/APIMANAGER-3171

Thank you.
Best Regards
Sewmini

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Thu, Mar 19, 2015 at 12:34 PM, Saneth Dharmakeerthi 
wrote:

> Hi APIM team,
>
> I created a API with gold tier with resource  with unlimited tier. Then I
> subscribed  the API via Silver  level tier application. If I invoke the
> API, the throttling is working correctlly, only the amount in silver tier
> is allowed.
>
> Then I change the application to gold tier  and test the throttling, it is
> still working for the amount in silver tier.
>
> Is this a issue or do I miss any steps here?
>
> Note:   EnableGatewayKeyCache and EnableGatewayResourceCache both set to
> false
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> ___
> 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


Re: [Dev] CodePlex ESB connector review

2015-04-01 Thread Sriashalya Srivathsan
Hi Pumudu,
Normally in all connectors we describe the way of integration tests in the
README file. User need to run the integration test first, for that they
need different credentials and datas to update. so those details also
should be given in the README file.


Thank you,
Rgds,

On Wed, Apr 1, 2015 at 3:52 PM, Shakila Sivagnanarajah 
wrote:

> Hi Pumudu,
>
> All methods are working fine with the patches given in [1].
>
> [1] -[Dev] WSO2 ESB 4.8.1 HTTP Patch support.
>
> Thank you.
>
> On Wed, Apr 1, 2015 at 3:31 PM, Kesavan Yogarajah 
> wrote:
>
>> Hi Shakila please find the patches from the following mail thread[1].
>>
>> [1] -[Dev] WSO2 ESB 4.8.1 HTTP Patch support
>>
>>
>>
>> Kesavan Yogarajah
>> Associate Software Engineer
>> WSO2 Inc.
>>
>> Mob: +94 779758021
>>
>> On Wed, Apr 1, 2015 at 3:10 PM, Shakila Sivagnanarajah 
>> wrote:
>>
>>> Hi Pumudu,
>>>
>>> If you are using any patches can you please update that on README.
>>>
>>> On Wed, Apr 1, 2015 at 3:06 PM, Pumudu Ruhunage  wrote:
>>>
 Hi Shakila,

 AFAIK integration test resources are not user configurable. therefore,
 not required to document in user README. Regarding the test failures, i
 think it's due to some of the patches missing in your esb
 instance.integration tests are passing with patched esb and with given test
 resources.
 @Tharik, can you please help shakila with esb patches needed for
 codeplex connector?

 Regards,

 On Wed, Apr 1, 2015 at 11:33 AM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Pumudu and Tharik,
>
> I have tried with the request bodies given in the connector, there are
> 6 test cases failed. Please find the Log file here. In your connector, you
> are giving all inputs in 
> */codeplex/src/test/resources/artifacts/ESB/config/restRequests/codeplex
> *so you have to mention it in README. If anyone need to test this
> connector, he/she may needs to change the values in those files.
>
> Thank you.
>
> On Fri, Mar 20, 2015 at 9:26 AM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi,
>>
>> Thank you Pumudu.
>>
>> On Thu, Mar 19, 2015 at 9:31 PM, Pumudu Ruhunage 
>> wrote:
>>
>>> Hi,
>>>
>>> We have fixed issues as requested. Please find codeplex connector
>>> pull request[1] and jira[2]. Documentation has updated in jira.
>>>
>>> [1] https://github.com/wso2/esb-connectors/pull/83
>>> [2] https://wso2.org/jira/browse/ESBCONNECT-31
>>>
>>> Regards,
>>>
>>> On Tue, Mar 10, 2015 at 5:24 PM, Pumudu Ruhunage 
>>> wrote:
>>>
 Hi Shakila,

 Currently I'm making necessary changes to test cases. i'll let you
 know once it's done.

 Regards,

 On Tue, Mar 10, 2015 at 2:40 PM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Tharik and Pumudu,
>
> Can you please give a quick update on this?
>
> Thank you.
>
> On Wed, Feb 25, 2015 at 3:44 PM, Pumudu Ruhunage 
> wrote:
>
>> Adding my correct email.
>>
>> On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi Tharik,
>>>
>>> Ok, Go ahead.
>>>
>>>
>>> On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka >> > wrote:
>>>
 Hi Shakila,

 We have removed and updated the Snapshot dependencies of the
 automation and integration. Since automation and integration 
 dependencies
 have been updated recently our old test cases (which were working 
 in last
 year) are getting failed now. So we will update test automation 
 code
 accordingly and send a pull request.

 Regards,

 On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Tharik and Pumudu,
>
> Please find the feedbacks regarding the CodePlex connector.
>
>1. Some dependencies need to be changed.
>2. Instead of SNAPSHOT versions, use stable versions for
>libraries.
>3. Please modify the pom to run the test cases in a single
>build.
>4. Format the code and send the pull request to
>https://github.com/wso2/esb-connectors.
>
>
> Thank you
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



 --

 *Tha

Re: [Dev] Please review and merge

2015-04-01 Thread Lasitha Wattaladeniya
PR : https://github.com/wso2/carbon-identity/pull/159/

On Thu, Apr 2, 2015 at 9:03 AM, Lasitha Wattaladeniya 
wrote:

> Hi Johan/Darshana,
>
> This is the pull request for the public jira [1].
>
>
> [1]. https://wso2.org/jira/browse/IDENTITY-1071
>
> --
> Lasitha Wattaladeniya
> Software Engineer
> WSO2, Inc. | http://wso2.com
> lean. enterprise. middleware
>
> Mobile : +94719397528
> Blog : techreadme.blogspot.com
>



-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-04-01 Thread Lasitha Wattaladeniya
Hi Johan/Darshana,

This is the pull request for the public jira [1].


[1]. https://wso2.org/jira/browse/IDENTITY-1071

-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2EMM: Migration H2 to Mysql

2015-04-01 Thread Akalanka Pagoda Arachchi
Hi all,

According to [1] and [2] 'SET OPTION' syntax has been removed when moving
into mysql 5.6 from 5.5 since it has long been deprecated. Maybe that is
the cause.

Thanks,
Akalanka.

[1] - http://dev.mysql.com/doc/refman/5.5/en/set-statement.html
[2] - http://dev.mysql.com/doc/refman/5.6/en/set-statement.html

On Thu, Apr 2, 2015 at 2:32 AM, Darshana Gunawardana 
wrote:

> [adding dev list]
>
> Hi Olivier,
>
> Are you trying to migrate the system from H2 to mysql? And can you please
> mention the version of the product you are trying.
>
> Regards,
> Darshana.
>
> On Wed, Apr 1, 2015 at 5:33 AM, Tokpanou Olivier 
> wrote:
>
>> Hello sir
>> I am a beginner on your product wso2emm. I want to migrate h2 mysql, I
>> followed the product documentation. I can not seem to successful
>> migration. I oudrais you aidier me to solve the problem. Attached is the log
>> file.
>> TID: [0] [EMM] [2015-04-01 11:18:42,473] ERROR
>> {org.wso2.carbon.user.core.tenant.TenantManager} -  Error in getting the
>> tenants. {org.wso2.carbon.user.core.tenant.TenantManager}
>> TID: [0] [EMM] [2015-04-01 11:18:47,480] ERROR
>> {org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO} -  Failed to get logs.
>> You have an error in your SQL syntax; check the manual that corresponds to
>> your MySQL server version for the right syntax to use near 'OPTION
>> SQL_SELECT_LIMIT=DEFAULT' at line 1
>> {org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO}
>> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an
>> error in your SQL syntax; check the manual that corresponds to your MySQL
>> server version for the right syntax to use near 'OPTION
>> SQL_SELECT_LIMIT=DEFAULT' at line 1
>>
>> --
>> TOKPANOU Olivier
>> Ingénieur d'études et développement informatique
>> Casablanca,Maroc
>> Tél : +212 6 06 60 85 15
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Software Engineer
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error occurs in carbon-registry feature when building product-cep after updating to kernel 4.4.0

2015-04-01 Thread Tharik Kanaka
Hi All,

I am updating product-cep to support carbon4 kernel 4.4.0. First i got the
following error on several modules when building product-cep.

* requires 'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but it
could not be found*


I have resolved that by building dependency modules on java8support branch.
Finally i got following error  when building product-cep. (before that i
have built the carbon-registry on java8support branch and updated the
product-cep reference version of carbon-registry accordingly)


*Installation failed.*
*Cannot complete the install because one or more required items could not
be found.*
* Software being installed: WSO2 Carbon - Registry Resource Properties
Feature 4.3.2.SNAPSHOT
(org.wso2.carbon.registry.resource.properties.feature.group 4.3.2.SNAPSHOT)*
* Missing requirement: org.wso2.carbon.registry.resource 4.3.2.SNAPSHOT
(org.wso2.carbon.registry.resource 4.3.2.SNAPSHOT) requires 'package
org.apache.commons.io  2.4.0' but it could
not be found*
* Cannot satisfy dependency:*
*  From: WSO2 Carbon - Registry Core Server Feature 4.3.2.SNAPSHOT
(org.wso2.carbon.registry.core.server.feature.group 4.3.2.SNAPSHOT)*
*  To: org.wso2.carbon.registry.resource [4.3.2.SNAPSHOT]*
* Cannot satisfy dependency:*
*  From: WSO2 Carbon - Registry Resource Properties Feature 4.3.2.SNAPSHOT
(org.wso2.carbon.registry.resource.properties.feature.group 4.3.2.SNAPSHOT)*
*  To: org.wso2.carbon.registry.core.server.feature.group
[4.3.2.SNAPSHOT,4.4.0)*
*Application failed, log file location:
/Users/tharik/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1427941663867.log*



Any idea to resolving this issue?

Thanks,

-- 

*Tharik Kanaka* | Associate Software Engineer

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Proposal for Data Wrangler extension for WSO2 Machine Learner

2015-04-01 Thread Tharinda Ehelepola
Hi,

I tried to get an idea about the generated scripts from Wrangler. But I am
unable to find any pattern of that generated script. Could you please
suggest me a format or any hint about this.

Thank You.
Tharinda.

On Thu, Mar 26, 2015 at 3:57 PM, Tharinda Ehelepola 
wrote:

> Hi,
>
> I have finish creating my proposal. So I need some feed back.Could you
> please check my proposal and give some commets.
>
>
> http://www.google-melange.com/gsoc/proposal/review/student/google/gsoc2015/tharinda221/5629499534213120
>
>
> https://docs.google.com/document/d/1mppMTbpSP_vWvhbK3RPrIR1HU9D8IFgLT5Mdsdhp8Vs/edit#
>
> Thank You.
> Tharinda.
>
> On Thu, Mar 26, 2015 at 12:39 AM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> I submitted the proposal in Melange. Please mention any corrections.
>>
>> Thank You.
>> Tharinda.
>>
>> On Tue, Mar 24, 2015 at 10:45 PM, Tharinda Ehelepola <
>> tharinda...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am unable to find API for the Wrangler. How do I connect Jaggery UI to
>>> Wrangler? Is it better to implement the API for this?
>>>
>>> Thank You.
>>> Tharinda.
>>>
>>> On Tue, Mar 24, 2015 at 8:58 AM, Tharinda Ehelepola <
>>> tharinda...@gmail.com> wrote:
>>>
 Hi,

 Thanks for comments. Idea is clear. I need to be clear about the
 conversion part. I think the output JS can be converted into java by
 mapping those scripts with libraries on apache spark transformation. For
 this mapping part, What is the feasibility of using compiler?

 Thank You.
 Tharinda.

 On Tue, Mar 24, 2015 at 8:02 AM, Supun Sethunga 
 wrote:

> Hi,
>
> End user can connect to the Jaggery UI. So Jaggery UI is the front
>> end. If end user do some operations using Jaggery, Scripts are generating
>> from Wrangler. Those created scripts should be converted into java and 
>> it's
>> input for the back-end.
>
> Correct.
>
>  So the back-end is the machine learner. Is this correct?
>
> I made a comment on this in the doc.. please refer to that.
>
> Regards,
> Supun
>
> On Tue, Mar 24, 2015 at 1:25 PM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>
>> Hi,
>>
>> I'll start creating the proposal in Melange. I need some comments to
>> finalize it. I got some idea about the back-end. I need to be clear about
>> the implementation plan. This is the basic idea I have for the overview 
>> of
>> the project. End user can connect to the Jaggery UI. So Jaggery UI is the
>> front end. If end user do some operations using Jaggery, Scripts are
>> generating from Wrangler. Those created scripts should be converted into
>> java and it's input for the back-end. So the back-end is the machine
>> learner. Is this correct? I am expecting your comments as I want to
>> conclude my proposal. Please mention any correction.
>>
>> Thank You.
>> Tharinda.
>>
>> On Tue, Mar 24, 2015 at 5:56 AM, Nirmal Fernando 
>> wrote:
>>
>>> Tharinda, please start creating the proposal in Melage and submit it
>>> once you attended to the given feedback.
>>>
>>> Thanks.
>>>
>>> On Mon, Mar 23, 2015 at 7:53 PM, Nirmal Fernando 
>>> wrote:
>>>
 Please try out the M1 release for a better understanding on the
 back-end: https://github.com/wso2/product-ml/releases/tag/1.0.0-m1

 On Mon, Mar 23, 2015 at 7:13 PM, Tharinda Ehelepola <
 tharinda...@gmail.com> wrote:

> Hi,
>
> I need to be clear about some points in the project. Here
>  is the
> pipeline where I got from your ML presentation. If I correct this the
> common diagram for machine learning. In which part of the pipeline do 
> you
> need to use Wrangler? You said that remotely connecting to the 
> Wrangler is
> not a good option. I think It is easy to have an extension in the 
> machine
> learner and also you used java as the programming language. So you 
> need a
> back-end in java. You said that Jaggery UI is a middle layer between
> back-end,wrangler and the end user. Can you please explain me about 
> this. I
> need to be clear about this also. My idea about conversion is to use 
> apache
> spark transformation jar libraries. There are methods in java related 
> to
> Wrangler functions. So those methods can be used to develop the 
> back-end in
> java. In here what is the feasibility of using compiler?  I am 
> expecting
> your comments. Please mention any corrections.
>
> Thank You.
> Tharinda.
>
> On Sun, Mar 22, 2015 at 5:15 AM, Tharinda Ehelepola <
> tharinda...@gmail.com> wrote:
>

[Dev] MB Recovery Code

2015-04-01 Thread Hasitha Hiranya
Hi Team,

There is a code written to sync following memory caches time to time with
the database. Individual node has a scheduled task to do this periodically.
Idea is, if a hazelcast notification was lost, even late, try to act
correct.

1. Subscriptions
2. Bindings
3. Exchanges
4. Queues

I have put a warning of some entry is added or deleted from above caches by
this task. I have seen this runs and prints warnings in long running tests.
Butter to check this code before release. I had my developer testing at old
times, but given this is critical for behavior of node, better double check.

Thanks

-- 
*Hasitha Abeykoon*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2EMM: Migration H2 to Mysql

2015-04-01 Thread Darshana Gunawardana
[adding dev list]

Hi Olivier,

Are you trying to migrate the system from H2 to mysql? And can you please
mention the version of the product you are trying.

Regards,
Darshana.

On Wed, Apr 1, 2015 at 5:33 AM, Tokpanou Olivier  wrote:

> Hello sir
> I am a beginner on your product wso2emm. I want to migrate h2 mysql, I
> followed the product documentation. I can not seem to successful
> migration. I oudrais you aidier me to solve the problem. Attached is the log
> file.
> TID: [0] [EMM] [2015-04-01 11:18:42,473] ERROR
> {org.wso2.carbon.user.core.tenant.TenantManager} -  Error in getting the
> tenants. {org.wso2.carbon.user.core.tenant.TenantManager}
> TID: [0] [EMM] [2015-04-01 11:18:47,480] ERROR
> {org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO} -  Failed to get logs.
> You have an error in your SQL syntax; check the manual that corresponds to
> your MySQL server version for the right syntax to use near 'OPTION
> SQL_SELECT_LIMIT=DEFAULT' at line 1
> {org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO}
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an
> error in your SQL syntax; check the manual that corresponds to your MySQL
> server version for the right syntax to use near 'OPTION
> SQL_SELECT_LIMIT=DEFAULT' at line 1
>
> --
> TOKPANOU Olivier
> Ingénieur d'études et développement informatique
> Casablanca,Maroc
> Tél : +212 6 06 60 85 15
>



-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Authenticating with WSO2 Identity Server 5.0.0

2015-04-01 Thread Akila Ravihansa Perera
Hi Michael,

Would it be possible for you to share the configs and wso2carbon.log? It's
not easy to guess the problem without looking at the logs.

Do you have email addresses as usernames? In that case you need to enable
EnableEmailUsers property in carbon.xml. Did you configure a DomainName for
your LDAP userstore? You can try to authenticate with
\

Thanks.

On Wed, Apr 1, 2015 at 9:45 AM,  wrote:

>  I am working at evaluating WSO2 Identity Server and API Manager.
>
>
>
> I am trying to connect the Identity Server with our VDS/LDAP server.  I
> have created the UserStoreManager configuration in the user-mgt.xml file
> and set the AdminUser to the same user name (not the full connectionName),
> but I am not able to authenticate with this user.  When I navigate to the
> local carbon instance, enter the username and password, I get an login
> failure message.  The UserStoreManager is a read-only connection to the VDS
> server.  I have also disabled the internal LDAP server.  If I enable the
> internal LDAP server and configure the connection to the internal VDS
> server with a secondary user store, I can log in with the standard “admin”
> user and the Travelocity.com example works with that user, but even if I
> add one of the VDS user to the Travelocity internal group, I cannot
> authenticate with SAML SSO example.
>
>
>
> I am trying to do two things.
>
>
>
> 1.Log into the Identity Server Management console with an
> internal LDAP user
>
> 2.   Authenticate with Travelocity SAML SSO example with an internal
> LDAP user, either as a secondary user store or when the internal LDAP
> server is the primary (and only) user store.
>
>
>
> Thanks for your help on this issue
>
>
>
> *Michael Eyre*
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Akila Ravihansa Perera
Software Engineer, WSO2

Blog: http://ravihansa3000.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] PR for membrane-soa-model orbit bundle version upgrade

2015-04-01 Thread Maheshika Goonetilleke
Hi Isuruwan

Yes I did, sorry didn't reply on the thread.

On Wed, Apr 1, 2015 at 11:31 PM, Isuruwan Herath  wrote:

> Hi Maheshika,
>
> Is this released?
>
> Thanks!
> Isuruwan
>
> On Wed, Apr 1, 2015 at 6:52 AM, Sameera Jayasoma  wrote:
>
>> Done.
>>
>> Maheshika, Can you release this orbit?
>>
>> Thanks,
>> Sameera.
>>
>>
>> On Tue, Mar 31, 2015 at 11:38 PM, Isuruwan Herath 
>> wrote:
>>
>>> Hi Kernel Team,
>>>
>>> Could you please review and merge [1] related to $subject? Created a v2
>>> of the released version since it needed an upgrade of slf4j dependency
>>> version.
>>>
>>> [1] https://github.com/wso2/orbit/pull/78
>>>
>>> Thanks!
>>> Isuruwan
>>>
>>> --
>>> Isuruwan Herath
>>> Technical Lead
>>>
>>> Contact: +94 776 273 296
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Isuruwan Herath
> Technical Lead
>
> Contact: +94 776 273 296
>



-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] PR for membrane-soa-model orbit bundle version upgrade

2015-04-01 Thread Isuruwan Herath
Hi Maheshika,

Is this released?

Thanks!
Isuruwan

On Wed, Apr 1, 2015 at 6:52 AM, Sameera Jayasoma  wrote:

> Done.
>
> Maheshika, Can you release this orbit?
>
> Thanks,
> Sameera.
>
>
> On Tue, Mar 31, 2015 at 11:38 PM, Isuruwan Herath 
> wrote:
>
>> Hi Kernel Team,
>>
>> Could you please review and merge [1] related to $subject? Created a v2
>> of the released version since it needed an upgrade of slf4j dependency
>> version.
>>
>> [1] https://github.com/wso2/orbit/pull/78
>>
>> Thanks!
>> Isuruwan
>>
>> --
>> Isuruwan Herath
>> Technical Lead
>>
>> Contact: +94 776 273 296
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
Isuruwan Herath
Technical Lead

Contact: +94 776 273 296
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Authenticating with WSO2 Identity Server 5.0.0

2015-04-01 Thread Michael.Eyre
I am working at evaluating WSO2 Identity Server and API Manager.

I am trying to connect the Identity Server with our VDS/LDAP server.  I have 
created the UserStoreManager configuration in the user-mgt.xml file and set the 
AdminUser to the same user name (not the full connectionName), but I am not 
able to authenticate with this user.  When I navigate to the local carbon 
instance, enter the username and password, I get an login failure message.  The 
UserStoreManager is a read-only connection to the VDS server.  I have also 
disabled the internal LDAP server.  If I enable the internal LDAP server and 
configure the connection to the internal VDS server with a secondary user 
store, I can log in with the standard "admin" user and the Travelocity.com 
example works with that user, but even if I add one of the VDS user to the 
Travelocity internal group, I cannot authenticate with SAML SSO example.

I am trying to do two things.


1.Log into the Identity Server Management console with an internal LDAP 
user

2.   Authenticate with Travelocity SAML SSO example with an internal LDAP 
user, either as a secondary user store or when the internal LDAP server is the 
primary (and only) user store.

Thanks for your help on this issue

Michael Eyre

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Adding sequence to a API to log In-flow messages not working. API Manager 1.9.0 SNAPSHOT

2015-04-01 Thread Uvindra Dias Jayasinha
If you havent updated the velocity_template in API Manager with your custom
handler then you will loose it from the synapse configuration when you do a
save and publish. publishing will cause the contents of the synapse config
to get updated with the default values in the template.

On 1 April 2015 at 17:26, Saneth Dharmakeerthi  wrote:

> HI All,
>
> I try to add LogMediator  to In-Flow in a API and noted following things.
>
>- I add sequence to the In-flow to log the messages as [1]. But no
>massage was logged.
>- I did the same thing with APIM 1.8.0, the LogMediator works fine but
>with 1.8.0 the added custom handlers get removed from the synapse
>configuration all the time  when we click "save and publish" button after
>the sequences is changed.
>
> Is there any reason for this behaviour, Did i miss any steps in here.
>
>
>
> [1]​
>  Screen Shot 2015-04-01 at 4.40.00 PM.png
> 
> ​
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>



-- 
Regards,
Uvindra

Mobile: 33962
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting response of a jax-rs endpoint using an iFrame

2015-04-01 Thread Hasanthi Purnima Dissanayake
Hi all,
I'm loading an jax-rs endpoint using an iFrame. I'm posting messages to the
endpoint periodically by using the iFrame. I need to get the response from
the endpoint(the end point returns a boolean) once I'm posting messages to
it. I implemented ,

var iframe = document.getElementById("opIFrame");
iframe.addEventListener("message", listener, false)

function listener(event){
console.log('Respond From OP: ');
}

But it is not working and I have no way to get the response from the
endpoint too. Please help me to fix this

Thanks and regards,

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP 4.0.0-M3] Steps for Running Sample 2001

2015-04-01 Thread Tishan Dahanayakage
Hi Iranga,

This error states that storm receiver has not yet been registered. However
this error will be go off after cluster is fully operational.

Thanks,
Tishan

On Wed, Apr 1, 2015 at 4:46 AM, Iranga Muthuthanthri 
wrote:

>
> Got the sample working on the Storm local node setup(Thanks Trishan),
> noted the following exception during the start up of the receiver node. Is
> it expected?
>
> [2015-04-01 16:57:21,523] ERROR - {AsyncEventPublisher}  [CEP Receiver|
> ExecPlan:PreprocessStats, TenantID:-1234]Error while trying retrieve
> information from storm manager service
>
> EndpointNotFoundException(message:No Storm Receiver for executionPlanName:
> PreprocessStats of tenantId:-1234 for CEP Receiver form:10.100.0.19)
>
> at
> org.wso2.carbon.event.processor.common.storm.manager.service.StormManagerService$getStormReceiver_result.read(StormManagerService.java:3025)
>
> at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
>
> at
> org.wso2.carbon.event.processor.common.storm.manager.service.StormManagerService$Client.recv_getStormReceiver(StormManagerService.java:129)
>
> at
> org.wso2.carbon.event.processor.common.storm.manager.service.StormManagerService$Client.getStormReceiver(StormManagerService.java:114)
>
> at
> org.wso2.carbon.event.processor.common.util.AsyncEventPublisher$EndpointConnectionCreator.getEndpointFromManagerService(AsyncEventPublisher.java:187)
>
> at
> org.wso2.carbon.event.processor.common.util.AsyncEventPublisher$EndpointConnectionCreator.establishConnection(AsyncEventPublisher.java:276)
>
> at
> org.wso2.carbon.event.processor.common.util.AsyncEventPublisher$EndpointConnectionCreator.run(AsyncEventPublisher.java:285)
>
> at java.lang.Thread.run(Thread.java:745)
>
>
>
> On Wed, Mar 25, 2015 at 10:17 PM, Sriskandarajah Suhothayan  > wrote:
>
>> Yes we can skip storm.yaml configuration for the single node
>>
>> Suho
>>
>> On Wed, Mar 25, 2015 at 10:01 PM, Tishan Dahanayakage 
>> wrote:
>>
>>> ​Hi Iranga,
>>> Documentation [2] is outdated as of the current implementation. We need
>>> to change that appropriately. [3] explains how to set up a Storm Cluster.
>>> But you can ignore storm.yaml configs if you are runinng in the localhost
>>> as in the sample. You just need to bring up storm and zoo keeper nodes.
>>> @Suho
>>> I could not find any simple official documentation on running Storm on
>>> single node. We can either create new guide or point to [3] and say that
>>> user can skip storm.yaml configurations. WDYT?
>>>
>>> Thanks,
>>> Tishan
>>> ​
>>>
>>> On Wed, Mar 25, 2015 at 5:46 AM, Praneesha Chandrasiri <
>>> pranee...@wso2.com> wrote:
>>>
 Hi Iranga,

 Thanks for pointing this out!

 I will work on this.

 On Wed, Mar 25, 2015 at 6:11 PM, Iranga Muthuthanthri 
 wrote:

> I am trying out CEP Sample  based on [1] in local mode. In the
> perquisite section Step 2 mentions about the  storm deployment which 
> points
> to the apache storm page.
>
>  Would like to know if this means, it is needed to setup  and run a
> storm topology locally as mentioned in [2] by running
>
> org.wso2.carbon.event.processor.storm.jar , if so what would be the
> fully qualified class name?
>
> Suggest that the documentation could be made more descriptive.
>
> [1]
> https://docs.wso2.com/display/CEP400/Sample+2001+-+Simple+filter+query+with+Apache+Storm+deployment
>
> [2]
> https://docs.wso2.com/display/CEP400/Configuring+WSO2+CEP+to+Run+with+Apache+Storm
>
>
>
>
>
> --
> Thanks & Regards
>
> Iranga Muthuthanthri
> (M) -0777-255773
> Team Product Management
>
>


 --
 Thanks & Best Regards,
 *Praneesha Chandrasiri*
 *Technical Writer*
 *WSO2 Inc. *
 *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
 *E-mail: pranee...@wso2.com *


>>>
>>>
>>> --
>>> Tishan Dahanayakage
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 716481328
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, re-transmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>  *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ 

Re: [Dev] [MB] Getting an error on running a jmeter publisher script

2015-04-01 Thread Anuja Herath
Hi,

Problem was that, I have configured physical IP address with MB.

So in jndi file, I had to replace "localhost" with physical IP address.

On Tue, Mar 31, 2015 at 3:53 PM, Pumudu Ruhunage  wrote:

> Hi Anuja,
>
> can you try adding 'andes-client-3.0.0-SNAPSHOT.jar' in {jmeter-home}/lib/
> and restart server.
>
> Regards,
>
> On Tue, Mar 31, 2015 at 3:44 PM, Indika Sampath  wrote:
>
>> Hi Anuja,
>>
>> Please check MB running on defined port in jndi.properties file of
>> Jmeter. Also make sure necessary MB client libraries copied to lib folder
>> of Jmeter.
>>
>> Cheers!
>>
>>
>> On Tue, Mar 31, 2015 at 3:39 PM, Anuja Herath  wrote:
>>
>>> Hi All,
>>>
>>> I m getting this error when I try to run a jmeter publisher script.
>>>
>>> org.wso2.andes.AMQConnectionFailureException: Could not open connection
>>> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:475)
>>> at
>>> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:328)
>>> at
>>> org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:38)
>>> at org.apache.jmeter.protocol.jms.Utils.getConnection(Utils.java:194)
>>> at
>>> org.apache.jmeter.protocol.jms.client.Publisher.(Publisher.java:104)
>>> at
>>> org.apache.jmeter.protocol.jms.sampler.PublisherSampler.initClient(PublisherSampler.java:138)
>>> at
>>> org.apache.jmeter.protocol.jms.sampler.PublisherSampler.sample(PublisherSampler.java:159)
>>> at
>>> org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler.sample(BaseJMSSampler.java:80)
>>> at
>>> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:431)
>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:258)
>>> at java.lang.Thread.run(Thread.java:722)
>>> Caused by: org.wso2.andes.transport.TransportException: Could not open
>>> connection
>>> at
>>> org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216)
>>> at
>>> org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74)
>>> at
>>> org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:120)
>>> at
>>> org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616)
>>> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:398)
>>> ... 10 more
>>>
>>> --
>>> Anuja Herath
>>> *Software Engineer*
>>> *WSO2, Inc.*
>>> Mobile : +94 (0)71 429 8861
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Indika Sampath
>> Software Engineer
>> WSO2 Inc.
>> http://wso2.com
>>
>> Phone: +94 716 424 744
>> Blog: http://indikasampath.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Pumudu Ruhunage
> Associate Software Engineer | WSO2 Inc
> M: +94 779 664493  | http://wso2.com
>



-- 
Anuja Herath
*Software Engineer*
*WSO2, Inc.*
Mobile : +94 (0)71 429 8861
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ML 1.0.0 Milestone 2 Released

2015-04-01 Thread CD Athuraliya
WSO2 ML 1.0.0 Milestone 2 is Released!

WSO2 ML team is pleased to announce the 2nd Milestone of WSO2 ML 1.0.0. The
distribution is available at [1]. This release includes following features.

New features

   - Initial version of the User Interface (
   https://docs.wso2.com/display/ML100/ML+UI+Workflow)
   - Support analyses execution in an external Spark cluster (
   
https://docs.wso2.com/display/ML100/Connecting+to+an+External+Apache+Spark+Cluster
   )
   - Support for HDFS storage


Pending features

   - BAM integration
   - UI - Model comparison, data exploration
   - ESB - ML mediator
   - CEP - ML extension

Documentation for WSO2 Machine Learner 1.0.0 - M2

   - Introduction -
   https://docs.wso2.com/display/ML100/Introducing+Machine+Learner
   - Architecture Guide - https://docs.wso2.com/display/ML100/Architecture
   - REST API guide - https://docs.wso2.com/display/ML100/REST+API+Guide
   - User Guide - https://docs.wso2.com/display/ML100/User+Guide
   - ML UI (initial version) Guide -
   https://docs.wso2.com/display/ML100/ML+UI+Workflow
   - Sample ML Flows - https://docs.wso2.com/display/ML100/Samples


Please report any issues you may find in our JIRA:
https://wso2.org/jira/browse/ML

GIT tag: https://github.com/wso2/product-ml/releases/tag/1.0.0-m2

[1] 
*https://github.com/wso2/product-ml/releases/download/1.0.0-m2/wso2ml-1.0.0-SNAPSHOT.zip
*


Thanks,

-- 
*CD Athuraliya*
Software Engineer
WSO2, Inc.
lean . enterprise . middleware
Mobile: +94 716288847 <94716288847>
LinkedIn  | Twitter
 | Blog

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Adding sequence to a API to log In-flow messages not working. API Manager 1.9.0 SNAPSHOT

2015-04-01 Thread Madusanka Premaratne
Hi Saneth,
I have gone through the process and it works fine for me in 1.9.0 SNAPSHOT.
Did you do any additional configuration?

Thanks,
Madusanka

On Wed, Apr 1, 2015 at 5:26 PM, Saneth Dharmakeerthi 
wrote:

> HI All,
>
> I try to add LogMediator  to In-Flow in a API and noted following things.
>
>- I add sequence to the In-flow to log the messages as [1]. But no
>massage was logged.
>- I did the same thing with APIM 1.8.0, the LogMediator works fine but
>with 1.8.0 the added custom handlers get removed from the synapse
>configuration all the time  when we click "save and publish" button after
>the sequences is changed.
>
> Is there any reason for this behaviour, Did i miss any steps in here.
>
>
>
> [1]​
>  Screen Shot 2015-04-01 at 4.40.00 PM.png
> 
> ​
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook]  [image: Twitter]
 [image: Google Plus]
 [image:
Linkedin]  [image: Instagram]
 [image: Skype]

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Adding sequence to a API to log In-flow messages not working. API Manager 1.9.0 SNAPSHOT

2015-04-01 Thread Saneth Dharmakeerthi
HI All,

I try to add LogMediator  to In-Flow in a API and noted following things.

   - I add sequence to the In-flow to log the messages as [1]. But no
   massage was logged.
   - I did the same thing with APIM 1.8.0, the LogMediator works fine but
   with 1.8.0 the added custom handlers get removed from the synapse
   configuration all the time  when we click "save and publish" button after
   the sequences is changed.

Is there any reason for this behaviour, Did i miss any steps in here.



[1]​
 Screen Shot 2015-04-01 at 4.40.00 PM.png

​

Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP 4.0.0-M3] Steps for Running Sample 2001

2015-04-01 Thread Iranga Muthuthanthri
Got the sample working on the Storm local node setup(Thanks Trishan), noted
the following exception during the start up of the receiver node. Is it
expected?

[2015-04-01 16:57:21,523] ERROR - {AsyncEventPublisher}  [CEP Receiver|
ExecPlan:PreprocessStats, TenantID:-1234]Error while trying retrieve
information from storm manager service

EndpointNotFoundException(message:No Storm Receiver for executionPlanName:
PreprocessStats of tenantId:-1234 for CEP Receiver form:10.100.0.19)

at
org.wso2.carbon.event.processor.common.storm.manager.service.StormManagerService$getStormReceiver_result.read(StormManagerService.java:3025)

at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)

at
org.wso2.carbon.event.processor.common.storm.manager.service.StormManagerService$Client.recv_getStormReceiver(StormManagerService.java:129)

at
org.wso2.carbon.event.processor.common.storm.manager.service.StormManagerService$Client.getStormReceiver(StormManagerService.java:114)

at
org.wso2.carbon.event.processor.common.util.AsyncEventPublisher$EndpointConnectionCreator.getEndpointFromManagerService(AsyncEventPublisher.java:187)

at
org.wso2.carbon.event.processor.common.util.AsyncEventPublisher$EndpointConnectionCreator.establishConnection(AsyncEventPublisher.java:276)

at
org.wso2.carbon.event.processor.common.util.AsyncEventPublisher$EndpointConnectionCreator.run(AsyncEventPublisher.java:285)

at java.lang.Thread.run(Thread.java:745)



On Wed, Mar 25, 2015 at 10:17 PM, Sriskandarajah Suhothayan 
wrote:

> Yes we can skip storm.yaml configuration for the single node
>
> Suho
>
> On Wed, Mar 25, 2015 at 10:01 PM, Tishan Dahanayakage 
> wrote:
>
>> ​Hi Iranga,
>> Documentation [2] is outdated as of the current implementation. We need
>> to change that appropriately. [3] explains how to set up a Storm Cluster.
>> But you can ignore storm.yaml configs if you are runinng in the localhost
>> as in the sample. You just need to bring up storm and zoo keeper nodes.
>> @Suho
>> I could not find any simple official documentation on running Storm on
>> single node. We can either create new guide or point to [3] and say that
>> user can skip storm.yaml configurations. WDYT?
>>
>> Thanks,
>> Tishan
>> ​
>>
>> On Wed, Mar 25, 2015 at 5:46 AM, Praneesha Chandrasiri <
>> pranee...@wso2.com> wrote:
>>
>>> Hi Iranga,
>>>
>>> Thanks for pointing this out!
>>>
>>> I will work on this.
>>>
>>> On Wed, Mar 25, 2015 at 6:11 PM, Iranga Muthuthanthri 
>>> wrote:
>>>
 I am trying out CEP Sample  based on [1] in local mode. In the
 perquisite section Step 2 mentions about the  storm deployment which points
 to the apache storm page.

  Would like to know if this means, it is needed to setup  and run a
 storm topology locally as mentioned in [2] by running

 org.wso2.carbon.event.processor.storm.jar , if so what would be the
 fully qualified class name?

 Suggest that the documentation could be made more descriptive.

 [1]
 https://docs.wso2.com/display/CEP400/Sample+2001+-+Simple+filter+query+with+Apache+Storm+deployment

 [2]
 https://docs.wso2.com/display/CEP400/Configuring+WSO2+CEP+to+Run+with+Apache+Storm





 --
 Thanks & Regards

 Iranga Muthuthanthri
 (M) -0777-255773
 Team Product Management


>>>
>>>
>>> --
>>> Thanks & Best Regards,
>>> *Praneesha Chandrasiri*
>>> *Technical Writer*
>>> *WSO2 Inc. *
>>> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
>>> *E-mail: pranee...@wso2.com *
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
>  *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 
Thanks & Regards

Iranga Muthuthanthri
(M) -0777-255773
Team Product Management
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] CodePlex ESB connector review

2015-04-01 Thread Shakila Sivagnanarajah
Hi Pumudu,

All methods are working fine with the patches given in [1].

[1] -[Dev] WSO2 ESB 4.8.1 HTTP Patch support.

Thank you.

On Wed, Apr 1, 2015 at 3:31 PM, Kesavan Yogarajah  wrote:

> Hi Shakila please find the patches from the following mail thread[1].
>
> [1] -[Dev] WSO2 ESB 4.8.1 HTTP Patch support
>
>
>
> Kesavan Yogarajah
> Associate Software Engineer
> WSO2 Inc.
>
> Mob: +94 779758021
>
> On Wed, Apr 1, 2015 at 3:10 PM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi Pumudu,
>>
>> If you are using any patches can you please update that on README.
>>
>> On Wed, Apr 1, 2015 at 3:06 PM, Pumudu Ruhunage  wrote:
>>
>>> Hi Shakila,
>>>
>>> AFAIK integration test resources are not user configurable. therefore,
>>> not required to document in user README. Regarding the test failures, i
>>> think it's due to some of the patches missing in your esb
>>> instance.integration tests are passing with patched esb and with given test
>>> resources.
>>> @Tharik, can you please help shakila with esb patches needed for
>>> codeplex connector?
>>>
>>> Regards,
>>>
>>> On Wed, Apr 1, 2015 at 11:33 AM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi Pumudu and Tharik,

 I have tried with the request bodies given in the connector, there are
 6 test cases failed. Please find the Log file here. In your connector, you
 are giving all inputs in 
 */codeplex/src/test/resources/artifacts/ESB/config/restRequests/codeplex
 *so you have to mention it in README. If anyone need to test this
 connector, he/she may needs to change the values in those files.

 Thank you.

 On Fri, Mar 20, 2015 at 9:26 AM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi,
>
> Thank you Pumudu.
>
> On Thu, Mar 19, 2015 at 9:31 PM, Pumudu Ruhunage 
> wrote:
>
>> Hi,
>>
>> We have fixed issues as requested. Please find codeplex connector
>> pull request[1] and jira[2]. Documentation has updated in jira.
>>
>> [1] https://github.com/wso2/esb-connectors/pull/83
>> [2] https://wso2.org/jira/browse/ESBCONNECT-31
>>
>> Regards,
>>
>> On Tue, Mar 10, 2015 at 5:24 PM, Pumudu Ruhunage 
>> wrote:
>>
>>> Hi Shakila,
>>>
>>> Currently I'm making necessary changes to test cases. i'll let you
>>> know once it's done.
>>>
>>> Regards,
>>>
>>> On Tue, Mar 10, 2015 at 2:40 PM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi Tharik and Pumudu,

 Can you please give a quick update on this?

 Thank you.

 On Wed, Feb 25, 2015 at 3:44 PM, Pumudu Ruhunage 
 wrote:

> Adding my correct email.
>
> On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Tharik,
>>
>> Ok, Go ahead.
>>
>>
>> On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka 
>> wrote:
>>
>>> Hi Shakila,
>>>
>>> We have removed and updated the Snapshot dependencies of the
>>> automation and integration. Since automation and integration 
>>> dependencies
>>> have been updated recently our old test cases (which were working 
>>> in last
>>> year) are getting failed now. So we will update test automation code
>>> accordingly and send a pull request.
>>>
>>> Regards,
>>>
>>> On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi Tharik and Pumudu,

 Please find the feedbacks regarding the CodePlex connector.

1. Some dependencies need to be changed.
2. Instead of SNAPSHOT versions, use stable versions for
libraries.
3. Please modify the pom to run the test cases in a single
build.
4. Format the code and send the pull request to
https://github.com/wso2/esb-connectors.


 Thank you

 --
 Shakila Sivagnanarajah
 Associate Software Engineer
 Mobile :+94 (0) 770 760240
 shak...@wso2.com

>>>
>>>
>>>
>>> --
>>>
>>> *Tharik Kanaka* | Associate Software Engineer
>>>
>>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>>
>>> Email: tha...@wso2.com | Web: www.wso2.com
>>>
>>
>>
>>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
> Pumudu Ruhunage
> Associate Software Engineer | WSO2 Inc
> M: 

Re: [Dev] CodePlex ESB connector review

2015-04-01 Thread Kesavan Yogarajah
Hi Shakila please find the patches from the following mail thread[1].

[1] -[Dev] WSO2 ESB 4.8.1 HTTP Patch support



Kesavan Yogarajah
Associate Software Engineer
WSO2 Inc.

Mob: +94 779758021

On Wed, Apr 1, 2015 at 3:10 PM, Shakila Sivagnanarajah 
wrote:

> Hi Pumudu,
>
> If you are using any patches can you please update that on README.
>
> On Wed, Apr 1, 2015 at 3:06 PM, Pumudu Ruhunage  wrote:
>
>> Hi Shakila,
>>
>> AFAIK integration test resources are not user configurable. therefore,
>> not required to document in user README. Regarding the test failures, i
>> think it's due to some of the patches missing in your esb
>> instance.integration tests are passing with patched esb and with given test
>> resources.
>> @Tharik, can you please help shakila with esb patches needed for codeplex
>> connector?
>>
>> Regards,
>>
>> On Wed, Apr 1, 2015 at 11:33 AM, Shakila Sivagnanarajah > > wrote:
>>
>>> Hi Pumudu and Tharik,
>>>
>>> I have tried with the request bodies given in the connector, there are 6
>>> test cases failed. Please find the Log file here. In your connector, you
>>> are giving all inputs in 
>>> */codeplex/src/test/resources/artifacts/ESB/config/restRequests/codeplex
>>> *so you have to mention it in README. If anyone need to test this
>>> connector, he/she may needs to change the values in those files.
>>>
>>> Thank you.
>>>
>>> On Fri, Mar 20, 2015 at 9:26 AM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi,

 Thank you Pumudu.

 On Thu, Mar 19, 2015 at 9:31 PM, Pumudu Ruhunage 
 wrote:

> Hi,
>
> We have fixed issues as requested. Please find codeplex connector pull
> request[1] and jira[2]. Documentation has updated in jira.
>
> [1] https://github.com/wso2/esb-connectors/pull/83
> [2] https://wso2.org/jira/browse/ESBCONNECT-31
>
> Regards,
>
> On Tue, Mar 10, 2015 at 5:24 PM, Pumudu Ruhunage 
> wrote:
>
>> Hi Shakila,
>>
>> Currently I'm making necessary changes to test cases. i'll let you
>> know once it's done.
>>
>> Regards,
>>
>> On Tue, Mar 10, 2015 at 2:40 PM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi Tharik and Pumudu,
>>>
>>> Can you please give a quick update on this?
>>>
>>> Thank you.
>>>
>>> On Wed, Feb 25, 2015 at 3:44 PM, Pumudu Ruhunage 
>>> wrote:
>>>
 Adding my correct email.

 On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Tharik,
>
> Ok, Go ahead.
>
>
> On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka 
> wrote:
>
>> Hi Shakila,
>>
>> We have removed and updated the Snapshot dependencies of the
>> automation and integration. Since automation and integration 
>> dependencies
>> have been updated recently our old test cases (which were working in 
>> last
>> year) are getting failed now. So we will update test automation code
>> accordingly and send a pull request.
>>
>> Regards,
>>
>> On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi Tharik and Pumudu,
>>>
>>> Please find the feedbacks regarding the CodePlex connector.
>>>
>>>1. Some dependencies need to be changed.
>>>2. Instead of SNAPSHOT versions, use stable versions for
>>>libraries.
>>>3. Please modify the pom to run the test cases in a single
>>>build.
>>>4. Format the code and send the pull request to
>>>https://github.com/wso2/esb-connectors.
>>>
>>>
>>> Thank you
>>>
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> *Tharik Kanaka* | Associate Software Engineer
>>
>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>
>> Email: tha...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



 --
 Pumudu Ruhunage
 Associate Software Engineer | WSO2 Inc
 M: +94 779 664493  | http://wso2.com

>>>
>>>
>>>
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>> Pumudu Ruhunage
>> Associate Software Engineer | WSO2 Inc
>> M: +94 779 664493  | http://wso2.com
>>
>
>
>
>

Re: [Dev] CodePlex ESB connector review

2015-04-01 Thread Shakila Sivagnanarajah
Hi Pumudu,

If you are using any patches can you please update that on README.

On Wed, Apr 1, 2015 at 3:06 PM, Pumudu Ruhunage  wrote:

> Hi Shakila,
>
> AFAIK integration test resources are not user configurable. therefore, not
> required to document in user README. Regarding the test failures, i think
> it's due to some of the patches missing in your esb instance.integration
> tests are passing with patched esb and with given test resources.
> @Tharik, can you please help shakila with esb patches needed for codeplex
> connector?
>
> Regards,
>
> On Wed, Apr 1, 2015 at 11:33 AM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi Pumudu and Tharik,
>>
>> I have tried with the request bodies given in the connector, there are 6
>> test cases failed. Please find the Log file here. In your connector, you
>> are giving all inputs in 
>> */codeplex/src/test/resources/artifacts/ESB/config/restRequests/codeplex
>> *so you have to mention it in README. If anyone need to test this
>> connector, he/she may needs to change the values in those files.
>>
>> Thank you.
>>
>> On Fri, Mar 20, 2015 at 9:26 AM, Shakila Sivagnanarajah > > wrote:
>>
>>> Hi,
>>>
>>> Thank you Pumudu.
>>>
>>> On Thu, Mar 19, 2015 at 9:31 PM, Pumudu Ruhunage 
>>> wrote:
>>>
 Hi,

 We have fixed issues as requested. Please find codeplex connector pull
 request[1] and jira[2]. Documentation has updated in jira.

 [1] https://github.com/wso2/esb-connectors/pull/83
 [2] https://wso2.org/jira/browse/ESBCONNECT-31

 Regards,

 On Tue, Mar 10, 2015 at 5:24 PM, Pumudu Ruhunage 
 wrote:

> Hi Shakila,
>
> Currently I'm making necessary changes to test cases. i'll let you
> know once it's done.
>
> Regards,
>
> On Tue, Mar 10, 2015 at 2:40 PM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Tharik and Pumudu,
>>
>> Can you please give a quick update on this?
>>
>> Thank you.
>>
>> On Wed, Feb 25, 2015 at 3:44 PM, Pumudu Ruhunage 
>> wrote:
>>
>>> Adding my correct email.
>>>
>>> On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi Tharik,

 Ok, Go ahead.


 On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka 
 wrote:

> Hi Shakila,
>
> We have removed and updated the Snapshot dependencies of the
> automation and integration. Since automation and integration 
> dependencies
> have been updated recently our old test cases (which were working in 
> last
> year) are getting failed now. So we will update test automation code
> accordingly and send a pull request.
>
> Regards,
>
> On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Tharik and Pumudu,
>>
>> Please find the feedbacks regarding the CodePlex connector.
>>
>>1. Some dependencies need to be changed.
>>2. Instead of SNAPSHOT versions, use stable versions for
>>libraries.
>>3. Please modify the pom to run the test cases in a single
>>build.
>>4. Format the code and send the pull request to
>>https://github.com/wso2/esb-connectors.
>>
>>
>> Thank you
>>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>



 --
 Shakila Sivagnanarajah
 Associate Software Engineer
 Mobile :+94 (0) 770 760240
 shak...@wso2.com

>>>
>>>
>>>
>>> --
>>> Pumudu Ruhunage
>>> Associate Software Engineer | WSO2 Inc
>>> M: +94 779 664493  | http://wso2.com
>>>
>>
>>
>>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
> Pumudu Ruhunage
> Associate Software Engineer | WSO2 Inc
> M: +94 779 664493  | http://wso2.com
>



 --
 Pumudu Ruhunage
 Associate Software Engineer | WSO2 Inc
 M: +94 779 664493  | http://wso2.com

>>>
>>>
>>>
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
> Pumudu Ruhunage
> Associate Software Engineer | WSO2 Inc
> M: +9

Re: [Dev] [MB] Unauthorized call! when calling a method in AndesAdminService in Message Broker

2015-04-01 Thread Chamalee De Silva
Thanks Hemika and Akalanka,




On Wed, Apr 1, 2015 at 2:56 PM, Hemika Kodikara  wrote:

> Hi Chamalee,
>
> I think you have to add your new stub to the following file.
>
>
> carbon-business-messaging/components/andes/org.wso2.carbon.andes.admin/src/main/resources/META-INF/services.xml
>
> as follows..
>
> 
>  locked="false">/permission/admin/manage/queue
> 
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Wed, Apr 1, 2015 at 2:50 PM, Chamalee De Silva 
> wrote:
>
>> Hi all,
>>
>> I am doing fast track training project in WSO2 Message Broker.
>> To dynamically update a queue, I wrote a method  called
>> "updatePermissionWithExclusiveConsumer" in AndesAdminService and
>> generated stubs for that.
>>
>>
>> When calling the stub method through the relevant JSP file it gives this
>> error.
>>
>> Can I know are there any other configurations to be done when adding a
>> method to the AndesAdminService or how to solve this issue?
>>
>>
>>
>> 
>>
>> *StackTrace: *
>>
>> [2015-04-01 14:38:16,524] ERROR {org.apache.axis2.engine.AxisEngine} -
>>  Unauthorized call!. AuthorizationAction has not been specified for
>> service:AndesAdminService, operation:updatePermissionWithExclusiveConsumer
>> org.apache.axis2.AxisFault: Unauthorized call!. AuthorizationAction has
>> not been specified for service:AndesAdminService,
>> operation:updatePermissionWithExclusiveConsumer
>> at
>> org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.invoke(AuthorizationHandler.java:72)
>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>> at
>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>> at
>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>> at
>> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>> at
>> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>> 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.andes.stub.AndesAdminServiceStub.updatePermissionWithExclusiveConsumer(AndesAdminServiceStub.java:1881)
>> at
>> org.apache.jsp.queues.update_005fqueue_005frole_005fpermissions_005fajaxprocessor_jsp._jspService(update_005fqueue_005frole_005fpermissions_005fajaxprocessor_jsp.java:109)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>> at
>> org.

Re: [Dev] CodePlex ESB connector review

2015-04-01 Thread Pumudu Ruhunage
Hi Shakila,

AFAIK integration test resources are not user configurable. therefore, not
required to document in user README. Regarding the test failures, i think
it's due to some of the patches missing in your esb instance.integration
tests are passing with patched esb and with given test resources.
@Tharik, can you please help shakila with esb patches needed for codeplex
connector?

Regards,

On Wed, Apr 1, 2015 at 11:33 AM, Shakila Sivagnanarajah 
wrote:

> Hi Pumudu and Tharik,
>
> I have tried with the request bodies given in the connector, there are 6
> test cases failed. Please find the Log file here. In your connector, you
> are giving all inputs in 
> */codeplex/src/test/resources/artifacts/ESB/config/restRequests/codeplex
> *so you have to mention it in README. If anyone need to test this
> connector, he/she may needs to change the values in those files.
>
> Thank you.
>
> On Fri, Mar 20, 2015 at 9:26 AM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi,
>>
>> Thank you Pumudu.
>>
>> On Thu, Mar 19, 2015 at 9:31 PM, Pumudu Ruhunage  wrote:
>>
>>> Hi,
>>>
>>> We have fixed issues as requested. Please find codeplex connector pull
>>> request[1] and jira[2]. Documentation has updated in jira.
>>>
>>> [1] https://github.com/wso2/esb-connectors/pull/83
>>> [2] https://wso2.org/jira/browse/ESBCONNECT-31
>>>
>>> Regards,
>>>
>>> On Tue, Mar 10, 2015 at 5:24 PM, Pumudu Ruhunage 
>>> wrote:
>>>
 Hi Shakila,

 Currently I'm making necessary changes to test cases. i'll let you know
 once it's done.

 Regards,

 On Tue, Mar 10, 2015 at 2:40 PM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Tharik and Pumudu,
>
> Can you please give a quick update on this?
>
> Thank you.
>
> On Wed, Feb 25, 2015 at 3:44 PM, Pumudu Ruhunage 
> wrote:
>
>> Adding my correct email.
>>
>> On Wed, Feb 25, 2015 at 2:20 PM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi Tharik,
>>>
>>> Ok, Go ahead.
>>>
>>>
>>> On Wed, Feb 25, 2015 at 12:20 PM, Tharik Kanaka 
>>> wrote:
>>>
 Hi Shakila,

 We have removed and updated the Snapshot dependencies of the
 automation and integration. Since automation and integration 
 dependencies
 have been updated recently our old test cases (which were working in 
 last
 year) are getting failed now. So we will update test automation code
 accordingly and send a pull request.

 Regards,

 On Fri, Feb 20, 2015 at 3:26 PM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Tharik and Pumudu,
>
> Please find the feedbacks regarding the CodePlex connector.
>
>1. Some dependencies need to be changed.
>2. Instead of SNAPSHOT versions, use stable versions for
>libraries.
>3. Please modify the pom to run the test cases in a single
>build.
>4. Format the code and send the pull request to
>https://github.com/wso2/esb-connectors.
>
>
> Thank you
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

>>>
>>>
>>>
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>> Pumudu Ruhunage
>> Associate Software Engineer | WSO2 Inc
>> M: +94 779 664493  | http://wso2.com
>>
>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



 --
 Pumudu Ruhunage
 Associate Software Engineer | WSO2 Inc
 M: +94 779 664493  | http://wso2.com

>>>
>>>
>>>
>>> --
>>> Pumudu Ruhunage
>>> Associate Software Engineer | WSO2 Inc
>>> M: +94 779 664493  | http://wso2.com
>>>
>>
>>
>>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



-- 
Pumudu Ruhunage
Associate Software Engineer | WSO2 Inc
M: +94 779 664493  | http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Unauthorized call! when calling a method in AndesAdminService in Message Broker

2015-04-01 Thread Hemika Kodikara
Hi Chamalee,

I think you have to add your new stub to the following file.

carbon-business-messaging/components/andes/org.wso2.carbon.andes.admin/src/main/resources/META-INF/services.xml

as follows..


/permission/admin/manage/queue


Regards,
Hemika

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Wed, Apr 1, 2015 at 2:50 PM, Chamalee De Silva  wrote:

> Hi all,
>
> I am doing fast track training project in WSO2 Message Broker.
> To dynamically update a queue, I wrote a method  called
> "updatePermissionWithExclusiveConsumer" in AndesAdminService and
> generated stubs for that.
>
>
> When calling the stub method through the relevant JSP file it gives this
> error.
>
> Can I know are there any other configurations to be done when adding a
> method to the AndesAdminService or how to solve this issue?
>
>
>
> 
>
> *StackTrace: *
>
> [2015-04-01 14:38:16,524] ERROR {org.apache.axis2.engine.AxisEngine} -
>  Unauthorized call!. AuthorizationAction has not been specified for
> service:AndesAdminService, operation:updatePermissionWithExclusiveConsumer
> org.apache.axis2.AxisFault: Unauthorized call!. AuthorizationAction has
> not been specified for service:AndesAdminService,
> operation:updatePermissionWithExclusiveConsumer
> at
> org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.invoke(AuthorizationHandler.java:72)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
> at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
> at
> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
> 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.andes.stub.AndesAdminServiceStub.updatePermissionWithExclusiveConsumer(AndesAdminServiceStub.java:1881)
> at
> org.apache.jsp.queues.update_005fqueue_005frole_005fpermissions_005fajaxprocessor_jsp._jspService(update_005fqueue_005frole_005fpermissions_005fajaxprocessor_jsp.java:109)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
> at
> org.apache.catalina.core.StandardHostValve.invoke(Standard

[Dev] [MB] Unauthorized call! when calling a method in AndesAdminService in Message Broker

2015-04-01 Thread Chamalee De Silva
Hi all,

I am doing fast track training project in WSO2 Message Broker.
To dynamically update a queue, I wrote a method  called
"updatePermissionWithExclusiveConsumer" in AndesAdminService and generated
stubs for that.


When calling the stub method through the relevant JSP file it gives this
error.

Can I know are there any other configurations to be done when adding a
method to the AndesAdminService or how to solve this issue?




*StackTrace: *

[2015-04-01 14:38:16,524] ERROR {org.apache.axis2.engine.AxisEngine} -
 Unauthorized call!. AuthorizationAction has not been specified for
service:AndesAdminService, operation:updatePermissionWithExclusiveConsumer
org.apache.axis2.AxisFault: Unauthorized call!. AuthorizationAction has not
been specified for service:AndesAdminService,
operation:updatePermissionWithExclusiveConsumer
at
org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.invoke(AuthorizationHandler.java:72)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
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.andes.stub.AndesAdminServiceStub.updatePermissionWithExclusiveConsumer(AndesAdminServiceStub.java:1881)
at
org.apache.jsp.queues.update_005fqueue_005frole_005fpermissions_005fajaxprocessor_jsp._jspService(update_005fqueue_005frole_005fpermissions_005fajaxprocessor_jsp.java:109)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ex

Re: [Dev] Invitation: [Code review] Publisher - Output Adapter UI @ Wed Apr 1, 2015 12pm - 1pm (ramin...@wso2.com)

2015-04-01 Thread Ramindu De Silva
Hi all,

Please find the code review notes as follows.



polling interval in the UI hint - seconds

output event adapter run time exception should be changed to configuration
exception

tenantID - don't keep a reference of the tenantID.
you should be able to use it in the needed place by using the tenant flow

create an array other than a list for event component list because you know
the size which contains only objects

internally u hv a link list, that should be array of objects containing
size of meta, payload, etc,.
keep those objects with time

properly synchronize link list implementation or use a link blocking queue
in UIEventApadter

event queue size cannot be constant, it should be taken from the system and
it
should be configurable
if no configuration available - use default - Log and say size 30 is using

sending one event by event is wrong
you should not send per event. construct all and send as one.
5 events comes once - then send all at once
(same logic like in http)

convert everything to string
2 events - create strings from those
same conversion need to be done once - and reuse it

send the same array and iterate and check whether any data exists.. without
sending boolean thing
JSON  - time, data, boolean

INDEXZERO, one… 2 also has to be in one format
eg: 2 should be INDEXTWO

update method “getOSGIService()” in SupertenentEventRetrieverEndPoint

check websocket changes

take stream id creating parameters to the top

no sun related codes in web.xml - use a common one

we need to stop passing the tenant id
when you are deploying the webapp you get the tenant configuration at that
level
get tenant id from the tenant flow
check dilinis latest code


Best Regards,

On Wed, Apr 1, 2015 at 12:00 PM, Damith Wickramasinghe 
wrote:

> more details »
> 
> [Code review] Publisher - Output Adapter UI
> *When*
> Wed Apr 1, 2015 12pm – 1pm Colombo
> *Where*
> LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212 (map
> 
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/code-review
> 
> *Calendar*
> ramin...@wso2.com
> *Who*
> •
> Damith Wickramasinghe - organizer
> •
> Sriskandarajah Suhothayan
> •
> Ramindu De Silva
> •
> Rajeev Sampath
> •
> Tharik Kanaka
> •
> Mohanadarshan Vivekanandalingam
> •
> Dilini Muthumala
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google Calendar 
>
> You are receiving this email at the account ramin...@wso2.com because you
> are subscribed for invitations on calendar ramin...@wso2.com.
>
> To stop receiving these emails, please log in to
> https://www.google.com/calendar/ and change your notification settings
> for this calendar.
>



-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 772339350
mob: +94 782731766

On Wed, Apr 1, 2015 at 12:00 PM, Damith Wickramasinghe 
wrote:

> more details »
> 
> [Code review] Publisher - Output Adapter UI
> *When*
> Wed Apr 1, 2015 12pm – 1pm Colombo
> *Where*
> LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212 (map
> 
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/code-review
> 
> *Calend

Re: [Dev] Using LogViewerClient in Integration Tests

2015-04-01 Thread Saneth Dharmakeerthi
Hi Maheeka,

You can filter the logs while iterating over the logs using
"logEvent.getLogTime()" which return the logged time in the format of
"2015-04-01 14:16:07,187". You need to covert  this to a timestamp and
filter only  logs that was created within the test method scope.


Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Wed, Apr 1, 2015 at 1:05 PM, Waruna Perera  wrote:

> Hi Maheeka,
>
> Avoid using sleep. Use  time out  function.
>
> Thanks,
>
> On Wed, Apr 1, 2015 at 12:35 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi Waruna,
>>
>> In that case, what would be the alternative to do the above? Since
>> iterating over the new logs (using before length and after length) also did
>> not work for me. Or is the issue only in a delay? If so a sleep would solve
>> the issue?
>>
>> Thanks,
>> Maheeka
>>
>> Maheeka Jayasuriya
>> Software Engineer
>> Mobile : +9450661
>>
>> On Wed, Apr 1, 2015 at 11:20 AM, Waruna Perera  wrote:
>>
>>> Hi Maheeka,
>>>
>>> We have encountered issue with delay of clear logs in our test cases at
>>> times. So you will have to consider that.
>>>
>>> Thanks,
>>>
>>> Waruna
>>>
>>> On Wed, Apr 1, 2015 at 11:15 AM, Maheeka Jayasuriya 
>>> wrote:
>>>
 Hi,

 I want to read the logs in ESB to do perform a few assertions. However,
 since I have multiple test methods in the test case, I am unable to find
 the correct required log.

 To further elaborate, my first test case prints 20 of required logs and
 the second test case prints 100. When I iterate through all logs, although
 logViewer.clearLogs() is done at the start of each method, the count for
 the second run test case is 120 and not 20 or 100 (I am verifying the log
 count in the test case). I verified with the log length before and after
 clearLogs() is called and the length remains the same. What is the
 expectation of the clearLogs() method. Does it clear all the system logs or
 something else?

 If I use the length of the logs before and after the test functionality
 and iterate through that, the required logs are not available.

 Also believe, logViewer.getAllRemoteSystemLogs() is the successor to
 deprecated method logViewer.getAllSystemLogs() ?

 Thanks,
 Maheeka

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> 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


Re: [Dev] Integration Testing for an Admin Service

2015-04-01 Thread Saneth Dharmakeerthi
Hi Pubudu,

You have to write you test cases using TestNG freamwork and call the your
admin service via a client and verify them inside the test case.
 For that you can write your test cases  inside integration module of the
product you are going to deploy the service.
You have to write your own admin clients to access your service, so you can
use those admin clients inside the test case and write your test logic.
For more information [1] [2][3].

Let us know your exact requirement of writing this test case(Test for a new
feature.. etc.. ) and which area you got stuck.

[1] https://docs.wso2.com/display/TA430/WSO2+Test+Automation+Documentation
[2]
 
http://wso2.com/library/articles/2014/03/platform-test-automation-using-wso2-test-automation-framework/

[3]
http://wso2.com/library/articles/2014/06/introducing-automated-tests-for-wso2-products/



Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Wed, Apr 1, 2015 at 11:52 AM, Pubudu Dodangoda  wrote:

> Hi,
>
> How can I perform $subject?
>
> Note : I followed the following article to write the service
>
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>
> Thanks
> --
> Pubudu Dodangoda
> BSc Engineering(Hon's) Undergraduate
> Department of Computer Science Engineering
> University of Moratuwa
> 0716053681 / 0775192994
>
> ___
> 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


Re: [Dev] About boxcarring and set-cookie issue.

2015-04-01 Thread Harsha Kumara
Hi Jorge,

There was some fixes went for the the data services components which is
available in DSS 3.2.2 release to support box caring with ESB. AS 5.2.1
does not contain those fixes. You may try this with the DSS 3.2.2. You can
follow the steps mentioned in [1].

[1] -
http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html

Thanks,
Harsha

On Wed, Apr 1, 2015 at 12:44 AM, Jorge  wrote:

> In my dataservice the begin_boxcar has only only an input message, without
> and output message.
>
> porttype:
> Control operation
> for beginning a boxcarring session message="ns0:begin_boxcarRequest"
> wsaw:Action="urn:begin_boxcar"/>
>
> binding:
>  soapAction="urn:begin_boxcar" style="document"/> use="literal"/>
>
> Without the  type="STRING" description="solo salida"/> the proxy raise several error in
> console.
>
> Jorge.
>
> 2015-03-31 14:37 GMT-04:00 Harsha Kumara :
>
> Hi Jorge,
>>
>> I'm not sure this is because you have call the begin_boxcar operation as
>> out only operation. Just remove it and try. Also you can find complete
>> working scenario in [1].
>>
>> [1] -
>> http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html
>>
>> Thanks,
>> Harsha
>>
>> On Tue, Mar 31, 2015 at 11:44 PM, Jorge  wrote:
>>
>>> Hi all.
>>>
>>> I call a begin boxcarring operation in a dataservice deployed in WSO2 AS
>>> 5.2.1 using this config in a proxy service deployed in ESB 4.8.1
>>>
>>>  
>>>  
>>> 
>>>>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope
>>> 
>>> ">
>>>   
>>>  http://jorgesoftdevelop.org
>>> 
>>> "/>
>>>   
>>>
>>> 
>>> 
>>>  
>>>  >> type="STRING"/>
>>>  
>>> 
>>>>> uri="http://localhost:/services/ActualizarUsuariosBloqueados/
>>> 
>>> "/>
>>> 
>>>  
>>>
>>> And I can see the response using tcpmon:
>>>
>>> HTTP/1.1 202 Accepted
>>> Set-Cookie: JSESSIONID=2D2B1404523D0233E2B445E1BC315F7A; Path=/; HttpOnly
>>> Content-Type: text/xml;charset=UTF-8
>>> Transfer-Encoding: chunked
>>> Date: Sat, 28 Mar 2015 07:03:23 GMT
>>> Server: WSO2 Carbon Server
>>>
>>>
>>> When I try to get the Set-Cookie value using this property:
>>>  
>>>
>>> I receive a null value.
>>>
>>> Any idea?
>>>
>>> Regards,
>>>   Jorge.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using LogViewerClient in Integration Tests

2015-04-01 Thread Waruna Perera
Hi Maheeka,

Avoid using sleep. Use  time out  function.

Thanks,

On Wed, Apr 1, 2015 at 12:35 PM, Maheeka Jayasuriya 
wrote:

> Hi Waruna,
>
> In that case, what would be the alternative to do the above? Since
> iterating over the new logs (using before length and after length) also did
> not work for me. Or is the issue only in a delay? If so a sleep would solve
> the issue?
>
> Thanks,
> Maheeka
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> On Wed, Apr 1, 2015 at 11:20 AM, Waruna Perera  wrote:
>
>> Hi Maheeka,
>>
>> We have encountered issue with delay of clear logs in our test cases at
>> times. So you will have to consider that.
>>
>> Thanks,
>>
>> Waruna
>>
>> On Wed, Apr 1, 2015 at 11:15 AM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi,
>>>
>>> I want to read the logs in ESB to do perform a few assertions. However,
>>> since I have multiple test methods in the test case, I am unable to find
>>> the correct required log.
>>>
>>> To further elaborate, my first test case prints 20 of required logs and
>>> the second test case prints 100. When I iterate through all logs, although
>>> logViewer.clearLogs() is done at the start of each method, the count for
>>> the second run test case is 120 and not 20 or 100 (I am verifying the log
>>> count in the test case). I verified with the log length before and after
>>> clearLogs() is called and the length remains the same. What is the
>>> expectation of the clearLogs() method. Does it clear all the system logs or
>>> something else?
>>>
>>> If I use the length of the logs before and after the test functionality
>>> and iterate through that, the required logs are not available.
>>>
>>> Also believe, logViewer.getAllRemoteSystemLogs() is the successor to
>>> deprecated method logViewer.getAllSystemLogs() ?
>>>
>>> Thanks,
>>> Maheeka
>>>
>>> Maheeka Jayasuriya
>>> Software Engineer
>>> Mobile : +9450661
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge pull request

2015-04-01 Thread Vidura Mudalige
Hi,

Please review the pull request [1].

[1]. https://github.com/wso2/product-ues/pull/17

Thank you!

-- 

*Vidura Mudalige*
Software Engineering Intern
WSO2 Inc.; http://wso2.com

Mobile: *+94 77 2323175*
Email : vidu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using LogViewerClient in Integration Tests

2015-04-01 Thread Maheeka Jayasuriya
Hi Waruna,

In that case, what would be the alternative to do the above? Since
iterating over the new logs (using before length and after length) also did
not work for me. Or is the issue only in a delay? If so a sleep would solve
the issue?

Thanks,
Maheeka

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Wed, Apr 1, 2015 at 11:20 AM, Waruna Perera  wrote:

> Hi Maheeka,
>
> We have encountered issue with delay of clear logs in our test cases at
> times. So you will have to consider that.
>
> Thanks,
>
> Waruna
>
> On Wed, Apr 1, 2015 at 11:15 AM, Maheeka Jayasuriya 
> wrote:
>
>> Hi,
>>
>> I want to read the logs in ESB to do perform a few assertions. However,
>> since I have multiple test methods in the test case, I am unable to find
>> the correct required log.
>>
>> To further elaborate, my first test case prints 20 of required logs and
>> the second test case prints 100. When I iterate through all logs, although
>> logViewer.clearLogs() is done at the start of each method, the count for
>> the second run test case is 120 and not 20 or 100 (I am verifying the log
>> count in the test case). I verified with the log length before and after
>> clearLogs() is called and the length remains the same. What is the
>> expectation of the clearLogs() method. Does it clear all the system logs or
>> something else?
>>
>> If I use the length of the logs before and after the test functionality
>> and iterate through that, the required logs are not available.
>>
>> Also believe, logViewer.getAllRemoteSystemLogs() is the successor to
>> deprecated method logViewer.getAllSystemLogs() ?
>>
>> Thanks,
>> Maheeka
>>
>> Maheeka Jayasuriya
>> Software Engineer
>> Mobile : +9450661
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev