[Dev] Caching implementation performance improvement
While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Weird behavior with load balancing a IS Cluster
They both run in one machine and the other IS node in a different machine. On Wed, Aug 7, 2013 at 11:25 AM, Sameera Jayasoma same...@wso2.com wrote: Chamara, you've put the same hostname to ELB as well as to the IS node 1. Is that intentional? Thanks, Sameera. On Wed, Aug 7, 2013 at 11:11 AM, Sameera Jayasoma same...@wso2.comwrote: From the logs, I can say that the second IS node is not joined the cluster properly. If it joins the cluster properly, you should see a log similar to the following. *[2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true* *[2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster* * * On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.comwrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- Sameera Jayasoma, Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Lean . Enterprise . Middleware -- Sameera Jayasoma, Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Lean . Enterprise . Middleware -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Weird behavior with load balancing a IS Cluster
Host names/addresses are not properly configured. One node is advertising the details of another node. On Wed, Aug 7, 2013 at 11:31 AM, Chamara Ariyarathne chama...@wso2.comwrote: They both run in one machine and the other IS node in a different machine. On Wed, Aug 7, 2013 at 11:25 AM, Sameera Jayasoma same...@wso2.comwrote: Chamara, you've put the same hostname to ELB as well as to the IS node 1. Is that intentional? Thanks, Sameera. On Wed, Aug 7, 2013 at 11:11 AM, Sameera Jayasoma same...@wso2.comwrote: From the logs, I can say that the second IS node is not joined the cluster properly. If it joins the cluster properly, you should see a log similar to the following. *[2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true* *[2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster* * * On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.comwrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- Sameera Jayasoma, Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Lean . Enterprise . Middleware -- Sameera Jayasoma, Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Lean . Enterprise . Middleware -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org
Re: [Dev] Weird behavior with load balancing a IS Cluster
On Wed, Aug 7, 2013 at 11:34 AM, Afkham Azeez az...@wso2.com wrote: Host names/addresses are not properly configured. One node is advertising the details of another node. Hi Azeez, can you point where it is; ELB and IS 1 runs on 192.168.17.19 IS 2 runs on 192.168.17.20 On Wed, Aug 7, 2013 at 11:31 AM, Chamara Ariyarathne chama...@wso2.comwrote: They both run in one machine and the other IS node in a different machine. On Wed, Aug 7, 2013 at 11:25 AM, Sameera Jayasoma same...@wso2.comwrote: Chamara, you've put the same hostname to ELB as well as to the IS node 1. Is that intentional? Thanks, Sameera. On Wed, Aug 7, 2013 at 11:11 AM, Sameera Jayasoma same...@wso2.comwrote: From the logs, I can say that the second IS node is not joined the cluster properly. If it joins the cluster properly, you should see a log similar to the following. *[2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true* *[2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster* * * On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.com wrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- Sameera Jayasoma, Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Lean . Enterprise . Middleware -- Sameera Jayasoma, Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Lean . Enterprise . Middleware -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez *
[Dev] IDE specific folders/files can find in platform/trunk/products/appfactory/modules/samples/CustomerPortal
Hi, Please note $subject at [1]. [1] - https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/appfactory/modules/samples/CustomerPortal/ Regards, Gihan -- --- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Weird behavior with load balancing a IS Cluster
One issue is, localMemberPort of the LB in the axis2.xml group_mgt_port for the IS cluster are both given as 4000. Change the localMemberPort to something like 9876. Azeez On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.comwrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error when login to the GReg
Please check whether you have build the user.mgt properly. we can not see such issue in packs from builder machine. Also there is no any user core API change.. only Abstract class method has been changed. Thanks, Asela. On Wed, Aug 7, 2013 at 11:25 AM, Lasith Chandrasekara las...@wso2.comwrote: Hi, I am getting following error when loging to the GReg (svn up - yesterday evening). This is related to the mail [Dev] Cant create user role due to Api change in user-core Regards, Lasith. [2013-08-07 11:24:01,667] ERROR {org.apache.axis2.rpc.receivers.RPCMessageReceiver} - org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(Ljava/lang/String;IZ)[Ljava/lan g/String; java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.user.mgt.stub.UserAdminStub.getRolesOfCurrentUser(UserAdminStub.java:4489) at org.wso2.carbon.governance.notifications.ui.worklist.HumanTaskClient.getRoles(HumanTaskClient.java:146) at org.apache.jsp.worklist.header_jsp._jspService(org.apache.jsp.worklist.header_jsp:75) 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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015) at org.apache.jsp.admin.layout.header_jsp._jspService(org.apache.jsp.admin.layout.header_jsp:169) at
[Dev] User core test failure
--- Test set: org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest --- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.679 sec FAILURE! testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest) Time elapsed: 2.619 sec ERROR! org.wso2.carbon.user.core.UserStoreException: Column UM_SHARED_ROLE not found; SQL statement: SELECT UM_ROLE_NAME, UM_TENANT_ID, UM_SHARED_ROLE FROM UM_ROLE WHERE UM_ROLE_NAME LIKE ? AND UM_TENANT_ID=? AND UM_SHARED_ROLE ='0' ORDER BY UM_ROLE_NAME [42122-140] at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doGetRoleNames(JDBCUserStoreManager.java:471) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(AbstractUserStoreManager.java:2355) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(AbstractUserStoreManager.java:2252) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(AbstractUserStoreManager.java:2245) at org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest.doUserStuff(AdvancedJDBCRealmTest.java:250) at org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest.testStuff(AdvancedJDBCRealmTest.java:55) Caused by: org.h2.jdbc.JdbcSQLException: Column UM_SHARED_ROLE not found; SQL statement: SELECT UM_ROLE_NAME, UM_TENANT_ID, UM_SHARED_ROLE FROM UM_ROLE WHERE UM_ROLE_NAME LIKE ? AND UM_TENANT_ID=? AND UM_SHARED_ROLE ='0' ORDER BY UM_ROLE_NAME [42122-140] at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) at org.h2.message.DbException.get(DbException.java:167) at org.h2.message.DbException.get(DbException.java:144) at org.h2.expression.ExpressionColumn.optimize(ExpressionColumn.java:127) at org.h2.command.dml.Select.prepare(Select.java:738) at org.h2.command.Parser.prepare(Parser.java:202) at org.h2.command.Parser.prepareCommand(Parser.java:214) at org.h2.engine.Session.prepareLocal(Session.java:434) at org.h2.engine.Session.prepareCommand(Session.java:384) at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071) at org.h2.jdbc.JdbcPreparedStatement.init(JdbcPreparedStatement.java:71) at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80) at com.sun.proxy.$Proxy1.prepareStatement(Unknown Source) at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doGetRoleNames(JDBCUserStoreManager.java:434) ... 33 more -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Caching implementation performance improvement
Hi, Great :), This is automatically handled by the caching implementation right? no need for any changes in higher levels. Regards, Pulasthi On Wed, Aug 7, 2013 at 11:39 AM, Afkham Azeez az...@wso2.com wrote: The attached profile screenshot shows the significant improvement On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Google Geocoding API as a API Manager Sample
We might have to consider their Usage Limits. See comments below. *Use of the Google Geocoding API is subject to a query limit of 2,500 requests per day. * *If you exceed the 24-hour limit or otherwise abuse the service, the Geocoding API may stop working for you temporarily. If you continue to exceed this limit, your access to the Geocoding API may be blocked. * * * *Note: **the Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited* Thanks, NuwanD. On Tue, Aug 6, 2013 at 6:27 PM, Ruwan Yatawara ruw...@wso2.com wrote: Hi All, Shall we use the Google Geocoding API [1], as a API Manager Sample?, since the current twitter sample is not functional at the moment due to to endpoint getting deprecated. Plus newer versions of the API require authentication. [1] - https://developers.google.com/maps/documentation/geocoding/ Thanks and Regards, Ruwan Yatawara Software Engineer, WSO2 Inc. lean . enterprise . middleware email : ruw...@wso2.com mobile : +94 77 9110413 blog : http://ruwansrants.blogspot.com/ www: :http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Dias Senior Software Engineer - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] Caching implementation performance improvement
*Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. Is this L1 concept similar to first level caching in Hibernate? which means first level caching stores in memory, and flush them to second level caching (file system) later. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error when login to the GReg
Hi Lasith, Lets recompile on a clean repo. Hi Asela, Appreciate some firm deadline on when these UM changes stop happening. It is somewhat inconvenient to keep updating things every now and then to realize something is broken and then repeat the whole build over and over. Thanks, Senaka. On Wed, Aug 7, 2013 at 11:50 AM, Asela Pathberiya as...@wso2.com wrote: Please check whether you have build the user.mgt properly. we can not see such issue in packs from builder machine. Also there is no any user core API change.. only Abstract class method has been changed. Thanks, Asela. On Wed, Aug 7, 2013 at 11:25 AM, Lasith Chandrasekara las...@wso2.comwrote: Hi, I am getting following error when loging to the GReg (svn up - yesterday evening). This is related to the mail [Dev] Cant create user role due to Api change in user-core Regards, Lasith. [2013-08-07 11:24:01,667] ERROR {org.apache.axis2.rpc.receivers.RPCMessageReceiver} - org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(Ljava/lang/String;IZ)[Ljava/lan g/String; java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.user.mgt.stub.UserAdminStub.getRolesOfCurrentUser(UserAdminStub.java:4489) at org.wso2.carbon.governance.notifications.ui.worklist.HumanTaskClient.getRoles(HumanTaskClient.java:146) at org.apache.jsp.worklist.header_jsp._jspService(org.apache.jsp.worklist.header_jsp:75) 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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37) at
Re: [Dev] [Architecture] Caching implementation performance improvement
On Wed, Aug 7, 2013 at 12:10 PM, Afkham Azeez az...@wso2.com wrote: On Wed, Aug 7, 2013 at 12:00 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote: *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. Is this L1 concept similar to first level caching in Hibernate? which means first level caching stores in memory, and flush them to second level caching (file system) later. No it is not exactly the same. The flushing here is done immediately. I didn't want to complicate it until it becomes necessary. So at the moment, cache write could be a bit slow, but reads are very fast. Reads are more frequent than writes I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] Caching implementation performance improvement
On Wed, Aug 7, 2013 at 12:00 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote: *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. Is this L1 concept similar to first level caching in Hibernate? which means first level caching stores in memory, and flush them to second level caching (file system) later. No it is not exactly the same. The flushing here is done immediately. I didn't want to complicate it until it becomes necessary. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] User core test failure
We can resolve this issue by taking svn up in kernel/trunk/distribut ion/kernel/carbon-home/dbscripts. Actually user core is using the carbon database script that is shipped; to run the unit test... Thanks, Asela. On Wed, Aug 7, 2013 at 11:53 AM, Afkham Azeez az...@wso2.com wrote: --- Test set: org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest --- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.679 sec FAILURE! testStuff(org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest) Time elapsed: 2.619 sec ERROR! org.wso2.carbon.user.core.UserStoreException: Column UM_SHARED_ROLE not found; SQL statement: SELECT UM_ROLE_NAME, UM_TENANT_ID, UM_SHARED_ROLE FROM UM_ROLE WHERE UM_ROLE_NAME LIKE ? AND UM_TENANT_ID=? AND UM_SHARED_ROLE ='0' ORDER BY UM_ROLE_NAME [42122-140] at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doGetRoleNames(JDBCUserStoreManager.java:471) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(AbstractUserStoreManager.java:2355) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(AbstractUserStoreManager.java:2252) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(AbstractUserStoreManager.java:2245) at org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest.doUserStuff(AdvancedJDBCRealmTest.java:250) at org.wso2.carbon.user.core.jdbc.AdvancedJDBCRealmTest.testStuff(AdvancedJDBCRealmTest.java:55) Caused by: org.h2.jdbc.JdbcSQLException: Column UM_SHARED_ROLE not found; SQL statement: SELECT UM_ROLE_NAME, UM_TENANT_ID, UM_SHARED_ROLE FROM UM_ROLE WHERE UM_ROLE_NAME LIKE ? AND UM_TENANT_ID=? AND UM_SHARED_ROLE ='0' ORDER BY UM_ROLE_NAME [42122-140] at org.h2.message.DbException.getJdbcSQLException(DbException.java:327) at org.h2.message.DbException.get(DbException.java:167) at org.h2.message.DbException.get(DbException.java:144) at org.h2.expression.ExpressionColumn.optimize(ExpressionColumn.java:127) at org.h2.command.dml.Select.prepare(Select.java:738) at org.h2.command.Parser.prepare(Parser.java:202) at org.h2.command.Parser.prepareCommand(Parser.java:214) at org.h2.engine.Session.prepareLocal(Session.java:434) at org.h2.engine.Session.prepareCommand(Session.java:384) at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071) at org.h2.jdbc.JdbcPreparedStatement.init(JdbcPreparedStatement.java:71) at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41) at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109) at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80) at com.sun.proxy.$Proxy1.prepareStatement(Unknown Source) at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.doGetRoleNames(JDBCUserStoreManager.java:434) ... 33 more -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- Thanks Regards, Asela Mobile : +94 777 625 933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] UnsupportedOperationException when trying to cluster ESB with worker manager setup
Hi, What is the reason for this exception? [2013-08-07 12:02:14,278] FATAL - CarbonServerManager WSO2 Carbon initialization Failed java.lang.UnsupportedOperationException: setNodeManager is no longer supported at org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.setNodeManager(HazelcastClusteringAgent.java:368) at org.apache.axis2.deployment.ClusterBuilder.loadNodeManager(ClusterBuilder.java:347) at org.apache.axis2.deployment.ClusterBuilder.buildCluster(ClusterBuilder.java:100) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:186) at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:308) at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65) at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398) at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290) at org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:84) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) Jeewantha -- Jeewantha Dharmaparakrama Software Engineer; WSO2, Inc.; http://wso2.com/ Phone : (+94) 774726790 Skype : prasad.jeewantha LinkedIn : http://www.linkedin.com/in/jeewanthad Twitter: https://twitter.com/jeewamp Blog: http://jeewanthad.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Setting permission to rxt instance
Hi Senaka On Wed, Aug 7, 2013 at 10:08 AM, Senaka Fernando sen...@wso2.com wrote: Hi Dulitha, It depends on the client you use. If your code (or the BE code of the Jaggery code you've written, waits for the operation to complete, then it is synchronous. If it is not, then it wont behave that way. How can we wait for the operation to complete, I mean how can we know when the asset is created ? by doing res.exists() ? Thanks, Senaka. On Wed, Aug 7, 2013 at 8:58 AM, Dulitha Wijewantha duli...@wso2.comwrote: Hi guys, I am inserting to the registry using the system registry of the generic store using the Generic Artifact Manager. The issue is that when I insert through the GAM - it take sometime to be inserted to the registry. I want to set get operation for the anon role using the UserManager. Since the instance is not existing the permission is not applied. am = new carbon.registry.ArtifactManager(registry, mobileapp); var attributes ={ overview_status: PENDING-REVIEW, overview_name: ctx.name, overview_platform:t, overview_version: ctx.version, overview_url: ctx.url, overview_provider: ctx.provider, overview_description: ctx.description, overview_market:ctx.markettype, // overview_recentChanges:ctx.recentChanges, overview_packageName:ctx.packagename, overview_category:ctx.category, images_icon:icon, images_banner:banner, images_screenshots:screenshots }; attributes[attributes.overview_status+_date]=printDate(); am.add({ name: ctx.name, lifecycle:[applifecycle], path:path, attributes:attributes }); // The above call is not synchrnous. The method returns without actually adding the asset to the registry. // A JavaScript way of dealing with such things would be to implement a callback. Maybe for Java we need a listner. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET); //Above call will not work since the asset is not there in the registry Can someone from registry team explain whether the *addGenericArtifact *method is synchronous or not. Just for the sake of testing I even tried out a while loop using exists method- it also go infinite. Thanks -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] Caching implementation performance improvement
*Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Wed, Aug 7, 2013 at 12:12 PM, Afkham Azeez az...@wso2.com wrote: On Wed, Aug 7, 2013 at 12:10 PM, Afkham Azeez az...@wso2.com wrote: On Wed, Aug 7, 2013 at 12:00 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote: *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. Is this L1 concept similar to first level caching in Hibernate? which means first level caching stores in memory, and flush them to second level caching (file system) later. No it is not exactly the same. The flushing here is done immediately. I didn't want to complicate it until it becomes necessary. So at the moment, cache write could be a bit slow, but reads are very fast. Reads are more frequent than writes So from L1/L2 cache items identified from a key mechanism only (ex: primary key) and items retrieved from db store in L1 HashMap using those keys ?? Or is there any other ways like prepare statement caching support in L1 as well . I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ 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] Weird behavior with load balancing a IS Cluster
Well yes, something is still wrong. When the node 1 is down the Mgt console request does not go to the other. In the ELB log; [2013-08-07 07:04:29,105] ERROR - TenantAwareLoadBalanceEndpoint No application members available having host name : mgt.identity.qa-test.wso2.com and tenant id : 0 [2013-08-07 07:04:29,294] WARN - ConnectCallback Connection refused or failed for : /192.168.17.19:9444 On Wed, Aug 7, 2013 at 11:46 AM, Afkham Azeez az...@wso2.com wrote: One issue is, localMemberPort of the LB in the axis2.xml group_mgt_port for the IS cluster are both given as 4000. Change the localMemberPort to something like 9876. Azeez On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.comwrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Pending documentation issues for AS 5.2.0
Hi, Fix for the https://wso2.org/jira/browse/WSAS-1379 attached to the jira. It will be committed soon. Thanks. On Wed, Aug 7, 2013 at 11:10 AM, Mariangela Hills mariang...@wso2.comwrote: Hi Saraga, Further to our discussion yesterday, here is the status of the mentioned JIRAs [1] (AS JIRA sheet). In addition, I have spoken to all the corresponding SME's to gather the required information. Please note that JIRA [2] is related to the AS management console and has to be done by the AS team. In addition, I will be putting JIRA [3] on hold as requested, until you get back to me regarding it. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0ArQUlX7w5WYUdDZ6dDVVanJqTnQzalYwMzFpSGllX1E#gid=4 [2] https://wso2.org/jira/browse/WSAS-1379 [3] https://wso2.org/jira/browse/DOCUMENTATION-134 Regards, Mariangela *-- Mariangela Hills* Senior Technical Writer Mobile:(+94)773500185 WSO2 Inc. http://wso2.com/ On Tue, Aug 6, 2013 at 9:06 AM, Sagara Gunathunga sag...@wso2.com wrote: Hi Mariangela, Could you please update current progress of documentation issues for AS 5.2.0 release. As we are planning to release AS on next week we need to finalize following issues within this week. 1. https://wso2.org/jira/browse/DOCUMENTATION-109 2. https://wso2.org/jira/browse/DOCUMENTATION-108 3. https://wso2.org/jira/browse/DOCUMENTATION-100 4. https://wso2.org/jira/browse/DOCUMENTATION-93 5. https://wso2.org/jira/browse/DOCUMENTATION-134 6. https://wso2.org/jira/browse/WSAS-1289 7. https://wso2.org/jira/browse/WSAS-1379 8. https://wso2.org/jira/browse/WSAS-1114 9. https://wso2.org/jira/browse/WSAS-1289 Thanks ! -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/groups/opt_out. -- Piyum Fernando Software Engineer Mobile: +94 77 22 93 880 Home: +94 31 22 75 715 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Status of ESB 4.8.0 on kernal 4.2.0
On Wed, Aug 7, 2013 at 6:20 AM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: On Wed, Aug 7, 2013 at 12:34 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi, On Tue, Aug 6, 2013 at 5:30 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: Hi Folks, Following are the test results of the pack we built last Friday. The tests were run one by one since we cannot run all the tests in one go because many tests get skipped. @Jeewantha - What's the reason for test skipped ? Is it the same connection refused error ? AFAIU yes. Can you share the surefire report Thanks, Krishantha. However we noticed an API change on org.wso2.carbon.user.core hence almost all the tests were skiped on the pack we built today. Once the needful change is done on the test framework we could provide an ESB pack for QA. passed failed skipped Server-Stratup -1 0 0 Throttle-mediator-Test -6 1 0 ProxyService-Test - 184 47 2 Endpoint-Test - 40 0 0 LocalEntry-Test -8 0 0 nhttp-Transport-Test -0 0 8 Resource-MediaType-Test - 4 0 0 Rest-API-Test -1 1 0 Servlet-transport-Test -1 0 0 VFS-transport-Test - 24 0 0 Aggregate-mediator-Test - 38 1 0 Cache-mediator-Test -2 0 0 Call-mediator-Test -3 0 0 CallOut-mediator-Test -9 0 0 Clone-mediator-Test - 14 0 0 ConditionalRouting-mediator-Test- 5 0 0 Drop-mediator-Test -1 0 0 Message-Store-Test -6 0 0 Enrich-mediator-Test - 36 0 0 Fault-mediator-Test - 30 0 0 Filter-mediator-Test -4 0 0 Header-mediator-Test -2 0 0 In-mediator-Test -2 0 0 Log-mediator-Test -1 0 0 Out-mediator-Test -2 0 0 JMS-transport-Test - 20 1 0 Property-mediator-Test - 37 1 0 PayloadFactory-mediator-Test - 13 0 0 Rewrite-mediator-Test - 60 0 0 Router-mediator-Test - 8 0 0 Rule-mediator-Test -15 0 0 Message-Processor-Test - 3 1 0 Send-mediator-Test -70 0 0 Sequence-mediator-Test - 2 0 0 Switch-mediator-Test -12 0 0 Validate-mediator-Test - 11 0 0 XQuery-mediator-Test - 12 0 0 XSLT-mediator-Test - 7 0 0 FastXSLT-mediator-Test- 3 0 0 Class-mediator-Test -5 0 0 Iterate-mediator-Test - 31 0 0 Spring-mediator-Test - 5 1 0 Smook-mediator-Test- 2 1 0 Script-mediator-Test - 16 0 0 ESB-Sample-Test - 32 0 0 TCP-transport-Test - 1 0 0 POX-security-Test - 8 4 12 Rest-JSON-Test - 2 0 0 CAR-Deployment - 0 0 7 ScheduleTask-Test - 2 0 0 Scenario-Test - 1 0 0 GZIP-Compression-Test -6 0 0 BR, Jeewantha -- Jeewantha Dharmaparakrama Software Engineer; WSO2, Inc.; http://wso2.com/ Phone : (+94) 774726790 Skype : prasad.jeewantha LinkedIn : http://www.linkedin.com/in/jeewanthad Twitter: https://twitter.com/jeewamp Blog: http://jeewanthad.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Jeewantha Dharmaparakrama Software Engineer; WSO2, Inc.; http://wso2.com/ Phone : (+94) 774726790 Skype : prasad.jeewantha LinkedIn : http://www.linkedin.com/in/jeewanthad Twitter: https://twitter.com/jeewamp Blog: http://jeewanthad.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] NPE - Error occurred while running CacheCleanupTask
This happened in the 6th IS build. On Mon, Jul 29, 2013 at 7:01 PM, Afkham Azeez az...@wso2.com wrote: Seems like a null value has been placed in the cache. Anyway, I have now handled that condition as well. Azeez On Mon, Jul 29, 2013 at 6:56 PM, Nirodha Pramod niro...@wso2.com wrote: Hi Azeez, In the cluster setup we see the following NPE when Cache Cleanup Task is running. TID: [0] [AS] [2013-07-29 18:16:45,285] ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} - Error occurred while running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask} java.lang.NullPointerException at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:684) at org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:800) at org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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) See the below JIRA, https://wso2.org/jira/browse/CARBON-14232 - Nirodha -- * * *Nirodha Gallage* Senior Software Engineer, QA. WSO2 Inc.: http://wso2.com/ Mobile: +94716429078 -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] NPE - Error occurred while running CacheCleanupTask
On Wed, Aug 7, 2013 at 1:01 PM, Chamara Ariyarathne chama...@wso2.comwrote: This happened in the 6th IS build. TID: [0] [IS] [2013-08-07 07:29:37,949] ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} - Error occurred while running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask} com.hazelcast.core.OperationTimeoutException: [CONCURRENT_MAP_REMOVE] Redo threshold[90] exceeded! Last redo cause: REDO_MEMBER_UNKNOWN, Name: c:$cache.$domain[carbon.super]AUTHORIZATION_CACHE_MANAGER#AUTHORIZATION_CACHE at com.hazelcast.impl.BaseManager$ResponseQueueCall.getRedoAwareResult(BaseManager.java:636) at com.hazelcast.impl.BaseManager$ResponseQueueCall.getResult(BaseManager.java:623) at com.hazelcast.impl.BaseManager$RequestBasedCall.getResultAsObject(BaseManager.java:454) at com.hazelcast.impl.BaseManager$ResponseQueueCall.getResultAsObject(BaseManager.java:544) at com.hazelcast.impl.BaseManager$RequestBasedCall.getResultAsObject(BaseManager.java:450) at com.hazelcast.impl.BaseManager$ResponseQueueCall.getResultAsObject(BaseManager.java:544) at com.hazelcast.impl.ConcurrentMapManager$MRemove.txnalRemove(ConcurrentMapManager.java:1303) at com.hazelcast.impl.ConcurrentMapManager$MRemove.remove(ConcurrentMapManager.java:1241) at com.hazelcast.impl.MProxyImpl$MProxyReal.remove(MProxyImpl.java:793) at com.hazelcast.impl.MProxyImpl.remove(MProxyImpl.java:185) at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:680) at org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:802) at org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) 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 Mon, Jul 29, 2013 at 7:01 PM, Afkham Azeez az...@wso2.com wrote: Seems like a null value has been placed in the cache. Anyway, I have now handled that condition as well. Azeez On Mon, Jul 29, 2013 at 6:56 PM, Nirodha Pramod niro...@wso2.com wrote: Hi Azeez, In the cluster setup we see the following NPE when Cache Cleanup Task is running. TID: [0] [AS] [2013-07-29 18:16:45,285] ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} - Error occurred while running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask} java.lang.NullPointerException at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:684) at org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:800) at org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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) See the below JIRA, https://wso2.org/jira/browse/CARBON-14232 - Nirodha -- * * *Nirodha Gallage* Senior Software Engineer, QA. WSO2 Inc.: http://wso2.com/ Mobile: +94716429078 -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* ___ Dev mailing list
Re: [Dev] UnsupportedOperationException when trying to cluster ESB with worker manager setup
NodeManager entry is set to enabled. ESB has its own axis2.xml. Completely remove the node manager segment from it and commit that file. Azeez On Wed, Aug 7, 2013 at 12:25 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: Hi, What is the reason for this exception? [2013-08-07 12:02:14,278] FATAL - CarbonServerManager WSO2 Carbon initialization Failed java.lang.UnsupportedOperationException: setNodeManager is no longer supported at org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.setNodeManager(HazelcastClusteringAgent.java:368) at org.apache.axis2.deployment.ClusterBuilder.loadNodeManager(ClusterBuilder.java:347) at org.apache.axis2.deployment.ClusterBuilder.buildCluster(ClusterBuilder.java:100) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:186) at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:308) at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65) at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398) at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290) at org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:84) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) Jeewantha -- Jeewantha Dharmaparakrama Software Engineer; WSO2, Inc.; http://wso2.com/ Phone : (+94) 774726790 Skype : prasad.jeewantha LinkedIn : http://www.linkedin.com/in/jeewanthad Twitter: https://twitter.com/jeewamp Blog: http://jeewanthad.blogspot.com/ -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Setting permission to rxt instance
Hi Nuwan, No simply wait for the BE call (VM-operation or WS-call) to complete. If you want to make this asynchronous and still check whether the operation completed, then you can see whether the asset can be fetched by ID. But, I believe that the former is a straightforward thing to do. Thanks, Senaka. On Wed, Aug 7, 2013 at 12:29 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka On Wed, Aug 7, 2013 at 10:08 AM, Senaka Fernando sen...@wso2.com wrote: Hi Dulitha, It depends on the client you use. If your code (or the BE code of the Jaggery code you've written, waits for the operation to complete, then it is synchronous. If it is not, then it wont behave that way. How can we wait for the operation to complete, I mean how can we know when the asset is created ? by doing res.exists() ? Thanks, Senaka. On Wed, Aug 7, 2013 at 8:58 AM, Dulitha Wijewantha duli...@wso2.comwrote: Hi guys, I am inserting to the registry using the system registry of the generic store using the Generic Artifact Manager. The issue is that when I insert through the GAM - it take sometime to be inserted to the registry. I want to set get operation for the anon role using the UserManager. Since the instance is not existing the permission is not applied. am = new carbon.registry.ArtifactManager(registry, mobileapp); var attributes ={ overview_status: PENDING-REVIEW, overview_name: ctx.name, overview_platform:t, overview_version: ctx.version, overview_url: ctx.url, overview_provider: ctx.provider, overview_description: ctx.description, overview_market:ctx.markettype, // overview_recentChanges:ctx.recentChanges, overview_packageName:ctx.packagename, overview_category:ctx.category, images_icon:icon, images_banner:banner, images_screenshots:screenshots }; attributes[attributes.overview_status+_date]=printDate(); am.add({ name: ctx.name, lifecycle:[applifecycle], path:path, attributes:attributes }); // The above call is not synchrnous. The method returns without actually adding the asset to the registry. // A JavaScript way of dealing with such things would be to implement a callback. Maybe for Java we need a listner. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET); //Above call will not work since the asset is not there in the registry Can someone from registry team explain whether the *addGenericArtifact *method is synchronous or not. Just for the sake of testing I even tried out a while loop using exists method- it also go infinite. Thanks -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] NPE - Error occurred while running CacheCleanupTask
Are the two Hazelcast properties set? On Wed, Aug 7, 2013 at 1:02 PM, Chamara Ariyarathne chama...@wso2.comwrote: On Wed, Aug 7, 2013 at 1:01 PM, Chamara Ariyarathne chama...@wso2.comwrote: This happened in the 6th IS build. TID: [0] [IS] [2013-08-07 07:29:37,949] ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} - Error occurred while running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask} com.hazelcast.core.OperationTimeoutException: [CONCURRENT_MAP_REMOVE] Redo threshold[90] exceeded! Last redo cause: REDO_MEMBER_UNKNOWN, Name: c:$cache.$domain[carbon.super]AUTHORIZATION_CACHE_MANAGER#AUTHORIZATION_CACHE at com.hazelcast.impl.BaseManager$ResponseQueueCall.getRedoAwareResult(BaseManager.java:636) at com.hazelcast.impl.BaseManager$ResponseQueueCall.getResult(BaseManager.java:623) at com.hazelcast.impl.BaseManager$RequestBasedCall.getResultAsObject(BaseManager.java:454) at com.hazelcast.impl.BaseManager$ResponseQueueCall.getResultAsObject(BaseManager.java:544) at com.hazelcast.impl.BaseManager$RequestBasedCall.getResultAsObject(BaseManager.java:450) at com.hazelcast.impl.BaseManager$ResponseQueueCall.getResultAsObject(BaseManager.java:544) at com.hazelcast.impl.ConcurrentMapManager$MRemove.txnalRemove(ConcurrentMapManager.java:1303) at com.hazelcast.impl.ConcurrentMapManager$MRemove.remove(ConcurrentMapManager.java:1241) at com.hazelcast.impl.MProxyImpl$MProxyReal.remove(MProxyImpl.java:793) at com.hazelcast.impl.MProxyImpl.remove(MProxyImpl.java:185) at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:680) at org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:802) at org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) 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 Mon, Jul 29, 2013 at 7:01 PM, Afkham Azeez az...@wso2.com wrote: Seems like a null value has been placed in the cache. Anyway, I have now handled that condition as well. Azeez On Mon, Jul 29, 2013 at 6:56 PM, Nirodha Pramod niro...@wso2.comwrote: Hi Azeez, In the cluster setup we see the following NPE when Cache Cleanup Task is running. TID: [0] [AS] [2013-07-29 18:16:45,285] ERROR {org.wso2.carbon.caching.impl.CacheCleanupTask} - Error occurred while running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask} java.lang.NullPointerException at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:684) at org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:800) at org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 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) See the below JIRA, https://wso2.org/jira/browse/CARBON-14232 - Nirodha -- * * *Nirodha Gallage* Senior Software Engineer, QA. WSO2 Inc.: http://wso2.com/ Mobile: +94716429078 -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Chamara
Re: [Dev] Fwd: Feature Categorization for APIM
Hi, Since the existing feature breakdown doesn't help much when installing high level components in APIManager, thought of restructuring the categories. Only the following categories will be defined. 1. Store 2. Publisher 3. KeyManager 4. Gateway Worker 5. Gateway Manager Each feature category will contain all the dependent features needed to install that category completely. For example Publisher category will include Publisher/ org.wso2.carbon.apimgt.publisher.feature org.wso2.carbon.governance.lifecycle.management.feature org.wso2.carbon.registry.core.feature. . Similarly Store category will have; Store/ org.wso2.carbon.core.server org.wso2.carbon.registry.core.feature This approach will duplicate some features across different categories, but installing a high level component will be made easy by this. AmilaD On Tue, Aug 6, 2013 at 11:33 AM, Sanjeewa Malalgoda sanje...@wso2.comwrote: On Mon, Aug 5, 2013 at 3:31 PM, Lalaji Sureshika lal...@wso2.com wrote: Hi Amila, On Mon, Aug 5, 2013 at 12:34 AM, Kasun Gajasinghe kas...@wso2.comwrote: I believe you can also create some high-level categories like store and publisher? That would be really useful. I also agree with Kasun's point. From APIManager perspective,I think we need high-level categories as 1) store 2) publisher 3) keymgt 4) gateway gateway should have 2 profiles gateway manager. gateway worker. @Amila, I have already sent a mail to developers list to discuss about profile categorization of API manager. Content on that mail will surely help us in this case as well. Also added 2 or 3 profiles to p2 pom. Thanks, Sanjeewa. Isn't the features category set defined by Dinusha as per thread [Dev] New feature structure for API Manager ,would fit with this task..? Thanks; Thanks, KasunG On Mon, Aug 5, 2013 at 12:58 PM, Amila De Silva ami...@wso2.com wrote: Hi, Please find the initial feature categories for APIM at https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AhlcfaVDH9iFdDhVV2VpMS1DQW8wNHJDb0hnQWktTEE#gid=0 Similar categories created for AS and DSS can be found at https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0ApWioeKgeCchdGg1bWpVb010SkJGMUpZMkNVTDA4NUEpli=1#gid=0 Those marked in bold are the features newly added for APIM under existing feature categories. Five new categories were created for Mediation, Governance, API Management, Identity and Transport. Please go through the list and provide some feedback. -- *Amila De Silva* * * WSO2 Inc.* * mobile :(+94) 775119302 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lalaji Sureshika WSO2, Inc.; http://wso2.com/ email: lal...@wso2.com; cell: +94 71 608 6811 blog: http://lalajisureshika.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- * * *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/ -- *Amila De Silva* * * WSO2 Inc.* * mobile :(+94) 775119302 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Geeth
Congrats Geeth! On Tue, Aug 6, 2013 at 8:48 AM, Tanya Madurapperuma ta...@wso2.com wrote: Congratz Geeth !!! On Tue, Aug 6, 2013 at 8:42 AM, Darshana Gunawardana darsh...@wso2.comwrote: Congratulation Geeth..!! On Mon, Aug 5, 2013 at 8:52 PM, Hasitha Hiranya hasit...@wso2.comwrote: Congrats Geeth On Mon, Aug 5, 2013 at 7:31 PM, Nirmal Fernando nir...@wso2.com wrote: Congratzz! Sent via my mobile -- Nirmal -- On Aug 5, 2013 6:32 PM, Venura Kahawala ven...@wso2.com wrote: Congrats Geeth On Mon, Aug 5, 2013 at 5:35 PM, Chamath Gunawardana chama...@wso2.com wrote: Congrats Geeth !! On Mon, Aug 5, 2013 at 3:41 PM, Shani Ranasinghe sh...@wso2.comwrote: Cngrts On Mon, Aug 5, 2013 at 3:10 PM, Maninda Edirisooriya mani...@wso2.com wrote: Congratulations Geeth ...!!! * Maninda Edirisooriya* Software Engineer *WSO2, Inc. *lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *Phone* : +94 777603226 On Mon, Aug 5, 2013 at 2:25 PM, Manula Chathurika Thantriwatte manu...@wso2.com wrote: Congratulations !!! On Mon, Aug 5, 2013 at 2:15 PM, Shashika Ubhayaratne shash...@wso2.com wrote: Congrats Geeth Shashika Ubhayaratne Associate Technical Lead - QA WSO2 Inc: http://www.wso2.com/ Mobile: *+94773383831* On Mon, Aug 5, 2013 at 12:18 PM, Pamod Sylvester pa...@wso2.comwrote: Congratz Geeth !! On Mon, Aug 5, 2013 at 12:09 PM, Susinda Perera susi...@wso2.com wrote: Congratulations Geeth.. On Mon, Aug 5, 2013 at 12:02 PM, Nihanth Joseph niha...@wso2.com wrote: Congratz Geeth.. On Mon, Aug 5, 2013 at 11:53 AM, Shameera Rathnayaka shame...@wso2.com wrote: Congratzzz Geeth !!! On Mon, Aug 5, 2013 at 11:44 AM, Bhathiya Jayasekara bhath...@wso2.com wrote: Congratulations Geeth.. On Mon, Aug 5, 2013 at 11:17 AM, Manoj Kumara ma...@wso2.com wrote: Congratz Geeth Best Regards.. Manoj Kumara Software Engineer WSO2, Inc.; http://wso2.com Twitter: http://twitter.com/ManKuma Mobile: +94713448188 On Mon, Aug 5, 2013 at 10:07 AM, Sagara Gunathunga sag...@wso2.com wrote: It is my pleasure to welcome Geeth Munasinghe as a WSO2 Committer. Geeth, Welcome Aboard! please keep up the good work!! Thanks ! -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.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 -- *Bhathiya Jayasekara* *Software Engineer,* *WSO2 inc., http://wso2.com* * * *Phone: +94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj* *Twitter: https://twitter.com/bhathiyax* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Software Engineer - WSO2 Inc.* *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org shame...@apache.org* *phone: +9471 922 1454* * * *Linked in : * http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561 *Twitter : *https://twitter.com/Shameera_R ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nihanth Joseph Senior Software Engineer Mob: +94719187136 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Susinda Perera* Software Engineer Mobile:(+94)716049075 WSO2 Inc. http://wso2.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Pamod Sylvester * * * * Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 ___ 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 -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.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 -- *Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in:
Re: [Dev] Setting permission to rxt instance
Hi Senaka, On Wed, Aug 7, 2013 at 1:23 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, No simply wait for the BE call (VM-operation or WS-call) to complete. The java operation doesn't return anything upon success, hence javascript code just trigger this operation and go on to the next line, which sets the permission to the asset path. This doesn't happen because the asset is not yet added by the 1st operation. What do you suggest ? Regards, /Nuwan If you want to make this asynchronous and still check whether the operation completed, then you can see whether the asset can be fetched by ID. But, I believe that the former is a straightforward thing to do. Thanks, Senaka. On Wed, Aug 7, 2013 at 12:29 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka On Wed, Aug 7, 2013 at 10:08 AM, Senaka Fernando sen...@wso2.com wrote: Hi Dulitha, It depends on the client you use. If your code (or the BE code of the Jaggery code you've written, waits for the operation to complete, then it is synchronous. If it is not, then it wont behave that way. How can we wait for the operation to complete, I mean how can we know when the asset is created ? by doing res.exists() ? Thanks, Senaka. On Wed, Aug 7, 2013 at 8:58 AM, Dulitha Wijewantha duli...@wso2.comwrote: Hi guys, I am inserting to the registry using the system registry of the generic store using the Generic Artifact Manager. The issue is that when I insert through the GAM - it take sometime to be inserted to the registry. I want to set get operation for the anon role using the UserManager. Since the instance is not existing the permission is not applied. am = new carbon.registry.ArtifactManager(registry, mobileapp); var attributes ={ overview_status: PENDING-REVIEW, overview_name: ctx.name, overview_platform:t, overview_version: ctx.version, overview_url: ctx.url, overview_provider: ctx.provider, overview_description: ctx.description, overview_market:ctx.markettype, // overview_recentChanges:ctx.recentChanges, overview_packageName:ctx.packagename, overview_category:ctx.category, images_icon:icon, images_banner:banner, images_screenshots:screenshots }; attributes[attributes.overview_status+_date]=printDate(); am.add({ name: ctx.name, lifecycle:[applifecycle], path:path, attributes:attributes }); // The above call is not synchrnous. The method returns without actually adding the asset to the registry. // A JavaScript way of dealing with such things would be to implement a callback. Maybe for Java we need a listner. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET); //Above call will not work since the asset is not there in the registry Can someone from registry team explain whether the *addGenericArtifact *method is synchronous or not. Just for the sake of testing I even tried out a while loop using exists method- it also go infinite. Thanks -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Caching implementation performance improvement
[image: Inline image 1] On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* caching.png___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Weird behavior with load balancing a IS Cluster
Hi Azeez, In our deployments, Do we not support more than one Manager Nodes ? On Wed, Aug 7, 2013 at 12:35 PM, Chamara Ariyarathne chama...@wso2.comwrote: Well yes, something is still wrong. When the node 1 is down the Mgt console request does not go to the other. In the ELB log; [2013-08-07 07:04:29,105] ERROR - TenantAwareLoadBalanceEndpoint No application members available having host name : mgt.identity.qa-test.wso2.com and tenant id : 0 [2013-08-07 07:04:29,294] WARN - ConnectCallback Connection refused or failed for : /192.168.17.19:9444 On Wed, Aug 7, 2013 at 11:46 AM, Afkham Azeez az...@wso2.com wrote: One issue is, localMemberPort of the LB in the axis2.xml group_mgt_port for the IS cluster are both given as 4000. Change the localMemberPort to something like 9876. Azeez On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.comwrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Setting permission to rxt instance
Hi Nuwan, Are you invoking this java operation via some sort of WS (or other) interface? Thanks, Senaka. On Wed, Aug 7, 2013 at 1:50 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka, On Wed, Aug 7, 2013 at 1:23 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, No simply wait for the BE call (VM-operation or WS-call) to complete. The java operation doesn't return anything upon success, hence javascript code just trigger this operation and go on to the next line, which sets the permission to the asset path. This doesn't happen because the asset is not yet added by the 1st operation. What do you suggest ? Regards, /Nuwan If you want to make this asynchronous and still check whether the operation completed, then you can see whether the asset can be fetched by ID. But, I believe that the former is a straightforward thing to do. Thanks, Senaka. On Wed, Aug 7, 2013 at 12:29 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka On Wed, Aug 7, 2013 at 10:08 AM, Senaka Fernando sen...@wso2.comwrote: Hi Dulitha, It depends on the client you use. If your code (or the BE code of the Jaggery code you've written, waits for the operation to complete, then it is synchronous. If it is not, then it wont behave that way. How can we wait for the operation to complete, I mean how can we know when the asset is created ? by doing res.exists() ? Thanks, Senaka. On Wed, Aug 7, 2013 at 8:58 AM, Dulitha Wijewantha duli...@wso2.comwrote: Hi guys, I am inserting to the registry using the system registry of the generic store using the Generic Artifact Manager. The issue is that when I insert through the GAM - it take sometime to be inserted to the registry. I want to set get operation for the anon role using the UserManager. Since the instance is not existing the permission is not applied. am = new carbon.registry.ArtifactManager(registry, mobileapp); var attributes ={ overview_status: PENDING-REVIEW, overview_name: ctx.name, overview_platform:t, overview_version: ctx.version, overview_url: ctx.url, overview_provider: ctx.provider, overview_description: ctx.description, overview_market:ctx.markettype, // overview_recentChanges:ctx.recentChanges, overview_packageName:ctx.packagename, overview_category:ctx.category, images_icon:icon, images_banner:banner, images_screenshots:screenshots }; attributes[attributes.overview_status+_date]=printDate(); am.add({ name: ctx.name, lifecycle:[applifecycle], path:path, attributes:attributes }); // The above call is not synchrnous. The method returns without actually adding the asset to the registry. // A JavaScript way of dealing with such things would be to implement a callback. Maybe for Java we need a listner. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET); //Above call will not work since the asset is not there in the registry Can someone from registry team explain whether the *addGenericArtifact *method is synchronous or not. Just for the sake of testing I even tried out a while loop using exists method- it also go infinite. Thanks -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ -- * http://us13.wso2con.com/ * * * *Senaka
Re: [Dev] Weird behavior with load balancing a IS Cluster
There is no such restriction in the ELB. But if there is depsync, there could be conflicts, but for IS there is(was) no depsync. On Wed, Aug 7, 2013 at 2:17 PM, Chamara Ariyarathne chama...@wso2.comwrote: Hi Azeez, In our deployments, Do we not support more than one Manager Nodes ? On Wed, Aug 7, 2013 at 12:35 PM, Chamara Ariyarathne chama...@wso2.comwrote: Well yes, something is still wrong. When the node 1 is down the Mgt console request does not go to the other. In the ELB log; [2013-08-07 07:04:29,105] ERROR - TenantAwareLoadBalanceEndpoint No application members available having host name : mgt.identity.qa-test.wso2.com and tenant id : 0 [2013-08-07 07:04:29,294] WARN - ConnectCallback Connection refused or failed for : /192.168.17.19:9444 On Wed, Aug 7, 2013 at 11:46 AM, Afkham Azeez az...@wso2.com wrote: One issue is, localMemberPort of the LB in the axis2.xml group_mgt_port for the IS cluster are both given as 4000. Change the localMemberPort to something like 9876. Azeez On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.comwrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Setting permission to rxt instance
On Wed, Aug 7, 2013 at 2:18 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, Are you invoking this java operation via some sort of WS (or other) interface? No WS, just via OSGI Service Thanks, Senaka. On Wed, Aug 7, 2013 at 1:50 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka, On Wed, Aug 7, 2013 at 1:23 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, No simply wait for the BE call (VM-operation or WS-call) to complete. The java operation doesn't return anything upon success, hence javascript code just trigger this operation and go on to the next line, which sets the permission to the asset path. This doesn't happen because the asset is not yet added by the 1st operation. What do you suggest ? Regards, /Nuwan If you want to make this asynchronous and still check whether the operation completed, then you can see whether the asset can be fetched by ID. But, I believe that the former is a straightforward thing to do. Thanks, Senaka. On Wed, Aug 7, 2013 at 12:29 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka On Wed, Aug 7, 2013 at 10:08 AM, Senaka Fernando sen...@wso2.comwrote: Hi Dulitha, It depends on the client you use. If your code (or the BE code of the Jaggery code you've written, waits for the operation to complete, then it is synchronous. If it is not, then it wont behave that way. How can we wait for the operation to complete, I mean how can we know when the asset is created ? by doing res.exists() ? Thanks, Senaka. On Wed, Aug 7, 2013 at 8:58 AM, Dulitha Wijewantha duli...@wso2.comwrote: Hi guys, I am inserting to the registry using the system registry of the generic store using the Generic Artifact Manager. The issue is that when I insert through the GAM - it take sometime to be inserted to the registry. I want to set get operation for the anon role using the UserManager. Since the instance is not existing the permission is not applied. am = new carbon.registry.ArtifactManager(registry, mobileapp); var attributes ={ overview_status: PENDING-REVIEW, overview_name: ctx.name, overview_platform:t, overview_version: ctx.version, overview_url: ctx.url, overview_provider: ctx.provider, overview_description: ctx.description, overview_market:ctx.markettype, // overview_recentChanges:ctx.recentChanges, overview_packageName:ctx.packagename, overview_category:ctx.category, images_icon:icon, images_banner:banner, images_screenshots:screenshots }; attributes[attributes.overview_status+_date]=printDate(); am.add({ name: ctx.name, lifecycle:[applifecycle], path:path, attributes:attributes }); // The above call is not synchrnous. The method returns without actually adding the asset to the registry. // A JavaScript way of dealing with such things would be to implement a callback. Maybe for Java we need a listner. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET); //Above call will not work since the asset is not there in the registry Can someone from registry team explain whether the *addGenericArtifact *method is synchronous or not. Just for the sake of testing I even tried out a while loop using exists method- it also go infinite. Thanks -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email:
Re: [Dev] Setting permission to rxt instance
Hi Nuwan, Alright. Then there should be something that makes JS call return before the BE operation completes. If there is no return type would the JS operation simply assume that it invokes an asynchronous method? Thanks, Senaka. On Wed, Aug 7, 2013 at 2:22 PM, Nuwan Bandara nu...@wso2.com wrote: On Wed, Aug 7, 2013 at 2:18 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, Are you invoking this java operation via some sort of WS (or other) interface? No WS, just via OSGI Service Thanks, Senaka. On Wed, Aug 7, 2013 at 1:50 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka, On Wed, Aug 7, 2013 at 1:23 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, No simply wait for the BE call (VM-operation or WS-call) to complete. The java operation doesn't return anything upon success, hence javascript code just trigger this operation and go on to the next line, which sets the permission to the asset path. This doesn't happen because the asset is not yet added by the 1st operation. What do you suggest ? Regards, /Nuwan If you want to make this asynchronous and still check whether the operation completed, then you can see whether the asset can be fetched by ID. But, I believe that the former is a straightforward thing to do. Thanks, Senaka. On Wed, Aug 7, 2013 at 12:29 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka On Wed, Aug 7, 2013 at 10:08 AM, Senaka Fernando sen...@wso2.comwrote: Hi Dulitha, It depends on the client you use. If your code (or the BE code of the Jaggery code you've written, waits for the operation to complete, then it is synchronous. If it is not, then it wont behave that way. How can we wait for the operation to complete, I mean how can we know when the asset is created ? by doing res.exists() ? Thanks, Senaka. On Wed, Aug 7, 2013 at 8:58 AM, Dulitha Wijewantha duli...@wso2.comwrote: Hi guys, I am inserting to the registry using the system registry of the generic store using the Generic Artifact Manager. The issue is that when I insert through the GAM - it take sometime to be inserted to the registry. I want to set get operation for the anon role using the UserManager. Since the instance is not existing the permission is not applied. am = new carbon.registry.ArtifactManager(registry, mobileapp); var attributes ={ overview_status: PENDING-REVIEW, overview_name: ctx.name, overview_platform:t, overview_version: ctx.version, overview_url: ctx.url, overview_provider: ctx.provider, overview_description: ctx.description, overview_market:ctx.markettype, // overview_recentChanges:ctx.recentChanges, overview_packageName:ctx.packagename, overview_category:ctx.category, images_icon:icon, images_banner:banner, images_screenshots:screenshots }; attributes[attributes.overview_status+_date]=printDate(); am.add({ name: ctx.name, lifecycle:[applifecycle], path:path, attributes:attributes }); // The above call is not synchrnous. The method returns without actually adding the asset to the registry. // A JavaScript way of dealing with such things would be to implement a callback. Maybe for Java we need a listner. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET); //Above call will not work since the asset is not there in the registry Can someone from registry team explain whether the *addGenericArtifact *method is synchronous or not. Just for the sake of testing I even tried out a while loop using exists method- it also go infinite. Thanks -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior
Re: [Dev] Weird behavior with load balancing a IS Cluster
ELB knows nothing about the nodes it fronts. If the setup works properly with AS nodes, it should just work with IS nodes. On Wed, Aug 7, 2013 at 2:24 PM, Chamara Ariyarathne chama...@wso2.comwrote: So the final decision of our IS deployment is to not to use ELB, but logically assume one IS instance as manager and the other one as worker, and continuing working with the manager node. In that case the other node which we assume as the worker, will only serve the API calls. P.S. IS uses depsync now for syncing manually added userstores. On Wed, Aug 7, 2013 at 2:17 PM, Chamara Ariyarathne chama...@wso2.comwrote: Hi Azeez, In our deployments, Do we not support more than one Manager Nodes ? On Wed, Aug 7, 2013 at 12:35 PM, Chamara Ariyarathne chama...@wso2.comwrote: Well yes, something is still wrong. When the node 1 is down the Mgt console request does not go to the other. In the ELB log; [2013-08-07 07:04:29,105] ERROR - TenantAwareLoadBalanceEndpoint No application members available having host name : mgt.identity.qa-test.wso2.com and tenant id : 0 [2013-08-07 07:04:29,294] WARN - ConnectCallback Connection refused or failed for : /192.168.17.19:9444 On Wed, Aug 7, 2013 at 11:46 AM, Afkham Azeez az...@wso2.com wrote: One issue is, localMemberPort of the LB in the axis2.xml group_mgt_port for the IS cluster are both given as 4000. Change the localMemberPort to something like 9876. Azeez On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.com wrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member;
Re: [Dev] Weird behavior with load balancing a IS Cluster
Did you try designating the two nodes as worker nodes getting those to join the ELB? Did that work? On Wed, Aug 7, 2013 at 2:36 PM, Afkham Azeez az...@wso2.com wrote: ELB knows nothing about the nodes it fronts. If the setup works properly with AS nodes, it should just work with IS nodes. On Wed, Aug 7, 2013 at 2:24 PM, Chamara Ariyarathne chama...@wso2.comwrote: So the final decision of our IS deployment is to not to use ELB, but logically assume one IS instance as manager and the other one as worker, and continuing working with the manager node. In that case the other node which we assume as the worker, will only serve the API calls. P.S. IS uses depsync now for syncing manually added userstores. On Wed, Aug 7, 2013 at 2:17 PM, Chamara Ariyarathne chama...@wso2.comwrote: Hi Azeez, In our deployments, Do we not support more than one Manager Nodes ? On Wed, Aug 7, 2013 at 12:35 PM, Chamara Ariyarathne chama...@wso2.comwrote: Well yes, something is still wrong. When the node 1 is down the Mgt console request does not go to the other. In the ELB log; [2013-08-07 07:04:29,105] ERROR - TenantAwareLoadBalanceEndpoint No application members available having host name : mgt.identity.qa-test.wso2.com and tenant id : 0 [2013-08-07 07:04:29,294] WARN - ConnectCallback Connection refused or failed for : /192.168.17.19:9444 On Wed, Aug 7, 2013 at 11:46 AM, Afkham Azeez az...@wso2.com wrote: One issue is, localMemberPort of the LB in the axis2.xml group_mgt_port for the IS cluster are both given as 4000. Change the localMemberPort to something like 9876. Azeez On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.com wrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: / 192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: / 192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: / 192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: / 192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: / 192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: / 192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: / 192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: / 192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Chamara
Re: [Dev] Weird behavior with load balancing a IS Cluster
No I was only going to make them two management nodes. So subDomain was set to mgt. On Wed, Aug 7, 2013 at 2:40 PM, Afkham Azeez az...@wso2.com wrote: Did you try designating the two nodes as worker nodes getting those to join the ELB? Did that work? On Wed, Aug 7, 2013 at 2:36 PM, Afkham Azeez az...@wso2.com wrote: ELB knows nothing about the nodes it fronts. If the setup works properly with AS nodes, it should just work with IS nodes. On Wed, Aug 7, 2013 at 2:24 PM, Chamara Ariyarathne chama...@wso2.comwrote: So the final decision of our IS deployment is to not to use ELB, but logically assume one IS instance as manager and the other one as worker, and continuing working with the manager node. In that case the other node which we assume as the worker, will only serve the API calls. P.S. IS uses depsync now for syncing manually added userstores. On Wed, Aug 7, 2013 at 2:17 PM, Chamara Ariyarathne chama...@wso2.comwrote: Hi Azeez, In our deployments, Do we not support more than one Manager Nodes ? On Wed, Aug 7, 2013 at 12:35 PM, Chamara Ariyarathne chama...@wso2.com wrote: Well yes, something is still wrong. When the node 1 is down the Mgt console request does not go to the other. In the ELB log; [2013-08-07 07:04:29,105] ERROR - TenantAwareLoadBalanceEndpoint No application members available having host name : mgt.identity.qa-test.wso2.com and tenant id : 0 [2013-08-07 07:04:29,294] WARN - ConnectCallback Connection refused or failed for : /192.168.17.19:9444 On Wed, Aug 7, 2013 at 11:46 AM, Afkham Azeez az...@wso2.com wrote: One issue is, localMemberPort of the LB in the axis2.xml group_mgt_port for the IS cluster are both given as 4000. Change the localMemberPort to something like 9876. Azeez On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.com wrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: / 192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: / 192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: / 192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: / 192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: / 192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: / 192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: / 192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: / 192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/.
Re: [Dev] Setting permission to rxt instance
HI Senaka, On Wed, Aug 7, 2013 at 2:34 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, Alright. Then there should be something that makes JS call return before the BE operation completes. If there is no return type would the JS operation simply assume that it invokes an asynchronous method? I find it difficult to explain this situation, from js side the code looks like 1. assetManager.addAsset(asset); 2. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET ); The problem is #2 executes before #1 completes its operation. This was new to me as with jaggery #1 and #2 is synchronous. Can the osgi service return complete even if the asset is not created in the registry ? thats the only explanation we have. @Chan you meetup with Senaka and show the code please Regards, /Nuwan Thanks, Senaka. On Wed, Aug 7, 2013 at 2:22 PM, Nuwan Bandara nu...@wso2.com wrote: On Wed, Aug 7, 2013 at 2:18 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, Are you invoking this java operation via some sort of WS (or other) interface? No WS, just via OSGI Service Thanks, Senaka. On Wed, Aug 7, 2013 at 1:50 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka, On Wed, Aug 7, 2013 at 1:23 PM, Senaka Fernando sen...@wso2.comwrote: Hi Nuwan, No simply wait for the BE call (VM-operation or WS-call) to complete. The java operation doesn't return anything upon success, hence javascript code just trigger this operation and go on to the next line, which sets the permission to the asset path. This doesn't happen because the asset is not yet added by the 1st operation. What do you suggest ? Regards, /Nuwan If you want to make this asynchronous and still check whether the operation completed, then you can see whether the asset can be fetched by ID. But, I believe that the former is a straightforward thing to do. Thanks, Senaka. On Wed, Aug 7, 2013 at 12:29 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka On Wed, Aug 7, 2013 at 10:08 AM, Senaka Fernando sen...@wso2.comwrote: Hi Dulitha, It depends on the client you use. If your code (or the BE code of the Jaggery code you've written, waits for the operation to complete, then it is synchronous. If it is not, then it wont behave that way. How can we wait for the operation to complete, I mean how can we know when the asset is created ? by doing res.exists() ? Thanks, Senaka. On Wed, Aug 7, 2013 at 8:58 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, I am inserting to the registry using the system registry of the generic store using the Generic Artifact Manager. The issue is that when I insert through the GAM - it take sometime to be inserted to the registry. I want to set get operation for the anon role using the UserManager. Since the instance is not existing the permission is not applied. am = new carbon.registry.ArtifactManager(registry, mobileapp); var attributes ={ overview_status: PENDING-REVIEW, overview_name: ctx.name, overview_platform:t, overview_version: ctx.version, overview_url: ctx.url, overview_provider: ctx.provider, overview_description: ctx.description, overview_market:ctx.markettype, // overview_recentChanges:ctx.recentChanges, overview_packageName:ctx.packagename, overview_category:ctx.category, images_icon:icon, images_banner:banner, images_screenshots:screenshots }; attributes[attributes.overview_status+_date]=printDate(); am.add({ name: ctx.name, lifecycle:[applifecycle], path:path, attributes:attributes }); // The above call is not synchrnous. The method returns without actually adding the asset to the registry. // A JavaScript way of dealing with such things would be to implement a callback. Maybe for Java we need a listner. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET); //Above call will not work since the asset is not there in the registry Can someone from registry team explain whether the *addGenericArtifact *method is synchronous or not. Just for the sake of testing I even tried out a while loop using exists method- it also go infinite. Thanks -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * * ~Blog blog.dulithawijewantha.comhttp://dulichan.github.io/chan/ * * ~Twitter @dulitharw https://twitter.com/dulitharw* -- * http://us13.wso2con.com/ * * *
Re: [Dev] Pending documentation issues for AS 5.2.0
WSAS-1379 is committed. Thanks, KasunG On Wed, Aug 7, 2013 at 12:40 PM, Piyum Fernando pi...@wso2.com wrote: Hi, Fix for the https://wso2.org/jira/browse/WSAS-1379 attached to the jira. It will be committed soon. Thanks. On Wed, Aug 7, 2013 at 11:10 AM, Mariangela Hills mariang...@wso2.comwrote: Hi Saraga, Further to our discussion yesterday, here is the status of the mentioned JIRAs [1] (AS JIRA sheet). In addition, I have spoken to all the corresponding SME's to gather the required information. Please note that JIRA [2] is related to the AS management console and has to be done by the AS team. In addition, I will be putting JIRA [3] on hold as requested, until you get back to me regarding it. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0ArQUlX7w5WYUdDZ6dDVVanJqTnQzalYwMzFpSGllX1E#gid=4 [2] https://wso2.org/jira/browse/WSAS-1379 [3] https://wso2.org/jira/browse/DOCUMENTATION-134 Regards, Mariangela *-- Mariangela Hills* Senior Technical Writer Mobile:(+94)773500185 WSO2 Inc. http://wso2.com/ On Tue, Aug 6, 2013 at 9:06 AM, Sagara Gunathunga sag...@wso2.comwrote: Hi Mariangela, Could you please update current progress of documentation issues for AS 5.2.0 release. As we are planning to release AS on next week we need to finalize following issues within this week. 1. https://wso2.org/jira/browse/DOCUMENTATION-109 2. https://wso2.org/jira/browse/DOCUMENTATION-108 3. https://wso2.org/jira/browse/DOCUMENTATION-100 4. https://wso2.org/jira/browse/DOCUMENTATION-93 5. https://wso2.org/jira/browse/DOCUMENTATION-134 6. https://wso2.org/jira/browse/WSAS-1289 7. https://wso2.org/jira/browse/WSAS-1379 8. https://wso2.org/jira/browse/WSAS-1114 9. https://wso2.org/jira/browse/WSAS-1289 Thanks ! -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/groups/opt_out. -- Piyum Fernando Software Engineer Mobile: +94 77 22 93 880 Home: +94 31 22 75 715 -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Weird behavior with load balancing a IS Cluster
Search for Cluster initialization completed log message in the two IS nodes. See whether that is printed, and yet the member didn't join the ELB. On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.comwrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Why count_record13080XXXXXX.properties file created under WSO2_AS_HOME directory?
Hi, When I'm doing multi profile testing on a Windows 7 machine (WSO2 AS 5.2.0) I've observed several similar property files getting created in the HOME directory of the WSO2 AS. What the real use of this file? Sample file attached. Regards, Associate Technical Lead - QA Mob: +94(0)777872485 count_record130807143229.properties Description: Binary data ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Caching implementation performance improvement
Hi, Just wondering about the update mechanism. What happens when original value or L2 cache value get updated? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Aug 7, 2013 at 2:02 PM, Afkham Azeez az...@wso2.com wrote: [image: Inline image 1] On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev caching.png___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Setting permission to rxt instance
Hi Senaka, Sorry for the noise, there was a bug in the code at JS side. All working now Regards, /Nuwan On Wed, Aug 7, 2013 at 2:46 PM, Nuwan Bandara nu...@wso2.com wrote: HI Senaka, On Wed, Aug 7, 2013 at 2:34 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, Alright. Then there should be something that makes JS call return before the BE operation completes. If there is no return type would the JS operation simply assume that it invokes an asynchronous method? I find it difficult to explain this situation, from js side the code looks like 1. assetManager.addAsset(asset); 2. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions. GET); The problem is #2 executes before #1 completes its operation. This was new to me as with jaggery #1 and #2 is synchronous. Can the osgi service return complete even if the asset is not created in the registry ? thats the only explanation we have. @Chan you meetup with Senaka and show the code please Regards, /Nuwan Thanks, Senaka. On Wed, Aug 7, 2013 at 2:22 PM, Nuwan Bandara nu...@wso2.com wrote: On Wed, Aug 7, 2013 at 2:18 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, Are you invoking this java operation via some sort of WS (or other) interface? No WS, just via OSGI Service Thanks, Senaka. On Wed, Aug 7, 2013 at 1:50 PM, Nuwan Bandara nu...@wso2.com wrote: Hi Senaka, On Wed, Aug 7, 2013 at 1:23 PM, Senaka Fernando sen...@wso2.comwrote: Hi Nuwan, No simply wait for the BE call (VM-operation or WS-call) to complete. The java operation doesn't return anything upon success, hence javascript code just trigger this operation and go on to the next line, which sets the permission to the asset path. This doesn't happen because the asset is not yet added by the 1st operation. What do you suggest ? Regards, /Nuwan If you want to make this asynchronous and still check whether the operation completed, then you can see whether the asset can be fetched by ID. But, I believe that the former is a straightforward thing to do. Thanks, Senaka. On Wed, Aug 7, 2013 at 12:29 PM, Nuwan Bandara nu...@wso2.comwrote: Hi Senaka On Wed, Aug 7, 2013 at 10:08 AM, Senaka Fernando sen...@wso2.comwrote: Hi Dulitha, It depends on the client you use. If your code (or the BE code of the Jaggery code you've written, waits for the operation to complete, then it is synchronous. If it is not, then it wont behave that way. How can we wait for the operation to complete, I mean how can we know when the asset is created ? by doing res.exists() ? Thanks, Senaka. On Wed, Aug 7, 2013 at 8:58 AM, Dulitha Wijewantha duli...@wso2.com wrote: Hi guys, I am inserting to the registry using the system registry of the generic store using the Generic Artifact Manager. The issue is that when I insert through the GAM - it take sometime to be inserted to the registry. I want to set get operation for the anon role using the UserManager. Since the instance is not existing the permission is not applied. am = new carbon.registry.ArtifactManager(registry, mobileapp); var attributes ={ overview_status: PENDING-REVIEW, overview_name: ctx.name, overview_platform:t, overview_version: ctx.version, overview_url: ctx.url, overview_provider: ctx.provider, overview_description: ctx.description, overview_market:ctx.markettype, // overview_recentChanges:ctx.recentChanges, overview_packageName:ctx.packagename, overview_category:ctx.category, images_icon:icon, images_banner:banner, images_screenshots:screenshots }; attributes[attributes.overview_status+_date]=printDate(); am.add({ name: ctx.name, lifecycle:[applifecycle], path:path, attributes:attributes }); // The above call is not synchrnous. The method returns without actually adding the asset to the registry. // A JavaScript way of dealing with such things would be to implement a callback. Maybe for Java we need a listner. um.authorizeRole(carbon.user.anonRole, path, carbon.registry.actions.GET); //Above call will not work since the asset is not there in the registry Can someone from registry team explain whether the *addGenericArtifact *method is synchronous or not. Just for the sake of testing I even tried out a while loop using exists method- it also go infinite. Thanks -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulithawijewantha.com * *
Re: [Dev] Why count_record13080XXXXXX.properties file created under WSO2_AS_HOME directory?
On Wed, Aug 7, 2013 at 2:58 PM, Thayalan thaya...@wso2.com wrote: Hi, When I'm doing multi profile testing on a Windows 7 machine (WSO2 AS 5.2.0) I've observed several similar property files getting created in the HOME directory of the WSO2 AS. What the real use of this file? Sample file attached. Can you provide me a list of Axis2 Modules deployed on your local server ? Probably you are running Axis2 module sample which counts messages. Thanks ! Regards, Associate Technical Lead - QA Mob: +94(0)777872485 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fwd: Feature Categorization for APIM
On Wed, Aug 7, 2013 at 1:27 PM, Amila De Silva ami...@wso2.com wrote: Hi, Since the existing feature breakdown doesn't help much when installing high level components in APIManager, thought of restructuring the categories. Only the following categories will be defined. 1. Store 2. Publisher 3. KeyManager 4. Gateway Worker 5. Gateway Manager +1 this will help users to install API capabilities without knowing underlying complex feature dependencies. Else they may confused with dependency issues. We need to make sure add all dependent features(assuming this install on basic carbon server). Thanks, Sanjeewa. Each feature category will contain all the dependent features needed to install that category completely. For example Publisher category will include Publisher/ org.wso2.carbon.apimgt.publisher.feature org.wso2.carbon.governance.lifecycle.management.feature org.wso2.carbon.registry.core.feature. . Similarly Store category will have; Store/ org.wso2.carbon.core.server org.wso2.carbon.registry.core.feature This approach will duplicate some features across different categories, but installing a high level component will be made easy by this. AmilaD On Tue, Aug 6, 2013 at 11:33 AM, Sanjeewa Malalgoda sanje...@wso2.comwrote: On Mon, Aug 5, 2013 at 3:31 PM, Lalaji Sureshika lal...@wso2.com wrote: Hi Amila, On Mon, Aug 5, 2013 at 12:34 AM, Kasun Gajasinghe kas...@wso2.comwrote: I believe you can also create some high-level categories like store and publisher? That would be really useful. I also agree with Kasun's point. From APIManager perspective,I think we need high-level categories as 1) store 2) publisher 3) keymgt 4) gateway gateway should have 2 profiles gateway manager. gateway worker. @Amila, I have already sent a mail to developers list to discuss about profile categorization of API manager. Content on that mail will surely help us in this case as well. Also added 2 or 3 profiles to p2 pom. Thanks, Sanjeewa. Isn't the features category set defined by Dinusha as per thread [Dev] New feature structure for API Manager ,would fit with this task..? Thanks; Thanks, KasunG On Mon, Aug 5, 2013 at 12:58 PM, Amila De Silva ami...@wso2.comwrote: Hi, Please find the initial feature categories for APIM at https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AhlcfaVDH9iFdDhVV2VpMS1DQW8wNHJDb0hnQWktTEE#gid=0 Similar categories created for AS and DSS can be found at https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0ApWioeKgeCchdGg1bWpVb010SkJGMUpZMkNVTDA4NUEpli=1#gid=0 Those marked in bold are the features newly added for APIM under existing feature categories. Five new categories were created for Mediation, Governance, API Management, Identity and Transport. Please go through the list and provide some feedback. -- *Amila De Silva* * * WSO2 Inc.* * mobile :(+94) 775119302 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lalaji Sureshika WSO2, Inc.; http://wso2.com/ email: lal...@wso2.com; cell: +94 71 608 6811 blog: http://lalajisureshika.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- * * *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/ -- *Amila De Silva* * * WSO2 Inc.* * mobile :(+94) 775119302 -- * * *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Status of ESB 4.8.0 on kernal 4.2.0
Hi, Following UM error is all over the logs. I think Asela has fixed the issue now. [2013-08-06 22:09:16,683] INFO {org.wso2.carbon.automation.core.utils. coreutils.InputStreamHandler} - Caused by: java.lang.NoSuchMethodError: org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(Ljava/lang/String;IZ)[Ljava/lang/String; [2013-08-06 22:09:16,683] INFO {org.wso2.carbon.automation.core.utils. coreutils.InputStreamHandler} - at org.wso2.carbon.user.mgt.UserRealmProxy.getAllRolesNames(UserRealmProxy.java:346) [2013-08-06 22:09:16,684] INFO {org.wso2.carbon.automation.core.utils. coreutils.InputStreamHandler} - at org.wso2.carbon.user.mgt.UserAdmin.getAllRolesNames(UserAdmin.java:88) [2013-08-06 22:09:16,684] INFO {org.wso2.carbon.automation.core.utils. coreutils.InputStreamHandler} - ... 43 more [2013-08-06 22:09:16,692] ERROR {org.wso2.carbon.automation.api.clients.user.mgt.UserManagementClient} - Unable to get role names list org.apache.axis2.AxisFault: org.wso2.carbon.user.core.common.AbstractUserStoreManager.getRoleNames(Ljava/lang/String;IZ)[Ljava/lang/String; at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext( Utils.java:531) atorg.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:367) atorg.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413) atorg.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224) at org.apache.axis2.client.OperationClient.execute( OperationClient.java:149) atorg.wso2.carbon.user.mgt.stub.UserAdminStub.getAllRolesNames(UserAdminStub.java:5707) atorg.wso2.carbon.automation.api.clients.user.mgt.UserManagementClient.roleNameExists(UserManagementClient.java:207) at org.wso2.carbon.automation.core.UserPopulator. createRoleWithAllPermissions(UserPopulator.java:225) at org.wso2.carbon.automation.core.UserPopulator.createProductUsers( UserPopulator.java:107) at org.wso2.carbon.automation.core.UserPopulator.populateUsers( UserPopulator.java:98) at org.wso2.carbon.automation.core.PlatformSuiteManager.onStart( PlatformSuiteManager.java:115) at org.testng.SuiteRunner.invokeListeners(SuiteRunner.java:196) at org.testng.SuiteRunner.run(SuiteRunner.java:238) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158) at org.testng.TestNG.runSuitesLocally(TestNG.java:1083) Thanks, Krishantha. On Wed, Aug 7, 2013 at 1:56 PM, Nalin Chandraratne na...@wso2.com wrote: Hi, Please find the attached surefire reports. Note that they were run individually and the reports are categorized according to the test-group. Thanks, Nalin. On Wed, Aug 7, 2013 at 12:46 PM, Krishantha Samaraweera krishan...@wso2.com wrote: On Wed, Aug 7, 2013 at 6:20 AM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: On Wed, Aug 7, 2013 at 12:34 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi, On Tue, Aug 6, 2013 at 5:30 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: Hi Folks, Following are the test results of the pack we built last Friday. The tests were run one by one since we cannot run all the tests in one go because many tests get skipped. @Jeewantha - What's the reason for test skipped ? Is it the same connection refused error ? AFAIU yes. Can you share the surefire report Thanks, Krishantha. However we noticed an API change on org.wso2.carbon.user.core hence almost all the tests were skiped on the pack we built today. Once the needful change is done on the test framework we could provide an ESB pack for QA. passed failed skipped Server-Stratup -1 0 0 Throttle-mediator-Test -6 1 0 ProxyService-Test - 184 47 2 Endpoint-Test - 40 0 0 LocalEntry-Test -8 0 0 nhttp-Transport-Test -0 0 8 Resource-MediaType-Test -4 0 0 Rest-API-Test -1 1 0 Servlet-transport-Test -1 0 0 VFS-transport-Test - 24 0 0 Aggregate-mediator-Test - 38 1 0 Cache-mediator-Test -2 0 0 Call-mediator-Test -3 0 0 CallOut-mediator-Test -9 0 0 Clone-mediator-Test - 14 0 0 ConditionalRouting-mediator-Test- 5 0 0 Drop-mediator-Test -1 0 0 Message-Store-Test -6 0 0 Enrich-mediator-Test - 36 0 0 Fault-mediator-Test - 30
Re: [Dev] Status of ESB 4.8.0 on kernal 4.2.0
There is no any API changes in user core interface... We have just modified the method in Abstract class and same time we have done the fix in user.mgt that is used that method. you have not properly svn up and build it properly... this why you can see these errors. Thanks, Asela. On Tue, Aug 6, 2013 at 5:30 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: Hi Folks, Following are the test results of the pack we built last Friday. The tests were run one by one since we cannot run all the tests in one go because many tests get skipped. However we noticed an API change on org.wso2.carbon.user.core hence almost all the tests were skiped on the pack we built today. Once the needful change is done on the test framework we could provide an ESB pack for QA. passed failed skipped Server-Stratup -1 0 0 Throttle-mediator-Test -6 1 0 ProxyService-Test - 184 47 2 Endpoint-Test - 40 0 0 LocalEntry-Test -8 0 0 nhttp-Transport-Test -0 0 8 Resource-MediaType-Test - 4 0 0 Rest-API-Test -1 1 0 Servlet-transport-Test -1 0 0 VFS-transport-Test - 24 0 0 Aggregate-mediator-Test - 38 1 0 Cache-mediator-Test - 2 0 0 Call-mediator-Test -3 0 0 CallOut-mediator-Test -9 0 0 Clone-mediator-Test - 14 0 0 ConditionalRouting-mediator-Test- 5 0 0 Drop-mediator-Test -1 0 0 Message-Store-Test -6 0 0 Enrich-mediator-Test - 36 0 0 Fault-mediator-Test - 30 0 0 Filter-mediator-Test -4 0 0 Header-mediator-Test - 2 0 0 In-mediator-Test -2 0 0 Log-mediator-Test -1 0 0 Out-mediator-Test -2 0 0 JMS-transport-Test - 20 1 0 Property-mediator-Test- 37 1 0 PayloadFactory-mediator-Test - 13 0 0 Rewrite-mediator-Test - 60 0 0 Router-mediator-Test - 8 0 0 Rule-mediator-Test - 15 0 0 Message-Processor-Test - 3 1 0 Send-mediator-Test - 70 0 0 Sequence-mediator-Test - 2 0 0 Switch-mediator-Test- 12 0 0 Validate-mediator-Test - 11 0 0 XQuery-mediator-Test - 12 0 0 XSLT-mediator-Test - 7 0 0 FastXSLT-mediator-Test- 3 0 0 Class-mediator-Test - 5 0 0 Iterate-mediator-Test - 31 0 0 Spring-mediator-Test - 5 1 0 Smook-mediator-Test- 2 1 0 Script-mediator-Test - 16 0 0 ESB-Sample-Test - 32 0 0 TCP-transport-Test - 1 0 0 POX-security-Test - 8 4 12 Rest-JSON-Test - 2 0 0 CAR-Deployment - 0 0 7 ScheduleTask-Test - 2 0 0 Scenario-Test - 1 0 0 GZIP-Compression-Test - 6 0 0 BR, Jeewantha -- Jeewantha Dharmaparakrama Software Engineer; WSO2, Inc.; http://wso2.com/ Phone : (+94) 774726790 Skype : prasad.jeewantha LinkedIn : http://www.linkedin.com/in/jeewanthad Twitter: https://twitter.com/jeewamp Blog: http://jeewanthad.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, Asela Mobile : +94 777 625 933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Weird behavior with load balancing a IS Cluster
Guys, in general, please do a detailed logical analysis when the cluster fails while in QA. Making ballpark gestimates does not help. And if you are not sure, you then need to gather facts, like message flows, logs, loads on nodes etc, based on the behavior applicable. On Wed, Aug 7, 2013 at 2:55 PM, Afkham Azeez az...@wso2.com wrote: Search for Cluster initialization completed log message in the two IS nodes. See whether that is printed, and yet the member didn't join the ELB. On Wed, Aug 7, 2013 at 11:00 AM, Chamara Ariyarathne chama...@wso2.comwrote: Here having a setup with One ELB and Two IS nodes (As Mgt nodes). When one IS node starts up; the log in the ELB [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:21,806] INFO - HazelcastGroupManagementAgent Member joined [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:51:24,933] INFO - MemberUtils Added member: Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true [2013-08-07 04:51:24,934] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.20, Remote Host:null, Port: 4001, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster [2013-08-07 04:51:32,112] INFO - TimeoutHandler This engine will expire all callbacks after : 86400 seconds, irrespective of the timeout action, after the specified or optional timeout So that this member joined. After that when the next IS node starts up. [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 [2013-08-07 04:53:07,524] INFO - HazelcastGroupManagementAgent Member joined [882bca71-8802-44f4-89ee-ebe6334e42b1]: /192.168.17.19:4002 So not sure if this one really joined. But after shutting down the first IS node; [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:38,782] INFO - HazelcastGroupManagementAgent Member left [e7792e38-54a7-4212-9d19-de25dbb7afd9]: /192.168.17.20:4001 [2013-08-07 04:53:43,252] INFO - HazelcastGroupManagementAgent Application member Host:192.168.17.19, Remote Host:null, Port: 4002, HTTP:9764, HTTPS:9444, Domain: wso2.identity.domain, Sub-domain:mgt, Active:true joined application cluster Now the second node have joined. So now if I startup the first node again; [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 [2013-08-07 04:54:48,456] INFO - HazelcastGroupManagementAgent Member joined [99dad4be-b2f1-4c43-a862-3b4c7b1dfb51]: /192.168.17.20:4001 It seems that at a given time only one IS node can join. (Configurations attached.) -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Status of ESB 4.8.0 on kernal 4.2.0
On Wed, Aug 7, 2013 at 4:17 PM, Asela Pathberiya as...@wso2.com wrote: There is no any API changes in user core interface... We have just modified the method in Abstract class and same time we have done the fix in user.mgt that is used that method. you have not properly svn up and build it properly... this why you can see these errors. Yeah, we have ran another round of integration tests and we did not observe this issue with the latest results. Nalin will send the latest results shortly. Thanks. Thanks, Asela. On Tue, Aug 6, 2013 at 5:30 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: Hi Folks, Following are the test results of the pack we built last Friday. The tests were run one by one since we cannot run all the tests in one go because many tests get skipped. However we noticed an API change on org.wso2.carbon.user.core hence almost all the tests were skiped on the pack we built today. Once the needful change is done on the test framework we could provide an ESB pack for QA. passed failed skipped Server-Stratup -1 0 0 Throttle-mediator-Test -6 1 0 ProxyService-Test - 184 47 2 Endpoint-Test - 40 0 0 LocalEntry-Test -8 0 0 nhttp-Transport-Test -0 0 8 Resource-MediaType-Test - 4 0 0 Rest-API-Test -1 1 0 Servlet-transport-Test -1 0 0 VFS-transport-Test - 24 0 0 Aggregate-mediator-Test - 38 1 0 Cache-mediator-Test -2 0 0 Call-mediator-Test -3 0 0 CallOut-mediator-Test -9 0 0 Clone-mediator-Test - 14 0 0 ConditionalRouting-mediator-Test- 5 0 0 Drop-mediator-Test -1 0 0 Message-Store-Test -6 0 0 Enrich-mediator-Test - 36 0 0 Fault-mediator-Test - 30 0 0 Filter-mediator-Test -4 0 0 Header-mediator-Test -2 0 0 In-mediator-Test -2 0 0 Log-mediator-Test -1 0 0 Out-mediator-Test -2 0 0 JMS-transport-Test - 20 1 0 Property-mediator-Test- 37 1 0 PayloadFactory-mediator-Test - 13 0 0 Rewrite-mediator-Test - 60 0 0 Router-mediator-Test - 8 0 0 Rule-mediator-Test -15 0 0 Message-Processor-Test - 3 1 0 Send-mediator-Test - 70 0 0 Sequence-mediator-Test - 2 0 0 Switch-mediator-Test- 12 0 0 Validate-mediator-Test - 11 0 0 XQuery-mediator-Test - 12 0 0 XSLT-mediator-Test - 7 0 0 FastXSLT-mediator-Test- 3 0 0 Class-mediator-Test -5 0 0 Iterate-mediator-Test - 31 0 0 Spring-mediator-Test - 5 1 0 Smook-mediator-Test- 2 1 0 Script-mediator-Test - 16 0 0 ESB-Sample-Test - 32 0 0 TCP-transport-Test - 1 0 0 POX-security-Test - 8 4 12 Rest-JSON-Test - 2 0 0 CAR-Deployment - 0 0 7 ScheduleTask-Test - 2 0 0 Scenario-Test - 1 0 0 GZIP-Compression-Test - 6 0 0 BR, Jeewantha -- Jeewantha Dharmaparakrama Software Engineer; WSO2, Inc.; http://wso2.com/ Phone : (+94) 774726790 Skype : prasad.jeewantha LinkedIn : http://www.linkedin.com/in/jeewanthad Twitter: https://twitter.com/jeewamp Blog: http://jeewanthad.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, Asela Mobile : +94 777 625 933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 71 536 4128 Blog : http://kasunpanorama.blogspot.com/ ___ Dev mailing list
Re: [Dev] [Architecture] Caching implementation performance improvement
On Wed, Aug 7, 2013 at 2:59 PM, Danushka Fernando danush...@wso2.comwrote: Hi, Just wondering about the update mechanism. What happens when original value or L2 cache value get updated? What do you mean by this? If I understand correctly, when you need to update the value for a key, you need to use the Caching API and use put method. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Aug 7, 2013 at 2:02 PM, Afkham Azeez az...@wso2.com wrote: [image: Inline image 1] On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture -- Isuru Perera Senior Software Engineer | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware Twitter: http://twitter.com/chrishantha | LinkedIn: http://lk.linkedin.com/in/chrishantha/ caching.png___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] Caching implementation performance improvement
I am asking about caching invalidating mechanism Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Aug 7, 2013 at 5:13 PM, Isuru Perera isu...@wso2.com wrote: On Wed, Aug 7, 2013 at 2:59 PM, Danushka Fernando danush...@wso2.comwrote: Hi, Just wondering about the update mechanism. What happens when original value or L2 cache value get updated? What do you mean by this? If I understand correctly, when you need to update the value for a key, you need to use the Caching API and use put method. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Aug 7, 2013 at 2:02 PM, Afkham Azeez az...@wso2.com wrote: [image: Inline image 1] On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture -- Isuru Perera Senior Software Engineer | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware Twitter: http://twitter.com/chrishantha | LinkedIn: http://lk.linkedin.com/in/chrishantha/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev caching.png___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon 4.2.0] Tenant creation is very slow (more than 3 minutes) in cluster setup
Hi, We tried several combinations of configurations to figure out the cause for the delay we noticed in tenant creation. At the end, we found out that the cause is the registry mount. *Without* a registry mount, it took ~8 seconds for the tenant creation. *With* a registry mount, it took ~60 seconds. When there were no registry mounts but when the primary user store was connected to an Oracle DB, it took ~30 seconds to create the tenant. Regards, Evanthika On Fri, Jul 26, 2013 at 6:06 PM, Afkham Azeez az...@wso2.com wrote: I ran this with JProfiler, and the problem is due to caching with Hazelcast the registry caching handler, clearAncestry method which recursively gets called. As can be seen from the attached screenshot, the Hazelcast EntryIterator.hasNext is a very expensive method which involves object deserialization. Senaka, can we optimize the clearAncestry method? On Thu, Jul 25, 2013 at 4:53 PM, Shashika Ubhayaratne shash...@wso2.comwrote: Hi, We observed that tenant creation is very slow on cluster set up. It took more than 3 minutes. In addition to that,more than 15 minutes taken to create 4 concurrent tenants. Once logged in to tenant, it navigates to carbon UI console as per the attached screenshot. Also note that some tenants could not logged in. Refer the bug [1] for more details: [1]: https://wso2.org/jira/browse/CARBON-14225 Thanks, Shashika ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ 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] Caching implementation performance improvement
On Wed, Aug 7, 2013 at 2:59 PM, Danushka Fernando danush...@wso2.comwrote: Hi, Just wondering about the update mechanism. What happens when original value or L2 cache value get updated? I think the question is, if the L2 (distributed) cache got updated from another node, how does it get reflected in the L1 caches of the other nodes. We register an entry listener for the L2 cache, and whenever there is a change, this gets triggered, and updates the L1 caches as well. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Aug 7, 2013 at 2:02 PM, Afkham Azeez az...@wso2.com wrote: [image: Inline image 1] On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* caching.png___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Automation framework's inconsistent behavior
Hi All, Apparently there's some serious ordering/execution issue when the bunch of tests run with the framework. For example if you run a single class LCStateIdNameTestCase all test passes but fails when running only with the package (org.wso2.carbon.registry.lifecycle.test in this case). Failure below with the reason for the same. This fails as the logs indicate a different LC is attached to the service while executing the method. So how this is possible? There can be multiple reasons but one can be the use of same service/metadata in multiple test cases and another test case attaches a different LC to the same service referred by the current test case. One way this can be avoided (at least for the most part) is re-factor the test cases to avoid these multiple test methods with @Test (to add service/LC etc...) in that the main test case in focus do the necessary method calls directly (to setup required services etc...) and do the asserts (This can be done some restructuring of the current tests) itself. Is there any other way this interference can be avoided within the framework? [2013-08-07 16:33:49,811] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - On test success.. [2013-08-07 16:33:49,812] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test method --- org.wso2.carbon.registry.lifecycle.test.LCStateIdNameTestCase.testAddLcToService +++ LC PR: +/trunk/services/com/abb/IntergalacticService, * StateIdNameLC* ++ LC PROP: +++registry.lifecycle.* TransitionApprovalLC*.state ++ LC PROP: +++registry.custom_lifecycle.checklist.option.1.item ++ LC PROP: +++registry.custom_lifecycle.checklist.option.1.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.2.item ++ LC PROP: +++registry.custom_lifecycle.checklist.option.0.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.2.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.0.item [2013-08-07 16:33:50,082] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - On Test failure.. [2013-08-07 16:33:50,083] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - *java.lang.AssertionError: LifeCycle not added to service expected [true] but found [false]* Regards, Vijitha. -- Vijitha Kumara Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: viji...@wso2.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What web request data should publish to the BAM as web statistics
I cannot think of a generic way of distinguishing between different urls, whether a request for a image or for css style sheets. we cannot recognize a css request just by looking .css at the end of the url. Sometimes even css request goes with query parameter at the end of the url. AFAIK there is no generic way to recognize different of the urls. And if we do string pattern matching would affect the performance. Thanks *G. K. S. Munasinghe * *Software Engineer,* *WSO2, Inc. http://wso2.com * *lean.enterprise.middleware.* * * email: ge...@wso2.com phone:(+94) 777911226 On Wed, Aug 7, 2013 at 5:44 PM, Asanka Vithanage asan...@wso2.com wrote: Hi All, With current web stat gathering implementation, when access a (web statistics enabled) web app one time, BAM Event_KS getting updated more than one time. As observed, reason is AS publishing all web request it made within a page load. So it counts all CSS,Image requests as well. Due to this showing final web statistics are not accurate IMO. Is there any possibility to improve this? WDYT? - Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Automation framework's inconsistent behavior
This happens when the resources used for a test is not cleared properly after the test. Those clearance should be called under AfterClass or After Test annotated methods. Then Those methods will call even if the test is failed or passed. Then there are no effects of other test classes. Some test methods have all the steps inside it. Once it gets failed, It may affect other test too. If we do that properly we can use the same resources in many test cases. if not we have to use different names for artifact we use. Thanks, Nuwanw On Wed, Aug 7, 2013 at 5:44 PM, Vijitha Kumara viji...@wso2.com wrote: Hi All, Apparently there's some serious ordering/execution issue when the bunch of tests run with the framework. For example if you run a single class LCStateIdNameTestCase all test passes but fails when running only with the package (org.wso2.carbon.registry.lifecycle.test in this case). Failure below with the reason for the same. This fails as the logs indicate a different LC is attached to the service while executing the method. So how this is possible? There can be multiple reasons but one can be the use of same service/metadata in multiple test cases and another test case attaches a different LC to the same service referred by the current test case. One way this can be avoided (at least for the most part) is re-factor the test cases to avoid these multiple test methods with @Test (to add service/LC etc...) in that the main test case in focus do the necessary method calls directly (to setup required services etc...) and do the asserts (This can be done some restructuring of the current tests) itself. Is there any other way this interference can be avoided within the framework? [2013-08-07 16:33:49,811] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - On test success.. [2013-08-07 16:33:49,812] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test method --- org.wso2.carbon.registry.lifecycle.test.LCStateIdNameTestCase.testAddLcToService +++ LC PR: +/trunk/services/com/abb/IntergalacticService, * StateIdNameLC* ++ LC PROP: +++registry.lifecycle.* TransitionApprovalLC*.state ++ LC PROP: +++registry.custom_lifecycle.checklist.option.1.item ++ LC PROP: +++registry.custom_lifecycle.checklist.option.1.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.2.item ++ LC PROP: +++registry.custom_lifecycle.checklist.option.0.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.2.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.0.item [2013-08-07 16:33:50,082] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - On Test failure.. [2013-08-07 16:33:50,083] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - *java.lang.AssertionError: LifeCycle not added to service expected [true] but found [false]* Regards, Vijitha. -- Vijitha Kumara Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: viji...@wso2.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What web request data should publish to the BAM as web statistics
Found this article[1] on hits, views and unique visitors, might help to understand the accuracy of web stats. [1] http://support.tigertech.net/stats-hits On Wed, Aug 7, 2013 at 6:00 PM, Geeth Munasinghe ge...@wso2.com wrote: I cannot think of a generic way of distinguishing between different urls, whether a request for a image or for css style sheets. we cannot recognize a css request just by looking .css at the end of the url. Sometimes even css request goes with query parameter at the end of the url. AFAIK there is no generic way to recognize different of the urls. And if we do string pattern matching would affect the performance. Thanks *G. K. S. Munasinghe * *Software Engineer,* *WSO2, Inc. http://wso2.com * *lean.enterprise.middleware.* * * email: ge...@wso2.com phone:(+94) 777911226 On Wed, Aug 7, 2013 at 5:44 PM, Asanka Vithanage asan...@wso2.com wrote: Hi All, With current web stat gathering implementation, when access a (web statistics enabled) web app one time, BAM Event_KS getting updated more than one time. As observed, reason is AS publishing all web request it made within a page load. So it counts all CSS,Image requests as well. Due to this showing final web statistics are not accurate IMO. Is there any possibility to improve this? WDYT? - Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Udara Rathnayake* Software Engineer WSO2 Inc. : http://wso2.com Mobile : +94 772207239 Twitter : http://twitter.com/udarakr Blog: http://udarakr.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Automation framework's inconsistent behavior
Hi Nuwan, I see most of the test cases have cleanup code to do the necessary stuff but we need to review all of them as well if there's any doubt. But this is not about resource cleanup rather the issue with the inferences and the related consequences I explained. The test in focus is not done but while invoking one of its methods it has met with an unexpected state (that can be a result of another test case which might also not finished). If the latter is finished then it might have cleaned up the service (same service used across both classes in this case) so it might fail the current test case with no service found, which is another side effect of these. So this might have to do with ordering/execution as well. I'm not sure about the implementation but we can analyze that. On Wed, Aug 7, 2013 at 6:02 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: This happens when the resources used for a test is not cleared properly after the test. Those clearance should be called under AfterClass or After Test annotated methods. Then Those methods will call even if the test is failed or passed. Then there are no effects of other test classes. Some test methods have all the steps inside it. Once it gets failed, It may affect other test too. If we do that properly we can use the same resources in many test cases. if not we have to use different names for artifact we use. That's also a possible solution for these kind which requires redoing all test classes again which I'm not sure an option with the time frames of the current release. Regards, Vijitha. Thanks, Nuwanw On Wed, Aug 7, 2013 at 5:44 PM, Vijitha Kumara viji...@wso2.com wrote: Hi All, Apparently there's some serious ordering/execution issue when the bunch of tests run with the framework. For example if you run a single class LCStateIdNameTestCase all test passes but fails when running only with the package (org.wso2.carbon.registry.lifecycle.test in this case). Failure below with the reason for the same. This fails as the logs indicate a different LC is attached to the service while executing the method. So how this is possible? There can be multiple reasons but one can be the use of same service/metadata in multiple test cases and another test case attaches a different LC to the same service referred by the current test case. One way this can be avoided (at least for the most part) is re-factor the test cases to avoid these multiple test methods with @Test (to add service/LC etc...) in that the main test case in focus do the necessary method calls directly (to setup required services etc...) and do the asserts (This can be done some restructuring of the current tests) itself. Is there any other way this interference can be avoided within the framework? [2013-08-07 16:33:49,811] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - On test success.. [2013-08-07 16:33:49,812] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test method --- org.wso2.carbon.registry.lifecycle.test.LCStateIdNameTestCase.testAddLcToService +++ LC PR: +/trunk/services/com/abb/IntergalacticService, * StateIdNameLC* ++ LC PROP: +++registry.lifecycle.* TransitionApprovalLC*.state ++ LC PROP: +++registry.custom_lifecycle.checklist.option.1.item ++ LC PROP: +++registry.custom_lifecycle.checklist.option.1.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.2.item ++ LC PROP: +++registry.custom_lifecycle.checklist.option.0.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.2.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.0.item [2013-08-07 16:33:50,082] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - On Test failure.. [2013-08-07 16:33:50,083] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - *java.lang.AssertionError: LifeCycle not added to service expected [true] but found [false]* Regards, Vijitha. -- Vijitha Kumara Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: viji...@wso2.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- Vijitha Kumara Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: viji...@wso2.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Why aren't Hazelcast Tomcat logs appearing in the console anymore?
$subject -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Automation framework's inconsistent behavior
First of all this is not framework issue. The issue has caused by the way we have done test design. The same behavior was observed when using priority and dependOn annotation together (could be caused by testNG issue) I have explained the reason for the using of duplicate create service/LC methods in another mail thread. I don't think we need to redo the test code here. All these tests were successful with G-Reg 4.5.3. IMO we can use unique service names and fix the problem. Thanks, Krishantha. On Wed, Aug 7, 2013 at 7:32 PM, Vijitha Kumara viji...@wso2.com wrote: Hi Nuwan, I see most of the test cases have cleanup code to do the necessary stuff but we need to review all of them as well if there's any doubt. But this is not about resource cleanup rather the issue with the inferences and the related consequences I explained. The test in focus is not done but while invoking one of its methods it has met with an unexpected state (that can be a result of another test case which might also not finished). If the latter is finished then it might have cleaned up the service (same service used across both classes in this case) so it might fail the current test case with no service found, which is another side effect of these. So this might have to do with ordering/execution as well. I'm not sure about the implementation but we can analyze that. On Wed, Aug 7, 2013 at 6:02 PM, Nuwan Wimalasekara nuw...@wso2.comwrote: This happens when the resources used for a test is not cleared properly after the test. Those clearance should be called under AfterClass or After Test annotated methods. Then Those methods will call even if the test is failed or passed. Then there are no effects of other test classes. Some test methods have all the steps inside it. Once it gets failed, It may affect other test too. If we do that properly we can use the same resources in many test cases. if not we have to use different names for artifact we use. That's also a possible solution for these kind which requires redoing all test classes again which I'm not sure an option with the time frames of the current release. Regards, Vijitha. Thanks, Nuwanw On Wed, Aug 7, 2013 at 5:44 PM, Vijitha Kumara viji...@wso2.com wrote: Hi All, Apparently there's some serious ordering/execution issue when the bunch of tests run with the framework. For example if you run a single class LCStateIdNameTestCase all test passes but fails when running only with the package (org.wso2.carbon.registry.lifecycle.test in this case). Failure below with the reason for the same. This fails as the logs indicate a different LC is attached to the service while executing the method. So how this is possible? There can be multiple reasons but one can be the use of same service/metadata in multiple test cases and another test case attaches a different LC to the same service referred by the current test case. One way this can be avoided (at least for the most part) is re-factor the test cases to avoid these multiple test methods with @Test (to add service/LC etc...) in that the main test case in focus do the necessary method calls directly (to setup required services etc...) and do the asserts (This can be done some restructuring of the current tests) itself. Is there any other way this interference can be avoided within the framework? [2013-08-07 16:33:49,811] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - On test success.. [2013-08-07 16:33:49,812] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test method --- org.wso2.carbon.registry.lifecycle.test.LCStateIdNameTestCase.testAddLcToService +++ LC PR: +/trunk/services/com/abb/IntergalacticService, * StateIdNameLC* ++ LC PROP: +++registry.lifecycle.* TransitionApprovalLC*.state ++ LC PROP: +++registry.custom_lifecycle.checklist.option.1.item ++ LC PROP: +++registry.custom_lifecycle.checklist.option.1.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.2.item ++ LC PROP: +++registry.custom_lifecycle.checklist.option.0.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.2.item.permission ++ LC PROP: +++registry.custom_lifecycle.checklist.option.0.item [2013-08-07 16:33:50,082] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - On Test failure.. [2013-08-07 16:33:50,083] ERROR {org.wso2.carbon.automation.core.PlatformTestManager} - *java.lang.AssertionError: LifeCycle not added to service expected [true] but found [false]* Regards, Vijitha. -- Vijitha Kumara Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: viji...@wso2.com Lean . Enterprise .
Re: [Dev] Why aren't Hazelcast Tomcat logs appearing in the console anymore?
Hi Azeez, This has been fixed in latest trunk and now both Hazelcast and Tomcat logs(java loggings) log to wso2carbon.log file too. thanks, Shameera. On Wed, Aug 7, 2013 at 7:42 PM, Afkham Azeez az...@wso2.com wrote: $subject -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Software Engineer - WSO2 Inc.* *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.orgshame...@apache.org * *phone: +9471 922 1454* * * *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561 *Twitter : *https://twitter.com/Shameera_R ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] G-Reg (trunk) content of an artifact different from G-Reg 4.5.3
Hi Chandana, In previous releases the Service (GovernanceArtifact) content was like [1] and now its like [2]. Is this the expected model with your new design of infinite entries? It seems to be a bug for me. Please add some explanation too. thanks Eranda [1]. metadata xmlns=http://www.wso2.org/governance/metadata; overview scopes http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/DefaultScope/scopes nameHelloService/name types{http://www.wso2.org/types}HelloServicePortType/types namespacehttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01 /namespace /overview endpoints entry:https://10.100.0.126:9444/services/HelloService/entry entry:http://10.100.0.126:9764/services/HelloService/entry entry:local:///services/HelloService/entry /endpoints interface wsdlURLhttp://10.100.0.126:9764/services/HelloService?wsdl/ wsdlURL /interface metadataVersion1/metadataVersion /metadata [2]. metadata xmlns=http://www.wso2.org/governance/metadata; overview scopes http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/DefaultScope/scopes nameHelloService/name types{http://www.wso2.org/types}HelloServicePortType/types namespacehttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01 /namespace /overview endpoints entry:https://10.100.0.126:9444/services/HelloService/entry /endpoints endpoints entry:http://10.100.0.126:9764/services/HelloService/entry /endpoints endpoints entry:local:///services/HelloService/entry /endpoints interface wsdlURLhttp://10.100.0.126:9764/services/HelloService?wsdl/ wsdlURL /interface metadataVersion1/metadataVersion /metadata -- *Eranda Sooriyabandara *Senior Software Engineer; Integration Technologies Team; WSO2 Inc.; http://wso2.com Lean . Enterprise . Middleware E-mail: eranda AT wso2.com Mobile: +94 716 472 816 Linked-In: http://www.linkedin.com/in/erandasooriyabandara Blog: http://emsooriyabandara.blogspot.com/ * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project wss4j: Compilation failure: Compilation failure:
Hi, Same issue occurred to me when I was using jdk1.7.0_07. I moved to jdk1.6.0_45 and issue was resolved. Regards, Venura On Wed, Jul 24, 2013 at 11:58 AM, Ayashkantha Ramasinghe ayashkan...@wso2.com wrote: Hi, I got the $subject while building the trunk-kernel and I tried with a clean repo. [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1:26.633s [INFO] Finished at: Wed Jul 24 11:37:50 IST 2013 [INFO] Final Memory: 286M/1123M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.1:compile (default-compile) on project wss4j: Compilation failure: Compilation failure: [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24] EncryptionKey is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[11,33] EncTicketPart is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[12,33] Ticket is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[13,40] KeyUsage is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[14,24] DerInputStream is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[15,24] DerValue is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[50,2] EncryptionKey is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[57,9] EncryptionKey is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[58,2] DerInputStream is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[58,36] DerInputStream is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[59,2] DerValue is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[64,3] DerValue is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[66,19] DerValue is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[74,34] DerInputStream is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[74,9] EncryptionKey is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[76,2] DerValue is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[78,2] DerValue is internal proprietary API and may be removed in a future release [ERROR] [ERROR] /home/ayash/trunk/kernel/trunk/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[81,3] DerValue is internal proprietary API and may be removed in a future release [ERROR] [ERROR]
Re: [Dev] G-Reg (trunk) content of an artifact different from G-Reg 4.5.3
Hi Chandana, This can be due to the improvements made for unbounded field support in RXT. ? Thanks Ajith. On Wed, Aug 7, 2013 at 9:20 PM, Eranda Sooriyabandara era...@wso2.comwrote: Hi Chandana, In previous releases the Service (GovernanceArtifact) content was like [1] and now its like [2]. Is this the expected model with your new design of infinite entries? It seems to be a bug for me. Please add some explanation too. thanks Eranda [1]. metadata xmlns=http://www.wso2.org/governance/metadata; overview scopes http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/DefaultScope /scopes nameHelloService/name types{http://www.wso2.org/types}HelloServicePortType/types namespacehttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01 /namespace /overview endpoints entry:https://10.100.0.126:9444/services/HelloService/entry entry:http://10.100.0.126:9764/services/HelloService/entry entry:local:///services/HelloService/entry /endpoints interface wsdlURLhttp://10.100.0.126:9764/services/HelloService?wsdl/ wsdlURL /interface metadataVersion1/metadataVersion /metadata [2]. metadata xmlns=http://www.wso2.org/governance/metadata; overview scopes http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/DefaultScope /scopes nameHelloService/name types{http://www.wso2.org/types}HelloServicePortType/types namespacehttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01 /namespace /overview endpoints entry:https://10.100.0.126:9444/services/HelloService/entry /endpoints endpoints entry:http://10.100.0.126:9764/services/HelloService/entry /endpoints endpoints entry:local:///services/HelloService/entry /endpoints interface wsdlURLhttp://10.100.0.126:9764/services/HelloService?wsdl/ wsdlURL /interface metadataVersion1/metadataVersion /metadata -- *Eranda Sooriyabandara *Senior Software Engineer; Integration Technologies Team; WSO2 Inc.; http://wso2.com Lean . Enterprise . Middleware E-mail: eranda AT wso2.com Mobile: +94 716 472 816 Linked-In: http://www.linkedin.com/in/erandasooriyabandara Blog: http://emsooriyabandara.blogspot.com/ * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] depsync + profile issues in AS worker/manager setup
We have removed most of the UI bundles from worker profile. We are unable to remove some UI bundles like Carbon UI from worker profile because of apparently a inconsistent use of server and ui features. One scenario I noticed was that org.wso2.carbon:org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature UI feature bundles org.wso2.carbon.identity.authenticator.saml2.sso.common. The UI bundle also requires carbon ui bundle. So, if we need sso common bundle for its functionality we have to bundle the sso ui bundle with worker profile. On Fri, Jul 12, 2013 at 4:57 PM, Kasun Gajasinghe kas...@wso2.com wrote: Yes. We are working on bug fixes at the moment. Currently we can not build AS packs since trunk is currently broken. Thanks, KasunG On Fri, Jul 12, 2013 at 4:53 PM, Pradeep Fernando prad...@wso2.comwrote: Hi as team, You have to carry out tests in depsync enabled worker manager setup with depsync enabled.. --Pradeep sent from my phone On Jul 12, 2013 3:47 PM, Kasun Gajasinghe kas...@wso2.com wrote: Committed in r178066. Thanks, KasunG On Fri, Jul 12, 2013 at 12:17 PM, Piyum Fernando pi...@wso2.com wrote: On Thu, Jul 11, 2013 at 2:24 PM, Kasun Gajasinghe kas...@wso2.comwrote: Hi Pradeep, Carbon UI bundle comes from the kernel. What would be the procedure to remove bundles from there during worker profile build? DepSync subversion feature comes from org.wso2.carbon.deployment.synchronizer.subversion.feature. Piyum, please include this in p2-profile-gen and the above requirement, and provide a patch. HI KasunG, Made the changes. Find the patch here. https://wso2.org/jira/browse/WSAS-1308 Thanks. Thanks, KasunG On Thu, Jul 11, 2013 at 1:15 PM, Pradeep Fernando prad...@wso2.comwrote: Hi Appserver team, I'm testing AS in a worker/setup with worker profile. getting below errors.looks like, - Carbon UI bundle is still there in the worker profile. - snv depsync bundles are not available in the profile please have a look asap. thanks. INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL : https://192.168.131.1:9444/carbon/ [2013-07-11 13:11:46,878] ERROR {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} - Deployment synchronization update for tenant -1234 failed java.lang.RuntimeException: org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException: No Repository found for type svn at org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:89) at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncUpdate(CarbonDeploymentSchedulerTask.java:144) at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:109) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) -- *Pradeep Fernando* Associate Technical Lead;WSO2 Inc.; http://wso2.com blog: http://pradeepfernando.blogspot.com m: +94776603662 -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * -- Piyum Fernando Software Engineer Mobile: +94 77 22 93 880 Home: +94 31 22 75 715 -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] depsync + profile issues in AS worker/manager setup
Hi Kasun, We can pack the common bundle with the server feature as well. thanks, On Wed, Aug 7, 2013 at 9:31 PM, Kasun Gajasinghe kas...@wso2.com wrote: We have removed most of the UI bundles from worker profile. We are unable to remove some UI bundles like Carbon UI from worker profile because of apparently a inconsistent use of server and ui features. One scenario I noticed was that org.wso2.carbon:org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature UI feature bundles org.wso2.carbon.identity.authenticator.saml2.sso.common. The UI bundle also requires carbon ui bundle. So, if we need sso common bundle for its functionality we have to bundle the sso ui bundle with worker profile. On Fri, Jul 12, 2013 at 4:57 PM, Kasun Gajasinghe kas...@wso2.com wrote: Yes. We are working on bug fixes at the moment. Currently we can not build AS packs since trunk is currently broken. Thanks, KasunG On Fri, Jul 12, 2013 at 4:53 PM, Pradeep Fernando prad...@wso2.comwrote: Hi as team, You have to carry out tests in depsync enabled worker manager setup with depsync enabled.. --Pradeep sent from my phone On Jul 12, 2013 3:47 PM, Kasun Gajasinghe kas...@wso2.com wrote: Committed in r178066. Thanks, KasunG On Fri, Jul 12, 2013 at 12:17 PM, Piyum Fernando pi...@wso2.comwrote: On Thu, Jul 11, 2013 at 2:24 PM, Kasun Gajasinghe kas...@wso2.comwrote: Hi Pradeep, Carbon UI bundle comes from the kernel. What would be the procedure to remove bundles from there during worker profile build? DepSync subversion feature comes from org.wso2.carbon.deployment.synchronizer.subversion.feature. Piyum, please include this in p2-profile-gen and the above requirement, and provide a patch. HI KasunG, Made the changes. Find the patch here. https://wso2.org/jira/browse/WSAS-1308 Thanks. Thanks, KasunG On Thu, Jul 11, 2013 at 1:15 PM, Pradeep Fernando prad...@wso2.comwrote: Hi Appserver team, I'm testing AS in a worker/setup with worker profile. getting below errors.looks like, - Carbon UI bundle is still there in the worker profile. - snv depsync bundles are not available in the profile please have a look asap. thanks. INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL : https://192.168.131.1:9444/carbon/ [2013-07-11 13:11:46,878] ERROR {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} - Deployment synchronization update for tenant -1234 failed java.lang.RuntimeException: org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException: No Repository found for type svn at org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:89) at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncUpdate(CarbonDeploymentSchedulerTask.java:144) at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:109) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) -- *Pradeep Fernando* Associate Technical Lead;WSO2 Inc.; http://wso2.com blog: http://pradeepfernando.blogspot.com m: +94776603662 -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * -- Piyum Fernando Software Engineer Mobile: +94 77 22 93 880 Home: +94 31 22 75 715 -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Supun Malinga, Senior Software
Re: [Dev] [Commits] [Carbon-platform] svn commit r180125 - in carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse: . config/xml/rest rest
Hi Nuwan, After updating synapse with this commit, Rest API's which I had deployed in my ESB instance are failing to deploy now. It seems like API's having both http and https transports (transports=http https) are failing to deploy. According to the following logic at APIFactory, it seems like only one transport is allowed for an api. OMAttribute trans = apiElt.getAttribute( new QName(XMLConfigConstants.NULL_NAMESPACE, transports)); if (trans != null) { String transports = trans.getAttributeValue(); if (!.equals(transports)) { if (Constants.TRANSPORT_HTTP.equals(transports)) { api.setProtocol(RESTConstants.PROTOCOL_HTTP_ONLY); } else if (Constants.TRANSPORT_HTTPS.equals(transports)) { api.setProtocol(RESTConstants.PROTOCOL_HTTPS_ONLY); } else { handleException(Invalid protocol name: + transports); } } } Isn't this wrong ? On Wed, Aug 7, 2013 at 1:25 PM, nuw...@wso2.com wrote: Author: nuw...@wso2.com Date: Wed Aug 7 13:25:10 2013 New Revision: 180125 URL: http://wso2.org/svn/browse/wso2?view=revrevision=180125 Log: Fixes for APIMANAGER-1417. Changes done by Ruwan Modified: carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/config/xml/rest/APIFactory.java carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/config/xml/rest/APISerializer.java carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/rest/API.java Modified: carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java URL: http://wso2.org/svn/browse/wso2/carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java?rev=180125r1=180124r2=180125view=diff == --- carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java (original) +++ carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java Wed Aug 7 13:25:10 2013 @@ -160,6 +160,10 @@ public static final String PROXY_SERVICE = proxy.name; /** The Synapse MC property that marks it as a RESPONSE */ public static final String RESPONSE = RESPONSE; +/** The Synapse MC property that indicates the in-transport */ +public static final String IN_TRANSPORT = IN_TRANSPORT; +/** The Synapse MC property that marks if the message was denied on the accessed transport */ +public static final String TRANSPORT_DENIED = TRANSPORT_DENIED; /** The Synapse MC property that marks the message as a OUT_ONLY message */ public static final String OUT_ONLY = OUT_ONLY; /** The Synapse MC property that states that existing WS-A headers in the envelope should @@ -168,12 +172,6 @@ /** The Synapse MC property that marks to Exception to be thrown on SOAPFault(Retry on SOAPFault)*/ public static final String RETRY_ON_SOAPFAULT = RETRY_ON_SOAPFAULT; -//Properties for Rest API transport level validation -/** The Synapse MC property that indicates the in-transport */ -public static final String IN_TRANSPORT = IN_TRANSPORT; -/** The Synapse MC property that marks if the message was denied on the accessed transport */ -public static final String TRANSPORT_DENIED = TRANSPORT_DENIED; - /** * The name of the property which specifies the operation name that is * invoked by an endpoint Modified: carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/config/xml/rest/APIFactory.java URL: http://wso2.org/svn/browse/wso2/carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/config/xml/rest/APIFactory.java?rev=180125r1=180124r2=180125view=diff == --- carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/config/xml/rest/APIFactory.java (original) +++ carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/config/xml/rest/APIFactory.java Wed Aug 7 13:25:10 2013 @@ -20,22 +20,20 @@ import org.apache.axiom.om.OMAttribute; import org.apache.axiom.om.OMElement; +import org.apache.axis2.Constants; import
[Dev] Sending custom parameters in confirmation email link
Hi all, At the organization registration of aPaaS we need to send a confirmation email to the user. ( We use EmailVerifcationSubscriber for this purpose ) But here we need to send some custom parameters with the confirmation link other than the confirmation key. ie: we need to send something like https://appfactorypreview.wso2.com/appmgt/site/pages/confirmemail.jag?* id=123456*confirmation=4015d3a1-7ed4https://appfactorypreview.wso2.com/appmgt/site/pages/confirmemail.jag?uuid=123456confirmation=4015d3a1-7ed4 instead of https://appfactorypreview.wso2.com/appmgt/site/pages/confirmemail.jag?confirmation=4015d3a1-7ed4https://appfactorypreview.wso2.com/appmgt/site/pages/confirmemail.jag?uuid=123456confirmation=4015d3a1-7ed4 As I noticed when going through the EmailSender class, it does not accept external parameters rather add the confirmation key to the target EPR. Could someone please state whether it is possible to achieve the above requirement with our current implementation? -- Thanks Regards, Ashansa Perera Software Engineer WSO2, Inc ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] G-Reg (trunk) content of an artifact different from G-Reg 4.5.3
Hi guys, I think I found the solution for this. We need to remove the option-text field its redundant now. We can replace it easily by our new unbounded option. Both of the following configurations are rendered in the UI in the same way. Option-text configuration table name=Endpoints subheading headingEnvironments/heading headingURL/heading /subheading field type=option-text maxoccurs=unbounded name label=EndpointEndpoint/name values valueNone/value valueUnknown/value valueDev/value valueTest/value valueStag/value valueProd/value /values /field /table New configuration table name=Interface maxoccurs=unbounded field type=text name label=WSDL/WADL URLWSDL URL/name /field field type=options name label=Transport ProtocolsTransport Protocols/name values valueNone/value valueUnknown/value valueDev/value valueTest/value valueStag/value valueProd/value /values /field /table WDYT? thanks Eranda On Wed, Aug 7, 2013 at 10:28 PM, Eranda Sooriyabandara era...@wso2.comwrote: Hi All, Please find the screenshot of the generated endpoints custom view. thanks Eranda On Wed, Aug 7, 2013 at 10:14 PM, Eranda Sooriyabandara era...@wso2.comwrote: Hi Chandana, As we discussed offline this is the expected behavior but this is the content of the resource of a service where some endpoints are added when adding its WSDL. See how wsdl endpoints added to the service content. metadata xmlns=http://www.wso2.org/governance/metadata; overview scopes http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/DefaultScope /scopes nameHelloService/name types{http://www.wso2.org/types}HelloServicePortType/types namespacehttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01 /namespace axis2ns58:version xmlns:axis2ns58= http://www.wso2.org/governance/metadata;1.0.0-SNAPSHOT/axis2ns58: version /overview endpoints axis2ns117:entry xmlns:axis2ns117= http://www.wso2.org/governance/metadata; :https://10.100.0.126:9444/services/HelloService /axis2ns117:entry axis2ns118:entry xmlns:axis2ns118= http://www.wso2.org/governance/metadata;:local:///services/HelloService /axis2ns118:entry axis2ns119:entry xmlns:axis2ns119= http://www.wso2.org/governance/metadata; :http:// 10.100.0.126:9764/services/HelloService.HelloServiceHttpSoap11Endpoint/ /axis2ns119:entry axis2ns120:entry xmlns:axis2ns120= http://www.wso2.org/governance/metadata; :https:// 10.100.0.126:9444/services/HelloService.HelloServiceHttpsSoap11Endpoint/ /axis2ns120:entry axis2ns121:entry xmlns:axis2ns121= http://www.wso2.org/governance/metadata; :http:// 10.100.0.126:9764/services/HelloService.HelloServiceHttpSoap12Endpoint/ /axis2ns121:entry axis2ns122:entry xmlns:axis2ns122= http://www.wso2.org/governance/metadata; :https:// 10.100.0.126:9444/services/HelloService.HelloServiceHttpsSoap12Endpoint/ /axis2ns122:entry axis2ns123:entry xmlns:axis2ns123= http://www.wso2.org/governance/metadata; :https://10.100.0.126:9444/services/HelloService. HelloServiceHttpsEndpoint/ /axis2ns123:entry axis2ns124:entry xmlns:axis2ns124= http://www.wso2.org/governance/metadata; :http://10.100.0.126:9764/services/HelloService. HelloServiceHttpEndpoint/ /axis2ns124:entry /endpoints endpoints entry:http://10.100.0.126:9764/services/HelloService/entry /endpoints endpoints entry:local:///services/HelloService/entry /endpoints interface wsdlURL/_system/governance/trunk/wsdls /org/wso2/www/types/HelloService.wsdl/wsdlURL /interface metadataVersion1/metadataVersion /metadata thanks Eranda On Wed, Aug 7, 2013 at 9:20 PM, Eranda Sooriyabandara era...@wso2.comwrote: Hi Chandana, In previous releases the Service (GovernanceArtifact) content was like [1] and now its like [2]. Is this the expected model with your new design of infinite entries? It seems to be a bug for me. Please add some explanation too. thanks Eranda [1]. metadata xmlns=http://www.wso2.org/governance/metadata; overview scopes http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/DefaultScope /scopes nameHelloService/name types{http://www.wso2.org/types}HelloServicePortType/types
Re: [Dev] [Commits] [Carbon-platform] svn commit r180125 - in carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse: . config/xml/rest rest
Hi Isuru, Yes, according to the initial implementation of this fix, APIs which support both protocols (http and https), were made to include both values as a space separated string in the namespace. However as pointed out by Hiranya in [1], we opted to maintain only one transport value in the transport section, in order to conform with how similar validations have been done in Synapse Resources section. Hence in the case of an API supporting both transports, you need to omit the transport namespace entirely, as this is how the new implementation has been done. [1] - https://issues.apache.org/jira/browse/SYNAPSE-953 Thanks and Regards, Ruwan Yatawara Software Engineer, WSO2 Inc. lean . enterprise . middleware email : ruw...@wso2.com mobile : +94 77 9110413 blog : http://ruwansrants.blogspot.com/ www: :http://wso2.com On Wed, Aug 7, 2013 at 10:07 PM, Isuru Udana isu...@wso2.com wrote: Hi Nuwan, After updating synapse with this commit, Rest API's which I had deployed in my ESB instance are failing to deploy now. It seems like API's having both http and https transports (transports=http https) are failing to deploy. According to the following logic at APIFactory, it seems like only one transport is allowed for an api. OMAttribute trans = apiElt.getAttribute( new QName(XMLConfigConstants.NULL_NAMESPACE, transports)); if (trans != null) { String transports = trans.getAttributeValue(); if (!.equals(transports)) { if (Constants.TRANSPORT_HTTP.equals(transports)) { api.setProtocol(RESTConstants.PROTOCOL_HTTP_ONLY); } else if (Constants.TRANSPORT_HTTPS.equals(transports)) { api.setProtocol(RESTConstants.PROTOCOL_HTTPS_ONLY); } else { handleException(Invalid protocol name: + transports); } } } Isn't this wrong ? On Wed, Aug 7, 2013 at 1:25 PM, nuw...@wso2.com wrote: Author: nuw...@wso2.com Date: Wed Aug 7 13:25:10 2013 New Revision: 180125 URL: http://wso2.org/svn/browse/wso2?view=revrevision=180125 Log: Fixes for APIMANAGER-1417. Changes done by Ruwan Modified: carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/config/xml/rest/APIFactory.java carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/config/xml/rest/APISerializer.java carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/rest/API.java Modified: carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java URL: http://wso2.org/svn/browse/wso2/carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java?rev=180125r1=180124r2=180125view=diff == --- carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java (original) +++ carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java Wed Aug 7 13:25:10 2013 @@ -160,6 +160,10 @@ public static final String PROXY_SERVICE = proxy.name; /** The Synapse MC property that marks it as a RESPONSE */ public static final String RESPONSE = RESPONSE; +/** The Synapse MC property that indicates the in-transport */ +public static final String IN_TRANSPORT = IN_TRANSPORT; +/** The Synapse MC property that marks if the message was denied on the accessed transport */ +public static final String TRANSPORT_DENIED = TRANSPORT_DENIED; /** The Synapse MC property that marks the message as a OUT_ONLY message */ public static final String OUT_ONLY = OUT_ONLY; /** The Synapse MC property that states that existing WS-A headers in the envelope should @@ -168,12 +172,6 @@ /** The Synapse MC property that marks to Exception to be thrown on SOAPFault(Retry on SOAPFault)*/ public static final String RETRY_ON_SOAPFAULT = RETRY_ON_SOAPFAULT; -//Properties for Rest API transport level validation -/** The Synapse MC property that indicates the in-transport */ -public static final String IN_TRANSPORT = IN_TRANSPORT; -/** The Synapse MC property that marks if the message was denied on the accessed transport */ -public static final String TRANSPORT_DENIED = TRANSPORT_DENIED; - /** * The name of the property which specifies the operation name that is * invoked by an endpoint
[Dev] nested-categories/greg/repository doesn't exit
Hi Shelan, Please note $Subject. [ERROR] The build could not read 1 project - [Help 1] [ERROR] [ERROR] The project org.wso2.governance:org.wso2.governance.nested.categories:4.6.0-SNAPSHOT (/build/trunk/platform/features/nested-categories/greg/pom.xml) has 1 error [ERROR] Child module /build/trunk/platform/features/nested-categories/greg/repository of /build/trunk/platform/features/nested-categories/greg/pom.xml does not exist Thanks Shameera. -- *Software Engineer - WSO2 Inc.* *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.orgshame...@apache.org * *phone: +9471 922 1454* * * *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561 *Twitter : *https://twitter.com/Shameera_R ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Upgrading Jettison from 1.1.wso2v1 to 1.3.4.wso2v1
Hi, We need to $subject since CXF requires Jettison 1.3.4 to function properly. [1] As I see, Synapse core uses Jettison, and as I see, Synapse core successfully passed with tests. I haven't committed the fixes to there yet. I can go ahead and commit if it's OK to upgrade. Jaggery team, can you please apply this pull request to upgrade Jettison version there. [2] All Jaggery tests are passing successfully after this change as well. I already upgraded Jettison version in Mashup. [1] https://wso2.org/jira/browse/WSAS-1433 [2] https://github.com/wso2/jaggery/pull/43 Thanks, KasunG -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Upgrading Jettison from 1.1.wso2v1 to 1.3.4.wso2v1
On Thu, Aug 8, 2013 at 12:46 AM, Kasun Gajasinghe kas...@wso2.com wrote: Hi, We need to $subject since CXF requires Jettison 1.3.4 to function properly. [1] As I see, Synapse core uses Jettison, and as I see, Synapse core successfully passed with tests. I haven't committed the fixes to there yet. I can go ahead and commit if it's OK to upgrade. Jaggery team, can you please apply this pull request to upgrade Jettison version there. [2] All Jaggery tests are passing successfully after this change as well. I already upgraded Jettison version in Mashup. Done, Thanks, /Nuwan [1] https://wso2.org/jira/browse/WSAS-1433 [2] https://github.com/wso2/jaggery/pull/43 Thanks, KasunG -- *Kasun Gajasinghe* Software Engineer; Development Technologies Team, WSO2 Inc.; http://wso2.com , *email: **kasung AT spamfree wso2.com ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe * * *blog: **http://kasunbg.org* http://kasunbg.org * twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg * * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Thanks Regards, Nuwan Bandara Technical Lead; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com * *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * http://www.nuwanbando.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] G-Reg (trunk) content of an artifact different from G-Reg 4.5.3
Hi Eranda, Yes it seems to be a bug caused by the RXT improvements. If we move into a new rxt enhancement, we may have to provide data migration scripts as well. Regards, Chandana On Wed, Aug 7, 2013 at 1:27 PM, Eranda Sooriyabandara era...@wso2.comwrote: Hi guys, I think I found the solution for this. We need to remove the option-text field its redundant now. We can replace it easily by our new unbounded option. Both of the following configurations are rendered in the UI in the same way. Option-text configuration table name=Endpoints subheading headingEnvironments/heading headingURL/heading /subheading field type=option-text maxoccurs=unbounded name label=EndpointEndpoint/name values valueNone/value valueUnknown/value valueDev/value valueTest/value valueStag/value valueProd/value /values /field /table New configuration table name=Interface maxoccurs=unbounded field type=text name label=WSDL/WADL URLWSDL URL/name /field field type=options name label=Transport ProtocolsTransport Protocols/name values valueNone/value valueUnknown/value valueDev/value valueTest/value valueStag/value valueProd/value /values /field /table WDYT? thanks Eranda On Wed, Aug 7, 2013 at 10:28 PM, Eranda Sooriyabandara era...@wso2.comwrote: Hi All, Please find the screenshot of the generated endpoints custom view. thanks Eranda On Wed, Aug 7, 2013 at 10:14 PM, Eranda Sooriyabandara era...@wso2.comwrote: Hi Chandana, As we discussed offline this is the expected behavior but this is the content of the resource of a service where some endpoints are added when adding its WSDL. See how wsdl endpoints added to the service content. metadata xmlns=http://www.wso2.org/governance/metadata; overview scopes http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/DefaultScope /scopes nameHelloService/name types{http://www.wso2.org/types}HelloServicePortType/types namespacehttp://docs.oasis-open.org/ws-dd/ns/discovery/2009/01 /namespace axis2ns58:version xmlns:axis2ns58= http://www.wso2.org/governance/metadata;1.0.0-SNAPSHOT/axis2ns58: version /overview endpoints axis2ns117:entry xmlns:axis2ns117= http://www.wso2.org/governance/metadata; :https://10.100.0.126:9444/services/HelloService /axis2ns117:entry axis2ns118:entry xmlns:axis2ns118= http://www.wso2.org/governance/metadata;:local:///services/HelloService /axis2ns118:entry axis2ns119:entry xmlns:axis2ns119= http://www.wso2.org/governance/metadata; :http:// 10.100.0.126:9764/services/HelloService.HelloServiceHttpSoap11Endpoint/ /axis2ns119:entry axis2ns120:entry xmlns:axis2ns120= http://www.wso2.org/governance/metadata; :https:// 10.100.0.126:9444/services/HelloService.HelloServiceHttpsSoap11Endpoint/ /axis2ns120:entry axis2ns121:entry xmlns:axis2ns121= http://www.wso2.org/governance/metadata; :http:// 10.100.0.126:9764/services/HelloService.HelloServiceHttpSoap12Endpoint/ /axis2ns121:entry axis2ns122:entry xmlns:axis2ns122= http://www.wso2.org/governance/metadata; :https:// 10.100.0.126:9444/services/HelloService.HelloServiceHttpsSoap12Endpoint/ /axis2ns122:entry axis2ns123:entry xmlns:axis2ns123= http://www.wso2.org/governance/metadata; :https://10.100.0.126:9444/services/HelloService. HelloServiceHttpsEndpoint/ /axis2ns123:entry axis2ns124:entry xmlns:axis2ns124= http://www.wso2.org/governance/metadata; :http://10.100.0.126:9764/services/HelloService. HelloServiceHttpEndpoint/ /axis2ns124:entry /endpoints endpoints entry:http://10.100.0.126:9764/services/HelloService/entry /endpoints endpoints entry:local:///services/HelloService/entry /endpoints interface wsdlURL/_system/governance/trunk/wsdls /org/wso2/www/types/HelloService.wsdl/wsdlURL /interface metadataVersion1/metadataVersion /metadata thanks Eranda On Wed, Aug 7, 2013 at 9:20 PM, Eranda Sooriyabandara era...@wso2.comwrote: Hi Chandana, In previous releases the Service (GovernanceArtifact) content was like [1] and now its like [2]. Is this the expected model with your new design of infinite entries? It seems to be a bug for me. Please add some explanation too. thanks Eranda [1].
[Dev] Logging Tomcat logs in App-server startup
Hi, Any particular reason for $subject? (This is with latest packs -7th Aug) JAVA_HOME environment variable is set to /opt/software/java/SUN-JDK7/jdk1.7.0 CARBON_HOME environment variable is set to /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT log4j:WARN No appenders could be found for logger (org.apache.axiom.util.stax.dialect.StAXDialectDetector). log4j:WARN Please initialize the log4j system properly. [2013-08-08 07:32:03,176] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon... [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.2.0-23-generic, amd64 [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home: /opt/software/java/SUN-JDK7/jdk1.7.0/jre [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.7.0 [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 21.0-b17,Oracle Corporation [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir: /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT/tmp [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : evanthika, en-US, Asia/Colombo [2013-08-08 07:32:03,224] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - The default keystore (wso2carbon.jks) is currently being used. To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile. [2013-08-08 07:32:03,325] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created ! [2013-08-08 07:32:03,344] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client Aug 08, 2013 7:32:05 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-nio-9763] Aug 08, 2013 7:32:05 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-nio-9443] Aug 08, 2013 7:32:05 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.34 Aug 08, 2013 7:32:05 AM org.apache.catalina.loader.WebappLoader startInternal INFO: Dual registration of jndi stream handler: factory already defined Aug 08, 2013 7:32:05 AM org.apache.catalina.loader.WebappLoader setClassPath INFO: Unknown loader org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1364679d[tomcat:7.0.34.wso2v1(id=476)] class org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader Aug 08, 2013 7:32:05 AM org.apache.catalina.util.LifecycleBase start INFO: The start() method was called on component [Realm[CarbonTomcatRealm]] after start() had already been called. The second call will be ignored. [2013-08-08 07:32:06,000] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 89ms [2013-08-08 07:32:06,296] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode: READ-WRITE [2013-08-08 07:32:06,894] INFO {org.wso2.carbon.user.core.tracker.UserStoreManagerRegistry} - 4 UserStoreManagers registered. [2013-08-08 07:32:06,894] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully. Aug 08, 2013 7:32:11 AM org.apache.catalina.startup.TaglibUriRule body INFO: TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined [2013-08-08 07:32:12,586] INFO {org.apache.axis2.deployment.ClusterBuilder} - Clustering has been disabled [2013-08-08 07:32:12,892] WARN {org.wso2.carbon.utils.deployment.Axis2ModuleRegistry} - Module : wso2throttle-4.20-SNAPSHOT is already available. Aug 08, 2013 7:32:13 AM org.apache.catalina.loader.WebappLoader setClassPath INFO: Unknown loader org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1364679d[tomcat:7.0.34.wso2v1(id=476)] class org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader Aug 08, 2013 7:32:13 AM org.apache.catalina.util.LifecycleBase start INFO: The start() method was called on component [Realm[CarbonTomcatRealm]] after start() had already been called. The second call will be ignored. [2013-08-08 07:32:13,095] INFO {org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer} - Deployed product landing page webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home] [2013-08-08 07:32:13,095] INFO {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer} - User Store Configuration Deployer initiated. [2013-08-08 07:32:13,135] INFO
Re: [Dev] Caching implementation performance improvement
Thats what my question was about. Thanks Azeez. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Aug 7, 2013 at 5:28 PM, Afkham Azeez az...@wso2.com wrote: On Wed, Aug 7, 2013 at 2:59 PM, Danushka Fernando danush...@wso2.comwrote: Hi, Just wondering about the update mechanism. What happens when original value or L2 cache value get updated? I think the question is, if the L2 (distributed) cache got updated from another node, how does it get reflected in the L1 caches of the other nodes. We register an entry listener for the L2 cache, and whenever there is a change, this gets triggered, and updates the L1 caches as well. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Aug 7, 2013 at 2:02 PM, Afkham Azeez az...@wso2.com wrote: [image: Inline image 1] On Wed, Aug 7, 2013 at 11:31 AM, Afkham Azeez az...@wso2.com wrote: While running certain scenarios during testing of the Carbon 4.2.0 packs, we saw certain performance issues when distributed Hazelcast HashMaps are used as the backing data structure. To overcome this, I have introduced the concept of an L1 local cache. It is a write through cache, where items stored in it will also get written to the distributed data structure. When there is a L1 cache miss, we will check in the L2 distributed cache to see whether the value is there. I am seeing significant performance improvement in the tenant creation scenario after this improvement. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* caching.png___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Logging Tomcat logs in App-server startup
Hi, Same behavior observed while doing some operations like roload/ stop/ start. *** Aug 08, 2013 9:35:18 AM org.apache.catalina.core.StandardContext reload INFO: Reloading Context with name [/example] has started Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Aug 08, 2013 9:35:18 AM org.apache.catalina.loader.WebappLoader setClassPath INFO: Unknown loader org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@173f9673[tomcat:7.0.34.wso2v1(id=476)] class org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded('com.sun.jsp.taglibraryCache', '{}') Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded('com.sun.jsp.tagFileJarUrlsCache', '{}') Aug 08, 2013 9:35:18 AM org.apache.catalina.core.StandardContext reload INFO: Reloading Context with name [/example] is completed [2013-08-08 09:35:18,377] INFO {org.wso2.carbon.webapp.mgt.WebApplication} - Reloaded webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example] Thanks, Shashika On Thu, Aug 8, 2013 at 7:48 AM, Evanthika Amarasiri evanth...@wso2.comwrote: Hi, Any particular reason for $subject? (This is with latest packs -7th Aug) JAVA_HOME environment variable is set to /opt/software/java/SUN-JDK7/jdk1.7.0 CARBON_HOME environment variable is set to /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT log4j:WARN No appenders could be found for logger (org.apache.axiom.util.stax.dialect.StAXDialectDetector). log4j:WARN Please initialize the log4j system properly. [2013-08-08 07:32:03,176] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon... [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.2.0-23-generic, amd64 [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home: /opt/software/java/SUN-JDK7/jdk1.7.0/jre [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.7.0 [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 21.0-b17,Oracle Corporation [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir: /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT/tmp [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : evanthika, en-US, Asia/Colombo [2013-08-08 07:32:03,224] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - The default keystore (wso2carbon.jks) is currently being used. To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile. [2013-08-08 07:32:03,325] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created ! [2013-08-08 07:32:03,344] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client Aug 08, 2013 7:32:05 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-nio-9763] Aug 08, 2013 7:32:05 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-nio-9443] Aug 08, 2013 7:32:05 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.34 Aug 08, 2013 7:32:05 AM org.apache.catalina.loader.WebappLoader startInternal INFO: Dual registration of jndi stream handler: factory already defined Aug 08, 2013 7:32:05 AM org.apache.catalina.loader.WebappLoader setClassPath INFO: Unknown loader org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@1364679d[tomcat:7.0.34.wso2v1(id=476)] class org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader Aug 08, 2013 7:32:05 AM org.apache.catalina.util.LifecycleBase start INFO: The start() method was called on component [Realm[CarbonTomcatRealm]] after start() had
Re: [Dev] WSO2 Committers += Chanika
Congratzz Chanika.!!! On Tue, Aug 6, 2013 at 10:03 AM, Chamath Gunawardana chama...@wso2.comwrote: Congrats Chanika ..! On Tue, Aug 6, 2013 at 8:45 AM, Darshana Gunawardana darsh...@wso2.comwrote: Congratulation Chanika..!! On Mon, Aug 5, 2013 at 10:47 AM, Dhanuka Ranasinghe dhan...@wso2.comwrote: Congratulation !!! *Dhanuka Ranasinghe* Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 715381915 On Mon, Aug 5, 2013 at 10:35 AM, Hasitha Aravinda hasi...@wso2.comwrote: Congratulation ...!!! Thanks, Hasitha. On Mon, Aug 5, 2013 at 9:24 AM, Anjana Fernando anj...@wso2.comwrote: Hi everyone, It's my pleasure to announce Chanika as a WSO2 commiter. Chanika has done many contribution in improving DSS features. And I'm sure she will continue to be a key member in the team. Chanika, welcome aboard and keep it up! .. Cheers, Anjana. -- *Anjana Fernando* Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Hasitha Aravinda, Software Engineer, WSO2 Inc. Email: hasi...@wso2.com Mobile: +94 71 8 210 200 ___ 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 -- Regards, * Darshana Gunawardana *Software Engineer WSO2 Inc.; http://wso2.com* E-mail: darsh...@wso2.com **Mobile: +94718566859 *Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Chamath Gunawardana Technical Lead; WSO2 Inc. Mobile : +94776322240 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Gayan Dhanushka Software Engineer WSO2 Inc. http://wso2.com Mobile : 0716662327 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Asanka Vithanage
Congratz Asanka!!! On Wed, Aug 7, 2013 at 10:55 AM, Manula Chathurika Thantriwatte manu...@wso2.com wrote: Congratulations Asanka !!! On Wed, Aug 7, 2013 at 10:52 AM, Dunith Dhanushka dun...@wso2.com wrote: Congrats Asanka! On Wed, Aug 7, 2013 at 10:44 AM, Ushani Balasooriya ush...@wso2.comwrote: Congrats Asanka. On Tue, Aug 6, 2013 at 5:55 PM, Supun Malinga sup...@wso2.com wrote: Congrats!! On Tue, Aug 6, 2013 at 5:47 PM, Maninda Edirisooriya mani...@wso2.comwrote: Congratulation Asanka ... !!! * Maninda Edirisooriya* Software Engineer *WSO2, Inc. *lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *Phone* : +94 777603226 On Tue, Aug 6, 2013 at 10:02 AM, Chamath Gunawardana chama...@wso2.com wrote: Congrats Asanka .. ! On Tue, Aug 6, 2013 at 8:46 AM, Venura Kahawala ven...@wso2.comwrote: Congrats Asanka.. On Tue, Aug 6, 2013 at 8:43 AM, Darshana Gunawardana darsh...@wso2.com wrote: Congratulation Asanka..!! On Mon, Aug 5, 2013 at 3:41 PM, Shani Ranasinghe sh...@wso2.comwrote: cngrts On Mon, Aug 5, 2013 at 2:15 PM, Shashika Ubhayaratne shash...@wso2.com wrote: Congrats Asanka Shashika Ubhayaratne Associate Technical Lead - QA WSO2 Inc: http://www.wso2.com/ Mobile: *+94773383831* On Mon, Aug 5, 2013 at 1:14 PM, Manoj Kumara ma...@wso2.comwrote: Congratz Asanka ... Best Regards.. Manoj Kumara Software Engineer WSO2, Inc.; http://wso2.com Twitter: http://twitter.com/ManKuma Mobile: +94713448188 On Mon, Aug 5, 2013 at 11:36 AM, Evanthika Amarasiri evanth...@wso2.com wrote: Hi, I would like to welcome Asanka Vithanage as a WSO2 Committer. AsankaV has made great contributions for the WSO2 Carbon platform, specially Message Broker App-Server products. Welcome aboard AsankaV keep up the good work. Regards, Evanthika Amarasiri Senior Technical Lead - Quality Assurance Mobile: +94773125935 ___ 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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, * Darshana Gunawardana *Software Engineer WSO2 Inc.; http://wso2.com* E-mail: darsh...@wso2.com **Mobile: +94718566859 *Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Senior Software Engineer Mobile: +94 71 82 300 20 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Chamath Gunawardana Technical Lead; WSO2 Inc. Mobile : +94776322240 ___ 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 -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com http://wso2.org email - sup...@wso2.com sup...@wso2.com mobile - 071 56 91 321 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Ushani Balasooriya* Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; +94772636796 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Dunith Dhanushka, Senior Software Engineer - BAM, WSO2 Inc, Mobile - +94 71 8615744 Blog - dunithd.wordpress.com http://blog.dunith.com Twitter - @dunithd http://twitter.com/dunithd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Gayan Dhanushka Software Engineer WSO2 Inc. http://wso2.com Mobile : 0716662327 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Webapps JAX-WS/JAX-RS can not be deployed on ugust 7th AS pack
Hi, While uploading webapp/ JAX-WS/ JAX-RS services, following message prompted and not allowed to deploy it. Web application name consists / or character. No errors thrown on backend log. Thanks, Shashika ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] {trunk build issue} Throttling component.
Hi all; Im getting following..Can anyone point me where should i take up? 438,37] cannot find symbol ymbol : class Policy ocation: class org.wso2.carbon.throttle.core.ThrottleFactory ERROR] \Projects\platform\trunk\components\throttling\org.wso2.carbon.throttle.core\src\main\java\org\wso2\carbon\throttle\core\ThrottleFactory.java: 442,42] cannot find symbol ymbol : class XmlPrimtiveAssertion ocation: class org.wso2.carbon.throttle.core.ThrottleFactory ERROR] \Projects\platform\trunk\components\throttling\org.wso2.carbon.throttle.core\src\main\java\org\wso2\carbon\throttle\core\ThrottleFactory.java: 443,24] cannot find symbol ymbol : class XmlPrimtiveAssertion ocation: class org.wso2.carbon.throttle.core.ThrottleFactory ERROR] \Projects\platform\trunk\components\throttling\org.wso2.carbon.throttle.core\src\main\java\org\wso2\carbon\throttle\core\ThrottleFactory.java: 444,33] cannot find symbol ymbol : class XmlPrimtiveAssertion ocation: class org.wso2.carbon.throttle.core.ThrottleFactory INFO] 81 errors INFO] - INFO] -- -Ratha mobile: (+94)755906608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Webapps JAX-WS/JAX-RS can not be deployed on ugust 7th AS pack
Please note that this issue not reproduced on the same pack again and doing further analysis. Shashika Ubhayaratne Associate Technical Lead - QA WSO2 Inc: http://www.wso2.com/ Mobile: *+94773383831* On Thu, Aug 8, 2013 at 10:36 AM, Shashika Ubhayaratne shash...@wso2.comwrote: Hi, While uploading webapp/ JAX-WS/ JAX-RS services, following message prompted and not allowed to deploy it. Web application name consists / or character. No errors thrown on backend log. Thanks, Shashika ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [BLOCKED] WSO2AS pack provided on Aug-07th not working on windows
Hi All, None of the jsp pages loading in Windows 7 from the Management Console UI with the latest pack provided on Aug 7th. WSAS-1437https://wso2.org/jira/browse/WSAS-1437 Regards, Associate Technical Lead - QA Mob: +94(0)777872485 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Logging Tomcat logs in App-server startup
In a recent fix by shameera, we merged both juli logging and apache-commons logging log outputs. I think we have to control tomcat level logs using the its properties file.. Shameera, please look in to this.. thanks, --Pradeep On Thu, Aug 8, 2013 at 9:44 AM, Shashika Ubhayaratne shash...@wso2.comwrote: Hi, Same behavior observed while doing some operations like roload/ stop/ start. *** Aug 08, 2013 9:35:18 AM org.apache.catalina.core.StandardContext reload INFO: Reloading Context with name [/example] has started Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Aug 08, 2013 9:35:18 AM org.apache.catalina.loader.WebappLoader setClassPath INFO: Unknown loader org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@173f9673[tomcat:7.0.34.wso2v1(id=476)] class org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded('com.sun.jsp.taglibraryCache', '{}') Aug 08, 2013 9:35:18 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded('com.sun.jsp.tagFileJarUrlsCache', '{}') Aug 08, 2013 9:35:18 AM org.apache.catalina.core.StandardContext reload INFO: Reloading Context with name [/example] is completed [2013-08-08 09:35:18,377] INFO {org.wso2.carbon.webapp.mgt.WebApplication} - Reloaded webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example] Thanks, Shashika On Thu, Aug 8, 2013 at 7:48 AM, Evanthika Amarasiri evanth...@wso2.comwrote: Hi, Any particular reason for $subject? (This is with latest packs -7th Aug) JAVA_HOME environment variable is set to /opt/software/java/SUN-JDK7/jdk1.7.0 CARBON_HOME environment variable is set to /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT log4j:WARN No appenders could be found for logger (org.apache.axiom.util.stax.dialect.StAXDialectDetector). log4j:WARN Please initialize the log4j system properly. [2013-08-08 07:32:03,176] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon... [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.2.0-23-generic, amd64 [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home: /opt/software/java/SUN-JDK7/jdk1.7.0/jre [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.7.0 [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 21.0-b17,Oracle Corporation [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir: /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT/tmp [2013-08-08 07:32:03,178] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : evanthika, en-US, Asia/Colombo [2013-08-08 07:32:03,224] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - The default keystore (wso2carbon.jks) is currently being used. To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile. [2013-08-08 07:32:03,325] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created ! [2013-08-08 07:32:03,344] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client Aug 08, 2013 7:32:05 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-nio-9763] Aug 08, 2013 7:32:05 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-nio-9443] Aug 08, 2013 7:32:05 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.34 Aug 08, 2013 7:32:05 AM org.apache.catalina.loader.WebappLoader startInternal INFO: Dual registration of jndi stream handler: factory already defined Aug 08, 2013 7:32:05 AM org.apache.catalina.loader.WebappLoader setClassPath INFO:
Re: [Dev] {trunk build issue} Throttling component.
Hi get the svn up of kernal/trunk/dependencies/neethi/2.0.4-wso2v4 and try Thanks, Nuwnaw On Thu, Aug 8, 2013 at 10:44 AM, Vijayaratha Vijayasingam rat...@wso2.comwrote: Hi all; Im getting following..Can anyone point me where should i take up? 438,37] cannot find symbol ymbol : class Policy ocation: class org.wso2.carbon.throttle.core.ThrottleFactory ERROR] \Projects\platform\trunk\components\throttling\org.wso2.carbon.throttle.core\src\main\java\org\wso2\carbon\throttle\core\ThrottleFactory.java: 442,42] cannot find symbol ymbol : class XmlPrimtiveAssertion ocation: class org.wso2.carbon.throttle.core.ThrottleFactory ERROR] \Projects\platform\trunk\components\throttling\org.wso2.carbon.throttle.core\src\main\java\org\wso2\carbon\throttle\core\ThrottleFactory.java: 443,24] cannot find symbol ymbol : class XmlPrimtiveAssertion ocation: class org.wso2.carbon.throttle.core.ThrottleFactory ERROR] \Projects\platform\trunk\components\throttling\org.wso2.carbon.throttle.core\src\main\java\org\wso2\carbon\throttle\core\ThrottleFactory.java: 444,33] cannot find symbol ymbol : class XmlPrimtiveAssertion ocation: class org.wso2.carbon.throttle.core.ThrottleFactory INFO] 81 errors INFO] - INFO] -- -Ratha mobile: (+94)755906608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Webapps JAX-WS/JAX-RS can not be deployed on ugust 7th AS pack
This issue occurred only on Google Chrome while uploading webapps. On Thu, Aug 8, 2013 at 10:46 AM, Shashika Ubhayaratne shash...@wso2.comwrote: Please note that this issue not reproduced on the same pack again and doing further analysis. Shashika Ubhayaratne Associate Technical Lead - QA WSO2 Inc: http://www.wso2.com/ Mobile: *+94773383831* On Thu, Aug 8, 2013 at 10:36 AM, Shashika Ubhayaratne shash...@wso2.comwrote: Hi, While uploading webapp/ JAX-WS/ JAX-RS services, following message prompted and not allowed to deploy it. Web application name consists / or character. No errors thrown on backend log. Thanks, Shashika ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Latest ELB spins after a simple load test/long running test
I think this is the CPU spinning issue which occurs due to a JDK bug. We will provide, pack with upgraded httpcore + the fix for spinning issue ASAP. On Thu, Aug 8, 2013 at 11:10 AM, Evanthika Amarasiri evanth...@wso2.comwrote: Hi, We setup a worker/manager separated cluster with the latest ELB. Then we setup a long running test and noticed the CPU usage going up (100%). Even after stopping the long running test, the CPU usage remained the same. Regards, Evanthika Amarasiri Senior Technical Lead - Quality Assurance Mobile: +94773125935 * * wso2.com Lean Enterprise Middleware -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 71 536 4128 Blog : http://kasunpanorama.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Latest ELB spins after a simple load test/long running test
Thanks Kasun. - Evanthika On Thu, Aug 8, 2013 at 11:22 AM, Kasun Indrasiri ka...@wso2.com wrote: I think this is the CPU spinning issue which occurs due to a JDK bug. We will provide, pack with upgraded httpcore + the fix for spinning issue ASAP. On Thu, Aug 8, 2013 at 11:10 AM, Evanthika Amarasiri evanth...@wso2.comwrote: Hi, We setup a worker/manager separated cluster with the latest ELB. Then we setup a long running test and noticed the CPU usage going up (100%). Even after stopping the long running test, the CPU usage remained the same. Regards, Evanthika Amarasiri Senior Technical Lead - Quality Assurance Mobile: +94773125935 * * wso2.com Lean Enterprise Middleware -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 71 536 4128 Blog : http://kasunpanorama.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev