Re: [Dev] Hazelcast generic membership scheme in Carbon 5 kernel
On Fri, Aug 21, 2015 at 3:23 PM, Afkham Azeez az...@wso2.com wrote: With the proper elements a proper schema, with JAXB, we have a proper object model for the known membership schemes. +1 Will go ahead with the suggested approach. On Fri, Aug 21, 2015 at 3:23 PM, Afkham Azeez az...@wso2.com wrote: With the proper elements a proper schema, with JAXB, we have a proper object model for the known membership schemes. On Fri, Aug 21, 2015 at 3:16 PM, Imesh Gunaratne im...@wso2.com wrote: IMO it would be better if we can specify membership scheme information as parameters rather than using XML elements with their names, WDYT? Cluster ... MembershipScheme !-- multicast membership scheme related properties -- NameMulticast/Name Parameters Parameter name=Group228.0.0.4/Parameter Parameter name=Port45564/Parameter Parameter name=TTL100/Parameter Parameter name=Timeout60/Parameter /Parameters !-- wka membership scheme related properties -- !-- NameWKA/Name Parameters Parameter name=Members127.0.0.1:4000,127.0.0.1:4001 /Parameters /Parameters -- !-- private paas membership scheme related properties -- !-- NamePrivatePaaS/Name Parameters Parameter name=ClusterIdscluster-1,cluster-2/Parameter /Parameters -- /MembershipScheme /Cluster On Fri, Aug 21, 2015 at 2:59 PM, Afkham Azeez az...@wso2.com wrote: I have changed the Generic/MembershipScheme tag to Generic/Name. On Fri, Aug 21, 2015 at 2:55 PM, Afkham Azeez az...@wso2.com wrote: In addition to the 3 membership schemes, multicast, WKA AWS, for Stratos sort of deployments we will need to support other membership management schemes. In order to support this, I am introducing the following configuration into the cluster.xml Generic MembershipSchemefoo/MembershipScheme Parameter name=xx-val/Parameter Parameter name=yy-val/Parameter Parameter name=zz-val/Parameter /Generic The implementers will have to implement org.wso2.carbon.clustering.hazelcast.HazelcastMembershipScheme and register it as an OSGi service with the membership.scheme property. This property will correspond to the MembershipScheme defined in the above cluster configuration. Feedback welcome. -- *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 %2B94%2077%203320919blog: * *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 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 %2B94%2077%203320919blog: * *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 http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- *Imesh Gunaratne* Senior Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- *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 %2B94%2077%203320919blog: * *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 http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- *Imesh Gunaratne* Senior Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ML] Error when deserializing model summary
Hi Nirmal, outPath is correct and the directory gets created, but the process becomes idle after that. Attached the only part that was written to a file. Also the method doesn't throw an exception as well. On 21 August 2015 at 21:31, Nirmal Fernando nir...@wso2.com wrote: Hi Madawa, According to Spark API [1], outPath shouldn't be exist. [1] https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/recommendation/MatrixFactorizationModel.scala#L200 On Fri, Aug 21, 2015 at 1:59 PM, Niranda Perera nira...@wso2.com wrote: I don't think it's correct. Scala version is 2.10.4 even in the mvn repo On Fri, Aug 21, 2015, 13:46 Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Also I asked this question in StackOverflow[1] http://stackoverflow.com/questions/32048618/how-to-serialize-apache-sparks-matrixfactorizationmodel-in-java and there they have mentioned a version incompatibility between Scala and Spark versions [1] - http://stackoverflow.com/questions/32048618/how-to-serialize-apache-sparks-matrixfactorizationmodel-in-java On 21 August 2015 at 13:31, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes path is valid, I explicitly set the path here from the MLModelHandler persistModel method. On 21 August 2015 at 10:26, Nirmal Fernando nir...@wso2.com wrote: On Thu, Aug 20, 2015 at 9:21 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi All, There an issue with serializing Spark's MatrixFactorizationModel object. The object contains a huge RDD and as I have read in many blogs, this model cannot be serialized as a java object. Therefore when retrieving the model I get the same exception as above; *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* I have asked this question in Spark mailing lists and they recommended me to use the built in save and load functions other than using Java serializing. So I have used following method to persist the model, model.save(MLCoreServiceValueHolder.*getInstance()*.getSparkContext().sc(), outPath);[1] https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 Then nothing happens when this line executes. No error is thrown as well. Any solution for this? Can you print outPath and see whether it's a valid file path? [1] - https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 On 16 August 2015 at 18:06, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes I was able to resolve the issue by removing RDD fields from the SummaryModel object as @Mano pointed out. Still I have the same exception when retrieving the model. Trying to fix that issue. On 14 August 2015 at 10:43, Nirmal Fernando nir...@wso2.com wrote: Thanks Niranda, this doc is useful. On Fri, Aug 14, 2015 at 10:36 AM, Niranda Perera nira...@wso2.com wrote: From what I know, OneToOneDependancy come into play when spark tries to create the RDD dependency tree. Just thought of sharing that. this would be a good resource [1] :-) [1] https://databricks-training.s3.amazonaws.com/slides/advanced-spark-training.pdf On Thu, Aug 13, 2015 at 12:09 AM, Nirmal Fernando nir...@wso2.com wrote: What is *org.apache.spark.OneToOneDependency ? Is it something you use?* On Wed, Aug 12, 2015 at 11:30 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi, I created a model summary in order to show the model data in the analysis.jag page. But when refreshing the page after building the model I get the following error. org.wso2.carbon.ml.core.exceptions.MLAnalysisHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:245) at org.wso2.carbon.ml.rest.api.AnalysisApiV10.getAllModelsOfAnalysis(AnalysisApiV10.java:517) Caused by: org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1797) at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:243) ... 52 more *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* at org.wso2.carbon.ml.database.util.MLDBUtil.getModelSummaryFromInputStream(MLDBUtil.java:54) at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1790) ... 53 more I guess there is an error in persistence of the model summary object, what should be the cause for this error? [1]
Re: [Dev] EMM - Cannot Add Device - Illegal access attempt
Dear Kasun, I followed the steps. I can successfully authenticate using the tenant username and password, I see the policy agreement, but after entering the PIN and while the device is displaying Enrolling I have the mentioned error. Regards, Samim On Fri, Aug 21, 2015 at 9:40 AM Kasun Dananjaya Delgolla kas...@wso2.com wrote: Hi Samim, Please try to follow these guides [1] and [2] when enrolling. If your tenant domain is abc.com and username is x...@abc.com, you should login in the Agent app by giving abc.com to the Domain field, xyz to the Username field and password to the Password field. Make sure you followed that too. [1] - https://docs.wso2.com/display/EMM110/Registering+a+Device [2] - https://docs.wso2.com/display/EMM110/End-user+Registering+an+Android-powered+Device Thanks On Fri, Aug 21, 2015 at 10:32 AM, Samim Pezeshki p.sa...@gmail.com wrote: Dear Kasun, I logged in on the device using the new tenant I created. I also logged in with the same account on the EMM console. Thanks On Fri, Aug 21, 2015 at 9:19 AM Kasun Dananjaya Delgolla kas...@wso2.com wrote: Hi Samim, Did you try to login to a tenant you created or to the super tenant? Thanks On Thu, Aug 20, 2015 at 2:16 PM, Samim Pezeshki p.sa...@gmail.com wrote: Sure, They are attached. Thanks On Thu, Aug 20, 2015 at 12:59 PM Kasun Dananjaya Delgolla kas...@wso2.com wrote: Can you attach your SERVER_HOME/repository/conf folder? And also the full wso2carbon.log file. Thanks On Aug 20, 2015 1:54 PM, Samim Pezeshki p.sa...@gmail.com wrote: Hi, I built the Android agent and the agent connects to site because I can authenticate successfully and only see the mentioned error on the server upon trying to enter the pin. I use HTTP protocol. I did not configure any database ans use the embedded one. Thanks again, Samim On Thu, Aug 20, 2015 at 12:24 PM Kasun Dananjaya Delgolla kas...@wso2.com wrote: And one more thing, are you using mysql as the DB? Thanks On Aug 20, 2015 1:21 PM, Kasun Dananjaya Delgolla kas...@wso2.com wrote: Hi Samim, Did you try this with the default Android agent apk or did you build the Android agent explicitly for this? If so, what's the protocol you use (HTTP/https configured in the Android Agent)? Thanks Thanks On Aug 18, 2015 10:04 AM, Samim Pezeshki p.sa...@gmail.com wrote: Hi, I've had this problem and opened an issue on Jira but got no answer. Hope you can help me. I am using Mobility Manager 1.1. I can authenticate in the EMM Agent Android app and set a PIN. But after that I have the error Connection failed, Server is unavailable. Also in the server I get the following errors: [2015-08-13 06:43:08,923] ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} - org.mozilla.javascript.WrappedException: Wrapped java.lang.SecurityException: Illegal access attempt to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[carbon.super],[1]} (user-manager#35) org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped java.lang.SecurityException: Illegal access attempt to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[carbon.super],[1]} (user-manager#35) at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:447) at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) 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.processRequest(ApplicationDispatcher.java:487) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at
[Dev] C5 with clustering enabled on Java 8 throws an error on startup
Caused by: java.lang.NoClassDefFoundError: sun/misc/Unsafe at com.hazelcast.nio.UnsafeHelper.findUnsafe(UnsafeHelper.java:122) at com.hazelcast.nio.UnsafeHelper.clinit(UnsafeHelper.java:65) at com.hazelcast.hibernate.serialization.Hibernate3CacheKeySerializerHook.init(Hibernate3CacheKeySerializerHook.java:37) ... 37 more Caused by: java.lang.ClassNotFoundException: sun.misc.Unsafe cannot be found by hazelcast_3.5.0.wso2v1 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 40 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 3320919blog: **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 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] C5 with clustering enabled on Java 8 throws an error on startup
Solution: Add org.osgi.framework.system.packages.extra=sun.misc to the launch.properties On Fri, Aug 21, 2015 at 4:37 PM, Afkham Azeez az...@wso2.com wrote: Same issue can be seen on JDK 1.7 as well. On Fri, Aug 21, 2015 at 4:16 PM, Afkham Azeez az...@wso2.com wrote: Caused by: java.lang.NoClassDefFoundError: sun/misc/Unsafe at com.hazelcast.nio.UnsafeHelper.findUnsafe(UnsafeHelper.java:122) at com.hazelcast.nio.UnsafeHelper.clinit(UnsafeHelper.java:65) at com.hazelcast.hibernate.serialization.Hibernate3CacheKeySerializerHook.init(Hibernate3CacheKeySerializerHook.java:37) ... 37 more Caused by: java.lang.ClassNotFoundException: sun.misc.Unsafe cannot be found by hazelcast_3.5.0.wso2v1 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 40 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 %2B94%2077%203320919blog: * *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 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 %2B94%2077%203320919blog: * *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 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 3320919blog: **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 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] C5 with clustering enabled on Java 8 throws an error on startup
Same issue can be seen on JDK 1.7 as well. On Fri, Aug 21, 2015 at 4:16 PM, Afkham Azeez az...@wso2.com wrote: Caused by: java.lang.NoClassDefFoundError: sun/misc/Unsafe at com.hazelcast.nio.UnsafeHelper.findUnsafe(UnsafeHelper.java:122) at com.hazelcast.nio.UnsafeHelper.clinit(UnsafeHelper.java:65) at com.hazelcast.hibernate.serialization.Hibernate3CacheKeySerializerHook.init(Hibernate3CacheKeySerializerHook.java:37) ... 37 more Caused by: java.lang.ClassNotFoundException: sun.misc.Unsafe cannot be found by hazelcast_3.5.0.wso2v1 at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 40 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 %2B94%2077%203320919blog: * *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 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 3320919blog: **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 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] [Status update] Adding single tenant cartridge support to appfactory
Hi All, You can add below system properties to client side and it will solve the problem: Since we have self signed server certificate please point wso2carbn.jks file to TS. System.setProperty(javax.net.ssl.keyStore, prop.getProperty(trust_store_path)); System.setProperty(javax.net.ssl.keyStorePassword, prop.getProperty(trust_store_password)); System.setProperty(javax.net.ssl.trustStore, prop.getProperty(trust_store_path)); System.setProperty(javax.net.ssl.trustStorePassword, prop.getProperty(trust_store_password) On Thu, Aug 20, 2015 at 9:12 AM, Danushka Fernando danush...@wso2.com wrote: Yup that's the idea. Because with aws lb we can't do mutual ssl. Thanks Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Aug 20, 2015 8:54 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, On Wed, Aug 19, 2015 at 5:36 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi All, I raised the issue in jenkins dev mailing list and still waiting for a response. Standalone jenkins use jetty servelet container [1]. However it's still using winstone[2] for java command line argument parsing which I couldn't find a way to configure SSL clientAuthentication. One workaround is to call stratos services using the stratos admin. The other option is to use a signedJWT token athenticator. Using stratos admin for application(stratos) creation might incur metering or appfactory wall related concerns in-future. IMO if the MutualAuth doesn't work with current jenkins deployment it's better to go for SignedJWT Authenticator. +1 for SignedJWTAuthenticator and invoking the service as the tenant admin (and this means -1 doing it as super tenant admin). On the side(not related to this conversation) Is SignedJWTAuthenticator operating without Mutual SSL now? thanks, dimuthu Appreciate your feedback on this regard. [1] https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins [2] http://winstone.sourceforge.net/#configFile On Wed, Aug 19, 2015 at 12:20 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi All, I've completed the following flow for single tenant cartridge. * Creating S2 git repo for app creation. * Creating and deploying the app in stratos and bringing up the cartridge. * Preparing the tomcat cartridge. * Creating s2 repo for app versioning * Cleaning application resources(stratos s2 repos) on deletion. There's an issue in talking to stratos on application versioning. On versioning stratos rest calls(to create app) goes through jenkins, we are using MutualSSL for communication between stratos and deployers bundle. For this to work stratos expect javax.servlet.request.X509Certificate attribute to be set with the certificate object, this attribute is not getting set when the call goes through jenkins. Because of this stratos is unable to authenticate the application creation request. Also there's an error log[1] in jenkins before sending the rest call. This might be the reason for the failure of setting certificate object. FYI client truststore and the keystores are identical in jenkins and stratos side. has anyone encountered a similar issue before? [1] org.apache.commons.httpclient.HttpMethodDirector processAuthenticationResponse SEVERE: Invalid challenge: Basic org.apache.commons.httpclient.auth.MalformedChallengeException: Invalid challenge: Basic at org.apache.commons.httpclient.auth.AuthChallengeParser.extractParams(AuthChallengeParser.java:98) at org.apache.commons.httpclient.auth.RFC2617Scheme.processChallenge(RFC2617Scheme.java:94) at org.apache.commons.httpclient.auth.BasicScheme.processChallenge(BasicScheme.java:112) at org.apache.commons.httpclient.auth.AuthChallengeProcessor.processChallenge(AuthChallengeProcessor.java:162) at org.apache.commons.httpclient.HttpMethodDirector.processWWWAuthChallenge(HttpMethodDirector.java:694) at org.apache.commons.httpclient.HttpMethodDirector.processAuthenticationResponse(HttpMethodDirector.java:668) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:193) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.wso2.carbon.appfactory.s4.integration.StratosRestService.doPost(StratosRestService.java:301) at org.wso2.carbon.appfactory.s4.integration.StratosRestService.deployApplication(StratosRestService.java:134) at org.wso2.carbon.appfactory.deployers.StratosApplicationHandler.createAndDeployStratosApplication(StratosApplicationHandler.java:60) at org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer.addToGitRepo(AbstractStratosDeployer.java:114) at org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer.deploy(AbstractStratosDeployer.java:72) at
[Dev] carbon-deployment 4.5.1 release
Hi, Please find the staging repo for carbon-deployment 4.5.1. http://maven.wso2.org/nexus/content/repositories/orgwso2carbondeployment-043/ Thanks. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] carbon-deployment 4.5.1 release
Hi Kasun, I tested with the CApps test cases and lazy loading test module. From AS side, it is good to release. On Fri, Aug 21, 2015 at 6:19 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi, Please find the staging repo for carbon-deployment 4.5.1. http://maven.wso2.org/nexus/content/repositories/orgwso2carbondeployment-043/ Thanks. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Support for Hazelcast AWS membership scheme implemented for C5
Hi Azeez, In C5 are we moving wka and multicast configurations to cluster.xml file as well? Or are we moving whole clustering element? *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka. Mobile: +94772260485 Email: saji...@wso2.com | Web: www.wso2.com On Fri, Aug 21, 2015 at 2:51 PM, Afkham Azeez az...@wso2.com wrote: Please note $subject. The configuration in the cluster.xml file is as follows. Docs will have to be updated. AWS AccessKeyxx/AccessKey SecretKeyyy/SecretKey SecurityGroupa_group_name/SecurityGroup Regionus-east-1/Region TagKeya_tag_key/TagKey TagValuea_tag_value/TagValue /AWS -- *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 %2B94%2077%203320919blog: * *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 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] [ML] Error when deserializing model summary
Hi Madawa, According to Spark API [1], outPath shouldn't be exist. [1] https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/recommendation/MatrixFactorizationModel.scala#L200 On Fri, Aug 21, 2015 at 1:59 PM, Niranda Perera nira...@wso2.com wrote: I don't think it's correct. Scala version is 2.10.4 even in the mvn repo On Fri, Aug 21, 2015, 13:46 Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Also I asked this question in StackOverflow[1] http://stackoverflow.com/questions/32048618/how-to-serialize-apache-sparks-matrixfactorizationmodel-in-java and there they have mentioned a version incompatibility between Scala and Spark versions [1] - http://stackoverflow.com/questions/32048618/how-to-serialize-apache-sparks-matrixfactorizationmodel-in-java On 21 August 2015 at 13:31, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes path is valid, I explicitly set the path here from the MLModelHandler persistModel method. On 21 August 2015 at 10:26, Nirmal Fernando nir...@wso2.com wrote: On Thu, Aug 20, 2015 at 9:21 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi All, There an issue with serializing Spark's MatrixFactorizationModel object. The object contains a huge RDD and as I have read in many blogs, this model cannot be serialized as a java object. Therefore when retrieving the model I get the same exception as above; *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* I have asked this question in Spark mailing lists and they recommended me to use the built in save and load functions other than using Java serializing. So I have used following method to persist the model, model.save(MLCoreServiceValueHolder.*getInstance()*.getSparkContext().sc(), outPath);[1] https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 Then nothing happens when this line executes. No error is thrown as well. Any solution for this? Can you print outPath and see whether it's a valid file path? [1] - https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 On 16 August 2015 at 18:06, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes I was able to resolve the issue by removing RDD fields from the SummaryModel object as @Mano pointed out. Still I have the same exception when retrieving the model. Trying to fix that issue. On 14 August 2015 at 10:43, Nirmal Fernando nir...@wso2.com wrote: Thanks Niranda, this doc is useful. On Fri, Aug 14, 2015 at 10:36 AM, Niranda Perera nira...@wso2.com wrote: From what I know, OneToOneDependancy come into play when spark tries to create the RDD dependency tree. Just thought of sharing that. this would be a good resource [1] :-) [1] https://databricks-training.s3.amazonaws.com/slides/advanced-spark-training.pdf On Thu, Aug 13, 2015 at 12:09 AM, Nirmal Fernando nir...@wso2.com wrote: What is *org.apache.spark.OneToOneDependency ? Is it something you use?* On Wed, Aug 12, 2015 at 11:30 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi, I created a model summary in order to show the model data in the analysis.jag page. But when refreshing the page after building the model I get the following error. org.wso2.carbon.ml.core.exceptions.MLAnalysisHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:245) at org.wso2.carbon.ml.rest.api.AnalysisApiV10.getAllModelsOfAnalysis(AnalysisApiV10.java:517) Caused by: org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1797) at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:243) ... 52 more *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* at org.wso2.carbon.ml.database.util.MLDBUtil.getModelSummaryFromInputStream(MLDBUtil.java:54) at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1790) ... 53 more I guess there is an error in persistence of the model summary object, what should be the cause for this error? [1] https://github.com/madawas/carbon-ml/commit/987c799231dad2bab6f4046df7acc672d0564f22 contains the commit which I introduced the model summary. [1] - https://github.com/madawas/carbon-ml/commit/987c799231dad2bab6f4046df7acc672d0564f22 -- *_**Madawa Soysa* Undergraduate, Department of Computer Science and Engineering,
[Dev] Don't we use db scripts in dbscripts/identity anymore?
Hi, With the latest build[1] of CEP we observed that dbscripts/identity directory is not created. Don't we use db scripts in dbscripts/identity directory anymore? [1] - https://wso2.org/jenkins/view/product-builds/job/product-cep/lastSuccessfulBuild/org.wso2.cep$wso2cep/ Thanks *,Sajith Ravindra* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273550 blog: http://sajithr.blogspot.com/ http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Proxy Service vs. REST API for REST Client and REST Service
Hi WSO2 Folks, We've a REST Client and REST Service, and two options to get them communicated thru ESB. * REST using Proxy Service * REST API Just wanted to know which one to use and why? My first take is REST using Proxy Service, because it gives me flexibility to switch my client and service from REST to SOAP and vice versa. Also would like to know what would not be supported if I decided to go with REST using Proxy Service for REST Client and REST Service. References: * https://docs.wso2.com/display/ESB460/Using+REST+with+a+Proxy+Service * https://docs.wso2.com/display/ESB480/Working+with+Proxy+Services * http://wso2.com/library/articles/2014/06/develop-and-deploy-esb-artifacts-using-wso2-developer-studio/ Thanks Arif Ali ::DISCLAIMER:: The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Support for Hazelcast AWS membership scheme implemented for C5
Here is the cluster.xml. Hope it is self explanatory. https://github.com/wso2/carbon-kernel/blob/master/distribution/carbon-home/repository/conf/cluster.xml On Fri, Aug 21, 2015 at 8:19 PM, Sajith Abeywardhana saji...@wso2.com wrote: Hi Azeez, In C5 are we moving wka and multicast configurations to cluster.xml file as well? Or are we moving whole clustering element? *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka. Mobile: +94772260485 Email: saji...@wso2.com | Web: www.wso2.com On Fri, Aug 21, 2015 at 2:51 PM, Afkham Azeez az...@wso2.com wrote: Please note $subject. The configuration in the cluster.xml file is as follows. Docs will have to be updated. AWS AccessKeyxx/AccessKey SecretKeyyy/SecretKey SecurityGroupa_group_name/SecurityGroup Regionus-east-1/Region TagKeya_tag_key/TagKey TagValuea_tag_value/TagValue /AWS -- *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 %2B94%2077%203320919blog: * *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 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 3320919blog: **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 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] Support for Hazelcast AWS membership scheme implemented for C5
Please add AWS to the comment in line no 28-40 *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka. Mobile: +94772260485 Email: saji...@wso2.com | Web: www.wso2.com On Fri, Aug 21, 2015 at 10:05 PM, Afkham Azeez az...@wso2.com wrote: Here is the cluster.xml. Hope it is self explanatory. https://github.com/wso2/carbon-kernel/blob/master/distribution/carbon-home/repository/conf/cluster.xml On Fri, Aug 21, 2015 at 8:19 PM, Sajith Abeywardhana saji...@wso2.com wrote: Hi Azeez, In C5 are we moving wka and multicast configurations to cluster.xml file as well? Or are we moving whole clustering element? *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka. Mobile: +94772260485 Email: saji...@wso2.com | Web: www.wso2.com On Fri, Aug 21, 2015 at 2:51 PM, Afkham Azeez az...@wso2.com wrote: Please note $subject. The configuration in the cluster.xml file is as follows. Docs will have to be updated. AWS AccessKeyxx/AccessKey SecretKeyyy/SecretKey SecurityGroupa_group_name/SecurityGroup Regionus-east-1/Region TagKeya_tag_key/TagKey TagValuea_tag_value/TagValue /AWS -- *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 %2B94%2077%203320919blog: * *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 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 %2B94%2077%203320919blog: * *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 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] Please close the repo 'product-es'
Yes Kasun, Let's have a chat on this on Monday with ES team. Thanks for the opinion. On Fri, Aug 21, 2015 at 11:49 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Rushmin, This repo uses the groupId org.wso2.carbon. But this is reserved for Carbon kernel. Your repo need to use its own groupId. It looks like maintaining this code under product-es adds lot of complexity. The store components and features has already been moved to carbon-store. So, it's better to follow the same suit for this repo as well. It'll be hard to maintain two branches of same source under two repos. We have to think about support front as well. Thanks. On Fri, Aug 21, 2015 at 10:32 PM, Rushmin Fernando rush...@wso2.com wrote: Hi KasunG, Please note that 'product-es' acts as a carbon repo for app-manager branch due to historical reasons. This branch will be moved to carbon-store from the next release. Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Greg5.0.0 Integration test execute with Cluster Deployment
On Thu, Aug 20, 2015 at 6:50 PM, Chaminda Jayawardena chami...@wso2.com wrote: Hi All, Is $Subject possible? AFAIK still this is possible only for some of wso2 products. Please advice and guide to do this(Share any document if exist). Please find the cluster details below, which we currently have. -2 Greg instances as manager nodes with external IDP(IS5.0.0) -External Apache Solr instance -All fronted by nginx What is the NGINX version in your cluster deployment -with Oracle database What is the Oracle version in your cluster setup. -- Thanks Regards *Chaminda Jayawardena* Senior Software Engineer - QA WSO2 Inc. - http://wso2.com +94-77-7725234 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Deependra Ariyadewa WSO2, Inc. http://wso2.com/ http://wso2.org email d...@wso2.com; cell +94 71 403 5996 ; Blog http://risenfall.wordpress.com/ PGP info: KeyID: 'DC627E6F' *WSO2 - Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please close the repo 'product-es'
Hi KasunG, Please note that 'product-es' acts as a carbon repo for app-manager branch due to historical reasons. This branch will be moved to carbon-store from the next release. Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please close the repo 'product-es'
Hi Rushmin, This repo uses the groupId org.wso2.carbon. But this is reserved for Carbon kernel. Your repo need to use its own groupId. It looks like maintaining this code under product-es adds lot of complexity. The store components and features has already been moved to carbon-store. So, it's better to follow the same suit for this repo as well. It'll be hard to maintain two branches of same source under two repos. We have to think about support front as well. Thanks. On Fri, Aug 21, 2015 at 10:32 PM, Rushmin Fernando rush...@wso2.com wrote: Hi KasunG, Please note that 'product-es' acts as a carbon repo for app-manager branch due to historical reasons. This branch will be moved to carbon-store from the next release. Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Intermittent Classloading issue in WebApp
Hi all, I'm finding intermittent class-loading issue, when accessing a class where it bundled in dss from a web-app. I'm using Carbon Environment in my web app class-loading.xml. Please find the below ClassNotFound Exception below. [2015-08-21 16:35:30,763] ERROR {org.apache.catalina.core.StandardWrapperValve} - Servlet.service() for servlet [ODataServlet] in context with path [/odataservices] threw exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: org.wso2.carbon.dataservices.core.odata.ODataServiceRegistryImpl at org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:154) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at org.wso2.carbon.dataservices.odata.ODataServlet.service(ODataServlet.java:60) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) When I start the server in osgi console, I found that the tomcat doesn't see the package, I have exported package correctly. osgi p org.wso2.carbon.dataservices.core org.wso2.carbon.dataservices.core; version=4.3.1.SNAPSHOTorg.wso2.carbon.dataservices.core_4.3.1.SNAPSHOT [145] org.wso2.carbon.dataservices.task_4.3.1.SNAPSHOT [149] imports osgi Any help on this matter is highly appreciated. Thanks, Madhawa -- *Madhawa Gunasekara* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 719411002 +94+719411002 blog: *http://madhawa-gunasekara.blogspot.com http://madhawa-gunasekara.blogspot.com* linkedin: *http://lk.linkedin.com/in/mgunasekara http://lk.linkedin.com/in/mgunasekara* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] UX/UI Incorporation
Hi All, We've added a new page to the git. app_logs.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/app_logs.html On Mon, Jul 27, 2015 at 8:22 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Adding Anuruddha and Samith On Mon, Jul 27, 2015 at 5:48 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added custom URL mapping pages to git. 1. custom_url_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/custom_url_initial.html 2. custom_url_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/custom_url_listing.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jul 24, 2015 at 5:32 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added another page to git. 4. database_permission_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/database_permission_listing.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jul 17, 2015 at 6:03 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added few other pages into git. 1. database_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/database_initial.html 2. database_initial_listing.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/database_initial_listing.html 3. database_new.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/database_new.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Tue, Jul 14, 2015 at 10:10 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added content loading methods to cloud_app_details_initial_content_load.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/cloud_app_details_initial_content_load.html . you can select any div and call 'show'/ 'hide' method. *Sample: * *$('selector').loading('show/hide');* *Preview: * https://cdn.rawgit.com/wso2-dev-ux/product-cloud/master/Markup/cloud_app_details_initial_content_load.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Mon, Jul 13, 2015 at 5:00 PM, Mahesh Chinthaka mahe...@wso2.com wrote: adding RoshanD. He is doing 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html page. On Mon, Jul 13, 2015 at 3:53 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added notification updates on below pages. 1. form_notification.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/form_notification.html 2. block type notification - 009_cloud_app_details_initial.html https://github.com/wso2-dev-ux/product-cloud/blob/master/Markup/009_cloud_app_details_initial.html please be kind enough to merge above changes. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 6:19 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi All, We have added application notification pane to overview page(009_cloud_app_details_initial.html). please check. https://raw.githubusercontent.com/wso2-dev-ux/product-cloud/master/Markup/009_cloud_app_details_initial.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 10:50 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dakshika , I remember the wireframes. Actually 2 things, 1. Where can I find the markup for issues_initial_blank page (Actually for the button Report an Issue)? 2. Last time when I took a git pull (before sending my last mail) create issue button was not there in the issues_initial page. Now its there :) thank you. On Wed, Jul 8, 2015 at 6:19 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, this is the updated listing page.. https://cdn.rawgit.com/wso2-dev-ux/product-cloud/master/Markup/issues_initial.html Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Jul 8, 2015 at 6:15 AM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi Mahesh, Its already there..(issues_initial_blank) seems you missed important points that we discussed on the meeting.. :). I have attached wireframes for further reference. please be kind enough to check. We usually update markup pages everyday. so
Re: [Dev] Hazelcast generic membership scheme in Carbon 5 kernel
On Fri, Aug 21, 2015 at 2:59 PM, Afkham Azeez az...@wso2.com wrote: I have changed the Generic/MembershipScheme tag to Generic/Name. +1 for the config with Generic/Name. On Fri, Aug 21, 2015 at 2:55 PM, Afkham Azeez az...@wso2.com wrote: In addition to the 3 membership schemes, multicast, WKA AWS, for Stratos sort of deployments we will need to support other membership management schemes. In order to support this, I am introducing the following configuration into the cluster.xml Generic MembershipSchemefoo/MembershipScheme Parameter name=xx-val/Parameter Parameter name=yy-val/Parameter Parameter name=zz-val/Parameter /Generic The implementers will have to implement org.wso2.carbon.clustering.hazelcast.HazelcastMembershipScheme and register it as an OSGi service with the membership.scheme property. This property will correspond to the MembershipScheme defined in the above cluster configuration. Feedback welcome. -- *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 %2B94%2077%203320919blog: * *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 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 %2B94%2077%203320919blog: * *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 http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- *Kishanthan Thangarajah* Associate Technical Lead, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Architecture] WSO2 EMM 2.0.0 Milestone - 6 Released
Hi All, WSO2 EMM 2.0.0 Milestone - 6 Released ! This is the sixth milestone of WSO2 EMM version 2.0.0. You can download the milestone at [1]. Milestone - 6 specifically contains following features and improvements. Features: Enhancements to policy management framework and compliance monitoring framework. iOS and Android policy monitoring components. Tenant configuration Android and iOS. References [1] Respective products can be downloaded from, MDM 2.0.0-M6 https://svn.wso2.org/repos/wso2/people/prabatha/MDM/2.0.0-M6/ https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fpeople%2Fprabatha%2FMDM%2F2.0.0-M6%2Fsa=Dsntz=1usg=AFQjCNFqfXg3rgx0zci2IJ2Jo5WLS-psuw Regards, -- Milan Harindu Perera Software Engineer *WSO2, Inc* (+94) 77 309 7088 lean . enterprise . middleware http://lk.linkedin.com/in/milanharinduperera ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Clarification] How to make two manager nodes Active/Active?
I think when sending cluster messages, we use Hazelcast elected leader member and that's a different concept from the worker-manager concept. If you think of it, it's kind of redundant to send the same message from all the management nodes to worker nodes. On Fri, Aug 21, 2015 at 11:36 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi Nirmal, When I deploy apps in AS, only one manager is always sending the SynchronizeRepositoryRequest to the other manager and worker nodes (the manager nodes are not working in a round robin fashion). Is my configurations wrong or have I understood it in a wrong way? Regards, Dilini When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? On Fri, Aug 21, 2015 at 11:18 AM, Nirmal Fernando nir...@wso2.com wrote: Hi Dilini, On Fri, Aug 21, 2015 at 10:32 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi All, I am playing around creating a worker/manager cluster in Application Server (AS) using the deployment pattern 2 [1] where two worker nodes and two manager nodes are involved with the load balancer (Here i used ELB although it is retired because currently I am in the training period and hope it is better to know about it). According to the link I shared, the manager nodes can act as Active/Passive or Active/Active modes. When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? I need to know where I make changes to the configurations so that I can have a Active/Active manager nodes. [1] https://docs.wso2.com/display/CLUSTER420/Separating+the+Worker+and+Manager+Nodes Thank you. Regards, -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Clarification] How to make two manager nodes Active/Active?
To be more precise, I deploy app1 and the message is sent by manager1. Then, I deploy app2 and the message is again sent by manager1. Here, I don't know whether the deployment of the two apps is managed in a round robin way or managed only by the manager1 (since it is sending the message). What I thought was the message is sent by the manager who deployed the app in, this case manager1. Is that correct in the first place? What I want is to deploy the apps in a round robin fashion and I believed the manager who deployed the app will send the message. On Fri, Aug 21, 2015 at 12:07 PM, Dilini Gunatilake dili...@wso2.com wrote: Yes, there are new ways but I just tried the worker-manager concept just to play around because I am still in the training period and its good to know about it. I don't want the managers to send the same message from all the manager nodes. I want the managers to send messages in a round robin manner for high availability. Now that I have two manager nodes, only one manager is sending messages and the other manager will start sending messages only when the other is down. On Fri, Aug 21, 2015 at 11:49 AM, Nirmal Fernando nir...@wso2.com wrote: I think when sending cluster messages, we use Hazelcast elected leader member and that's a different concept from the worker-manager concept. If you think of it, it's kind of redundant to send the same message from all the management nodes to worker nodes. On Fri, Aug 21, 2015 at 11:36 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi Nirmal, When I deploy apps in AS, only one manager is always sending the SynchronizeRepositoryRequest to the other manager and worker nodes (the manager nodes are not working in a round robin fashion). Is my configurations wrong or have I understood it in a wrong way? Regards, Dilini When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? On Fri, Aug 21, 2015 at 11:18 AM, Nirmal Fernando nir...@wso2.com wrote: Hi Dilini, On Fri, Aug 21, 2015 at 10:32 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi All, I am playing around creating a worker/manager cluster in Application Server (AS) using the deployment pattern 2 [1] where two worker nodes and two manager nodes are involved with the load balancer (Here i used ELB although it is retired because currently I am in the training period and hope it is better to know about it). According to the link I shared, the manager nodes can act as Active/Passive or Active/Active modes. When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? I need to know where I make changes to the configurations so that I can have a Active/Active manager nodes. [1] https://docs.wso2.com/display/CLUSTER420/Separating+the+Worker+and+Manager+Nodes Thank you. Regards, -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Releasing ES App Manager branch
Upgrading kernel is a big change, so you have to do a major or a minor release. It's a best practice that we should follow, and I don't see why we need to break it here. As per the offline chat with Udara, it looks like 1.3.0 is the proper version for you. BTW, have you guys added this branch to Jenkins? From where can we see nightly builds? Thanks. On Fri, Aug 21, 2015 at 12:23 PM, Udara Rathnayake uda...@wso2.com wrote: Hi Kasun, How should we proceed? https://github.com/wso2/product-es/tree/app-manager On Fri, Aug 21, 2015 at 12:09 PM, Rushmin Fernando rush...@wso2.com wrote: Hi Manu / Udara, We need to get the ES App Manager branch released. The candidate versions are ... *1.2.1* for social components *1.1.1* for other components The previously released versions from the same branch are, 1.2.0 and 1.1.0 respectively. In the version to be released, we have done a carbon kernel upgrade from 4.2.0 to 4.4.1. So ideally this should *NOT* be a patch version bump. But considering that this branch is maintained only for app-manager a patch version bump seems to be the least vague approach. WDYT ? Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [ES] - Error adding Assets without Name and Version, when Version and Name are not Required fields in the RXT definition.
Hi ES team, We all are aware that assets cannot be created without an *Asset Name* and *Version *since they are mandatory in the perspective of adding an asset. But in user perspective since the RXT is customizable they can remove the *Required =True* for those * Name* and *Version* fields and with that RXT configuration if they try to add an asset without those fields, backend Error is thrown which is noted in [1]. If we make those fields *Not Required* from RXT, these will be reflected in Asset creation UI as *Not Required *fields which is misleading to the end users as they are actually Not required fields but when actually adding the asset, backend error is thrown since they should be saved in storagePath. Can we have a feasible solution for this please? The following are few suggestions from QA. 1. Though the Required=true is removed for Name and Version from RXT definition, we can show it as mandatory in asset creation UI and when they are values for those fields are not entered give a feasible UI error message 2. We can validate the RXT whether those fields are always Required = True and without those fields Required = True the RXT cannot be saved . In QA's point of view this is an issue that should be given attention to. The jira added for this is noted in [2]. But ths jira was added only considering version field. Any feedback on this is highly appreciated! [1] - [2015-06-12 14:33:54,310] ERROR {org.wso2.carbon.governance.api.util.GovernanceUtils} - Value for required attribute overview_version found empty. [2015-06-12 14:33:54,315] ERROR {org.wso2.carbon.governance.api.common.GovernanceArtifactManager} - Failed to add artifact: artifact id: 176cd77f-3604-42b5-976e-2b2bd09c57eb. Value for required attribute overview_version found empty. org.wso2.carbon.governance.api.exception.GovernanceException: Value for required attribute overview_version found empty. at org.wso2.carbon.governance.api.util.GovernanceUtils.getPathFromPathExpression(GovernanceUtils.java:1303) at org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:185) at org.wso2.carbon.governance.api.generic.GenericArtifactManager.addGenericArtifact(GenericArtifactManager.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.carbon.\scripts\registry.c0._c_anonymous_20(carbon\scripts\registry\artifacts.js:299) at org.jaggeryjs.rhino.carbon.\scripts\registry.c0.call(carbon\scripts\registry\artifacts.js) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.rxt.\scripts\asset.c0._c_anonymous_11(rxt\scripts\asset\asset.js:202) at org.jaggeryjs.rhino.rxt.\scripts\asset.c0.call(rxt\scripts\asset\asset.js) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_13(/publisher/modules/asset-api.js:234) at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/asset-api.js) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) at org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0._c_anonymous_1(/publisher/extensions/assets/default/apis/assets.jag:71) at org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0.call(/publisher/extensions/assets/default/apis/assets.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42) at org.jaggeryjs.rhino.publisher.modules.c1._c_anonymous_19(/publisher/modules/publisher.js:395) at org.jaggeryjs.rhino.publisher.modules.c1.call(/publisher/modules/publisher.js) at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) at org.jaggeryjs.rhino.store.\scripts.c0._c_anonymous_18(store\scripts\server.js:318) at org.jaggeryjs.rhino.store.\scripts.c0.call(store\scripts\server.js) at
Re: [Dev] [Clarification] How to make two manager nodes Active/Active?
Hi Nirmal, When I deploy apps in AS, only one manager is always sending the SynchronizeRepositoryRequest to the other manager and worker nodes (the manager nodes are not working in a round robin fashion). Is my configurations wrong or have I understood it in a wrong way? Regards, Dilini When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? On Fri, Aug 21, 2015 at 11:18 AM, Nirmal Fernando nir...@wso2.com wrote: Hi Dilini, On Fri, Aug 21, 2015 at 10:32 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi All, I am playing around creating a worker/manager cluster in Application Server (AS) using the deployment pattern 2 [1] where two worker nodes and two manager nodes are involved with the load balancer (Here i used ELB although it is retired because currently I am in the training period and hope it is better to know about it). According to the link I shared, the manager nodes can act as Active/Passive or Active/Active modes. When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? I need to know where I make changes to the configurations so that I can have a Active/Active manager nodes. [1] https://docs.wso2.com/display/CLUSTER420/Separating+the+Worker+and+Manager+Nodes Thank you. Regards, -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error adding provider in wso2 identity server 5
Hi all, I'm using IDS 5.0 Created a SP and then deleted and tried to add the same service provider but it displays the following error, could not add service provider. You might be entering a duplicate service provider. And Below is the snapshot. [cid:image001.png@01D0DC05.57BC74A0] When I list down service providers it's listed but without any entered details. Regards, Akila Rathnayake This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ES] - Error adding Assets without Name and Version, when Version and Name are not Required fields in the RXT definition.
Nadeesha, this is a good catch! I will update the ES docs appropriately when a conclusion is reached in this regard! Regards, Mariangela *Mariangela Hills* Senior Technical Writer - WSO2, Inc. http://wso2.com Committer and PMC member - Apache Stratos email:mariang...@wso2.com | mobile: +94 773 500185 On Fri, Aug 21, 2015 at 11:39 AM, Nadeesha Meegoda nadees...@wso2.com wrote: Hi ES team, We all are aware that assets cannot be created without an *Asset Name* and *Version *since they are mandatory in the perspective of adding an asset. But in user perspective since the RXT is customizable they can remove the *Required =True* for those * Name* and *Version* fields and with that RXT configuration if they try to add an asset without those fields, backend Error is thrown which is noted in [1]. If we make those fields *Not Required* from RXT, these will be reflected in Asset creation UI as *Not Required *fields which is misleading to the end users as they are actually Not required fields but when actually adding the asset, backend error is thrown since they should be saved in storagePath. Can we have a feasible solution for this please? The following are few suggestions from QA. 1. Though the Required=true is removed for Name and Version from RXT definition, we can show it as mandatory in asset creation UI and when they are values for those fields are not entered give a feasible UI error message 2. We can validate the RXT whether those fields are always Required = True and without those fields Required = True the RXT cannot be saved . In QA's point of view this is an issue that should be given attention to. The jira added for this is noted in [2]. But ths jira was added only considering version field. Any feedback on this is highly appreciated! [1] - [2015-06-12 14:33:54,310] ERROR {org.wso2.carbon.governance.api.util.GovernanceUtils} - Value for required attribute overview_version found empty. [2015-06-12 14:33:54,315] ERROR {org.wso2.carbon.governance.api.common.GovernanceArtifactManager} - Failed to add artifact: artifact id: 176cd77f-3604-42b5-976e-2b2bd09c57eb. Value for required attribute overview_version found empty. org.wso2.carbon.governance.api.exception.GovernanceException: Value for required attribute overview_version found empty. at org.wso2.carbon.governance.api.util.GovernanceUtils.getPathFromPathExpression(GovernanceUtils.java:1303) at org.wso2.carbon.governance.api.common.GovernanceArtifactManager.addGovernanceArtifact(GovernanceArtifactManager.java:185) at org.wso2.carbon.governance.api.generic.GenericArtifactManager.addGenericArtifact(GenericArtifactManager.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.carbon.\scripts\registry.c0._c_anonymous_20(carbon\scripts\registry\artifacts.js:299) at org.jaggeryjs.rhino.carbon.\scripts\registry.c0.call(carbon\scripts\registry\artifacts.js) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.rxt.\scripts\asset.c0._c_anonymous_11(rxt\scripts\asset\asset.js:202) at org.jaggeryjs.rhino.rxt.\scripts\asset.c0.call(rxt\scripts\asset\asset.js) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) at org.jaggeryjs.rhino.publisher.modules.c4._c_anonymous_13(/publisher/modules/asset-api.js:234) at org.jaggeryjs.rhino.publisher.modules.c4.call(/publisher/modules/asset-api.js) at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52) at org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0._c_anonymous_1(/publisher/extensions/assets/default/apis/assets.jag:71) at org.jaggeryjs.rhino.publisher.extensions.assets.default.apis.c0.call(/publisher/extensions/assets/default/apis/assets.jag) at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430) at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at
Re: [Dev] [Clarification] How to make two manager nodes Active/Active?
Yes, there are new ways but I just tried the worker-manager concept just to play around because I am still in the training period and its good to know about it. I don't want the managers to send the same message from all the manager nodes. I want the managers to send messages in a round robin manner for high availability. Now that I have two manager nodes, only one manager is sending messages and the other manager will start sending messages only when the other is down. On Fri, Aug 21, 2015 at 11:49 AM, Nirmal Fernando nir...@wso2.com wrote: I think when sending cluster messages, we use Hazelcast elected leader member and that's a different concept from the worker-manager concept. If you think of it, it's kind of redundant to send the same message from all the management nodes to worker nodes. On Fri, Aug 21, 2015 at 11:36 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi Nirmal, When I deploy apps in AS, only one manager is always sending the SynchronizeRepositoryRequest to the other manager and worker nodes (the manager nodes are not working in a round robin fashion). Is my configurations wrong or have I understood it in a wrong way? Regards, Dilini When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? On Fri, Aug 21, 2015 at 11:18 AM, Nirmal Fernando nir...@wso2.com wrote: Hi Dilini, On Fri, Aug 21, 2015 at 10:32 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi All, I am playing around creating a worker/manager cluster in Application Server (AS) using the deployment pattern 2 [1] where two worker nodes and two manager nodes are involved with the load balancer (Here i used ELB although it is retired because currently I am in the training period and hope it is better to know about it). According to the link I shared, the manager nodes can act as Active/Passive or Active/Active modes. When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? I need to know where I make changes to the configurations so that I can have a Active/Active manager nodes. [1] https://docs.wso2.com/display/CLUSTER420/Separating+the+Worker+and+Manager+Nodes Thank you. Regards, -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error adding provider in wso2 identity server 5
Hi Akila, When we creating a SP, a role is also created for that SP. Also. that role has the same name as SP. (Ex:- If your SP is *Google*, there is a role *Internal/Google* in Role list) You can check for the role under *configureUsers and Roles Roles*. Even you delete SP from the list, the role is still remain in the role list. When a new SP adding, it checks for role whether there is already existing a role with that SP name. So, Please make sure there is no role in the role list by your SP's name. Thank You, Lakshani. On Fri, Aug 21, 2015 at 11:48 AM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi all, I’m using IDS 5.0 Created a SP and then deleted and tried to add the same service provider but it displays the following error, “could not add service provider. You might be entering a duplicate service provider”. And Below is the snapshot. When I list down service providers it’s listed but without any entered details. Regards, Akila Rathnayake This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakshani Gamage *Software Engineer* Mobile : +94 (0) 71 5478184 %2B94%20%280%29%20773%20451194 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error adding provider in wso2 identity server 5
Hi Akila, Did you install SP1 with IS 5.0.0? If not please make sure to install it by following the instructions in readme file. You can find the service pack from the place where you have downloaded IS 5.0.0 pack in wso2 site. There was a public jira [1] with the issue you have mentioned and now it has been resolved. [1] https://wso2.org/jira/browse/IDENTITY-2089 Thanks and regards, Hasanthi Dissanayake Software Engineer | WSO2 E: hasan...@wso2.com nirosh...@wso2.com M :0718407133| http://wso2.com http://wso2.com/ On Fri, Aug 21, 2015 at 11:48 AM, Akila Nimantha [IT/EKO/LOITS] aki...@lolctech.com wrote: Hi all, I’m using IDS 5.0 Created a SP and then deleted and tried to add the same service provider but it displays the following error, “could not add service provider. You might be entering a duplicate service provider”. And Below is the snapshot. When I list down service providers it’s listed but without any entered details. Regards, Akila Rathnayake This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you. ___ 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] Support for Hazelcast AWS membership scheme implemented for C5
Please note $subject. The configuration in the cluster.xml file is as follows. Docs will have to be updated. AWS AccessKeyxx/AccessKey SecretKeyyy/SecretKey SecurityGroupa_group_name/SecurityGroup Regionus-east-1/Region TagKeya_tag_key/TagKey TagValuea_tag_value/TagValue /AWS -- *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 3320919blog: **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 http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Hazelcast generic membership scheme in Carbon 5 kernel
In addition to the 3 membership schemes, multicast, WKA AWS, for Stratos sort of deployments we will need to support other membership management schemes. In order to support this, I am introducing the following configuration into the cluster.xml Generic MembershipSchemefoo/MembershipScheme Parameter name=xx-val/Parameter Parameter name=yy-val/Parameter Parameter name=zz-val/Parameter /Generic The implementers will have to implement org.wso2.carbon.clustering.hazelcast.HazelcastMembershipScheme and register it as an OSGi service with the membership.scheme property. This property will correspond to the MembershipScheme defined in the above cluster configuration. Feedback welcome. -- *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 3320919blog: **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 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] Hazelcast generic membership scheme in Carbon 5 kernel
I have changed the Generic/MembershipScheme tag to Generic/Name. On Fri, Aug 21, 2015 at 2:55 PM, Afkham Azeez az...@wso2.com wrote: In addition to the 3 membership schemes, multicast, WKA AWS, for Stratos sort of deployments we will need to support other membership management schemes. In order to support this, I am introducing the following configuration into the cluster.xml Generic MembershipSchemefoo/MembershipScheme Parameter name=xx-val/Parameter Parameter name=yy-val/Parameter Parameter name=zz-val/Parameter /Generic The implementers will have to implement org.wso2.carbon.clustering.hazelcast.HazelcastMembershipScheme and register it as an OSGi service with the membership.scheme property. This property will correspond to the MembershipScheme defined in the above cluster configuration. Feedback welcome. -- *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 %2B94%2077%203320919blog: * *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 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 3320919blog: **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 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] Hazelcast generic membership scheme in Carbon 5 kernel
With the proper elements a proper schema, with JAXB, we have a proper object model for the known membership schemes. On Fri, Aug 21, 2015 at 3:16 PM, Imesh Gunaratne im...@wso2.com wrote: IMO it would be better if we can specify membership scheme information as parameters rather than using XML elements with their names, WDYT? Cluster ... MembershipScheme !-- multicast membership scheme related properties -- NameMulticast/Name Parameters Parameter name=Group228.0.0.4/Parameter Parameter name=Port45564/Parameter Parameter name=TTL100/Parameter Parameter name=Timeout60/Parameter /Parameters !-- wka membership scheme related properties -- !-- NameWKA/Name Parameters Parameter name=Members127.0.0.1:4000,127.0.0.1:4001 /Parameters /Parameters -- !-- private paas membership scheme related properties -- !-- NamePrivatePaaS/Name Parameters Parameter name=ClusterIdscluster-1,cluster-2/Parameter /Parameters -- /MembershipScheme /Cluster On Fri, Aug 21, 2015 at 2:59 PM, Afkham Azeez az...@wso2.com wrote: I have changed the Generic/MembershipScheme tag to Generic/Name. On Fri, Aug 21, 2015 at 2:55 PM, Afkham Azeez az...@wso2.com wrote: In addition to the 3 membership schemes, multicast, WKA AWS, for Stratos sort of deployments we will need to support other membership management schemes. In order to support this, I am introducing the following configuration into the cluster.xml Generic MembershipSchemefoo/MembershipScheme Parameter name=xx-val/Parameter Parameter name=yy-val/Parameter Parameter name=zz-val/Parameter /Generic The implementers will have to implement org.wso2.carbon.clustering.hazelcast.HazelcastMembershipScheme and register it as an OSGi service with the membership.scheme property. This property will correspond to the MembershipScheme defined in the above cluster configuration. Feedback welcome. -- *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 %2B94%2077%203320919blog: * *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 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 %2B94%2077%203320919blog: * *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 http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- *Imesh Gunaratne* Senior Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- *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 3320919blog: **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 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] [Greg 5.0.0 Beta] Cannot create Rest Service using publisher
Since in G-Reg we have a separate place to add tags (under options menu), we thought that we would get rid of the tags section (which is anyway not available in the original rxt of restservice and soap service). The fix for this is done in the following and tags section will not be available in the Add Soap Service/Rest Service section in the G-Reg RC. [1] https://github.com/wso2/product-greg/commit/c1d3cecdfb3f2ec5d058339879a6ff071388d29c Resolving the ticket mentioning this. Shazni Nazeer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Thu, Aug 20, 2015 at 11:29 PM, Shazni Nazeer sha...@wso2.com wrote: Hi Shafreen, Could reproduce the issue when tags are added. However you can add a rest service without tags. Thanks for pointing this out. We'll try to fix this in RC. Shazni Nazeer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Thu, Aug 20, 2015 at 8:46 PM, Shafreen Anfar shafr...@wso2.com wrote: Done. On Thu, Aug 20, 2015 at 9:11 AM, Chandana Napagoda chand...@wso2.com wrote: Hi Shafreen, Can you please create a L1 JIRA for this? https://wso2.org/jira/browse/REGISTRY-2797 Regards, Chandana On Thu, Aug 20, 2015 at 8:19 PM, Shafreen Anfar shafr...@wso2.com wrote: Hi All, When tried to create a Rest service using the publisher of Greg 5.0.0 Beta, the image below the create button keeps on spinning. I let is spin for few minutes but still Rest service was not created. See the attached image. However, you create the service using management console. -- Regards, *Shafreen* Software Engineer WSO2 Inc Mobile : 077-556-395-1 -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- Regards, *Shafreen* Software Engineer WSO2 Inc Mobile : 077-556-395-1 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Releasing ES App Manager branch
Thanks Kasun and Udara, So are we going with 1.3.0 for every component including social ? Thanks Rushmin On Fri, Aug 21, 2015 at 12:35 PM, KasunG Gajasinghe kas...@wso2.com wrote: Upgrading kernel is a big change, so you have to do a major or a minor release. It's a best practice that we should follow, and I don't see why we need to break it here. As per the offline chat with Udara, it looks like 1.3.0 is the proper version for you. BTW, have you guys added this branch to Jenkins? From where can we see nightly builds? Thanks. On Fri, Aug 21, 2015 at 12:23 PM, Udara Rathnayake uda...@wso2.com wrote: Hi Kasun, How should we proceed? https://github.com/wso2/product-es/tree/app-manager On Fri, Aug 21, 2015 at 12:09 PM, Rushmin Fernando rush...@wso2.com wrote: Hi Manu / Udara, We need to get the ES App Manager branch released. The candidate versions are ... *1.2.1* for social components *1.1.1* for other components The previously released versions from the same branch are, 1.2.0 and 1.1.0 respectively. In the version to be released, we have done a carbon kernel upgrade from 4.2.0 to 4.4.1. So ideally this should *NOT* be a patch version bump. But considering that this branch is maintained only for app-manager a patch version bump seems to be the least vague approach. WDYT ? Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Releasing ES App Manager branch
Hi Kasun, On Fri, Aug 21, 2015 at 12:35 PM, KasunG Gajasinghe kas...@wso2.com wrote: Upgrading kernel is a big change, so you have to do a major or a minor release. It's a best practice that we should follow, and I don't see why we need to break it here. As per the offline chat with Udara, it looks like 1.3.0 is the proper version for you. BTW, have you guys added this branch to Jenkins? From where can we see nightly builds? We haven't configure this with Jenkins, as we are doing a component release for EMM with very sort time. But, yes we will do it with the AppManager product release. Regards, Dinusha. Thanks. On Fri, Aug 21, 2015 at 12:23 PM, Udara Rathnayake uda...@wso2.com wrote: Hi Kasun, How should we proceed? https://github.com/wso2/product-es/tree/app-manager On Fri, Aug 21, 2015 at 12:09 PM, Rushmin Fernando rush...@wso2.com wrote: Hi Manu / Udara, We need to get the ES App Manager branch released. The candidate versions are ... *1.2.1* for social components *1.1.1* for other components The previously released versions from the same branch are, 1.2.0 and 1.1.0 respectively. In the version to be released, we have done a carbon kernel upgrade from 4.2.0 to 4.4.1. So ideally this should *NOT* be a patch version bump. But considering that this branch is maintained only for app-manager a patch version bump seems to be the least vague approach. WDYT ? Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Dinusha Dilrukshi Associate Technical Lead WSO2 Inc.: http://wso2.com/ Mobile: +94725255071 Blog: http://dinushasblog.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Clarification] How to make two manager nodes Active/Active?
Hi, What you noticed has happened due to sticky sessions. So, once you log-in to a manager node, all the requests you send will be dispatched to that manager node. That's why you are seeing one manager doing all the work. If you try logging in from a different browser, you might get logged into the other manager. On Fri, Aug 21, 2015 at 12:26 PM, Dilini Gunatilake dili...@wso2.com wrote: To be more precise, I deploy app1 and the message is sent by manager1. Then, I deploy app2 and the message is again sent by manager1. Here, I don't know whether the deployment of the two apps is managed in a round robin way or managed only by the manager1 (since it is sending the message). What I thought was the message is sent by the manager who deployed the app in, this case manager1. Is that correct in the first place? What I want is to deploy the apps in a round robin fashion and I believed the manager who deployed the app will send the message. On Fri, Aug 21, 2015 at 12:07 PM, Dilini Gunatilake dili...@wso2.com wrote: Yes, there are new ways but I just tried the worker-manager concept just to play around because I am still in the training period and its good to know about it. I don't want the managers to send the same message from all the manager nodes. I want the managers to send messages in a round robin manner for high availability. Now that I have two manager nodes, only one manager is sending messages and the other manager will start sending messages only when the other is down. On Fri, Aug 21, 2015 at 11:49 AM, Nirmal Fernando nir...@wso2.com wrote: I think when sending cluster messages, we use Hazelcast elected leader member and that's a different concept from the worker-manager concept. If you think of it, it's kind of redundant to send the same message from all the management nodes to worker nodes. On Fri, Aug 21, 2015 at 11:36 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi Nirmal, When I deploy apps in AS, only one manager is always sending the SynchronizeRepositoryRequest to the other manager and worker nodes (the manager nodes are not working in a round robin fashion). Is my configurations wrong or have I understood it in a wrong way? Regards, Dilini When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? On Fri, Aug 21, 2015 at 11:18 AM, Nirmal Fernando nir...@wso2.com wrote: Hi Dilini, On Fri, Aug 21, 2015 at 10:32 AM, Dilini Gunatilake dili...@wso2.com wrote: Hi All, I am playing around creating a worker/manager cluster in Application Server (AS) using the deployment pattern 2 [1] where two worker nodes and two manager nodes are involved with the load balancer (Here i used ELB although it is retired because currently I am in the training period and hope it is better to know about it). According to the link I shared, the manager nodes can act as Active/Passive or Active/Active modes. When I configured the cluster, I noticed the two manager nodes are working in Active/Passive mode by default. What made you think that? I need to know where I make changes to the configurations so that I can have a Active/Active manager nodes. [1] https://docs.wso2.com/display/CLUSTER420/Separating+the+Worker+and+Manager+Nodes Thank you. Regards, -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- *Dilini GunatilakeQA Engineer* Mobile : +94 (0) 771 162518 dili...@wso2.com -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ML] Error when deserializing model summary
I don't think it's correct. Scala version is 2.10.4 even in the mvn repo On Fri, Aug 21, 2015, 13:46 Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Also I asked this question in StackOverflow[1] http://stackoverflow.com/questions/32048618/how-to-serialize-apache-sparks-matrixfactorizationmodel-in-java and there they have mentioned a version incompatibility between Scala and Spark versions [1] - http://stackoverflow.com/questions/32048618/how-to-serialize-apache-sparks-matrixfactorizationmodel-in-java On 21 August 2015 at 13:31, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes path is valid, I explicitly set the path here from the MLModelHandler persistModel method. On 21 August 2015 at 10:26, Nirmal Fernando nir...@wso2.com wrote: On Thu, Aug 20, 2015 at 9:21 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi All, There an issue with serializing Spark's MatrixFactorizationModel object. The object contains a huge RDD and as I have read in many blogs, this model cannot be serialized as a java object. Therefore when retrieving the model I get the same exception as above; *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* I have asked this question in Spark mailing lists and they recommended me to use the built in save and load functions other than using Java serializing. So I have used following method to persist the model, model.save(MLCoreServiceValueHolder.*getInstance()*.getSparkContext().sc(), outPath);[1] https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 Then nothing happens when this line executes. No error is thrown as well. Any solution for this? Can you print outPath and see whether it's a valid file path? [1] - https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 On 16 August 2015 at 18:06, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes I was able to resolve the issue by removing RDD fields from the SummaryModel object as @Mano pointed out. Still I have the same exception when retrieving the model. Trying to fix that issue. On 14 August 2015 at 10:43, Nirmal Fernando nir...@wso2.com wrote: Thanks Niranda, this doc is useful. On Fri, Aug 14, 2015 at 10:36 AM, Niranda Perera nira...@wso2.com wrote: From what I know, OneToOneDependancy come into play when spark tries to create the RDD dependency tree. Just thought of sharing that. this would be a good resource [1] :-) [1] https://databricks-training.s3.amazonaws.com/slides/advanced-spark-training.pdf On Thu, Aug 13, 2015 at 12:09 AM, Nirmal Fernando nir...@wso2.com wrote: What is *org.apache.spark.OneToOneDependency ? Is it something you use?* On Wed, Aug 12, 2015 at 11:30 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi, I created a model summary in order to show the model data in the analysis.jag page. But when refreshing the page after building the model I get the following error. org.wso2.carbon.ml.core.exceptions.MLAnalysisHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:245) at org.wso2.carbon.ml.rest.api.AnalysisApiV10.getAllModelsOfAnalysis(AnalysisApiV10.java:517) Caused by: org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1797) at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:243) ... 52 more *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* at org.wso2.carbon.ml.database.util.MLDBUtil.getModelSummaryFromInputStream(MLDBUtil.java:54) at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1790) ... 53 more I guess there is an error in persistence of the model summary object, what should be the cause for this error? [1] https://github.com/madawas/carbon-ml/commit/987c799231dad2bab6f4046df7acc672d0564f22 contains the commit which I introduced the model summary. [1] - https://github.com/madawas/carbon-ml/commit/987c799231dad2bab6f4046df7acc672d0564f22 -- *_**Madawa Soysa* Undergraduate, Department of Computer Science and Engineering, University of Moratuwa. Mobile: +94 71 461 6050 %2B94%2075%20812%200726 | Email: madawa...@cse.mrt.ac.lk LinkedIn http://lk.linkedin.com/in/madawasoysa | Twitter https://twitter.com/madawa_rc | Tumblr http://madawas.tumblr.com/ -- Thanks regards, Nirmal Team Lead - WSO2
Re: [Dev] Error in salesforce rest api connector test case
Thank you all for your help. Now it's working. On Fri, Aug 21, 2015 at 12:57 PM, Kesavan Yogarajah kesav...@wso2.com wrote: Hi Hariprasath* ,* As Elilmatha said syntax errors in your configurations causing this error.Closing tag is missing in queryAllMore and queryMore proxy configurations . Thanks. Kesavan Yogarajah Associate Software Engineer Mobile :+94 (0) 779 758021 kesav...@wso2.com WSO2, Inc. lean . enterprise . middleware On Fri, Aug 21, 2015 at 9:27 AM, Elilmatha Sivanesan elilma...@wso2.com wrote: Hi Hariprasath* ,* It seems some syntax error , missing the closing tag in BeforeClass setEnvironment. Thanks. On Fri, Aug 21, 2015 at 8:11 AM, Rajjaz Mohammed raj...@wso2.com wrote: Hi harprasath, Can you upload your code? On 21 Aug 2015 08:01, Hariprasath Thanarajah haripras...@wso2.com wrote: Hi all, I got the following error while doing the salesforce rest api connector test case. Anyone help me. [2015-08-21 07:53:39,248] WARN {org.wso2.carbon.automation.core.PlatformTestManager} - On Test Skipped [2015-08-21 07:53:39,248] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - --Test Skipped null [2015-08-21 07:53:39,254] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2015-08-21 07:53:39,254] WARN - ProxyServiceAdmin No proxy service exists by the name : salesforcerest [2015-08-21 07:53:39,266] INFO {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient} - Proxy Deleted FAILED CONFIGURATION: @BeforeClass setEnvironment org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException: Unexpected '' character in element (missing closing ''?) at [row,col {unknown-source}]: [13,13] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296) at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:653) at org.apache.axiom.om.impl.llom.OMNodeImpl.getNextOMSibling(OMNodeImpl.java:122) at org.apache.axiom.om.impl.traverse.OMChildrenIterator.getNextNode(OMChildrenIterator.java:36) at org.apache.axiom.om.impl.traverse.OMAbstractIterator.hasNext(OMAbstractIterator.java:58) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:554) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:555) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:555) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875) at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:125) at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:113) at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:988) at org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient.addProxyService(ProxyServiceAdminClient.java:129) at org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.init(ConnectorIntegrationTestBase.java:198) at org.wso2.carbon.connector.integration.test.salesforcerest.SalesforceRestConnectorIntegrationTest.setEnvironment(SalesforceRestConnectorIntegrationTest.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130) at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105) at org.testng.TestRunner.runWorkers(TestRunner.java:1178) at org.testng.TestRunner.privateRun(TestRunner.java:757) at org.testng.TestRunner.run(TestRunner.java:608) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) 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
Re: [Dev] Error in salesforce rest api connector test case
Hi Hariprasath* ,* As Elilmatha said syntax errors in your configurations causing this error.Closing tag is missing in queryAllMore and queryMore proxy configurations . Thanks. Kesavan Yogarajah Associate Software Engineer Mobile :+94 (0) 779 758021 kesav...@wso2.com WSO2, Inc. lean . enterprise . middleware On Fri, Aug 21, 2015 at 9:27 AM, Elilmatha Sivanesan elilma...@wso2.com wrote: Hi Hariprasath* ,* It seems some syntax error , missing the closing tag in BeforeClass setEnvironment. Thanks. On Fri, Aug 21, 2015 at 8:11 AM, Rajjaz Mohammed raj...@wso2.com wrote: Hi harprasath, Can you upload your code? On 21 Aug 2015 08:01, Hariprasath Thanarajah haripras...@wso2.com wrote: Hi all, I got the following error while doing the salesforce rest api connector test case. Anyone help me. [2015-08-21 07:53:39,248] WARN {org.wso2.carbon.automation.core.PlatformTestManager} - On Test Skipped [2015-08-21 07:53:39,248] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - --Test Skipped null [2015-08-21 07:53:39,254] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2015-08-21 07:53:39,254] WARN - ProxyServiceAdmin No proxy service exists by the name : salesforcerest [2015-08-21 07:53:39,266] INFO {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient} - Proxy Deleted FAILED CONFIGURATION: @BeforeClass setEnvironment org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException: Unexpected '' character in element (missing closing ''?) at [row,col {unknown-source}]: [13,13] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296) at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:653) at org.apache.axiom.om.impl.llom.OMNodeImpl.getNextOMSibling(OMNodeImpl.java:122) at org.apache.axiom.om.impl.traverse.OMChildrenIterator.getNextNode(OMChildrenIterator.java:36) at org.apache.axiom.om.impl.traverse.OMAbstractIterator.hasNext(OMAbstractIterator.java:58) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:554) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:555) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:555) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875) at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:125) at org.apache.axiom.om.impl.llom.OMSerializableImpl.serialize(OMSerializableImpl.java:113) at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:988) at org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient.addProxyService(ProxyServiceAdminClient.java:129) at org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.init(ConnectorIntegrationTestBase.java:198) at org.wso2.carbon.connector.integration.test.salesforcerest.SalesforceRestConnectorIntegrationTest.setEnvironment(SalesforceRestConnectorIntegrationTest.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130) at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105) at org.testng.TestRunner.runWorkers(TestRunner.java:1178) at org.testng.TestRunner.privateRun(TestRunner.java:757) at org.testng.TestRunner.run(TestRunner.java:608) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) 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) at org.testng.TestNG.run(TestNG.java:999) at
Re: [Dev] [ML] Error when deserializing model summary
Also I asked this question in StackOverflow[1] http://stackoverflow.com/questions/32048618/how-to-serialize-apache-sparks-matrixfactorizationmodel-in-java and there they have mentioned a version incompatibility between Scala and Spark versions [1] - http://stackoverflow.com/questions/32048618/how-to-serialize-apache-sparks-matrixfactorizationmodel-in-java On 21 August 2015 at 13:31, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes path is valid, I explicitly set the path here from the MLModelHandler persistModel method. On 21 August 2015 at 10:26, Nirmal Fernando nir...@wso2.com wrote: On Thu, Aug 20, 2015 at 9:21 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi All, There an issue with serializing Spark's MatrixFactorizationModel object. The object contains a huge RDD and as I have read in many blogs, this model cannot be serialized as a java object. Therefore when retrieving the model I get the same exception as above; *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* I have asked this question in Spark mailing lists and they recommended me to use the built in save and load functions other than using Java serializing. So I have used following method to persist the model, model.save(MLCoreServiceValueHolder.*getInstance()*.getSparkContext().sc(), outPath);[1] https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 Then nothing happens when this line executes. No error is thrown as well. Any solution for this? Can you print outPath and see whether it's a valid file path? [1] - https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 On 16 August 2015 at 18:06, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes I was able to resolve the issue by removing RDD fields from the SummaryModel object as @Mano pointed out. Still I have the same exception when retrieving the model. Trying to fix that issue. On 14 August 2015 at 10:43, Nirmal Fernando nir...@wso2.com wrote: Thanks Niranda, this doc is useful. On Fri, Aug 14, 2015 at 10:36 AM, Niranda Perera nira...@wso2.com wrote: From what I know, OneToOneDependancy come into play when spark tries to create the RDD dependency tree. Just thought of sharing that. this would be a good resource [1] :-) [1] https://databricks-training.s3.amazonaws.com/slides/advanced-spark-training.pdf On Thu, Aug 13, 2015 at 12:09 AM, Nirmal Fernando nir...@wso2.com wrote: What is *org.apache.spark.OneToOneDependency ? Is it something you use?* On Wed, Aug 12, 2015 at 11:30 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi, I created a model summary in order to show the model data in the analysis.jag page. But when refreshing the page after building the model I get the following error. org.wso2.carbon.ml.core.exceptions.MLAnalysisHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:245) at org.wso2.carbon.ml.rest.api.AnalysisApiV10.getAllModelsOfAnalysis(AnalysisApiV10.java:517) Caused by: org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1797) at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:243) ... 52 more *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* at org.wso2.carbon.ml.database.util.MLDBUtil.getModelSummaryFromInputStream(MLDBUtil.java:54) at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1790) ... 53 more I guess there is an error in persistence of the model summary object, what should be the cause for this error? [1] https://github.com/madawas/carbon-ml/commit/987c799231dad2bab6f4046df7acc672d0564f22 contains the commit which I introduced the model summary. [1] - https://github.com/madawas/carbon-ml/commit/987c799231dad2bab6f4046df7acc672d0564f22 -- *_**Madawa Soysa* Undergraduate, Department of Computer Science and Engineering, University of Moratuwa. Mobile: +94 71 461 6050 %2B94%2075%20812%200726 | Email: madawa...@cse.mrt.ac.lk LinkedIn http://lk.linkedin.com/in/madawasoysa | Twitter https://twitter.com/madawa_rc | Tumblr http://madawas.tumblr.com/ -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/
[Dev] [BPS] Please merge the pull request
Hi, Please review and merge the pull request [1 https://github.com/wso2/carbon-business-process/pull/152], I have done some changed to the markup, let me know if you have any issues. [1] https://github.com/wso2/carbon-business-process/pull/152 https://github.com/wso2/carbon-business-process/pull/152 -- Sharon David Software Engineer - UI/UX | WSO2 Inc +94 777 668 411 | shar...@wso2.com | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BPS] Please merge the pull request
Hi sharon, There is a conflict. can you please update your repo with latest updates in wso2/carbon-business-process and make PR. Thanks, Milinda On Fri, Aug 21, 2015 at 2:03 PM, Sharon David shar...@wso2.com wrote: Hi, Please review and merge the pull request [1 https://github.com/wso2/carbon-business-process/pull/152], I have done some changed to the markup, let me know if you have any issues. [1] https://github.com/wso2/carbon-business-process/pull/152 https://github.com/wso2/carbon-business-process/pull/152 -- Sharon David Software Engineer - UI/UX | WSO2 Inc +94 777 668 411 | shar...@wso2.com | http://wso2.com -- Milinda Perera Software Engineer; WSO2 Inc. http://wso2.com , Mobile: (+94) 714 115 032 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ML] Error when deserializing model summary
Yes path is valid, I explicitly set the path here from the MLModelHandler persistModel method. On 21 August 2015 at 10:26, Nirmal Fernando nir...@wso2.com wrote: On Thu, Aug 20, 2015 at 9:21 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi All, There an issue with serializing Spark's MatrixFactorizationModel object. The object contains a huge RDD and as I have read in many blogs, this model cannot be serialized as a java object. Therefore when retrieving the model I get the same exception as above; *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* I have asked this question in Spark mailing lists and they recommended me to use the built in save and load functions other than using Java serializing. So I have used following method to persist the model, model.save(MLCoreServiceValueHolder.*getInstance()*.getSparkContext().sc(), outPath);[1] https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 Then nothing happens when this line executes. No error is thrown as well. Any solution for this? Can you print outPath and see whether it's a valid file path? [1] - https://github.com/madawas/carbon-ml/commit/3700d3ed5915b0ad3b679bc0d9eb2611608463e9 On 16 August 2015 at 18:06, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Yes I was able to resolve the issue by removing RDD fields from the SummaryModel object as @Mano pointed out. Still I have the same exception when retrieving the model. Trying to fix that issue. On 14 August 2015 at 10:43, Nirmal Fernando nir...@wso2.com wrote: Thanks Niranda, this doc is useful. On Fri, Aug 14, 2015 at 10:36 AM, Niranda Perera nira...@wso2.com wrote: From what I know, OneToOneDependancy come into play when spark tries to create the RDD dependency tree. Just thought of sharing that. this would be a good resource [1] :-) [1] https://databricks-training.s3.amazonaws.com/slides/advanced-spark-training.pdf On Thu, Aug 13, 2015 at 12:09 AM, Nirmal Fernando nir...@wso2.com wrote: What is *org.apache.spark.OneToOneDependency ? Is it something you use?* On Wed, Aug 12, 2015 at 11:30 PM, Madawa Soysa madawa...@cse.mrt.ac.lk wrote: Hi, I created a model summary in order to show the model data in the analysis.jag page. But when refreshing the page after building the model I get the following error. org.wso2.carbon.ml.core.exceptions.MLAnalysisHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:245) at org.wso2.carbon.ml.rest.api.AnalysisApiV10.getAllModelsOfAnalysis(AnalysisApiV10.java:517) Caused by: org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException: An error has occurred while extracting all the models of analysis id: 13 at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1797) at org.wso2.carbon.ml.core.impl.MLAnalysisHandler.getAllModelsOfAnalysis(MLAnalysisHandler.java:243) ... 52 more *Caused by: java.lang.ClassNotFoundException: org.apache.spark.OneToOneDependency cannot be found by org.scala-lang.scala-library_2.10.4.v20140209-180020-VFINAL-b66a3965* at org.wso2.carbon.ml.database.util.MLDBUtil.getModelSummaryFromInputStream(MLDBUtil.java:54) at org.wso2.carbon.ml.database.internal.MLDatabaseService.getAllModels(MLDatabaseService.java:1790) ... 53 more I guess there is an error in persistence of the model summary object, what should be the cause for this error? [1] https://github.com/madawas/carbon-ml/commit/987c799231dad2bab6f4046df7acc672d0564f22 contains the commit which I introduced the model summary. [1] - https://github.com/madawas/carbon-ml/commit/987c799231dad2bab6f4046df7acc672d0564f22 -- *_**Madawa Soysa* Undergraduate, Department of Computer Science and Engineering, University of Moratuwa. Mobile: +94 71 461 6050 %2B94%2075%20812%200726 | Email: madawa...@cse.mrt.ac.lk LinkedIn http://lk.linkedin.com/in/madawasoysa | Twitter https://twitter.com/madawa_rc | Tumblr http://madawas.tumblr.com/ -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 https://pythagoreanscript.wordpress.com/ -- Thanks regards, Nirmal Team Lead - WSO2 Machine Learner Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog:
Re: [Dev] Releasing ES App Manager branch
Udara, I updated the versions and sent a pull request [1] [1] - https://github.com/wso2/product-es/pull/190 On Fri, Aug 21, 2015 at 1:20 PM, Rushmin Fernando rush...@wso2.com wrote: Thanks Kasun and Udara, So are we going with 1.3.0 for every component including social ? Thanks Rushmin On Fri, Aug 21, 2015 at 12:35 PM, KasunG Gajasinghe kas...@wso2.com wrote: Upgrading kernel is a big change, so you have to do a major or a minor release. It's a best practice that we should follow, and I don't see why we need to break it here. As per the offline chat with Udara, it looks like 1.3.0 is the proper version for you. BTW, have you guys added this branch to Jenkins? From where can we see nightly builds? Thanks. On Fri, Aug 21, 2015 at 12:23 PM, Udara Rathnayake uda...@wso2.com wrote: Hi Kasun, How should we proceed? https://github.com/wso2/product-es/tree/app-manager On Fri, Aug 21, 2015 at 12:09 PM, Rushmin Fernando rush...@wso2.com wrote: Hi Manu / Udara, We need to get the ES App Manager branch released. The candidate versions are ... *1.2.1* for social components *1.1.1* for other components The previously released versions from the same branch are, 1.2.0 and 1.1.0 respectively. In the version to be released, we have done a carbon kernel upgrade from 4.2.0 to 4.4.1. So ideally this should *NOT* be a patch version bump. But considering that this branch is maintained only for app-manager a patch version bump seems to be the least vague approach. WDYT ? Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Releasing ES App Manager branch
Hi Manu / Udara, We need to get the ES App Manager branch released. The candidate versions are ... *1.2.1* for social components *1.1.1* for other components The previously released versions from the same branch are, 1.2.0 and 1.1.0 respectively. In the version to be released, we have done a carbon kernel upgrade from 4.2.0 to 4.4.1. So ideally this should *NOT* be a patch version bump. But considering that this branch is maintained only for app-manager a patch version bump seems to be the least vague approach. WDYT ? Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Releasing ES App Manager branch
Hi Kasun, How should we proceed? https://github.com/wso2/product-es/tree/app-manager On Fri, Aug 21, 2015 at 12:09 PM, Rushmin Fernando rush...@wso2.com wrote: Hi Manu / Udara, We need to get the ES App Manager branch released. The candidate versions are ... *1.2.1* for social components *1.1.1* for other components The previously released versions from the same branch are, 1.2.0 and 1.1.0 respectively. In the version to be released, we have done a carbon kernel upgrade from 4.2.0 to 4.4.1. So ideally this should *NOT* be a patch version bump. But considering that this branch is maintained only for app-manager a patch version bump seems to be the least vague approach. WDYT ? Thanks Rushmin -- *Rushmin Fernando* *Technical Lead* WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware email : rush...@wso2.com mobile : +94772310855 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev