Re: [Dev] About Recommendation Solution for WSO2 Machine Learner for GSOC 2015

2015-03-18 Thread Nivethika Mahasivam
Hi , 
Thank you for the response. 
I have a small clarification about APIs. 
b) reportView(user, item) - what does this stand for? What functional
scenario it will work on? 
Does this mean the user checked an item, (may be add to cart) but didn't
purchase? 


Thank you. 
Nivethika M



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/Re-About-Recommendation-Solution-for-WSO2-Machine-Learner-for-GSOC-2015-tp114625p114813.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Fathima Dilhasha
The service is listed in OSGI console. Where else can I check to see why
the service is not found?

*M.N.F. Dilhasha*
Software Engineering Intern | *WSO2 Lanka*

email   :
*dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

On Wed, Mar 18, 2015 at 2:37 PM, Danushka Fernando danush...@wso2.com
wrote:

 Null pointer is coming from Carbon Context. So seems somehow osgi service
 is not found.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 18, 2015 at 1:18 PM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi,

 Yeah 'createProject' is a method I introduced. I've patched it to my
 AppFactory instance.
 Okay, I will debug backend code and see.

 Thanks.

 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 1:04 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi,

 Is this 'createProject' method implemented by you  inside
 IssueTrackerService ?? Because in my code I cannot see such a method in
 IssueTrackerService.
 You can debug the backend code to find out the place where NP occurs.


 On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi,

 I tried logging in between the steps.

 * tenantId and tenantDomain are not null
 * The null pointer exception takes place in the following line.

 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);

 Is it because the server cannot track the OSGI service I'm referring
 to?  (The service is listed in the OSGI cosole)

 How can I figure it out?

 Thanks.
 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi Mahesh,

 Thanks for the points. I'll work on those and see.

 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Sorry I missed this,
 getting modManager varialbe , put this befor getting the tenant
 domain.
 var modManager = jagg.module(manager);

 On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dilhasha,
 I think you havent got the tenant domain properly.

 you may use following to get tenant domain.
 var tenantDomain = modManager.getTenantDomain();

 you may use following to set tenant domain n id

 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);


  in between the steps you can put  info logs to see values, in that
 way you may be able to see whats null here.

 On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando 
 danush...@wso2.com wrote:

 Few points

1. Did you check whether your osgi bundle is activated or not?
May be that's the issue. Seems it cannot find the osgi service.
2. When start tenant flow in setTenantDomain method there is a
another signature which will take in tenantDomain (String) and
resolveTenantID (boolean) parameters. You can use that instead of 
 setting
tenantID manually.
3. The way you have included the module, AFAIR that's not the
way to refer to a module. Refer to other places that we have done 
 such a
thing.


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha 
 dilha...@wso2.com wrote:

 Hi Mahesh,

 Thanks for the response.

 Following is the code in saveConfig.jag

 include(/jagg/jagg.jag);
 include(/jagg/constants.jag);
 include(/jagg/config_reader.jag);
 include(/modules/manager/manager.jag);

 (function () {

 var carbon = require('carbon');
 var log = new Log(module/issuetracker/saveConfig.jag);
 var multitenancy = carbon.multitenancy;
 var server = carbon.server;



 var context=multitenancy.getPrivilegedCarbonContext();
 var tenantDomain = getTenantDomain();
 var tenantId=getTenantId();

 var issueTrackerConfig = 
 Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations;
 var issueConfig=new issueTrackerConfig();
 issueConfig.setIssueTrackerinstanceUrl(some url);

 try{

 context.startTenantFlow();
 context.getThreadLocalCarbonContext().setTenantId(tenantId);
 
 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain);
 
 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);
 }catch(e){
 log.error(e);
 }finally{
 context.endTenantFlow();
 }




 }());



 The getTenantDomain,getTenantId functions are in a 

Re: [Dev] [GSoC-2015] Proposal 13: ESB - End-to-end Message Tracing Support

2015-03-18 Thread Isuru Udana
Hi Chanaka,

Thanks for the interest in the project.
Please keep us updated on your progress. And raise any questions you have
in understanding the project scope.

Thanks.

On Wed, Mar 4, 2015 at 11:20 AM, Chanaka Cooray chana...@wso2.com wrote:

 Hi,

 I am Chanaka Sampath from Department of Computer Science and Engineering,
 University of Moratuwa. Currently I'm an intern at WSO2 Inc.

 I am interested in proposal [1] and looking forward to contribute. I am
 already familiar with the wso2 ESB. I will go through the  given references
 and contact you for further details.

 [1]
 https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal13:ESB-End-to-endMessageTracingSupport

 Thanks,
 --
 *Chanaka Sampath Cooray*
 Software Engineering Intern,
 WSO2 Lanka (pvt) Ltd.
 Mobile:+94713614884

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




-- 
*Isuru Udana*
Senior
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
twitter: http://twitter.com/isudana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.

2015-03-18 Thread Tharindu Dharmarathna
Hi Saneth,

This issue is already fixed by lakmali on monday.

Thanks
Tharindu

On Wed, Mar 18, 2015 at 4:48 PM, Saneth Dharmakeerthi sane...@wso2.com
wrote:

 Hi,

 I  am getting Empty File Attachment error when try to add Doc to API.
 Following are the doc type I am using. Find the screen capture[1]

 Doc Type: How to  and  source: In-line

 Is there any reason for this?

 [1]​
  Screen Shot 2015-03-18 at 4.37.29 PM.png
 https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UTjZDdmFkaFo0bzQ/edit?usp=drive_web
 ​
 Thanks and Best Regards,

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




-- 

*Tharindu Dharmarathna*Associate Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


[Dev] [MB] Out of memory error in long running mb cluster

2015-03-18 Thread Pumudu Ruhunage
Hi,

I came across out of memory exception while doing long running test on mb
cluster with oracle database as message store. Following was the scenario i
tested.

1. Start two clustered mb nodes with serializers (nodeA(coordinator),
nodeB).
2. Add queue subscriber MyQueue1, to nodeB and publish MyQueue1
messages to nodeA with average 1500 TPS.
3. Add queue subscriber MyQueue2 to nodeA and publish MyQueue2 messages
to nodeB with average 1000 TPS.
4. After around 14 hours, om exception has thrown from nodeA and all
operations has halted.

After analysing heap dump i found which thread has thrown the error, and
it's as follows.

pool-25-thread-1 prio=5 tid=174 RUNNABLE
at java.lang.OutOfMemoryError.init(OutOfMemoryError.java:48)
at java.lang.Long.toString(Long.java:267)
at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
   Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1
   Local Variable: com.google.gson.JsonArray#1
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
at com.google.gson.internal.Streams.parse(Streams.java:44)
at com.google.gson.JsonParser.parse(JsonParser.java:84)
at com.google.gson.JsonParser.parse(JsonParser.java:59)
   Local Variable: com.google.gson.stream.JsonReader#1
at com.google.gson.JsonParser.parse(JsonParser.java:45)
at
org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53)
at
org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33)
at
com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
   Local Variable:
com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1
at
com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221)
at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156)
at com.hazelcast.map.MapService.toObject(MapService.java:872)
at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53)
at
org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347)
   Local Variable: java.util.TreeSet#1
at
org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56)
   Local Variable: java.lang.String#2380
   Local Variable: java.lang.String#2379
at
org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440)
   Local Variable:
org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2
at
org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429)
   Local Variable:
org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1
   Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
   Local Variable:
org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
   Local Variable: org.apache.thrift.transport.TSocket#2
   Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2
   Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3
   Local Variable:
org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   Local Variable:
org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1
   Local Variable: java.util.concurrent.ThreadPoolExecutor#26
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   Local Variable: java.util.concurrent.ThreadPoolExecutor$Worker#41
at java.lang.Thread.run(Thread.java:745)

Have anyone faced similar issue ? What is the best method to handle this
out of memory issue?


Thanks,
-- 
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] Project proposal for Data Wrangler extension for WSO2 Machine Learner

2015-03-18 Thread Nirmal Fernando
I shared a presentation with you.

On Wed, Mar 18, 2015 at 4:32 PM, Tharinda Ehelepola tharinda...@gmail.com
wrote:

 I need some knowledge about WSO2 machine learner. Earlier you told me that 
 WSO2
 Machine Learner which is a new product that you are building these days. I
 think I should have some basic idea about it for the project proposal. Can
 you please tell me about it.

 On Wed, Mar 18, 2015 at 7:40 AM, Tharinda Ehelepola tharinda...@gmail.com
  wrote:

 Thanks Nirmal I'll go through.

 On Wed, Mar 18, 2015 at 5:08 AM, Nirmal Fernando nir...@wso2.com wrote:

 Sample proposal of mine:
 http://nirmalfdo.blogspot.com/search/label/GSoC-2011

 On Wed, Mar 18, 2015 at 10:37 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Seems like we don't have any template as such, but you could come up
 with a structure that makes sense.



 On Wed, Mar 18, 2015 at 8:49 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Hi Tharindu,

 Let me check and get back to you.

 On Wed, Mar 18, 2015 at 2:10 AM, Tharinda Ehelepola 
 tharinda...@gmail.com wrote:

 Hi,
 I studied about proposal 17 last few days. Now I have proper idea
 about that project. In order to prepare the proposal It's better if I 
 have
 some template or last year proposals. Can you provide me some links.

 Thank you,
 Tharinda.




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/







-- 

Thanks  regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Product-ESB dependency not satisfy with the kernel 4.4.0

2015-03-18 Thread Prabath Ariyarathna
Hi Carbon Team.

I got following error while compiling product-esb with kernel 4.4.0

Installation failed.

Cannot complete the install because one or more required items could not be
found.

 Software being installed: WSO2 Carbon - GIT Based Deployment Synchronizer
Feature 4.3.6 (org.wso2.carbon.deployment.synchronizer.git.feature.group
4.3.6)

 Missing requirement: WSO2 Carbon - Event Server Feature 4.3.6
(org.wso2.carbon.event.server.feature.group 4.3.6) requires
'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but it could not
be found

 Cannot satisfy dependency:

  From: WSO2 Carbon - GIT Based Deployment Synchronizer Feature 4.3.6
(org.wso2.carbon.deployment.synchronizer.git.feature.group 4.3.6)

  To: org.wso2.carbon.deployment.synchronizer.server.feature.group
[4.3.6,4.4.0)

 Cannot satisfy dependency:

  From: WSO2 Carbon - Deployment Synchronizer Server Feature 4.3.6
(org.wso2.carbon.deployment.synchronizer.server.feature.group 4.3.6)

  To: org.wso2.carbon.event.server.feature.group [4.3.6,4.4.0)

Application failed, log file location:
/Users/prabath/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1426663535408.log

any idea?

-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Email: prabat...@wso2.com prabat...@wso2.com*

*Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

*Flicker : https://www.flickr.com/photos/47759189@N08
https://www.flickr.com/photos/47759189@N08*

*Mobile: +94 77 699 4730 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: App Factory API

2015-03-18 Thread Samith Dassanayake
Hi Dulitha,
When you are doing the login operation, you should not replace  
apps.cloud.wso2.com with your production url. The API's defined in [1] are
to used to access the *App Cloud*. For example as in [2] you can login to
the app cloud, by using [3] you can get the your application information by
setting *applicationKey*(In your case it seems like your application key is
dmbk1991) parameter, [4] represents api to create a new application etc...
Production URL represents the deployment of your application.
Hope this resolved your issue.
[1] https://docs.wso2.com/display/AppCloud/Published+APIs
[2]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-Login
[3]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-getAppInfo
[4]
https://docs.wso2.com/display/AppCloud/Published+APIs#PublishedAPIs-createNewApplication

Thanks,
Samith
-- Forwarded message --
From: Dulitha Kularathne dulithameth...@gmail.com
Date: Mon, Mar 16, 2015 at 8:04 AM
Subject: Re: [Dev] App Factory API
To: Samith Dassanayake sam...@wso2.com


Hi Samith!!
I tried doing the login operation. I used the URL part replaced with the
production URL as shown in the guide. And gave the username and password as
shown.Thanks.

On Thu, Mar 12, 2015 at 7:21 PM, Samith Dassanayake sam...@wso2.com wrote:

 Hi Dulitha,
 I assume your production URL is [1] and it seems it has successfully
 deployed in the production stage. Could you please elaborate on this more.
 When did you get this error? I mean what are the operations(api cals) that
 you've tried and resulted in above error.

 [1] * dmbk1991.dmbk1991.wso2apps.com
 http://dmbk1991.dmbk1991.wso2apps.com/*

 Thanks,
 Samith

 On Tue, Mar 10, 2015 at 9:44 PM, Dulitha Kularathne 
 dulithameth...@gmail.com wrote:

 Hi !!

  I created two apps in the first one I changed the production URL
 manually and the second one I kept the default URL as it is. I got the
 scrren shots and I will send u them in the evening if necessary. i followed
 the guide and did exactly the same. But  I did not have many users for each
 role. I had the same person for every role assigned. So after promoting the
 app to the next stage I logged out and logged when I was doing the second
 app. No deploy button was appeared as shown in the guide and instead the
 notifications on the right of the screen showed that it is deployed in the
 next stage(eg:- in production). So I thought that was because I did not
 assign separate users for roles. I also disabled auto build and auto deploy
 in the beginning.

 I used curl to call the APIs from the command line.



 Thanks.

 On Wed, Mar 11, 2015 at 10:09 AM, Dulitha Kularathne 
 dulithameth...@gmail.com wrote:

 Hi Harsha!!

  I created two apps in the first one I changed the production URL
 manually and the second one I kept the default URL as it is. I got the
 scrren shots and I will send u them in the evening if necessary. i followed
 the guide and did exactly the same. But  I did not have many users for each
 role. I had the same person for every role assigned. So after promoting the
 app to the next stage I logged out and logged when I was doing the second
 app. No deploy button was appeared as shown in the guide and instead the
 notifications on the right of the screen showed that it is deployed in the
 next stage(eg:- in production). So I thought that was because I did not
 assign separate users for roles. I also disabled auto build and auto deploy
 in the beginning.

 I used curl to call the APIs from the command line.



 Thanks.

 On Tue, Mar 10, 2015 at 10:20 PM, Harsha Thirimanna hars...@wso2.com
 wrote:

 Hi Dulitha,

 Is this the production URL that you are getting from AF or did you
 change production URL manually ?


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770  ,
 +94 *
 *774617784twitter: **http://twitter.com/
 http://twitter.com/afkham_azeez*
 *harshathirimannlinked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

 *Lean . Enterprise . Middleware*


 On Tue, Mar 10, 2015 at 7:10 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi Dulitha
 Can you tell us the steps that exactly you followed. Screenshots or
 screen cast would be helpful.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Tue, Mar 10, 2015 at 5:24 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dulitha,

 I really appreciate your interest and effort on wso2appfactory gsoc
 project.
 No offense but please try always to use dev@ mail group to ask
 questions you have.  :)
 Then your question will be exposed to a wider communitiy and the
 probability of getting what you expected is high.

 Regarding your error,
 where do you see this error ? in your browser ? i hope 

Re: [Dev] [MB] Out of memory error in long running mb cluster

2015-03-18 Thread Ramith Jayasinghe
Lets analyse the heap dump and see what caused the issue...
also check the metrics recorded (via matric library) when server went OOM.

On Wed, Mar 18, 2015 at 4:55 PM, Pumudu Ruhunage pum...@wso2.com wrote:

 Hi,

 I came across out of memory exception while doing long running test on mb
 cluster with oracle database as message store. Following was the scenario i
 tested.

 1. Start two clustered mb nodes with serializers (nodeA(coordinator),
 nodeB).
 2. Add queue subscriber MyQueue1, to nodeB and publish MyQueue1
 messages to nodeA with average 1500 TPS.
 3. Add queue subscriber MyQueue2 to nodeA and publish MyQueue2
 messages to nodeB with average 1000 TPS.
 4. After around 14 hours, om exception has thrown from nodeA and all
 operations has halted.

 After analysing heap dump i found which thread has thrown the error, and
 it's as follows.

 pool-25-thread-1 prio=5 tid=174 RUNNABLE
 at java.lang.OutOfMemoryError.init(OutOfMemoryError.java:48)
 at java.lang.Long.toString(Long.java:267)
 at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816)
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648)
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1
Local Variable: com.google.gson.JsonArray#1
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
 at com.google.gson.internal.Streams.parse(Streams.java:44)
 at com.google.gson.JsonParser.parse(JsonParser.java:84)
 at com.google.gson.JsonParser.parse(JsonParser.java:59)
Local Variable: com.google.gson.stream.JsonReader#1
 at com.google.gson.JsonParser.parse(JsonParser.java:45)
 at
 org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53)
 at
 org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
Local Variable:
 com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1
 at
 com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221)
 at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156)
 at com.hazelcast.map.MapService.toObject(MapService.java:872)
 at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53)
 at
 org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347)
Local Variable: java.util.TreeSet#1
 at
 org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56)
Local Variable: java.lang.String#2380
Local Variable: java.lang.String#2379
 at
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2
 at
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1
Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
 at
 org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
Local Variable: org.apache.thrift.transport.TSocket#2
Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2
Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
Local Variable:
 org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1
Local Variable: java.util.concurrent.ThreadPoolExecutor#26
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
Local Variable: java.util.concurrent.ThreadPoolExecutor$Worker#41
 at java.lang.Thread.run(Thread.java:745)

 Have anyone faced similar issue ? What is the best method to handle this
 out of memory issue?


 Thanks,
 --
 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




-- 
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] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Kala Weerawardana
Congrats Hemika :)

On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 regards,

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

 E: ram...@wso2.com


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




-- 
Kala C. Weerawardana
*Software Engineer - QA Team*
*WSO2 Inc. *
Mobile :  +94 (0) 716189886 +94 (0) 772877683
Blog : http://castakai.blogspot.com
k...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ES HTML Markup

2015-03-18 Thread Chanaka Jayasena
This looks good. Thank you for these HTML templates.

thanks,
Chanaka

On Wed, Mar 18, 2015 at 3:54 PM, Sharon David shar...@wso2.com wrote:

 HI chanaka,

 Attached here with is the main HTML framework for Enterprise Store.
 I have made the code responsive using bootstrap 3.


 --
 Sharon David
 Software Engineer - UI/UX  |   WSO2 Inc

 +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com




-- 
Chanaka Jayasena
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: chan...@wso2.com; cell: +94 77 785 5565
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Danushka Fernando
Null pointer is coming from Carbon Context. So seems somehow osgi service
is not found.

Thanks  Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Wed, Mar 18, 2015 at 1:18 PM, Fathima Dilhasha dilha...@wso2.com wrote:

 Hi,

 Yeah 'createProject' is a method I introduced. I've patched it to my
 AppFactory instance.
 Okay, I will debug backend code and see.

 Thanks.

 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 1:04 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi,

 Is this 'createProject' method implemented by you  inside
 IssueTrackerService ?? Because in my code I cannot see such a method in
 IssueTrackerService.
 You can debug the backend code to find out the place where NP occurs.


 On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi,

 I tried logging in between the steps.

 * tenantId and tenantDomain are not null
 * The null pointer exception takes place in the following line.

 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);

 Is it because the server cannot track the OSGI service I'm referring to?
  (The service is listed in the OSGI cosole)

 How can I figure it out?

 Thanks.
 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi Mahesh,

 Thanks for the points. I'll work on those and see.

 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Sorry I missed this,
 getting modManager varialbe , put this befor getting the tenant domain.
 var modManager = jagg.module(manager);

 On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dilhasha,
 I think you havent got the tenant domain properly.

 you may use following to get tenant domain.
 var tenantDomain = modManager.getTenantDomain();

 you may use following to set tenant domain n id

 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);


  in between the steps you can put  info logs to see values, in that
 way you may be able to see whats null here.

 On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando 
 danush...@wso2.com wrote:

 Few points

1. Did you check whether your osgi bundle is activated or not?
May be that's the issue. Seems it cannot find the osgi service.
2. When start tenant flow in setTenantDomain method there is a
another signature which will take in tenantDomain (String) and
resolveTenantID (boolean) parameters. You can use that instead of 
 setting
tenantID manually.
3. The way you have included the module, AFAIR that's not the
way to refer to a module. Refer to other places that we have done 
 such a
thing.


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha 
 dilha...@wso2.com wrote:

 Hi Mahesh,

 Thanks for the response.

 Following is the code in saveConfig.jag

 include(/jagg/jagg.jag);
 include(/jagg/constants.jag);
 include(/jagg/config_reader.jag);
 include(/modules/manager/manager.jag);

 (function () {

 var carbon = require('carbon');
 var log = new Log(module/issuetracker/saveConfig.jag);
 var multitenancy = carbon.multitenancy;
 var server = carbon.server;



 var context=multitenancy.getPrivilegedCarbonContext();
 var tenantDomain = getTenantDomain();
 var tenantId=getTenantId();

 var issueTrackerConfig = 
 Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations;
 var issueConfig=new issueTrackerConfig();
 issueConfig.setIssueTrackerinstanceUrl(some url);

 try{

 context.startTenantFlow();
 context.getThreadLocalCarbonContext().setTenantId(tenantId);
 
 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain);
 
 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);
 }catch(e){
 log.error(e);
 }finally{
 context.endTenantFlow();
 }




 }());



 The getTenantDomain,getTenantId functions are in a different jag
 file, which I have included (manager.jag).



 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 10:35 AM, Mahesh Chinthaka 
 mahe...@wso2.com wrote:

 Hi Dilhasha,

 This could be either not 

Re: [Dev] [Carbon] Carbon P2 Plugin issue - jars with different package name BUT same artifact IDs

2015-03-18 Thread Niranda Perera
Hi Sameera,

It seems like Carbon P2 plugin does not allow having same artifact ids in
different jars.

I created a separate orbit bundle with the following config,
groupIdorg.wso2.orbit.org.spark-project.protobuf/groupId
artifactIdprotobuf-java-wso2/artifactId
version2.5.0-spark.wso2v1/version

when I put that as a bundle-def, carbon p2 plugin picks both the jars.

so I see a few solutions here.
1. having a separate orbit bundle as above
2. make this jar (org.spark-project.protobuf:protobuf-java) a private
package in the spark core orbit bundle, since it is only used for spark
3. make the other jar (com.google.protobuf:protobuf-java) a provaet package
in the mesos bundle, since it is only used for mesos

please advise me on this.

thanks

On Mon, Mar 16, 2015 at 3:50 PM, Niranda Perera nira...@wso2.com wrote:

 Hi Sameera,

 the versions are 2.5.0-spark for org.spark-project.protobuf:protobuf-java and
 2.5.0 for com.google.protobuf:protobuf-java

 is there a workaround to include both these jars in the feature.xml?

 rgds

 On Mon, Mar 16, 2015 at 3:33 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Carbon-p2-plugin simply invoke Equinox P2 APIs to generate features? You
 can simply scan through the P2 plugin code and see.

 As per our offline chat, versions of these two jars are also very
 similar. That may be a problem

 https://github.com/wso2/maven-tools

 On Mon, Mar 16, 2015 at 9:58 AM, Niranda Perera nira...@wso2.com wrote:

 Hi all,

 I have come across an issue in carbon P2 plugin while creating a
 feature. Please consider the following scenario. [1]

 I need 2 jars to be bundled with the feature, from 2 different packages
 BUT with the same artifact ID. Please see the highlighted text.

 plugin
 groupIdorg.wso2.maven/groupId
 artifactIdcarbon-p2-plugin/artifactId
 executions
 execution
 id4-p2-feature-generation/id
 phasepackage/phase
 goals
 goalp2-feature-gen/goal
 /goals
 configuration

 idorg.wso2.carbon.analytics.spark.server/id

 propertiesFile../../../../etc/feature.properties/propertiesFile
 adviceFile
 properties

 propertyDeforg.wso2.carbon.p2.category.type:server
 /propertyDef

 propertyDeforg.eclipse.equinox.p2.type.group:false
 /propertyDef
 /properties
 /adviceFile
 bundles

 bundleDeforg.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.core/bundleDef

 bundleDeforg.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.admin/bundleDef

 bundleDeforg.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.utils/bundleDef

 bundleDeforg.wso2.apache.spark:spark-core_2.10/bundleDef

 bundleDeforg.wso2.apache.spark:spark-sql_2.10/bundleDef

 bundleDeforg.apache.commons:commons-lang3/bundleDef

 bundleDeforg.apache.commons:commons-math3/bundleDef

 bundleDeforg.scala-lang:scala-library/bundleDef

 bundleDeforg.scala-lang:scala-reflect/bundleDef

 bundleDefcom.codahale.metrics:metrics-json/bundleDef

 bundleDefcom.codahale.metrics:metrics-jvm/bundleDef

 bundleDefcom.codahale.metrics:metrics-core/bundleDef

 bundleDefcom.codahale.metrics:metrics-graphite/bundleDef

 bundleDefcom.fasterxml.jackson.core:jackson-databind/bundleDef

 bundleDefcom.fasterxml.jackson.core:jackson-core/bundleDef

 bundleDefcom.fasterxml.jackson.core:jackson-annotations/bundleDef

 bundleDefcom.esotericsoftware.kryo:kryo/bundleDef

 bundleDeforg.xerial.snappy:snappy-java/bundleDef

 bundleDefio.netty.wso2:netty-all/bundleDef

 bundleDefjavax.servlet.jsp:javax.servlet.jsp-api/bundleDef

 bundleDeforg.apache.tomcat.wso2:tomcat-servlet-api/bundleDef

 bundleDeforg.wso2.apache.hadoop:hadoop-client/bundleDef

 bundleDeforg.wso2.json4s:json4s-jackson_2.10/bundleDef

 bundleDeforg.eclipse.jetty:jetty-continuation/bundleDef

 bundleDeforg.eclipse.jetty:jetty-http/bundleDef

 bundleDeforg.eclipse.jetty:jetty-io/bundleDef

 bundleDeforg.eclipse.jetty:jetty-jndi/bundleDef

 bundleDeforg.eclipse.jetty:jetty-security/bundleDef

 bundleDeforg.eclipse.jetty:jetty-server/bundleDef

 bundleDeforg.eclipse.jetty:jetty-servlet/bundleDef

 bundleDeforg.eclipse.jetty:jetty-util/bundleDef

 bundleDeforg.eclipse.jetty:jetty-webapp/bundleDef

 bundleDeforg.eclipse.jetty:jetty-xml/bundleDef
 bundleDefio.netty:netty/bundleDef

 bundleDeforg.spark-project.protobuf:protobuf-java/bundleDef

  bundleDefcom.google.protobuf:protobuf-java/bundleDef


 bundleDeforg.wso2.uncommons.maths:uncommons-maths/bundleDef

 bundleDefcom.ning:compress-lzf/bundleDef

 bundleDefcom.google.guava:guava/bundleDef

 bundleDeforg.slf4j:slf4j-api/bundleDef

 

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

2015-03-18 Thread Tharinda Ehelepola
I need some knowledge about WSO2 machine learner. Earlier you told me that WSO2
Machine Learner which is a new product that you are building these days. I
think I should have some basic idea about it for the project proposal. Can
you please tell me about it.

On Wed, Mar 18, 2015 at 7:40 AM, Tharinda Ehelepola tharinda...@gmail.com
wrote:

 Thanks Nirmal I'll go through.

 On Wed, Mar 18, 2015 at 5:08 AM, Nirmal Fernando nir...@wso2.com wrote:

 Sample proposal of mine:
 http://nirmalfdo.blogspot.com/search/label/GSoC-2011

 On Wed, Mar 18, 2015 at 10:37 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Seems like we don't have any template as such, but you could come up
 with a structure that makes sense.



 On Wed, Mar 18, 2015 at 8:49 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Hi Tharindu,

 Let me check and get back to you.

 On Wed, Mar 18, 2015 at 2:10 AM, Tharinda Ehelepola 
 tharinda...@gmail.com wrote:

 Hi,
 I studied about proposal 17 last few days. Now I have proper idea
 about that project. In order to prepare the proposal It's better if I have
 some template or last year proposals. Can you provide me some links.

 Thank you,
 Tharinda.




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/




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


[Dev] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.

2015-03-18 Thread Saneth Dharmakeerthi
Hi,

I  am getting Empty File Attachment error when try to add Doc to API.
Following are the doc type I am using. Find the screen capture[1]

Doc Type: How to  and  source: In-line

Is there any reason for this?

[1]​
 Screen Shot 2015-03-18 at 4.37.29 PM.png
https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UTjZDdmFkaFo0bzQ/edit?usp=drive_web
​
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] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Milan Perera
Congratz Hemika...!!!

On Wed, Mar 18, 2015 at 2:03 PM, Kala Weerawardana k...@wso2.com wrote:

 Congrats Hemika :)

 On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 regards,

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

 E: ram...@wso2.com


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




 --
 Kala C. Weerawardana
 *Software Engineer - QA Team*
 *WSO2 Inc. *
 Mobile :  +94 (0) 716189886 +94 (0) 772877683
 Blog : http://castakai.blogspot.com
 k...@wso2.com

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




-- 
Milan Harindu Perera
Software Engineer
*WSO2, Inc*
(+94) 77 309 7088
lean . enterprise . middleware
http://lk.linkedin.com/in/milanharinduperera
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon] org.apache.jasper.JasperException when trying to access the Carbon Server URL

2015-03-18 Thread Thusitha Thilina Dayaratne
Hi,

I'm working on adding tomcat 8.0.20 support in Carbon platform. After
building the kernel When I'm trying to access the Carbon server url I'm
getting the following error.

org.apache.jasper.JasperException: The absolute uri:
 http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml
 or the jar files deployed with this application
 at
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55)
 at
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:277)
 at
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:75)
 at
 org.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath(TagLibraryInfoImpl.java:240)
 at
 org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:124)
 at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:411)
 at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:469)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1430)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:139)
 at
 org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
 at
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
 at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:570)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
 at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:175)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
 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:725)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:64)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
 at
 org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
 at
 org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
 at
 org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
 at
 org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
 at
 org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
 at org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
 at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
 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:725)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:64)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
 

Re: [Dev] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.

2015-03-18 Thread Saneth Dharmakeerthi
Hi Tharindu / Kala,

Thanks for the information.

Thanks and Best Regards,

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

On Wed, Mar 18, 2015 at 5:11 PM, Kala Weerawardana k...@wso2.com wrote:

 Hi Saneth,

 This issue is fixed in [1].

 [1] - https://wso2.org/jira/browse/APIMANAGER-3229

 Regards,
 Kala

 On Wed, Mar 18, 2015 at 4:48 PM, Saneth Dharmakeerthi sane...@wso2.com
 wrote:

 Hi,

 I  am getting Empty File Attachment error when try to add Doc to API.
 Following are the doc type I am using. Find the screen capture[1]

 Doc Type: How to  and  source: In-line

 Is there any reason for this?

 [1]​
  Screen Shot 2015-03-18 at 4.37.29 PM.png
 https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UTjZDdmFkaFo0bzQ/edit?usp=drive_web
 ​
 Thanks and Best Regards,

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




 --
 Kala C. Weerawardana
 *Software Engineer - QA Team*
 *WSO2 Inc. *
 Mobile :  +94 (0) 716189886 +94 (0) 772877683
 Blog : http://castakai.blogspot.com
 k...@wso2.com

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


[Dev] [APIM] Clarification about APIM Tier : throttle:MaximumCount

2015-03-18 Thread Saneth Dharmakeerthi
Hi APIM Team,

I need to clarify some information about *throttle:MaximumCount*

If Tier  throttle:MaximumCount is set to 20 and UnitTime is  set to 6
(assume we apply bellow throttle value to all API-level, Application-level
and Resource-level )
ex:
   throttle:MaximumCount50/throttle:MaximumCount
   throttle:UnitTime6/throttle:UnitTime

   1. whether the api invocation cut off exactly from 51th request
   within 6 milliseconds ?
   2. If not, is there any percentage or amount that it can accept
additional requests?

Also if there is a document that has detail information about this, please
share with me.

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] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.

2015-03-18 Thread Kala Weerawardana
Hi Saneth,

This issue is fixed in [1].

[1] - https://wso2.org/jira/browse/APIMANAGER-3229

Regards,
Kala

On Wed, Mar 18, 2015 at 4:48 PM, Saneth Dharmakeerthi sane...@wso2.com
wrote:

 Hi,

 I  am getting Empty File Attachment error when try to add Doc to API.
 Following are the doc type I am using. Find the screen capture[1]

 Doc Type: How to  and  source: In-line

 Is there any reason for this?

 [1]​
  Screen Shot 2015-03-18 at 4.37.29 PM.png
 https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UTjZDdmFkaFo0bzQ/edit?usp=drive_web
 ​
 Thanks and Best Regards,

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




-- 
Kala C. Weerawardana
*Software Engineer - QA Team*
*WSO2 Inc. *
Mobile :  +94 (0) 716189886 +94 (0) 772877683
Blog : http://castakai.blogspot.com
k...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Clarification about APIM Tier : throttle:MaximumCount

2015-03-18 Thread Amila De Silva
Hi Saneth,

In a clustered environment, the cutoff might not exactly happen on 51st
request. Certain amount of requests may slip through. The amount of
additional requests passing through depends on several parameters like the
number of GW nodes running on the setup, replication frequency set and the
amount of requests hitting the GWs.

On a standalone environment, the cutoff should happen on 51st request.

On Wed, Mar 18, 2015 at 6:50 PM, Saneth Dharmakeerthi sane...@wso2.com
wrote:

 Hi APIM Team,

 I need to clarify some information about *throttle:MaximumCount*

 If Tier  throttle:MaximumCount is set to 20 and UnitTime is  set to 6
 (assume we apply bellow throttle value to all API-level, Application-level
 and Resource-level )
 ex:
throttle:MaximumCount50/throttle:MaximumCount
throttle:UnitTime6/throttle:UnitTime

1. whether the api invocation cut off exactly from 51th request
within 6 milliseconds ?
2. If not, is there any percentage or amount that it can accept
 additional requests?

 Also if there is a document that has detail information about this, please
 share with me.

 Thanks and Best Regards,

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




-- 
*Amila De Silva*

WSO2 Inc.
mobile :(+94) 775119302
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Aspect Intermittently disappearing in tenant mode

2015-03-18 Thread Dinusha Senanayaka
We could able to fix this with the help of SameeraM and Chandana.

To resolve , we called to the
org.wso2.carbon.governance.lcm.util.CommonUtil -
addDefaultLifecyclesIfNotAvailable() method in the publisher login.
 
CommonUtil.addDefaultLifecyclesIfNotAvailable(regService.getConfigSystemRegistry(tenantId),

CommonUtil.getRootSystemRegistry(tenantId), false);

Thanks SameeraM and Chandana for helping to resolve this.

Regards,
Dinusha.

On Wed, Mar 18, 2015 at 10:36 AM, Sumedha Rubasinghe sume...@wso2.com
wrote:

 Chandana/Sagara,
 Thanks for help extended so far. Appreciate if you guys can help further
 to isolate the issue as this has been a blocker and killing significant
 time @ the last hour.

 On Wed, Mar 18, 2015 at 9:05 AM, Ruwan Yatawara ruw...@wso2.com wrote:

 Hi Dinusha / All,

 Something to point out here is that in the scenario where everything
 functions as expected, the aspect map has all the tenant id related
 lifeycles as well. And everything gets resolved the moment you login to the
 carbon console as the tenant admin of the tenant for which this issue is
 coming.

 What i have been able to observe so far is that, when logging in to the
 carbon console as tenant admin, the only deviation to the flow.. and
 eventually what fixes the issue is calling of the following method.

 addDefaultLifecyclesIfNotAvailable() method in the
 governance.lcm.CommonUtil class.

 After calling this method the aspect map gets properly populated. We
 tried calling the method directly from jaggery, but the repeated calling of
 it relays errors, and didn't exactly fix the issue.


 Another very weird behavior we observed is that, the same class has a
 method called lifeCycleExists() this method checks if a particular
 lifecycle exists in a particular users registry. When calling this method,
 at the time of the error. It always returns true. Meaning the LC is
 available for that tenant.

 All things considered, i think we might have to do something related to
 the RegistryContext to get this issue resolved.


 Thanks and Regards,

 Ruwan Yatawara

 Senior Software Engineer,
 WSO2 Inc.

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://thoughts.ruwan-ace.com/
 www: :http://wso2.com


 On Tue, Mar 17, 2015 at 9:01 PM, Dinusha Senanayaka dinu...@wso2.com
 wrote:

 Hi ES team/ Registry team,

 This is a blocking issue for App Manager release. Appreciate some help
 on resolving this.

 Could able to notice following after debugging governance.api and
 registry.core code..

 ES publisher calls to the
 GovernanceArtifactImpl.getAllLifecycleActions() where it get calls to the
 getAspectActions() method. This get calls to the
 EmbeddedRegistry.getAspect(String name) which returns the aspects by taking
 the CurrentSession.getCallerTenantId(). Refer following return statement.

 return registryContext.getAspect(name,
 *CurrentSession.getCallerTenantId()*);

 But, once we expand the above 'registryContext' object, it contains the
 lifecycle aspects in super tenant space (see the attached screenshot taken
 while debugging). Hence with the callerTenantId  lifecycle aspects get
 return as null .

 If passing current tenantId to the getAspect is correct, then is there a
 way to register WebAppLifecycle aspects in tenant space as well ? Or could
 this be due to  'registryContext' object get initialed in wrong way ?

 Regards,
 Dinusha.

 On Thu, Mar 12, 2015 at 8:36 AM, Ruwan Yatawara ruw...@wso2.com wrote:

 Hi All,

 We are facing an issue [1],[2] in which the sometimes the Aspect (Life
 cycle for asset types) gets lost in the tenant mode. We have observed this
 happening intermittently, only in tenant mode though and a restart of the
 pack usually solves the problem. I heard from SameeraM that a similar issue
 was fixed in carbon 4.3, for the record we are still on carbon 4.2.
 Appreciate if somebody could point out a fix/approach to fix this.

 Error :

 ERROR - GovernanceArtifactImpl Error in associating lifecycle for the 
 artifact. id: a1954c0e-a67e-46b4-ae28-1b063d816a1f, path: 
 /appmgt/applicationdata/provider/admin-AT-test.com/AppT01/1.0/webapp.
 org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find 
 aspectName 'WebAppLifeCycle'
at 
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2428)
at 
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.associateAspect(CacheBackedRegistry.java:416)
at 
 org.wso2.carbon.registry.core.session.UserRegistry.associateAspectInternal(UserRegistry.java:1904)
at 
 org.wso2.carbon.registry.core.session.UserRegistry.access$3800(UserRegistry.java:60)
at 
 org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1876)
at 
 org.wso2.carbon.registry.core.session.UserRegistry$39.run(UserRegistry.java:1873)
at java.security.AccessController.doPrivileged(Native Method)
at 
 org.wso2.carbon.registry.core.session.UserRegistry.associateAspect(UserRegistry.java:1873)

Re: [Dev] [MB] Out of memory error in long running mb cluster

2015-03-18 Thread Akalanka Pagoda Arachchi
Hi,

Maybe the error is not really in this tread, but has been occurred after
accumulating data from a memory leak. Better analyse the memory allocations.

Thanks,
Akalanka.

On Wed, Mar 18, 2015 at 4:58 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 Lets analyse the heap dump and see what caused the issue...
 also check the metrics recorded (via matric library) when server went OOM.

 On Wed, Mar 18, 2015 at 4:55 PM, Pumudu Ruhunage pum...@wso2.com wrote:

 Hi,

 I came across out of memory exception while doing long running test on mb
 cluster with oracle database as message store. Following was the scenario i
 tested.

 1. Start two clustered mb nodes with serializers (nodeA(coordinator),
 nodeB).
 2. Add queue subscriber MyQueue1, to nodeB and publish MyQueue1
 messages to nodeA with average 1500 TPS.
 3. Add queue subscriber MyQueue2 to nodeA and publish MyQueue2
 messages to nodeB with average 1000 TPS.
 4. After around 14 hours, om exception has thrown from nodeA and all
 operations has halted.

 After analysing heap dump i found which thread has thrown the error, and
 it's as follows.

 pool-25-thread-1 prio=5 tid=174 RUNNABLE
 at java.lang.OutOfMemoryError.init(OutOfMemoryError.java:48)
 at java.lang.Long.toString(Long.java:267)
 at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816)
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648)
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1
Local Variable: com.google.gson.JsonArray#1
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
 at com.google.gson.internal.Streams.parse(Streams.java:44)
 at com.google.gson.JsonParser.parse(JsonParser.java:84)
 at com.google.gson.JsonParser.parse(JsonParser.java:59)
Local Variable: com.google.gson.stream.JsonReader#1
 at com.google.gson.JsonParser.parse(JsonParser.java:45)
 at
 org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53)
 at
 org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
Local Variable:
 com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1
 at
 com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221)
 at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156)
 at com.hazelcast.map.MapService.toObject(MapService.java:872)
 at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53)
 at
 org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347)
Local Variable: java.util.TreeSet#1
 at
 org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56)
Local Variable: java.lang.String#2380
Local Variable: java.lang.String#2379
 at
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2
 at
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1
Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
 at
 org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
Local Variable: org.apache.thrift.transport.TSocket#2
Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2
Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
Local Variable:
 org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1
Local Variable: java.util.concurrent.ThreadPoolExecutor#26
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
Local Variable: java.util.concurrent.ThreadPoolExecutor$Worker#41
 at java.lang.Thread.run(Thread.java:745)

 Have anyone faced similar issue ? What is the best method to handle this
 out of memory issue?


 Thanks,
 --
 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




 --
 Ramith 

Re: [Dev] [MB] Out of memory error in long running mb cluster

2015-03-18 Thread Sajini De Silva
Hi,

We found the cause for this error. Will fix this and run the tests again.

Thank you,
Sajini

On Wed, Mar 18, 2015 at 5:36 PM, Akalanka Pagoda Arachchi 
darsha...@wso2.com wrote:

 Hi,

 Maybe the error is not really in this tread, but has been occurred after
 accumulating data from a memory leak. Better analyse the memory allocations.

 Thanks,
 Akalanka.

 On Wed, Mar 18, 2015 at 4:58 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Lets analyse the heap dump and see what caused the issue...
 also check the metrics recorded (via matric library) when server went OOM.

 On Wed, Mar 18, 2015 at 4:55 PM, Pumudu Ruhunage pum...@wso2.com wrote:

 Hi,

 I came across out of memory exception while doing long running test on
 mb cluster with oracle database as message store. Following was the
 scenario i tested.

 1. Start two clustered mb nodes with serializers (nodeA(coordinator),
 nodeB).
 2. Add queue subscriber MyQueue1, to nodeB and publish MyQueue1
 messages to nodeA with average 1500 TPS.
 3. Add queue subscriber MyQueue2 to nodeA and publish MyQueue2
 messages to nodeB with average 1000 TPS.
 4. After around 14 hours, om exception has thrown from nodeA and all
 operations has halted.

 After analysing heap dump i found which thread has thrown the error, and
 it's as follows.

 pool-25-thread-1 prio=5 tid=174 RUNNABLE
 at java.lang.OutOfMemoryError.init(OutOfMemoryError.java:48)
 at java.lang.Long.toString(Long.java:267)
 at com.google.gson.stream.JsonReader.nextString(JsonReader.java:816)
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:648)
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659)
Local Variable: com.google.gson.internal.bind.TypeAdapters$25#1
Local Variable: com.google.gson.JsonArray#1
 at
 com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
 at com.google.gson.internal.Streams.parse(Streams.java:44)
 at com.google.gson.JsonParser.parse(JsonParser.java:84)
 at com.google.gson.JsonParser.parse(JsonParser.java:59)
Local Variable: com.google.gson.stream.JsonReader#1
 at com.google.gson.JsonParser.parse(JsonParser.java:45)
 at
 org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:53)
 at
 org.wso2.andes.server.cluster.coordination.hazelcast.custom.serializer.TreeSetLongWrapperSerializer.read(TreeSetLongWrapperSerializer.java:33)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)
Local Variable:
 com.hazelcast.nio.serialization.ByteArrayObjectDataInput#1
 at
 com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:221)
 at
 com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:156)
 at com.hazelcast.map.MapService.toObject(MapService.java:872)
 at com.hazelcast.map.proxy.MapProxyImpl.get(MapProxyImpl.java:53)
 at
 org.wso2.andes.kernel.slot.SlotManagerClusterMode.updateMessageID(SlotManagerClusterMode.java:347)
Local Variable: java.util.TreeSet#1
 at
 org.wso2.andes.thrift.SlotManagementServiceImpl.updateMessageId(SlotManagementServiceImpl.java:56)
Local Variable: java.lang.String#2380
Local Variable: java.lang.String#2379
 at
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:440)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_result#2
 at
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId.getResult(SlotManagementService.java:429)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$updateMessageId_args#1
Local Variable: org.wso2.andes.thrift.SlotManagementServiceImpl#1
 at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor$updateMessageId#1
 at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
 at
 org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:176)
Local Variable: org.apache.thrift.transport.TSocket#2
Local Variable: org.apache.thrift.protocol.TBinaryProtocol#2
Local Variable: org.apache.thrift.protocol.TBinaryProtocol#3
Local Variable:
 org.wso2.andes.thrift.slot.gen.SlotManagementService$Processor#1
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
Local Variable:
 org.apache.thrift.server.TThreadPoolServer$WorkerProcess#1
Local Variable: java.util.concurrent.ThreadPoolExecutor#26
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
Local Variable: java.util.concurrent.ThreadPoolExecutor$Worker#41
 at java.lang.Thread.run(Thread.java:745)

 Have anyone faced similar issue ? What is the best method to handle this
 out of memory issue?


 Thanks,
 --
 Pumudu Ruhunage
 Associate Software Engineer | WSO2 

Re: [Dev] Please merge the PR

2015-03-18 Thread Nirmal Fernando
Awesome! thanks Manorama.

On Wed, Mar 18, 2015 at 6:36 PM, Manorama Perera manor...@wso2.com wrote:


 Hi,

 I've sent another PR [1].  It contains the data layer modifications
 relevant to persisting analysis, configuration and model.

 Tested it with logistic-regression test scripts.

 [1] https://github.com/wso2/product-ml/pull/39

 Thanks.

 --
 Manorama Perera
 Software Engineer
 WSO2, Inc.;  http://wso2.com/
 Mobile : +94716436216




-- 

Thanks  regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Aspect Intermittently disappearing in tenant mode

2015-03-18 Thread Ruwan Yatawara
Thank you guys! Appreciate the help.

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://thoughts.ruwan-ace.com/
www: :http://wso2.com


On Wed, Mar 18, 2015 at 7:20 PM, Dinusha Senanayaka dinu...@wso2.com
wrote:

 We could able to fix this with the help of SameeraM and Chandana.

 To resolve , we called to the
 org.wso2.carbon.governance.lcm.util.CommonUtil -
 addDefaultLifecyclesIfNotAvailable() method in the publisher login.

  
 CommonUtil.addDefaultLifecyclesIfNotAvailable(regService.getConfigSystemRegistry(tenantId),

 CommonUtil.getRootSystemRegistry(tenantId), false);

 Thanks SameeraM and Chandana for helping to resolve this.

 Regards,
 Dinusha.

 On Wed, Mar 18, 2015 at 10:36 AM, Sumedha Rubasinghe sume...@wso2.com
 wrote:

 Chandana/Sagara,
 Thanks for help extended so far. Appreciate if you guys can help further
 to isolate the issue as this has been a blocker and killing significant
 time @ the last hour.

 On Wed, Mar 18, 2015 at 9:05 AM, Ruwan Yatawara ruw...@wso2.com wrote:

 Hi Dinusha / All,

 Something to point out here is that in the scenario where everything
 functions as expected, the aspect map has all the tenant id related
 lifeycles as well. And everything gets resolved the moment you login to the
 carbon console as the tenant admin of the tenant for which this issue is
 coming.

 What i have been able to observe so far is that, when logging in to the
 carbon console as tenant admin, the only deviation to the flow.. and
 eventually what fixes the issue is calling of the following method.

 addDefaultLifecyclesIfNotAvailable() method in the
 governance.lcm.CommonUtil class.

 After calling this method the aspect map gets properly populated. We
 tried calling the method directly from jaggery, but the repeated calling of
 it relays errors, and didn't exactly fix the issue.


 Another very weird behavior we observed is that, the same class has a
 method called lifeCycleExists() this method checks if a particular
 lifecycle exists in a particular users registry. When calling this method,
 at the time of the error. It always returns true. Meaning the LC is
 available for that tenant.

 All things considered, i think we might have to do something related to
 the RegistryContext to get this issue resolved.


 Thanks and Regards,

 Ruwan Yatawara

 Senior Software Engineer,
 WSO2 Inc.

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://thoughts.ruwan-ace.com/
 www: :http://wso2.com


 On Tue, Mar 17, 2015 at 9:01 PM, Dinusha Senanayaka dinu...@wso2.com
 wrote:

 Hi ES team/ Registry team,

 This is a blocking issue for App Manager release. Appreciate some help
 on resolving this.

 Could able to notice following after debugging governance.api and
 registry.core code..

 ES publisher calls to the
 GovernanceArtifactImpl.getAllLifecycleActions() where it get calls to the
 getAspectActions() method. This get calls to the
 EmbeddedRegistry.getAspect(String name) which returns the aspects by taking
 the CurrentSession.getCallerTenantId(). Refer following return statement.

 return registryContext.getAspect(name,
 *CurrentSession.getCallerTenantId()*);

 But, once we expand the above 'registryContext' object, it contains the
 lifecycle aspects in super tenant space (see the attached screenshot taken
 while debugging). Hence with the callerTenantId  lifecycle aspects get
 return as null .

 If passing current tenantId to the getAspect is correct, then is there
 a way to register WebAppLifecycle aspects in tenant space as well ? Or
 could this be due to  'registryContext' object get initialed in wrong way ?

 Regards,
 Dinusha.

 On Thu, Mar 12, 2015 at 8:36 AM, Ruwan Yatawara ruw...@wso2.com
 wrote:

 Hi All,

 We are facing an issue [1],[2] in which the sometimes the Aspect (Life
 cycle for asset types) gets lost in the tenant mode. We have observed this
 happening intermittently, only in tenant mode though and a restart of the
 pack usually solves the problem. I heard from SameeraM that a similar 
 issue
 was fixed in carbon 4.3, for the record we are still on carbon 4.2.
 Appreciate if somebody could point out a fix/approach to fix this.

 Error :

 ERROR - GovernanceArtifactImpl Error in associating lifecycle for the 
 artifact. id: a1954c0e-a67e-46b4-ae28-1b063d816a1f, path: 
 /appmgt/applicationdata/provider/admin-AT-test.com/AppT01/1.0/webapp.
 org.wso2.carbon.registry.core.exceptions.RegistryException: Couldn't find 
 aspectName 'WebAppLifeCycle'
   at 
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.associateAspect(EmbeddedRegistry.java:2428)
   at 
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.associateAspect(CacheBackedRegistry.java:416)
   at 
 org.wso2.carbon.registry.core.session.UserRegistry.associateAspectInternal(UserRegistry.java:1904)
   at 
 org.wso2.carbon.registry.core.session.UserRegistry.access$3800(UserRegistry.java:60)
   at 
 

[Dev] [AF] Remove the OSGIness of ApplicationManagementService

2015-03-18 Thread Mahesh Chinthaka
Hi all,
Im working on [a]

At the moment we have
1. ApplicationManagementService
2. ApplicationInfoService
3. ApplicationUserMgtService

All the tasks/methods that UI needs to do related with users will be in
ApplicationUserMgtService (IMO ideally this service should be renamed as
UserManagementService).
All the tasks/methods that UI needs to related with applications will be in
ApplicationInfoService.

At the moment ApplicationManagementService has both user related tasks as
well as application related tasks.
What I'm going to do is identify those methods and move accordingly to
either ApplicationUserMgtService or ApplicationInfoService. In that way
ApplicationManagementService will no longer be a osgi service and it will
only be a soap service.

Here are the methods that I have identified,

[1] - getApplication(applicationKey)

[2] - deleteApplication(applicationKey)

[3] - getApplicationUrl(applicationKey, version, stage, tenantDomain);

[4] - getApplicationStatus(applicationKey, version, stage, tenantDomain);

[5] -
getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey,
userName);

[6] - getAllVersionsOfApplication(tenantDomain, applicationKey);

[7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version);

[8] - updateRxtWithPromoteState(appKey,nextStage,version,Promote,state);

[9] - publishSetApplicationAutoBuild(applicationKey, stageName, version,
isBuild);

[10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version,
isDeploy);


IMO all above methods should be moved to ApplicationInfoService. WDYT ?


[a] - https://wso2.org/jira/browse/APPFAC-3011

-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About Recommendation Solution for WSO2 Machine Learner for GSOC 2015

2015-03-18 Thread Nivethika mahasivam
Hi Alexandra,
thanks a lot for your message.
That makes sense.

Looking forward to do more on this.

Regards,
Nivethika

On Wed, Mar 18, 2015 at 4:15 PM, Alexandra Binca alexandra.bi...@gmail.com
wrote:

 Hi Nivethika,

 I am also interested in this project so any clarification from any source
 would be great :).
 I suppose reportView is the tracking endpoint used to track products that
 a user viewed so I think it should be called from the product view page.
 But, in fact, it doesn't matter what view means for the client (e.g. only
 opening the view page or adding to cart or save in wish list). As I
 understand it, on the tracking part we should provide only a tracking API
 and some js snippets to be added in the site pages. It's the client choice
 where he will add the snippets.

 Best regards,
 Alexandra Binca

 On Wed, Mar 18, 2015 at 10:59 AM, Nivethika Mahasivam nivema...@gmail.com
  wrote:

 Hi ,
 Thank you for the response.
 I have a small clarification about APIs.
 b) reportView(user, item) - what does this stand for? What functional
 scenario it will work on?
 Does this mean the user checked an item, (may be add to cart) but didn't
 purchase?


 Thank you.
 Nivethika M



 --
 View this message in context:
 http://wso2-oxygen-tank.10903.n7.nabble.com/Re-About-Recommendation-Solution-for-WSO2-Machine-Learner-for-GSOC-2015-tp114625p114813.html
 Sent from the WSO2 Development mailing list archive at Nabble.com.
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev





-- 
Miss.Nivethika Mahasivam
Dept of Computer Engineering
Univesity of Peradeniya
Peradeniya,Srilanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About Recommendation Solution for WSO2 Machine Learner for GSOC 2015

2015-03-18 Thread Nirmal Fernando
On Wed, Mar 18, 2015 at 2:29 PM, Nivethika Mahasivam nivema...@gmail.com
wrote:

 Hi ,
 Thank you for the response.
 I have a small clarification about APIs.
 b) reportView(user, item) - what does this stand for? What functional
 scenario it will work on?
 Does this mean the user checked an item, (may be add to cart) but didn't
 purchase?


I think this means any viewed item; so that we can see the items an user is
mostly interested in.

Does that make sense?



 Thank you.
 Nivethika M



 --
 View this message in context:
 http://wso2-oxygen-tank.10903.n7.nabble.com/Re-About-Recommendation-Solution-for-WSO2-Machine-Learner-for-GSOC-2015-tp114625p114813.html
 Sent from the WSO2 Development mailing list archive at Nabble.com.
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 

Thanks  regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] Oracle ORA-01653 issue with mb cluster

2015-03-18 Thread Pumudu Ruhunage
Hi,

I got this error log[1] when testing a long running mb cluster.

1. Start two clustered mb nodes with serializers (nodeA(coordinator),
nodeB).
2. Add queue subscriber MyQueue1, to nodeB and publish MyQueue1
messages to nodeA with average 1500TPS.
3. Add queue subscriber MyQueue2 to nodeA and publish MyQueue2 messages
to nodeB with average 1000TPS.
4. After around 12 hours, om exception has thrown from nodeB and all
operations has halted.

before the om exception throws following oracle exception has repeatedly
thrown by nodeB.

TID: [] [] [2015-03-18 02:18:08,684] ERROR
{org.wso2.andes.kernel.distruptor.inbound.InboundLogExceptionHandler} -  [
Sequence: 400477036 ] Exception occurred while processing inbound
events.Event type: MESSAGE_EVENT
{org.wso2.andes.kernel.distruptor.inbound.InboundLogExceptionHandler}
org.wso2.andes.kernel.AndesException: Error occurred while adding message
content to DB
at
org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl.storeMessagePart(RDBMSMessageStoreImpl.java:125)
at
org.wso2.andes.kernel.MessagingEngine.messagesReceived(MessagingEngine.java:223)
at
org.wso2.andes.kernel.distruptor.inbound.MessageWriter.onEvent(MessageWriter.java:58)
at
org.wso2.andes.kernel.distruptor.inbound.ConcurrentBatchEventHandler.onEvent(ConcurrentBatchEventHandler.java:126)
at
org.wso2.andes.kernel.distruptor.inbound.ConcurrentBatchEventHandler.onEvent(ConcurrentBatchEventHandler.java:36)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
*Caused by: java.sql.BatchUpdateException: ORA-01653: *unable to extend
table MB.MB_CONTENT by 8192 in tablespace USERS

at
oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:11190)
at
oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:244)
at
org.wso2.andes.store.rdbms.RDBMSMessageStoreImpl.storeMessagePart(RDBMSMessageStoreImpl.java:121)
... 8 more

What is the best way to handle this issue ? is there a oracle database
configuration to avoid this issue ?


[1]
https://drive.google.com/a/wso2.com/file/d/0B3o_bweLeo43a2tCRmt0TjRSVzQ/view?usp=sharing


Regards,
-- 
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


[Dev] [Urgent] Permissions of Units in Unified UI

2015-03-18 Thread Dulitha Wijewantha
Hi Manu,
In our current Units mechanism, we don't specify the permissions the unit
is consuming. The suggestion is to hold the permissions that a unit is
consuming within the unit. Unified UI framework will push these permissions
to the registry in application startup.

We can also provide a helper form the unified UI to check if the current
user is permitted or not. WDYT?

This is urgent for us as we are nearing, our product release.

Cheers~

-- 
Dulitha Wijewantha (Chan)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Middleware
 * ~Email   duli...@wso2.com duli...@wso2mobile.com*
*  ~Mobile +94712112165*
*  ~Website   dulitha.me http://dulitha.me*
*  ~Twitter @dulitharw https://twitter.com/dulitharw*
  *~Github @dulichan https://github.com/dulichan*
  *~SO @chan http://stackoverflow.com/users/813471/chan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How can a back end service validate the JWT token received from WSO2 AM?

2015-03-18 Thread Rajkumar Rajaratnam
Hi,

I have hosted my service in WSO2 AS and I am exposing them as APIs in WSO2
AM. I have configured AM to send JWT tokens to the back end service. My
back end service is able to receive and decode the JWT tokens.

My question is, how can a service validate that JWT token was sent from
valid party (Api Manager), but not from some advisory that crafted token?

Please advice.

Thanks.

-- 
Rajkumar Rajaratnam
Committer  PMC Member, Apache Stratos
Software Engineer, WSO2

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


Re: [Dev] How can a back end service validate the JWT token received from WSO2 AM?

2015-03-18 Thread Lakshman Udayakantha
Hi Rajkumar,

you can sign the JWT token using a signature algorithm. configuring
SignatureAlgorithm/
tag you can achieve this. see the doc here [1]

[1]
https://docs.wso2.com/display/AM170/Passing+Enduser+Attributes+to+the+Backend+Using+JWT

On Wed, Mar 18, 2015 at 10:00 PM, Rajkumar Rajaratnam rajkum...@wso2.com
wrote:

 Hi,

 I have hosted my service in WSO2 AS and I am exposing them as APIs in WSO2
 AM. I have configured AM to send JWT tokens to the back end service. My
 back end service is able to receive and decode the JWT tokens.

 My question is, how can a service validate that JWT token was sent from
 valid party (Api Manager), but not from some advisory that crafted token?

 Please advice.

 Thanks.

 --
 Rajkumar Rajaratnam
 Committer  PMC Member, Apache Stratos
 Software Engineer, WSO2

 Mobile : +94777568639
 Blog : rajkumarr.com

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




-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Clarification about APIM Tier : throttle:MaximumCount

2015-03-18 Thread Saneth Dharmakeerthi
Hi Amila,

Thanks for the Information.

Thanks and Best Regards,

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

On Wed, Mar 18, 2015 at 7:07 PM, Amila De Silva ami...@wso2.com wrote:

 Hi Saneth,

 In a clustered environment, the cutoff might not exactly happen on 51st
 request. Certain amount of requests may slip through. The amount of
 additional requests passing through depends on several parameters like the
 number of GW nodes running on the setup, replication frequency set and the
 amount of requests hitting the GWs.

 On a standalone environment, the cutoff should happen on 51st request.

 On Wed, Mar 18, 2015 at 6:50 PM, Saneth Dharmakeerthi sane...@wso2.com
 wrote:

 Hi APIM Team,

 I need to clarify some information about *throttle:MaximumCount*

 If Tier  throttle:MaximumCount is set to 20 and UnitTime is  set to
 6
 (assume we apply bellow throttle value to all API-level,
 Application-level and Resource-level )
 ex:
throttle:MaximumCount50/throttle:MaximumCount
throttle:UnitTime6/throttle:UnitTime

1. whether the api invocation cut off exactly from 51th request
within 6 milliseconds ?
2. If not, is there any percentage or amount that it can accept
 additional requests?

 Also if there is a document that has detail information about this,
 please share with me.

 Thanks and Best Regards,

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




 --
 *Amila De Silva*

 WSO2 Inc.
 mobile :(+94) 775119302


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


Re: [Dev] Product-ESB dependency not satisfy with the kernel 4.4.0

2015-03-18 Thread Jayanga Dissanayake
Hi Prabath,

As per the offline chat we had, you have to build all your dependencies,
before building the product.
Please find the dependency diagram [1].

wso2-axiom, wso2-axis2, carbon4-kernel - build from master branch
other repos build from java8support branch.

[1]
https://drive.google.com/a/wso2.com/file/d/0B5PrGUGJmqvSVDNSOVdvYnJPaUFKYzYwSF9qV1RQY2tMSC1z/view?usp=sharing

Thanks,
Jayanga.

*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259

On Wed, Mar 18, 2015 at 3:15 PM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Hi Carbon Team.

 I got following error while compiling product-esb with kernel 4.4.0

 Installation failed.

 Cannot complete the install because one or more required items could not
 be found.

  Software being installed: WSO2 Carbon - GIT Based Deployment Synchronizer
 Feature 4.3.6 (org.wso2.carbon.deployment.synchronizer.git.feature.group
 4.3.6)

  Missing requirement: WSO2 Carbon - Event Server Feature 4.3.6
 (org.wso2.carbon.event.server.feature.group 4.3.6) requires
 'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but it could not
 be found

  Cannot satisfy dependency:

   From: WSO2 Carbon - GIT Based Deployment Synchronizer Feature 4.3.6
 (org.wso2.carbon.deployment.synchronizer.git.feature.group 4.3.6)

   To: org.wso2.carbon.deployment.synchronizer.server.feature.group
 [4.3.6,4.4.0)

  Cannot satisfy dependency:

   From: WSO2 Carbon - Deployment Synchronizer Server Feature 4.3.6
 (org.wso2.carbon.deployment.synchronizer.server.feature.group 4.3.6)

   To: org.wso2.carbon.event.server.feature.group [4.3.6,4.4.0)

 Application failed, log file location:
 /Users/prabath/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1426663535408.log

 any idea?

 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *






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


Re: [Dev] Google Summer Of Code 2015

2015-03-18 Thread Imesh Gunaratne
Hi Akqeel,

It's nice to see your interest on this project. Please prepare a project
proposal based on the information provided in the project description and
share it on a Google document:

   - Do a literature review on billing patterns of cloud services
   - Do a literature review on existing open source billing systems
   - Find information on Google Wallet API
   - Find information on WSO2 Private PaaS usage data model
   - Prepare a project proposal with the above information and share it
   with the mentor
   - Use WSO2 Dev mailing list for the communication


Thanks

On Wed, Mar 18, 2015 at 12:53 AM, Akqeel Nawaz akqeelna...@windowslive.com
wrote:

 Hi,
 I am a final year Software Engineering undergraduate from the Java
 Institute, Colombo.
 I am interested in the Google Wallet based Billing System for WSO2
 Private PaaS project proposal for this year's GSoC.
 This will be my first GSoC and I would like to know how I can get started.
 Any help would be greatly appreciated.

 Thanks,
 Akqeel




-- 
*Imesh Gunaratne*
Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Join the hangout

2015-03-18 Thread Dulitha Kularathne
Hi Anuruddha!!

I missed yesterdays discussion due to an urgent matter. So im really
greatful if you can give a small summary of the content od the
discussion.(eg:- any guidelines mentioned )

So in a previous mail you mentioned a reference app made using GO. So the
reason for not using java is the jvm resource allocation issue. So then
python also should be a suitable language . Any comments are highly
appreciated.

Is the expectation is to make a separate customized shell like git bash for
windows or just to use the default cmd in windows.In linux its just the
bash shell I hope. So as I understand since this is a cross platform app
there should be a layer to interact with the OS specifics.
 Thank you.


On Tue, Mar 17, 2015 at 5:35 PM, Anuruddha Premalal anurud...@wso2.com
wrote:

 I have reschedule the hangout to 9pm SL time today. Try to join if you are
 interested.

 On Mon, Mar 16, 2015 at 6:57 PM, Anuruddha Premalal anurud...@wso2.com
 wrote:


 https://plus.google.com/hangouts/_/wso2.com/gsoc-2015-app

 Regards,
 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com




 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


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


Re: [Dev] Dynamic Queue Error When Using Destination Type as topic

2015-03-18 Thread Isuru Haththotuwa
The problem here was HTTP DELETE from ESB Rest API being sent directly to
soap backend. Set the HTTP operation as POST [1] from the sequence, and it
worked. Many thanks IndikaS for all the help.

[1]. property name=HTTP_METHOD value=POST scope=axis2 type=STRING/


On Tue, Mar 17, 2015 at 11:52 PM, Isuru Haththotuwa isu...@wso2.com wrote:

 Hi Hasitha,

 On Tue, Mar 17, 2015 at 11:39 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Hi,

 Check the destination type parameter. It should be topic, not queue.
 Also we need to have the prefix topic. in jndi.properties file.

 yes, the destination type is topic. And the prefix topic is there in the
 jndi.properties file.


 Thanks

 On Tue, Mar 17, 2015 at 1:06 PM, Isuru Haththotuwa isu...@wso2.com
 wrote:

 Hi Malaka and Hasitha,

 Thanks for the input.

 I changed the topic to dc1Topic (removed the prepending 'topic.') and
 listed the topics in the jndi.properties file. Now getting a different
 error [1].

 [1].
 java.lang.ClassCastException: org.wso2.andes.client.AMQTopic cannot be
 cast to javax.jms.Queue
 at
 org.apache.axis2.transport.jms.JMSOutTransportInfo.createJMSSender(JMSOutTransportInfo.java:380)

 at
 org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:127)
 at
 org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at
 org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
 at
 org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)
 at
 org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333)
 at
 org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
 at
 org.apache.synapse.endpoints.IndirectEndpoint.send(IndirectEndpoint.java:54)
 at
 org.apache.synapse.mediators.builtin.CallMediator.mediate(CallMediator.java:114)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:196)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
 at org.apache.synapse.rest.Resource.process(Resource.java:297)
 at org.apache.synapse.rest.API.process(API.java:341)
 at
 org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
 at
 org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
 at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:168)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)


 On Tue, Mar 17, 2015 at 9:51 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 javax.naming.NameNotFoundException: dynamicQueues/topic.datacenter1

 This means this topic is not added to the initialcontext and cannot
 lookup.

 Is this a dynamic topic? What about specifying the topic in
 JNDI.properties file?




 On Tue, Mar 17, 2015 at 10:59 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Isuru,

 Can you try giving simple name like datacenter1 instead of
 topic.datacenter1?

 @Hasitha did you experience a similar issue recently?

 On Tue, Mar 17, 2015 at 6:45 PM, Isuru Haththotuwa isu...@wso2.com
 wrote:

 Hi,

 When I'm using an ESB sequence to send a message to a JMS topic,
 noticed the error [1] in ESB side. The error is coming persistently. This
 sequence is called from a ESB rest API.

 However, I'm not using queues, but only a topic. The type of the
 topic (in bold letters) is actually my rest endpoint with path 
 parameters.
 

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Chamalee De Silva
Congratz Hemika !!

On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 regards,

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

 E: ram...@wso2.com


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




-- 

Chamalee De Silva

Software Engineer | WSO2

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


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Maheeka Jayasuriya
Congrats Hemika !

Maheeka Jayasuriya
Software Engineer
Mobile : +9450661

On Wed, Mar 18, 2015 at 12:57 PM, Chamalee De Silva chama...@wso2.com
wrote:

 Congratz Hemika !!

 On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 regards,

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

 E: ram...@wso2.com


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




 --

 Chamalee De Silva

 Software Engineer | WSO2

 E:chama...@wso2.com nirosh...@wso2.com
 M :0711540738| http://wso2.com http://wso2.com/

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


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


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Sajith Ariyarathna
Congrats Hemika!!!

On Wed, Mar 18, 2015 at 12:59 PM, Maheeka Jayasuriya mahe...@wso2.com
wrote:

 Congrats Hemika !

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

 On Wed, Mar 18, 2015 at 12:57 PM, Chamalee De Silva chama...@wso2.com
 wrote:

 Congratz Hemika !!

 On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 regards,

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

 E: ram...@wso2.com


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




 --

 Chamalee De Silva

 Software Engineer | WSO2

 E:chama...@wso2.com nirosh...@wso2.com
 M :0711540738| http://wso2.com http://wso2.com/

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



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




-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Mahesh Chinthaka
Hi,

Is this 'createProject' method implemented by you  inside
IssueTrackerService ?? Because in my code I cannot see such a method in
IssueTrackerService.
You can debug the backend code to find out the place where NP occurs.


On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha dilha...@wso2.com
wrote:

 Hi,

 I tried logging in between the steps.

 * tenantId and tenantDomain are not null
 * The null pointer exception takes place in the following line.

 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);

 Is it because the server cannot track the OSGI service I'm referring to?
  (The service is listed in the OSGI cosole)

 How can I figure it out?

 Thanks.
 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi Mahesh,

 Thanks for the points. I'll work on those and see.

 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Sorry I missed this,
 getting modManager varialbe , put this befor getting the tenant domain.
 var modManager = jagg.module(manager);

 On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dilhasha,
 I think you havent got the tenant domain properly.

 you may use following to get tenant domain.
 var tenantDomain = modManager.getTenantDomain();

 you may use following to set tenant domain n id

 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);


  in between the steps you can put  info logs to see values, in that way
 you may be able to see whats null here.

 On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando danush...@wso2.com
  wrote:

 Few points

1. Did you check whether your osgi bundle is activated or not? May
be that's the issue. Seems it cannot find the osgi service.
2. When start tenant flow in setTenantDomain method there is a
another signature which will take in tenantDomain (String) and
resolveTenantID (boolean) parameters. You can use that instead of 
 setting
tenantID manually.
3. The way you have included the module, AFAIR that's not the way
to refer to a module. Refer to other places that we have done such a 
 thing.


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi Mahesh,

 Thanks for the response.

 Following is the code in saveConfig.jag

 include(/jagg/jagg.jag);
 include(/jagg/constants.jag);
 include(/jagg/config_reader.jag);
 include(/modules/manager/manager.jag);

 (function () {

 var carbon = require('carbon');
 var log = new Log(module/issuetracker/saveConfig.jag);
 var multitenancy = carbon.multitenancy;
 var server = carbon.server;



 var context=multitenancy.getPrivilegedCarbonContext();
 var tenantDomain = getTenantDomain();
 var tenantId=getTenantId();

 var issueTrackerConfig = 
 Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations;
 var issueConfig=new issueTrackerConfig();
 issueConfig.setIssueTrackerinstanceUrl(some url);

 try{

 context.startTenantFlow();
 context.getThreadLocalCarbonContext().setTenantId(tenantId);
 
 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain);
 
 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);
 }catch(e){
 log.error(e);
 }finally{
 context.endTenantFlow();
 }




 }());



 The getTenantDomain,getTenantId functions are in a different jag
 file, which I have included (manager.jag).



 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 10:35 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dilhasha,

 This could be either not setting tenant domain/ id properly or,
 issueTrackerConfig parameter might be null at that moment. can you share
 the code segment of whole function please. So we can see the reason for 
 NPE.

 On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
 dilha...@wso2.com wrote:

 Hi,

 I'm trying to access an osgi service available in WSO2 Appfactory,
 from the 'appmgt' jaggery app. In this process I get the following
 exception in the server.

 *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
 {module/issuetracker/saveConfig.jag} -
  org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (osgi#8)*
 * at
 

Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Sajini De Silva
Congratz Hemika!!!

On Wed, Mar 18, 2015 at 1:01 PM, Sajith Ariyarathna sajit...@wso2.com
wrote:

 Congrats Hemika!!!

 On Wed, Mar 18, 2015 at 12:59 PM, Maheeka Jayasuriya mahe...@wso2.com
 wrote:

 Congrats Hemika !

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

 On Wed, Mar 18, 2015 at 12:57 PM, Chamalee De Silva chama...@wso2.com
 wrote:

 Congratz Hemika !!

 On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 regards,

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

 E: ram...@wso2.com


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




 --

 Chamalee De Silva

 Software Engineer | WSO2

 E:chama...@wso2.com nirosh...@wso2.com
 M :0711540738| http://wso2.com http://wso2.com/

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



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




 --
 Sajith Ariyarathna
 Software Engineer; WSO2, Inc.;  http://wso2.com/
 mobile: +94 77 6602284, +94 71 3951048

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




-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

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


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Fathima Dilhasha
Hi,

Yeah 'createProject' is a method I introduced. I've patched it to my
AppFactory instance.
Okay, I will debug backend code and see.

Thanks.

Regards,
Dilhasha

*M.N.F. Dilhasha*
Software Engineering Intern | *WSO2 Lanka*

email   :
*dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

On Wed, Mar 18, 2015 at 1:04 PM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi,

 Is this 'createProject' method implemented by you  inside
 IssueTrackerService ?? Because in my code I cannot see such a method in
 IssueTrackerService.
 You can debug the backend code to find out the place where NP occurs.


 On Wed, Mar 18, 2015 at 11:40 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi,

 I tried logging in between the steps.

 * tenantId and tenantDomain are not null
 * The null pointer exception takes place in the following line.

 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);

 Is it because the server cannot track the OSGI service I'm referring to?
  (The service is listed in the OSGI cosole)

 How can I figure it out?

 Thanks.
 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi Mahesh,

 Thanks for the points. I'll work on those and see.

 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Sorry I missed this,
 getting modManager varialbe , put this befor getting the tenant domain.
 var modManager = jagg.module(manager);

 On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dilhasha,
 I think you havent got the tenant domain properly.

 you may use following to get tenant domain.
 var tenantDomain = modManager.getTenantDomain();

 you may use following to set tenant domain n id

 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);


  in between the steps you can put  info logs to see values, in that
 way you may be able to see whats null here.

 On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando 
 danush...@wso2.com wrote:

 Few points

1. Did you check whether your osgi bundle is activated or not?
May be that's the issue. Seems it cannot find the osgi service.
2. When start tenant flow in setTenantDomain method there is a
another signature which will take in tenantDomain (String) and
resolveTenantID (boolean) parameters. You can use that instead of 
 setting
tenantID manually.
3. The way you have included the module, AFAIR that's not the way
to refer to a module. Refer to other places that we have done such a 
 thing.


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha dilha...@wso2.com
  wrote:

 Hi Mahesh,

 Thanks for the response.

 Following is the code in saveConfig.jag

 include(/jagg/jagg.jag);
 include(/jagg/constants.jag);
 include(/jagg/config_reader.jag);
 include(/modules/manager/manager.jag);

 (function () {

 var carbon = require('carbon');
 var log = new Log(module/issuetracker/saveConfig.jag);
 var multitenancy = carbon.multitenancy;
 var server = carbon.server;



 var context=multitenancy.getPrivilegedCarbonContext();
 var tenantDomain = getTenantDomain();
 var tenantId=getTenantId();

 var issueTrackerConfig = 
 Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations;
 var issueConfig=new issueTrackerConfig();
 issueConfig.setIssueTrackerinstanceUrl(some url);

 try{

 context.startTenantFlow();
 context.getThreadLocalCarbonContext().setTenantId(tenantId);
 
 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain);
 
 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);
 }catch(e){
 log.error(e);
 }finally{
 context.endTenantFlow();
 }




 }());



 The getTenantDomain,getTenantId functions are in a different jag
 file, which I have included (manager.jag).



 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 10:35 AM, Mahesh Chinthaka mahe...@wso2.com
  wrote:

 Hi Dilhasha,

 This could be either not setting tenant domain/ id properly or,
 issueTrackerConfig parameter might be null at that moment. can you 
 share
 the code segment of whole function please. So we can see the reason 
 for NPE.

 On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha 
 dilha...@wso2.com wrote:

 Hi,

 I'm 

[Dev] HTTP Status 405 - HTTP method GET is not supported by this URL [Machin Learner]

2015-03-18 Thread Thushan Ganegedara
Dear Devs,

I have forked WSO2 Machine Learner with the intention of getting more
insight into the product. I've followed the instructions in the Read Me and
I was able to successfully start the WSO2Server.

However, afterwards when I entered the credentials on the managing console,
it returns the following error
HTTP Status 405 - HTTP method GET is not supported by this URL
I was able to find other instances where the same error has occurred,
​
https://wso2.org/jira/browse/CARBON-8032?jql=text%20~%20%22HTTP%20Status%20405%20GET%22
http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=search_pagenode=2query=HTTP+Status+405+-+HTTP+method+GET+is+not+supported+by+this+URLn=2

But these issue trackers/forums​ doesn't offer a clear fix. I tried
suffixing '/' as mentioned in one post, but that didn't help me.

I'm using Carbon 4.3.0 version

I would highly appreciate if you could provide some insight to this.

Thank you

-- 
Regards,

Thushan Ganegedara
School of IT
University of Sydney, Australia
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sending an Arraylist using a SOAP mesage

2015-03-18 Thread Vanjikumaran Sivajothy
Isn't that should be be like this [1]?

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:adm=http://admin.dashboard.analytics.carbon.wso2.org; xmlns:xsd=
http://data.admin.dashboard.analytics.carbon.wso2.org/xsd;
   soapenv:Header/
   soapenv:Body
  adm:addDashboard
 adm:dashboard
xsd:idmyId/xsd:id
  *  xsd:roles*
* xsd:rolemy role/xsd:role*
* xsd:rolemy role2/xsd:role*
*/xsd:roles*
 /adm:dashboard
  /adm:addDashboard
   /soapenv:Body
/soapenv:Envelope

On Wed, Mar 18, 2015 at 11:36 AM, Pubudu Dodangoda pubu...@wso2.com wrote:

 How can I perform $subject ?

 I can send other data(string, int, objects etc)
 But when I try to send an Arraylist, I get the following value at the
 debugger

 {OMElementmpl@10789}xsd:roles xmlns:xsd=
 http://data.admin.dashboard.analytics.carbon.wso2.org/xsd;my
 role/xsd:roles

 this is the soap message I sent

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:adm=http://admin.dashboard.analytics.carbon.wso2.org; xmlns:xsd=
 http://data.admin.dashboard.analytics.carbon.wso2.org/xsd;
soapenv:Header/
soapenv:Body
   adm:addDashboard
  adm:dashboard
 xsd:idmyId/xsd:id
 xsd:rolesmy role/xsd:roles
 xsd:rolesmy role2/xsd:roles
  /adm:dashboard
   /adm:addDashboard
/soapenv:Body
 /soapenv:Envelope

 Thank You and kind Regards
 --
 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




-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com http://wso2.com/*
*Mobile:(+94)777219209*
[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]
https://twitter.com/vanjikumaran [image: LinkedIn]
http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image:
Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]
http://www.slideshare.net/vanjikumaran

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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon-identity java8support branch not work with the JDK 1.7

2015-03-18 Thread Prabath Ariyarathna
Hi IS Team.

I'm testing ESB with kernel 4.4.0 on the JDK 1.7 and carbon-identity is on
of the dependency. So I tried to compile carbon-identity java8support
branch on the JDK 1.7.
and getting following compilation issues from the *WSO2 Carbon - Identity
User Store Configuration UI*

ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
(default-compile) on project
org.wso2.carbon.identity.user.store.configuration.ui: Compilation failure:
Compilation failure:

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[28,41]
error: package org.wso2.carbon.ndatasource.common does not exist

[ERROR]

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[90,63]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[165,66]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[96,26]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[98,22]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[100,22]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[148,30]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[150,26]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[152,26]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[171,26]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[173,22]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]
/Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[175,22]
error: cannot find symbol

[ERROR]

[ERROR] class UserStoreConfigAdminServiceClient

[ERROR]

Re: [Dev] WS-RM Inbound endpoint based on Apache CXF

2015-03-18 Thread Sandamal Weerasinghe
*First build the cxf bundle and add it to the dropins folder, you'll have
to build Spring bundle and add that as well.*
*This is the cxf inbound endpoint definition which needs to go to
/repository/deployment/server/synapse-configs/default/inbound-endpoints
folder. It can have any name e.g. rminbound.xml*
*Note that it reads a config file (attached), that config file contains the
RM protocol config. e.g. How often should the server send acknowledgements.*

inboundEndpoint name=HttpListenerRMEP
  protocol=cxf_ws_rm interval=1 suspend=false
   sequence=RMIn onError=fault class=
   p:parameters xmlns:p=http://ws.apache.org/ns/synapse;
  p:parameter  name=inbound.cxf.rm.port8081/p:parameter
  p:parameter  name=inbound.cxf.rm.hostlocalhost/p:parameter
  p:parameter
 name=inbound.cxf.rm.config-filerepository/conf/cxf/server.xml/p:parameter
   /p:parameters
/inboundEndpoint

*This is the Synapse config. I'm removing RM headers in the in sequence
because the back end doesn't support RM.*

?xml version=1.0 encoding=UTF-8?
definitions xmlns=http://ws.apache.org/ns/synapse;

   sequence name=RMOut onError=fault
  log level=full /
  send /
   /sequence
   sequence name=RMIn onError=fault
  in
 property name=PRESERVE_WS_ADDRESSING value=true /
 log level=full /
 header xmlns:wsrm=http://schemas.xmlsoap.org/ws/2005/02/rm;
name=wsrm:Sequence action=remove /
 header xmlns:wsa=http://www.w3.org/2005/08/addressing;
name=wsa:To action=remove /
 header xmlns:wsa=http://www.w3.org/2005/08/addressing;
name=wsa:FaultTo action=remove /
 send
endpoint
   address uri=
http://localhost:9000/services/SimpleStockQuoteService; /
/endpoint
 /send
  /in
  out
 log level=full /
 send /
  /out
   /sequence
   sequence name=fault
  log level=full
 property name=MESSAGE value=Executing default
quot;faultquot; sequence /
 property name=ERROR_CODE
expression=get-property('ERROR_CODE') /
 property name=ERROR_MESSAGE
expression=get-property('ERROR_MESSAGE') /
  /log
  drop /
   /sequence
   sequence name=main
  log /
  send /
  drop /
   /sequence
/definitions

*Using the stockquote client to invoke the service*

ant stockquote -Dsymbol=IBM -Dmode=quote -Daddurl=http://localhost:8081
-Dwsrm=true

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Mon, Mar 16, 2015 at 10:41 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi all,

 Please find the pull requests for the above feature. In the orbit bundle I
 embedded the dependencies because many of them don't have osgi bundles and
 this would ensure that the RM Inbound feature would have all the
 dependencies it would need. For the RM Connector we can use the work done
 by Pasadi as a starting point (
 https://svn.wso2.com/wso2/interns/2013/pasadi/CXFWsdlToJava/)

 Thanks.

 https://github.com/wso2/orbit/pull/71
 https://github.com/wso2/carbon-mediation/pull/82

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

?xml version=1.0 encoding=UTF-8?
!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements. See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership. The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  License); you may not use this file except in compliance
  with the License. You may obtain a copy of the License at
 
  http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
--
beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;  xmlns:wsa=http://cxf.apache.org/ws/addressing; xmlns:http=http://cxf.apache.org/transports/http/configuration; xmlns:wsrm-policy=http://schemas.xmlsoap.org/ws/2005/02/rm/policy; xmlns:wsrm-mgr=http://cxf.apache.org/ws/rm/manager; xsi:schemaLocation=http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsdhttp://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsdhttp://schemas.xmlsoap.org/ws/2005/02/rm/policy http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsdhttp://cxf.apache.org/ws/rm/manager http://cxf.apache.org/schemas/configuration/wsrm-manager.xsdhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd; xmlns:cxf=http://cxf.apache.org/core;
cxf:bus
cxf:features
wsa:addressing/
wsrm-mgr:reliableMessaging
 

Re: [Dev] We are getting some class not found issues intermittently

2015-03-18 Thread Kishanthan Thangarajah
So the solution for this issue is to separate the web socket related
packages/resources from tomcat orbit and create a new orbit for
tomcat-websocket. This new orbit will use the SPI Fly based approach to
register its SPI for ServletContainerInitializer.

There has already been some work carried out related to this with :
https://github.com/wso2/carbon4-kernel/pull/190 by Denuwanthi.

We will review and merge they PR to kernel along with above new changes.
Kernel will not have any web socket related resources, but it will have
tomcat level support for reading SPI's using OSGi approach. This will be an
extension for tomcat.

On Tue, Mar 17, 2015 at 5:27 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi,

 On Tue, Mar 17, 2015 at 5:10 PM, Sagara Gunathunga sag...@wso2.com
 wrote:



 On Tue, Mar 17, 2015 at 5:04 PM, Sagara Gunathunga sag...@wso2.com
 wrote:



 On Tue, Mar 17, 2015 at 4:45 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Yea, with the use of SPI-Fly we can provide support for this. We
 actually tested it out, and it works. We haven't introduced SPI-Fly to our
 platform yet, hence the thought.

 The websocket sample there uses the older Tomcat websocket API. I think
 we are yet to update this sample to use the Websocket JSR. You can try this
 out by installing the latest examples.war in tomcat.


 Wasn't that we had same conversation in past about SPI-Fly, when
 Denuwanthi/Rajkumar doing their fast track project ?


 Please refer following thread[1], during a review with Azeez we decided
 to ship  SPI-Fly with Carbon/AS.


 Oh yes, for a mail I sent. :-)

 We can do this then!


 [1] - Shipping Aries SPI Fly in AS (was: ServletContainerInitializer for
 AS)

 Thanks !


 @SupunM, did you find time to merge the new websocket samples to AS?


 It's Ok to have samples but I think adding automation test cases for
 WebSockets and custom ServletContainerInitializers should get high
 priority.



 Yep.. +1.




 Thanks !




 Thanks.


 On Tue, Mar 17, 2015 at 4:24 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Not exactly. SPI's in OSGi environment are loaded using Thread Context
 Classloader. See :
 http://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html. We
 can properly fix SPI's related issues with OSGi only with OSGi
 ServiceLoader Mediator Specification (such as SPI Fly).

 But to workaround this, I created a separate orbit for
 tomcat-websocket and tested on AS. No issues popped up and the web socket
 sample seems to work fine. This is by completely separating the web socket
 related packages/resources from main tomcat orbit to a separate one. What
 more should be tested with this?



 On Tue, Mar 17, 2015 at 2:17 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 The requirement is to have it in the same classloader as tomcat. The
 SPIs do not work otherwise.

 On Tue, Mar 17, 2015 at 2:10 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Can't we create a separate orbit for tomcat-websocket, that includes
 this ServletContainerInitializer? Or do we need to have it within
 tomcat orbit itself?

 On Tue, Mar 17, 2015 at 1:52 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Kishanthan,


 On Tue, Mar 17, 2015 at 1:33 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Can we try with the attached tomcat orbit bundle :
 https://wso2.org/jira/secure/attachment/36443/tomcat_7.0.52.wso2v5.jar
  ?
 I think the root cause for this is same as what we found with spring
 bundle. Tomcat orbit also includes a SPI for 
 javax.servlet.ServletContainerInitializer. I have removed that
 from the above attached jar. Let me know the results of this with IS.

 Also currently IS-5.1.0 uses kernel 4.3.0 (tomcat_7.0.52-wso2v5).
 Can you test and confirm that the above issue is still there with 
 kernel
 4.4.0-SNAPSHOT (Beta1) too? You may need to update the kernel 
 dependency
 version of your distribution. If yes, we may need to do a tomcat orbit
 release.


 We do need this ServletContainerInitializer inside the tomcat
 bundle to get the websocket to work. If you think the cause of the 
 above
 issue is this SPI, then we have to find and fix the root cause.



 On Tue, Mar 17, 2015 at 8:40 AM, Prasad Tissera pras...@wso2.com
 wrote:

 Yes, We tried after downgrading spring version but it didn't
 solve the issue.

 Sent from my mobile
 On Mar 16, 2015 7:50 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 So I think this is not related to spring upgrade. The issue
 mentioned in : https://wso2.org/jira/browse/CARBON-14864 is
 actually fixed with the given fix. This issue seems not related to 
 spring
 upgrade. You can confirm this by downgrading the version or 
 removing the
 spring bundle from carbon runtime and check. We could still see the 
 same
 startup/webapp deployment error. This seems to a typical OSGi class 
 loading
 issue.

 Need to have a another deep look and see.

 On Mon, Mar 16, 2015 at 3:06 PM, Prasad Tissera 
 pras...@wso2.com wrote:

 Issue cannot be 

Re: [Dev] [API] OSGIServerBundleStatusTestCase Failure - Unsatisfied components detected at 1.9.0-SNAPSHOT server starup

2015-03-18 Thread Dimuthu De Lanerolle
Jira : *https://wso2.org/jira/browse/APIMANAGER-3390
https://wso2.org/jira/browse/APIMANAGER-3390*

Regards

On Mon, Mar 16, 2015 at 12:01 PM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 Hi APIM Team,

 Due to the following unsatisfied osgi component in the latest APIM
 1.9.0-SNAPSHOT pack we will 'disable' OSGIServerBundleStatusTestCase (test
 written for detecting Unsatisfied OSGI components at server startup) from
 tests-integration module.

 Can you pls look into this? We can enable the said test case once this is
 fixed.


 24 Unsatisfied org.wso2.carbon.apimgt.startup.publisher.internal
 org.wso2.carbon.apimgt.startup.publisher(bid=174)


 For diag 24 we get this.

 reference:file:../plugins/commons-configuration_1.6.0.wso2v1.jar [24]
   Direct constraints which are unresolved:
 Missing optionally imported package org.apache.commons.jxpath_0.0.0.
 Missing optionally imported package org.apache.commons.jxpath.ri_0.0.0.
 Missing optionally imported package
 org.apache.commons.jxpath.ri.compiler_0.0.0.
 Missing optionally imported package
 org.apache.commons.jxpath.ri.model_0.0.0.


 Regards



 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Delivery Status Notification (Failure)

2015-03-18 Thread Yasima Dewmini
 Hi!
I am Yasima Dewmini, an undergraduate of Department of Computer Science and
Engineering, University of Moratuwa. Currently I am an intern at WSO2.

I am interested in proposal [5] in the Gsoc project proposal list and
looking forward to contribute to the project.

Thanks.
Yasima.

--
K.Yasima Dewmini
Software Engineer Intern
mobile: 0713117081



-- 
K.Y.Dewmini
Software Engineer Intern
mobile: 0713117081
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sending an Arraylist using a SOAP mesage

2015-03-18 Thread Ravindra Ranwala
Hi Pubudu,

Could you please try to send it as an array of Objects instead of an Array
list.


Thanks  Regards,

On Wed, Mar 18, 2015 at 11:36 AM, Pubudu Dodangoda pubu...@wso2.com wrote:

 How can I perform $subject ?

 I can send other data(string, int, objects etc)
 But when I try to send an Arraylist, I get the following value at the
 debugger

 {OMElementmpl@10789}xsd:roles xmlns:xsd=
 http://data.admin.dashboard.analytics.carbon.wso2.org/xsd;my
 role/xsd:roles

 this is the soap message I sent

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:adm=http://admin.dashboard.analytics.carbon.wso2.org; xmlns:xsd=
 http://data.admin.dashboard.analytics.carbon.wso2.org/xsd;
soapenv:Header/
soapenv:Body
   adm:addDashboard
  adm:dashboard
 xsd:idmyId/xsd:id
 xsd:rolesmy role/xsd:roles
 xsd:rolesmy role2/xsd:roles
  /adm:dashboard
   /adm:addDashboard
/soapenv:Body
 /soapenv:Envelope

 Thank You and kind Regards
 --
 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




-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com
http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
Mobile: +94714198770
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Application Server] Exception when generating client for a deployed JAX-RS service

2015-03-18 Thread Ushani Balasooriya
Hi Thilini,

Similar carbon issue is reported in [1] which is in open state yet.

[1] https://wso2.org/jira/browse/CARBON-14550

Thanks!

On Mon, Mar 16, 2015 at 11:44 AM, Thilini Cooray thili...@wso2.com wrote:

 Hi,

 I am getting following IOException [1] when trying to generate a client
 from the available Generate Client option in the Application Server
 Management Console.
 I have deployed a JAX-RS web service in the Application Server already.

 The generated maven project also gives an error No marketplace entries
 found to handle cxf-wadl2java-plugin:2.7.0:wadl2java in Eclipse.

 Help is appreciated on this issue.

 Thank you.

 [1]

 [2015-03-16 11:41:03,911] ERROR
 {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
 servlet [bridgeservlet] in context with path [/] threw exception

 java.io.IOException: Stream closed

 at
 org.apache.jasper.runtime.BodyContentImpl.ensureOpen(BodyContentImpl.java:626)

 at
 org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:114)

 at
 org.apache.jsp.wsdl2code.codegen_005fajaxprocessor_jsp._jspService(org.apache.jsp.wsdl2code.codegen_005fajaxprocessor_jsp:110)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)

 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

 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:848)

 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:848)

 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

 at
 org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)

 at
 org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)

 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)

 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)

 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

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

 --
 Best 

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

2015-03-18 Thread Tharinda Ehelepola
Hi,

I have almost done the project proposal. Could you please check it and give
some feed back.

https://docs.google.com/document/d/1mppMTbpSP_vWvhbK3RPrIR1HU9D8IFgLT5Mdsdhp8Vs/pub

On Thu, Mar 19, 2015 at 2:44 AM, Nirmal Fernando nir...@wso2.com wrote:

 Please share in dev@.

 On Thu, Mar 19, 2015 at 5:27 AM, Tharinda Ehelepola tharinda...@gmail.com
  wrote:

 I have almost done the project proposal. Could you please check it and
 give some feed back.


 https://docs.google.com/document/d/1mppMTbpSP_vWvhbK3RPrIR1HU9D8IFgLT5Mdsdhp8Vs/pub

 On Wed, Mar 18, 2015 at 1:52 PM, Nirmal Fernando nir...@wso2.com wrote:

 Great!

 On Wed, Mar 18, 2015 at 7:21 PM, Tharinda Ehelepola 
 tharinda...@gmail.com wrote:

 Sorry about the previous mail. I found the presentation from the
 mailing list.

 On Wed, Mar 18, 2015 at 1:48 PM, Tharinda Ehelepola 
 tharinda...@gmail.com wrote:

 Hi,

 Did you mean that you sent me a presentation? I am confused;I can't
 find it. Can you please send me it again.

 On Wed, Mar 18, 2015 at 11:28 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 I shared a presentation with you.

 On Wed, Mar 18, 2015 at 4:32 PM, Tharinda Ehelepola 
 tharinda...@gmail.com wrote:

 I need some knowledge about WSO2 machine learner. Earlier you told
 me that WSO2 Machine Learner which is a new product that you are
 building these days. I think I should have some basic idea about it for 
 the
 project proposal. Can you please tell me about it.

 On Wed, Mar 18, 2015 at 7:40 AM, Tharinda Ehelepola 
 tharinda...@gmail.com wrote:

 Thanks Nirmal I'll go through.

 On Wed, Mar 18, 2015 at 5:08 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Sample proposal of mine:
 http://nirmalfdo.blogspot.com/search/label/GSoC-2011

 On Wed, Mar 18, 2015 at 10:37 AM, Nirmal Fernando nir...@wso2.com
  wrote:

 Seems like we don't have any template as such, but you could come
 up with a structure that makes sense.



 On Wed, Mar 18, 2015 at 8:49 AM, Nirmal Fernando nir...@wso2.com
  wrote:

 Hi Tharindu,

 Let me check and get back to you.

 On Wed, Mar 18, 2015 at 2:10 AM, Tharinda Ehelepola 
 tharinda...@gmail.com wrote:

 Hi,
 I studied about proposal 17 last few days. Now I have proper
 idea about that project. In order to prepare the proposal It's 
 better if I
 have some template or last year proposals. Can you provide me some 
 links.

 Thank you,
 Tharinda.




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/







 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/







 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/






 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/



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


Re: [Dev] [API] APIScopeTestCase Failure

2015-03-18 Thread Dimuthu De Lanerolle
Jira : https://wso2.org/jira/browse/APIMANAGER-3391

Regards

On Fri, Mar 13, 2015 at 5:46 PM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 Hi Nuwan,

 Pls disregard my previous response. It should be corrected as
 DefaultVersionWithScopesTestCase fails on both packs

 Regards




-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Dinithi De Silva
Congratz Hemika

On Wed, Mar 18, 2015 at 11:30 AM, Thilini Cooray thili...@wso2.com wrote:

 Congrats, Hemika !

 On Wed, Mar 18, 2015 at 11:22 AM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Hemika!

 On Wed, Mar 18, 2015 at 11:11 AM, Niranda Perera nira...@wso2.com
 wrote:

 Congrats machan! :-)

 On Wed, Mar 18, 2015 at 11:10 AM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Congratz, Hemika !!!


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage pum...@wso2.com
 wrote:

 Congratulations Hemika..!!!

 On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka tha...@wso2.com
 wrote:

 Congratulations Hemika !!

 On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya 
 lasit...@wso2.com wrote:

 Congratulations Hemika !

 On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 regards,

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

 E: ram...@wso2.com


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




 --
 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




 --

 *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




 --
 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



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




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

 ___
 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

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




 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware

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




-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] Java Broker Start Up failure

2015-03-18 Thread Pranavan Theivendram
Hi All,

I am getting the following error when I am starting the java broker. Can
anyone help me in this issue.





















*Exception during startup:
org.apache.qpid.server.configuration.IllegalConfigurationException: No
phase upgrader for version
3.0org.apache.qpid.server.configuration.IllegalConfigurationException: No
phase upgrader for version 3.0at
org.apache.qpid.server.store.GenericStoreUpgrader.buildUpgraderChain(GenericStoreUpgrader.java:133)
at
org.apache.qpid.server.store.GenericStoreUpgrader.performUpgrade(GenericStoreUpgrader.java:94)
at
org.apache.qpid.server.store.GenericStoreUpgrader.access$100(GenericStoreUpgrader.java:34)
at
org.apache.qpid.server.store.GenericStoreUpgrader$1.end(GenericStoreUpgrader.java:78)
at
org.apache.qpid.server.store.JsonFileConfigStore.visitConfiguredObjectRecords(JsonFileConfigStore.java:158)
at
org.apache.qpid.server.store.GenericStoreUpgrader.upgrade(GenericStoreUpgrader.java:82)
at
org.apache.qpid.server.store.BrokerStoreUpgraderAndRecoverer.upgrade(BrokerStoreUpgraderAndRecoverer.java:498)
at
org.apache.qpid.server.store.BrokerStoreUpgraderAndRecoverer.perform(BrokerStoreUpgraderAndRecoverer.java:479)
at
org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:80)
at org.apache.qpid.server.Broker.startupImpl(Broker.java:153)at
org.apache.qpid.server.Broker.access$000(Broker.java:51)at
org.apache.qpid.server.Broker$1.run(Broker.java:112)at
java.security.AccessController.doPrivileged(Native Method)at
javax.security.auth.Subject.doAs(Subject.java:415)at
org.apache.qpid.server.Broker.startup(Broker.java:107)at
org.apache.qpid.server.Main.startBroker(Main.java:458)at
org.apache.qpid.server.Main.execute(Main.java:314)at
org.apache.qpid.server.Main.init(Main.java:147)at
org.apache.qpid.server.Main.main(Main.java:138)*


-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unsupported AMQP version error when connecting WSO2 CEP and MB

2015-03-18 Thread Tharik Kanaka
Hi Akalanka,

Thank you for the support. The error is little bit misleading, and it was a
configuration issue which causes the error. In jndi properties topic name
is example.MyTopic, but specifying topic name in CEP end, it has to be
just MyTopic.

Thanks

On Wed, Mar 18, 2015 at 10:53 AM, Akalanka Pagoda Arachchi 
darsha...@wso2.com wrote:

 Hi Tharik,

 Please check the AMQP version used in CEP for this connection. Currently
 MB only supports up to AMQP 0.9.1 and it looks like CEP is using a later
 version than that for this connection.

 Thanks,
 Akalanka.

 On Wed, Mar 18, 2015 at 10:22 AM, Tharik Kanaka tha...@wso2.com wrote:


 Hi all,

 I am trying to connect MB (2.2.0) as producer and CEP (4.0.0) as consumer
 using input adapters. I am getting following error continously once i have
 connected the CEP with MB.

 ERROR - {NativeWorkerPool}  Uncaught exception
 java.lang.UnsupportedOperationException: The new addressing based sytanx
 is not supported for AMQP 0-8/0-9 versions
 at
 org.wso2.andes.client.AMQSession_0_8.handleAddressBasedDestination(AMQSession_0_8.java:577)
 at org.wso2.andes.client.AMQSession.registerConsumer(AMQSession.java:2868)
 at org.wso2.andes.client.AMQSession.access$500(AMQSession.java:109)
 at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2061)
 at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2027)
 at
 org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315)
 at
 org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:621)
 at
 org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
 at
 org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2025)
 at org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028)
 at
 org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSUtils.createConsumer(JMSUtils.java:472)
 at
 org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.createConsumer(JMSTaskManager.java:982)
 at
 org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.getMessageConsumer(JMSTaskManager.java:850)
 at
 org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.receiveMessage(JMSTaskManager.java:599)
 at
 org.wso2.carbon.event.input.adaptor.jms.internal.util.JMSTaskManager$MessageListenerTask.run(JMSTaskManager.java:520)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:695)


 Following are CEP jndi properties

 # register some connection factories
 # connectionfactory.[jndiname] = [ConnectionURL]
 connectionfactory.TopicConnectionFactory = amqp://admin:admin@clientID
 /carbon?brokerlist='tcp://localhost:5674'

 connectionfactory.QueueConnectionFactory = amqp://admin:admin@clientID
 /carbon?brokerlist='tcp://localhost:5674''

 # register some queues in JNDI using the form
 # queue.[jndiName] = [physicalName]
 queue.MyQueue = example.MyQueue

 # register some topics in JNDI using the form
 # topic.[jndiName] = [physicalName]
 topic.MyTopic = example.MyTopic


 This the CEP input adapter

 inputEventAdaptor name=jmsInputAdapter statistics=disable
   trace=disable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   property
 name=java.naming.provider.urlrepository/conf/jndi.properties/property
   property
 name=java.naming.factory.initialorg.wso2.andes.jndi.PropertiesFileInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /inputEventAdaptor


 Is it causing due to mismatching of AMQP version?


 --

 *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




 --
 *Darshana Akalanka Pagoda Arachchi,*
 *Software Engineer*
 *078-4721791*




-- 

*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] WSO2 Committers += Hemika Kodikara

2015-03-18 Thread Thilini Cooray
Congrats, Hemika !

On Wed, Mar 18, 2015 at 11:22 AM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Hemika!

 On Wed, Mar 18, 2015 at 11:11 AM, Niranda Perera nira...@wso2.com wrote:

 Congrats machan! :-)

 On Wed, Mar 18, 2015 at 11:10 AM, Dilan Udara Ariyaratne dil...@wso2.com
  wrote:

 Congratz, Hemika !!!


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage pum...@wso2.com
 wrote:

 Congratulations Hemika..!!!

 On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka tha...@wso2.com wrote:

 Congratulations Hemika !!

 On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya 
 lasit...@wso2.com wrote:

 Congratulations Hemika !

 On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 regards,

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

 E: ram...@wso2.com


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




 --
 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




 --

 *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




 --
 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



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




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

 ___
 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

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




-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Sending an Arraylist using a SOAP mesage

2015-03-18 Thread Pubudu Dodangoda
How can I perform $subject ?

I can send other data(string, int, objects etc)
But when I try to send an Arraylist, I get the following value at the
debugger

{OMElementmpl@10789}xsd:roles xmlns:xsd=
http://data.admin.dashboard.analytics.carbon.wso2.org/xsd;my
role/xsd:roles

this is the soap message I sent

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:adm=http://admin.dashboard.analytics.carbon.wso2.org; xmlns:xsd=
http://data.admin.dashboard.analytics.carbon.wso2.org/xsd;
   soapenv:Header/
   soapenv:Body
  adm:addDashboard
 adm:dashboard
xsd:idmyId/xsd:id
xsd:rolesmy role/xsd:roles
xsd:rolesmy role2/xsd:roles
 /adm:dashboard
  /adm:addDashboard
   /soapenv:Body
/soapenv:Envelope

Thank You and kind Regards
-- 
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


Re: [Dev] [Appfactory] Exception when trying to call an available OSGI service in AppFactory

2015-03-18 Thread Fathima Dilhasha
Hi,

I tried logging in between the steps.

* tenantId and tenantDomain are not null
* The null pointer exception takes place in the following line.

server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
issueTrackerConfig);

Is it because the server cannot track the OSGI service I'm referring to?
 (The service is listed in the OSGI cosole)

How can I figure it out?

Thanks.
Regards,
Dilhasha

*M.N.F. Dilhasha*
Software Engineering Intern | *WSO2 Lanka*

email   :
*dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

On Wed, Mar 18, 2015 at 11:14 AM, Fathima Dilhasha dilha...@wso2.com
wrote:

 Hi Mahesh,

 Thanks for the points. I'll work on those and see.

 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 11:13 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Sorry I missed this,
 getting modManager varialbe , put this befor getting the tenant domain.
 var modManager = jagg.module(manager);

 On Wed, Mar 18, 2015 at 11:11 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dilhasha,
 I think you havent got the tenant domain properly.

 you may use following to get tenant domain.
 var tenantDomain = modManager.getTenantDomain();

 you may use following to set tenant domain n id
 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain,true);


  in between the steps you can put  info logs to see values, in that way
 you may be able to see whats null here.

 On Wed, Mar 18, 2015 at 10:59 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Few points

1. Did you check whether your osgi bundle is activated or not? May
be that's the issue. Seems it cannot find the osgi service.
2. When start tenant flow in setTenantDomain method there is a
another signature which will take in tenantDomain (String) and
resolveTenantID (boolean) parameters. You can use that instead of 
 setting
tenantID manually.
3. The way you have included the module, AFAIR that's not the way
to refer to a module. Refer to other places that we have done such a 
 thing.


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 18, 2015 at 10:45 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi Mahesh,

 Thanks for the response.

 Following is the code in saveConfig.jag

 include(/jagg/jagg.jag);
 include(/jagg/constants.jag);
 include(/jagg/config_reader.jag);
 include(/modules/manager/manager.jag);

 (function () {

 var carbon = require('carbon');
 var log = new Log(module/issuetracker/saveConfig.jag);
 var multitenancy = carbon.multitenancy;
 var server = carbon.server;



 var context=multitenancy.getPrivilegedCarbonContext();
 var tenantDomain = getTenantDomain();
 var tenantId=getTenantId();

 var issueTrackerConfig = 
 Packages.org.wso2.carbon.appfactory.issuetracking.beans.IssueTrackerConfigurations;
 var issueConfig=new issueTrackerConfig();
 issueConfig.setIssueTrackerinstanceUrl(some url);

 try{

 context.startTenantFlow();
 context.getThreadLocalCarbonContext().setTenantId(tenantId);
 
 context.getThreadLocalCarbonContext().setTenantDomain(tenantDomain);
 
 server.osgiService('org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService').createProject(applicationName,
  issueTrackerConfig);
 }catch(e){
 log.error(e);
 }finally{
 context.endTenantFlow();
 }




 }());



 The getTenantDomain,getTenantId functions are in a different jag file,
 which I have included (manager.jag).



 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Lanka*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Mar 18, 2015 at 10:35 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dilhasha,

 This could be either not setting tenant domain/ id properly or,
 issueTrackerConfig parameter might be null at that moment. can you share
 the code segment of whole function please. So we can see the reason for 
 NPE.

 On Wed, Mar 18, 2015 at 10:27 AM, Fathima Dilhasha dilha...@wso2.com
  wrote:

 Hi,

 I'm trying to access an osgi service available in WSO2 Appfactory,
 from the 'appmgt' jaggery app. In this process I get the following
 exception in the server.

 *TID: [0] [AF] [2015-03-18 04:44:00,643] ERROR
 {module/issuetracker/saveConfig.jag} -
  org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (osgi#8)*
 * at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
 * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
 * at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)*
 * at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)*
 * at org.mozilla.javascript.gen.osgi_11._c_anonymous_2(osgi:8)*
 *