Re: [Dev] NoHostAvailableException in MB when doing load testing
Hi Sajini, Can we take this data source configuration as the default configuration for MB? If so we need to update the master-datasources.xml in the pack [1] I guess. [1] https://github.com/wso2-dev/product-mb/blob/master/modules/distribution/src/main/conf/master-datasources.xml Thanks On Mon, Oct 6, 2014 at 9:35 AM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi Sajini, Can you please point which part of above configuration fixed the issue? Thanks, Bhathiya On Mon, Oct 6, 2014 at 9:30 AM, Sajini De Silva saj...@wso2.com wrote: Hi, This issue was fixed with following configurations. *master-datasources.xml in MB node:* !-- external Cassandra data source. -- datasource nameWSO2_CASSANDRA_DB/name descriptionThe datasource used for cassandra/description jndiConfig nameCassandraRepo/name /jndiConfig definition type=CASSANDRA configuration asyncfalse/async clusterNameTestCluster/clusterName compressionSNAPPY/compression concurrency100/concurrency usernameadmin/username password encrypted=trueadmin/password port9042/port maxConnections100/maxConnections hosts host127.0.0.1/host /hosts loadBalancePolicy exclusionThreshold2.5/exclusionThreshold latencyAwaretrue/latencyAware minMeasure100/minMeasure policyNameRoundRobinPolicy/policyName retryPeriod10/retryPeriod scale2/scale /loadBalancePolicy poolOptions coreConnectionsForLocal1000/coreConnectionsForLocal coreConnectionsForRemote1000/coreConnectionsForRemote maxConnectionsForLocal1000/maxConnectionsForLocal maxConnectionsForRemote1000/maxConnectionsForRemote maxSimultaneousRequestsForLocal1000/maxSimultaneousRequestsForLocal maxSimultaneousRequestsForRemote1000/maxSimultaneousRequestsForRemote minSimultaneousRequestsForLocal1000/minSimultaneousRequestsForLocal minSimultaneousRequestsForRemote1000/minSimultaneousRequestsForRemote /poolOptions reconnectPolicy baseDelayMs3000/baseDelayMs policyNameConstantReconnectionPolicy/policyName /reconnectPolicy socketOptions connectTimeoutMillis1/connectTimeoutMillis keepAlivetrue/keepAlive readTimeoutMillis15000/readTimeoutMillis tcpNoDelaytrue/tcpNoDelay /socketOptions /configuration /definition /datasource *cassandra-env.sh in cassandra node:* system_memory_in_mb=10240 system_cpu_cores=6 Tested with an SSD hard drive. Thank you, Sajini. On Fri, Oct 3, 2014 at 12:23 PM, Sajini De Silva saj...@wso2.com wrote: Hi Prabath, This is the error we got while deleting messages. [2014-10-03 12:16:55,059] ERROR {org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl} - Error while deleting messages com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1 (Timeout during read)) at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:64) at com.datastax.driver.core.ResultSetFuture.extractCauseFromExecutionException(ResultSetFuture.java:269) at com.datastax.driver.core.ResultSetFuture.getUninterruptibly(ResultSetFuture.java:183) at com.datastax.driver.core.Session.execute(Session.java:111) at org.wso2.andes.store.cassandra.dao.GenericCQLDAO.batchExecute(GenericCQLDAO.java:207) at org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl.deleteMessageMetadataFromQueue(CQLBasedMessageStoreImpl.java:299) at org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.deleteMessages(DurableAsyncStoringManager.java:327) at org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.processAckReceived(DurableAsyncStoringManager.java:203) at org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:30) at org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:19) at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:113) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed
[Dev] [Chunk13 build error] DSS product
Getting; [INFO] BUILD FAILURE [INFO] [INFO] Total time: 47:16.937s [INFO] Finished at: Sun Oct 05 23:05:14 PDT 2014 [INFO] Final Memory: 300M/838M [INFO] [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on project wso2dataservices-profile-gen: Error occured when processing the Feature Artifact: org.wso2.carbon:org.wso2.carbon.reporting.server.feature:4.2.2: ERROR: Could not find artifact org.wso2.carbon:org.wso2.carbon.reporting.server.feature:zip:4.2.2 in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon -DartifactId=org.wso2.carbon.reporting.server.feature -Dversion=4.2.2 -Dpackaging=zip -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon -DartifactId=org.wso2.carbon.reporting.server.feature -Dversion=4.2.2 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] [ERROR] org.wso2.carbon:org.wso2.carbon.reporting.server.feature:zip:4.2.2 [ERROR] [ERROR] from the specified remote repositories: [ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true, snapshots=true), [ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ERROR] - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn goals -rf :wso2dataservices-profile-gen root@sr3 :/opt/checkout_chunk13/platform/branches/turing/product-releases/chunk-13# root@sr3 :/opt/checkout_chunk13/platform/branches/turing/product-releases/chunk-13# root@sr3 :/opt/checkout_chunk13/platform/branches/turing/product-releases/chunk-13# -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CEP ( building from source error )
Hi all, Turned out, I get this issue whenever I try to build any pom.xml. Regards. On Mon, Oct 6, 2014 at 11:20 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Ramindu, build [1] before to build CEP 3.1.0 [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/pom.xml Thanks On Mon, Oct 6, 2014 at 11:07 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi Ramindu, Can you get a checkout of the complete Turing platform and try a build from CEP 3.1.0? There are dependencies to parent level poms which are needed when building CEP. Thanks, Lasantha On 6 October 2014 11:02, Ramindu De Silva ramin...@wso2.com wrote: Hi all, I checked out the CEP 3.1.0 source and tried maven clean install to build it and i got the following error. [INFO] Scanning for projects... [ERROR] The build could not read 1 project - [Help 1] [ERROR] [ERROR] The project org.wso2.cep:cep-parent:3.1.0 (/Users/ramilu/Ramindu/WSO2/FT_Project/CEP_source/3.1.0/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Failure to find org.wso2.carbon:carbon-products:pom:4.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 - [Help 2] I really appriciate, if anyone can give any help regarding this issue. Regards. -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Apache Storm support in WSO2CEP 4.0 update
Hi all Thanks for Lasantha and SajithR's effort, now I was able to integrate Apache Storm[1] with WSO2 CEP. Enabling WSO2 CEP 4.0[2] to process complex event processing in a distributed manner. Currently to achieve this, CEP execution plans should have Siddhi queries with the correct breakdowns for each Storm Bolts. You can follow the docs[3] to tryout this feature with the help of CEP sample. Task todo: - Automating Siddhi query breakdown. (WIP) - Writing the integration tests Regards Suho [1]https://storm.incubator.apache.org/ [2]https://wso2.org/jenkins/job/product-cep/org.wso2.cep$wso2cep/ [3]https://docs.wso2.com/display/CEP400/Clustered+Deployment -- *S. Suhothayan* Technical Lead Team Lead of WSO2 Complex Event Processor *WSO2 Inc. *http://wso2.com * http://wso2.com/* lean . enterprise . middleware *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog: http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in: http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CEP ( building from source error )
Hi Ramindu, Are you following this [1]? [1] https://docs.wso2.com/display/CEP310/Building+from+Source On Mon, Oct 6, 2014 at 11:45 AM, Ramindu De Silva ramin...@wso2.com wrote: Hi all, Turned out, I get this issue whenever I try to build any pom.xml. Regards. On Mon, Oct 6, 2014 at 11:20 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Ramindu, build [1] before to build CEP 3.1.0 [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/pom.xml Thanks On Mon, Oct 6, 2014 at 11:07 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi Ramindu, Can you get a checkout of the complete Turing platform and try a build from CEP 3.1.0? There are dependencies to parent level poms which are needed when building CEP. Thanks, Lasantha On 6 October 2014 11:02, Ramindu De Silva ramin...@wso2.com wrote: Hi all, I checked out the CEP 3.1.0 source and tried maven clean install to build it and i got the following error. [INFO] Scanning for projects... [ERROR] The build could not read 1 project - [Help 1] [ERROR] [ERROR] The project org.wso2.cep:cep-parent:3.1.0 (/Users/ramilu/Ramindu/WSO2/FT_Project/CEP_source/3.1.0/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Failure to find org.wso2.carbon:carbon-products:pom:4.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 - [Help 2] I really appriciate, if anyone can give any help regarding this issue. Regards. -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] CEP ( building from source error )
Hi Ramindu, When building CEP 3.1.0, it refers to the parent pom at products-4.2.0 level, and products would probably have a parent at turing-platform/parent/pom.xml and so on. Therefore, I think you need to checkout the complete turing platform before building a specific product. Can you trying checking out the complete platform and build and see? If it doesn't build after that as well, you can build from turing-platform/product-releases/chunk-08 which will build all products that were released in chunk-08. But please let us know since it should build from CEP 3.1.0 itself because all the necessary artifacts for this build should be uploaded to nexus. Thanks, Lasantha On 6 October 2014 11:45, Ramindu De Silva ramin...@wso2.com wrote: Hi all, Turned out, I get this issue whenever I try to build any pom.xml. Regards. On Mon, Oct 6, 2014 at 11:20 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Ramindu, build [1] before to build CEP 3.1.0 [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/pom.xml Thanks On Mon, Oct 6, 2014 at 11:07 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi Ramindu, Can you get a checkout of the complete Turing platform and try a build from CEP 3.1.0? There are dependencies to parent level poms which are needed when building CEP. Thanks, Lasantha On 6 October 2014 11:02, Ramindu De Silva ramin...@wso2.com wrote: Hi all, I checked out the CEP 3.1.0 source and tried maven clean install to build it and i got the following error. [INFO] Scanning for projects... [ERROR] The build could not read 1 project - [Help 1] [ERROR] [ERROR] The project org.wso2.cep:cep-parent:3.1.0 (/Users/ramilu/Ramindu/WSO2/FT_Project/CEP_source/3.1.0/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Failure to find org.wso2.carbon:carbon-products:pom:4.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 - [Help 2] I really appriciate, if anyone can give any help regarding this issue. Regards. -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Why does ESB source consume so much disk space?
Hi All, I checked out the source for ESB from following SVN location several days ago. https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07 When initially checked out, the total size of the checked out source was around 5 GB as I can remember. But when I checked today, the source directory size has grown to 14 GB. It is pretty difficult to find out what exactly is consuming the space because the size is evenly dispersed among so many directories. I'm just curious about why the source directory is so large? Also, how did the size grow to 14 GB from 5GB? Is it because the build artifacts generated when the source is built? I did a mvn clean but size didn't significantly reduce. Thanks -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 lahi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error in index.jsp of carbon component
Hi all, I'm writing a carbon component and when it is running on carbon server, it gives following errors *PWC6199: Generated servlet error:Only a type can be imported. org.wso2.carbon.ser.inf.ui.ServerInfoClient resolves to a packagePWC6197: An error occurred at line: 10 in the jsp file: /server-inf/index.jspPWC6199: Generated servlet error:ServerInfoClient cannot be resolved to a type* in here ServerInfoClient is my client class. i've tried many ways but couldn't resolve the problem. here is my* index.jsp* file %@ page import=org.wso2.carbon.ser.inf.ui.ServerInfoClient% %@ page import=org.apache.axis2.context.ConfigurationContext % %@ page import=org.wso2.carbon.CarbonConstants % %@ page import=org.wso2.carbon.ui.CarbonUIUtil % %@ page import=org.wso2.carbon.utils.ServerConstants % %@ page import=org.wso2.carbon.ui.CarbonUIMessage % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt% %@ taglib uri=http://wso2.org/projects/carbon/taglibs/carbontags.jar; prefix=carbon% % String serverURL = CarbonUIUtil.getServerURL(config.getServletContext(), session); ConfigurationContext configContext = (ConfigurationContext) config.getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE); ServerInfoClient client; int var; try { client =new ServerInfoClient(configContext, serverURL, cookie); var = client.GetAvailableProcessors(); } catch (Exception e) { CarbonUIMessage.sendCarbonUIMessage(e.getMessage(), CarbonUIMessage.ERROR, request, e); return; } % div id=middle h2Processor count/h2 div id=workArea form lablenumber of processers are: %=var%/lable /form /div /div -- *BuddhiC* *InternWSO2, Inc. * *Mob: +94 755 446 685* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Signature verification error - Signature length not correct: got 203 but was expecting 128
Resolved by base 64 encoding the signature seperately. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Sat, Oct 4, 2014 at 12:07 AM, Danushka Fernando danush...@wso2.com wrote: Hi Prabath. I guess you missed the last line of my mail. ;) We are going to do what you suggested in M7. For just M6 we are trying to go with this solution. Any way even for that solution we need this to work right? So any idea what's going wrong here? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 3, 2014 at 10:14 PM, Prabath Siriwardena prab...@wso2.com wrote: I thought we agreed to go ahead with self-issued access tokens? Thanks regards, -Prabath On Fri, Oct 3, 2014 at 10:04 PM, Danushka Fernando danush...@wso2.com wrote: Hi All I am trying to send some singed string from client to the server and in server side I am trying to verify it. My code is as per below. Client Side //Get the filesystem keystore default primary certificate KeyStoreManager keyStoreManager; keyStoreManager = KeyStoreManager.getInstance(MultitenantConstants.SUPER_TENANT_ID); Signature signature; try { //Sign the secret keyStoreManager.getDefaultPrimaryCertificate(); signature = Signature.getInstance(SHA1WithRSA); signature.initSign(keyStoreManager.getDefaultPrivateKey()); signature.update(serverSecret.getBytes()); String signatureString = new String(signature.sign()); String headerString = new String(username + : + signatureString + : + serverSecret); // Set authorization header to service client List headerList = new ArrayList(); Header header = new Header(); header.setName(HTTPConstants.HEADER_AUTHORIZATION); header.setValue(CloudLogin + Base64Utils.encode(headerString.getBytes())); headerList.add(header); serviceClient.getOptions().setProperty(HTTPConstants.HTTP_HEADERS, headerList); } catch (Exception e) { String msg = Failed to get primary default certificate; log.error(msg, e); throw new AppFactoryException(msg, e); } Server Side //Get the filesystem keystore default primary certificate KeyStoreManager keyStoreManager = KeyStoreManager.getInstance(MultitenantConstants.SUPER_TENANT_ID); X509Certificate cert = keyStoreManager.getDefaultPrimaryCertificate(); //Authorization: CloudLogin xxx //header data base64encode(username:signature:secret) String authorizationHeader = request.getHeader(HTTPConstants.HEADER_AUTHORIZATION); String[] headerData = decodeAuthorizationHeader(authorizationHeader); Signature signature = Signature.getInstance(SHA1WithRSA); signature.initVerify(cert.getPublicKey()); signature.update(headerData[2].getBytes()); if (signature.verify(headerData[1].getBytes())) { //my logic goes here } } catch (Exception e) { log.error(Error authenticating the user + e.getMessage(), e); } return isAuthenticated; } I ended up with the error [1]. Any idea what I am doing wrong. And idea would be appreciated. @Prabath: We are going to do what you suggested in M7. For just M6 we are trying to go with this solution. [1][2014-10-03 21:40:52,242] ERROR {org.wso2.carbon.identity.authenticator.cloud.CloudAuthenticator} - Error authenticating the user Signature length not correct: got 203 but was expecting 128 java.security.SignatureException: Signature length not correct: got 203 but was expecting 128 at sun.security.rsa.RSASignature.engineVerify(RSASignature.java:189) at java.security.Signature$Delegate.engineVerify(Signature.java:1172) at java.security.Signature.verify(Signature.java:623) at org.wso2.carbon.identity.authenticator.cloud.CloudAuthenticator.isAuthenticated(CloudAuthenticator.java:114) at org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.isAuthenticated(AuthenticationHandler.java:187) at org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:96) at org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66) at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) at org.apache.axis2.engine.Phase.invoke(Phase.java:313) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at
Re: [Dev] CEP ( building from source error )
Hi all, I am now checking out the above and let you know after Im done with it. Thank you all :) Regards. On Mon, Oct 6, 2014 at 11:56 AM, Niranda Perera nira...@wso2.com wrote: Hi Ramindu, Are you following this [1]? [1] https://docs.wso2.com/display/CEP310/Building+from+Source On Mon, Oct 6, 2014 at 11:45 AM, Ramindu De Silva ramin...@wso2.com wrote: Hi all, Turned out, I get this issue whenever I try to build any pom.xml. Regards. On Mon, Oct 6, 2014 at 11:20 AM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi Ramindu, build [1] before to build CEP 3.1.0 [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/pom.xml Thanks On Mon, Oct 6, 2014 at 11:07 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi Ramindu, Can you get a checkout of the complete Turing platform and try a build from CEP 3.1.0? There are dependencies to parent level poms which are needed when building CEP. Thanks, Lasantha On 6 October 2014 11:02, Ramindu De Silva ramin...@wso2.com wrote: Hi all, I checked out the CEP 3.1.0 source and tried maven clean install to build it and i got the following error. [INFO] Scanning for projects... [ERROR] The build could not read 1 project - [Help 1] [ERROR] [ERROR] The project org.wso2.cep:cep-parent:3.1.0 (/Users/ramilu/Ramindu/WSO2/FT_Project/CEP_source/3.1.0/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Failure to find org.wso2.carbon:carbon-products:pom:4.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 - [Help 2] I really appriciate, if anyone can give any help regarding this issue. Regards. -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0711241005* -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 ___ 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 -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com sanj...@wso2.com mob: +94772339350 mob: +94782731766 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] org.wso2.carbon.core.util.KeyStoreManager.getDefaultPrivateKey()
Created a jira [1] [1] https://wso2.org/jira/browse/CARBON-15002 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 3, 2014 at 9:47 PM, Prabath Siriwardena prab...@wso2.com wrote: Yes... need to fix that.. return (PublicKey) primaryKeyStore.getCertificate(alias).getPublicKey(); should be replaced as, return (PublicKey) getPrimaryKeyStore().getCertificate(alias).getPublicKey(); Thanks regards, -Prabath On Fri, Oct 3, 2014 at 9:33 PM, Danushka Fernando danush...@wso2.com wrote: Hi All I noticed that if I call the method in $subject without calling KeyStoreManager.getDefaultPrimaryCertificate() its throwing a null pointer. Is this a bug or the expected behavior. AFAIU when we call $subject it should internally load the default primary cert. Correct me if I am wrong. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 -- Thanks Regards, Prabath Twitter : @prabath LinkedIn : http://www.linkedin.com/in/prabathsiriwardena Mobile : +94 71 809 6732 http://blog.facilelogin.com http://blog.api-security.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error in index.jsp of carbon component
my apologies, there is an another error, which is *ERROR {org.apache.catalina.core.ApplicationDispatcher} - Servlet.service() for servlet bridgeservlet threw exceptionorg.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP* On Mon, Oct 6, 2014 at 12:10 PM, Buddhi Senarathna budd...@wso2.com wrote: Hi all, I'm writing a carbon component and when it is running on carbon server, it gives following errors *PWC6199: Generated servlet error:Only a type can be imported. org.wso2.carbon.ser.inf.ui.ServerInfoClient resolves to a packagePWC6197: An error occurred at line: 10 in the jsp file: /server-inf/index.jspPWC6199: Generated servlet error:ServerInfoClient cannot be resolved to a type* in here ServerInfoClient is my client class. i've tried many ways but couldn't resolve the problem. here is my* index.jsp* file %@ page import=org.wso2.carbon.ser.inf.ui.ServerInfoClient% %@ page import=org.apache.axis2.context.ConfigurationContext % %@ page import=org.wso2.carbon.CarbonConstants % %@ page import=org.wso2.carbon.ui.CarbonUIUtil % %@ page import=org.wso2.carbon.utils.ServerConstants % %@ page import=org.wso2.carbon.ui.CarbonUIMessage % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt% %@ taglib uri=http://wso2.org/projects/carbon/taglibs/carbontags.jar; prefix=carbon% % String serverURL = CarbonUIUtil.getServerURL(config.getServletContext(), session); ConfigurationContext configContext = (ConfigurationContext) config.getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE); ServerInfoClient client; int var; try { client =new ServerInfoClient(configContext, serverURL, cookie); var = client.GetAvailableProcessors(); } catch (Exception e) { CarbonUIMessage.sendCarbonUIMessage(e.getMessage(), CarbonUIMessage.ERROR, request, e); return; } % div id=middle h2Processor count/h2 div id=workArea form lablenumber of processers are: %=var%/lable /form /div /div -- *BuddhiC* *InternWSO2, Inc. * *Mob: +94 755 446 685 %2B94%20755%20446%20685* -- *BuddhiC* *InternWSO2, Inc. * *Mob: +94 755 446 685* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM -06-10-2014 Pack]
Hi ; Please find pack here[1] [1] https://svn.wso2.org/repos/wso2/scratch/chunk13-release/06-10-2014/ I'll host p2 repo soon. Thanks. -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error in index.jsp of carbon component
Hi Buddhi, This may be due to the unavailable of dependency information for pom.xml file. Also check whether you have added proper bundle plugins (Export-Package). Thanks, Rajeevan On Mon, Oct 6, 2014 at 12:31 PM, Buddhi Senarathna budd...@wso2.com wrote: my apologies, there is an another error, which is *ERROR {org.apache.catalina.core.ApplicationDispatcher} - Servlet.service() for servlet bridgeservlet threw exceptionorg.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP* On Mon, Oct 6, 2014 at 12:10 PM, Buddhi Senarathna budd...@wso2.com wrote: Hi all, I'm writing a carbon component and when it is running on carbon server, it gives following errors *PWC6199: Generated servlet error:Only a type can be imported. org.wso2.carbon.ser.inf.ui.ServerInfoClient resolves to a packagePWC6197: An error occurred at line: 10 in the jsp file: /server-inf/index.jspPWC6199: Generated servlet error:ServerInfoClient cannot be resolved to a type* in here ServerInfoClient is my client class. i've tried many ways but couldn't resolve the problem. here is my* index.jsp* file %@ page import=org.wso2.carbon.ser.inf.ui.ServerInfoClient% %@ page import=org.apache.axis2.context.ConfigurationContext % %@ page import=org.wso2.carbon.CarbonConstants % %@ page import=org.wso2.carbon.ui.CarbonUIUtil % %@ page import=org.wso2.carbon.utils.ServerConstants % %@ page import=org.wso2.carbon.ui.CarbonUIMessage % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt% %@ taglib uri=http://wso2.org/projects/carbon/taglibs/carbontags.jar; prefix=carbon% % String serverURL = CarbonUIUtil.getServerURL(config.getServletContext(), session); ConfigurationContext configContext = (ConfigurationContext) config.getServletContext().getAttribute(CarbonConstants.CONFIGURATION_CONTEXT); String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE); ServerInfoClient client; int var; try { client =new ServerInfoClient(configContext, serverURL, cookie); var = client.GetAvailableProcessors(); } catch (Exception e) { CarbonUIMessage.sendCarbonUIMessage(e.getMessage(), CarbonUIMessage.ERROR, request, e); return; } % div id=middle h2Processor count/h2 div id=workArea form lablenumber of processers are: %=var%/lable /form /div /div -- *BuddhiC* *InternWSO2, Inc. * *Mob: +94 755 446 685 %2B94%20755%20446%20685* -- *BuddhiC* *InternWSO2, Inc. * *Mob: +94 755 446 685 %2B94%20755%20446%20685* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, V.Rajeevan Software Engineer, WSO2 Inc. :http://wso2.com Mobile : +94 773090875 Email : rajeev...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Profiling MB2 M1
Hi Srinath/Suho, I measured the message receiving throughput for subscribers after publishing all the messages to MB before starting subscribers and message receiving throughput I got was 1475. Thank you, Sajini. On Mon, Oct 6, 2014 at 9:06 AM, Sajini De Silva saj...@wso2.com wrote: Hi Srinath, Attached the wso2carbon.log file in carbon_logs.zip. Thank you, Sajini. On Mon, Oct 6, 2014 at 7:52 AM, Srinath Perera srin...@wso2.com wrote: Publishing numbers are good, and obviously not for receiving Could you add logs to print following once every thousand messages 1) Queue sizes of all queues in Queue DeliveryInfo objects 2) Queue size of worker queue in QueueDeliveryInfo 3) Print every time the worker threads sleeps I will schedule a session, could you do this before and send the logs. --Srinath On Sun, Oct 5, 2014 at 7:55 PM, Sajini De Silva saj...@wso2.com wrote: Hi Srinath, I was able calculate the throughput for publisher and subscriber with concurrency 10. Checked with one MB and one cassandra node in cluster mode. Message publishing throughput - 5000 - 6000 TPS Message receiving throughput is around 275 TPS. Thank you, Sajini. On Fri, Oct 3, 2014 at 11:01 AM, Sajini De Silva saj...@wso2.com wrote: Hi Srinath, Yesterday I did some load tests and came across some issues when running MB in multi threaded environment. We fixed some issues yesterday and now I'm doing the load tests again. I have a saved profile session taken while running the system anyway. We can do the profiling session today. Will update the throughput once performance tests are completed. Thank you, Sajini. On Fri, Oct 3, 2014 at 7:57 AM, Srinath Perera srin...@wso2.com wrote: Hi Sajini, Were you able to run the bench mark with concurrency 10? How much throughput you got? Can we do profiling session? --Srinath -- Srinath Perera, Ph.D. http://people.apache.org/~hemapani/ http://srinathsview.blogspot.com/ -- Sajini De SIlva Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 -- Sajini De SIlva Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 -- Srinath Perera, Ph.D. http://people.apache.org/~hemapani/ http://srinathsview.blogspot.com/ -- Sajini De SIlva Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 -- Sajini De SIlva Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Chunk13 build error] DSS product
Hi, This happened because the org.wso2.carbon.reporting.server.feature is moved to chunk-14. Now it is moved back to chunk-13 Thanks On Mon, Oct 6, 2014 at 12:32 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: DS team; Is it possible to check all build errors in DS? Thanks. On 6 October 2014 11:39, Vijayaratha Vijayasingam rat...@wso2.com wrote: Getting; [INFO] BUILD FAILURE [INFO] [INFO] Total time: 47:16.937s [INFO] Finished at: Sun Oct 05 23:05:14 PDT 2014 [INFO] Final Memory: 300M/838M [INFO] [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on project wso2dataservices-profile-gen: Error occured when processing the Feature Artifact: org.wso2.carbon:org.wso2.carbon.reporting.server.feature:4.2.2: ERROR: Could not find artifact org.wso2.carbon:org.wso2.carbon.reporting.server.feature:zip:4.2.2 in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon -DartifactId=org.wso2.carbon.reporting.server.feature -Dversion=4.2.2 -Dpackaging=zip -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon -DartifactId=org.wso2.carbon.reporting.server.feature -Dversion=4.2.2 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] [ERROR] org.wso2.carbon:org.wso2.carbon.reporting.server.feature:zip:4.2.2 [ERROR] [ERROR] from the specified remote repositories: [ERROR] wso2-nexus ( http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true, snapshots=true), [ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ERROR] - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn goals -rf :wso2dataservices-profile-gen root@sr3 :/opt/checkout_chunk13/platform/branches/turing/product-releases/chunk-13# root@sr3 :/opt/checkout_chunk13/platform/branches/turing/product-releases/chunk-13# root@sr3 :/opt/checkout_chunk13/platform/branches/turing/product-releases/chunk-13# -- -Ratha -- -Ratha -- Best Regards.. Chanika Geeganage Software Engineer WSO2, Inc.; http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to point Direct repository location (file://) for SVN based dep-sync
Hi, You can use the following command to create a backward compatible svn repo with svn 1.8. svnadmin create --compatible-version 1.6 PATHNAME Regards, Anuruddha. On Wed, Oct 1, 2014 at 3:42 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi Ajanthan, Though the svn kit bundle is updated, this might not work with svn 1.7/1.8, since we need to update the svn-client-adapter_1.6.18.wso2v2.jar which is in the /repository/components/plugins folder. Regards, Aruna On Wed, Oct 1, 2014 at 11:22 AM, Ajanthan Balachandran ajant...@wso2.com wrote: On Sat, Sep 27, 2014 at 7:55 PM, Nuwan Dias nuw...@wso2.com wrote: I doubt whether this will work for the file:// protocol. AFAIK you need to expose your svn repo over http(s) so that you can access it over http:// for the dep-sync to work. Thanks, NuwanD. On Sat, Sep 27, 2014 at 7:45 PM, Gimantha Bandara giman...@wso2.com wrote: Hi, I have created a svn repository location in a local setup. I added the following configuration to carbon.xml of ESB 4.8.1 DeploymentSynchronizer Enabledtrue/Enabled AutoCommittrue/AutoCommit AutoCheckouttrue/AutoCheckout RepositoryTypesvn/RepositoryType SvnUrlfile:///home/gimantha/Support/repo/depsyncrepo//SvnUrl SvnUserrepouser/SvnUser SvnPasswordrepopassword/SvnPassword SvnUrlAppendTenantIdtrue/SvnUrlAppendTenantId /DeploymentSynchronizer When I run the ESB I am getting the following error The reason for this exception is, you may be using subversion installation 1.8.0 and the svnkit bundle that is pointed in the docs is 1.3 which is not compatible with svn 1.8.0.You need to create a new svnkit bundle with latest svnkit 1.8.6. Here I have attached a maven pom.xml to create an osgi bundle using latest svnkit. [2014-09-27 19:35:27,605] ERROR - SVNBasedArtifactRepository Error while attempting to create the directory: file://localhost/home/gimantha/Support/repo/depsyncrepo/-1234 org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.javahl.ClientException: svn: Unable to open an ra_local session to URL svn: Unable to open repository 'file://localhost/home/gimantha/Support/repo/depsyncrepo' svn: Expected FS format between '1' and '4'; found format '6' at org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.mkdir(AbstractJhlClientAdapter.java:2524) at org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.checkRemoteDirectory(SVNBasedArtifactRepository.java:240) at org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.init(SVNBasedArtifactRepository.java:167) at org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.newCarbonRepositorySynchronizer(CarbonRepositoryUtils.java:71) at org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.initDeploymentSynchronizerForSuperTenant(DeploymentSynchronizerComponent.java:108) at org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.activate(DeploymentSynchronizerComponent.java:77) 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:601) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at
Re: [Dev] Unable to send payload with delete request in ESB connector
Yes ESB will drop the body of the DELETE request. Please refer to the previous dev mail subjected on [1]. Furthermore, spec[2] claim that A payload within a DELETE request message has no defined semantics [1] [Dev]moving httpcore dependency to git [2] http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.3.5 On Mon, Sep 22, 2014 at 2:23 PM, Firzhan Naqash firz...@wso2.com wrote: Hi, Can you attach your wired carbon log along with the synapse configuration. Regards, Firzhan On Mon, Sep 22, 2014 at 2:36 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: When I sent delete request with json payload I got the following message: Empty JSON body. I also tried with the hardcoded values. But I got the same error message. -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com thili...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com http://wso2.com/* *Mobile:(+94)777219209* [image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare] http://www.slideshare.net/vanjikumaran This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, re-transmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM -06-10-2014 Pack]
I have uploaded p2 repo too. Thanks. On 6 October 2014 12:31, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi ; Please find pack here[1] [1] https://svn.wso2.org/repos/wso2/scratch/chunk13-release/06-10-2014/ I'll host p2 repo soon. Thanks. -- -Ratha -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error when running Cassandra: java.lang.ClassNotFoundException
Reported a similar error here. [1] [1] http://stackoverflow.com/questions/16851308/i-am-getting-this-error-when-i-am-starting-cassandra-server Regards On Mon, Oct 6, 2014 at 4:54 PM, Vishanth Balasubramaniam vishan...@wso2.com wrote: Hi, Getting this following error when I run Cassandra. root@instance-0001:/opt/cassandra/bin# cassandra root@instance-0001:/opt/cassandra/bin# Exception in thread main java.lang.NoClassDefFoundError: org/apache/cassandra/service/CassandraDaemon Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.service.CassandraDaemon at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.cassandra.service.CassandraDaemon. Program will exit. I tried the commands cassandra, cassandra -f, cassandra -f start, which all prompted me the same error. I believe this could be because of incorrect Classpath, I would like to know how to set the Classpath correctly. Thank you, -- *Vishanth Balasubramaniam* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94771737718* about me: *http://about.me/vishanth http://about.me/vishanth* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error connecting to LDAP Server (192.168.18.13)
Hi, I am trying to connect above LDAP server via *ldaps(port 636) *and give following error. Error while opening connection - [LDAP: error code 2 - PROTOCOL_ERROR: The server will disconnect!] java.lang.Exception: [LDAP: error code 2 - PROTOCOL_ERROR: The server will disconnect!] at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkResponse(DirectoryApiConnectionWrapper.java:1280) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.access$600(DirectoryApiConnectionWrapper.java:109) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$2.run(DirectoryApiConnectionWrapper.java:451) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1175) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doBind(DirectoryApiConnectionWrapper.java:460) at org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.bind(DirectoryApiConnectionWrapper.java:306) at org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.run(OpenConnectionsRunnable.java:114) at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:109) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) [LDAP: error code 2 - PROTOCOL_ERROR: The server will disconnect!] It successfully connect using *ldap(port 389). *What can be the reason for this ? Thanks Godwin -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error when running Cassandra: java.lang.ClassNotFoundException
Hi Vishanth, this might be a permission issue since you have installed in the /opt/ directory. alter the permissions of the directory (perform with care!!!) or try manually downloading a cassandra release as mentioned here [1]. [1] http://wiki.apache.org/cassandra/GettingStarted cheers On Mon, Oct 6, 2014 at 5:10 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Reported a similar error here. [1] [1] http://stackoverflow.com/questions/16851308/i-am-getting-this-error-when-i-am-starting-cassandra-server Regards On Mon, Oct 6, 2014 at 4:54 PM, Vishanth Balasubramaniam vishan...@wso2.com wrote: Hi, Getting this following error when I run Cassandra. root@instance-0001:/opt/cassandra/bin# cassandra root@instance-0001:/opt/cassandra/bin# Exception in thread main java.lang.NoClassDefFoundError: org/apache/cassandra/service/CassandraDaemon Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.service.CassandraDaemon at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.cassandra.service.CassandraDaemon. Program will exit. I tried the commands cassandra, cassandra -f, cassandra -f start, which all prompted me the same error. I believe this could be because of incorrect Classpath, I would like to know how to set the Classpath correctly. Thank you, -- *Vishanth Balasubramaniam* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94771737718* about me: *http://about.me/vishanth http://about.me/vishanth* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Store mediator defined in sequence template adds a namespace to the message automatically
Created a Jira for this... https://wso2.org/jira/browse/ESBJAVA-3350 On Mon, Oct 6, 2014 at 10:16 AM, Lahiru Sandaruwan lahi...@wso2.com wrote: Hi Anjana, I tried that. But when i save, declaration of namespace http://ws.apache.org/ns/synapse; goes away(does note get saved). That is the issue. Thanks On Mon, Oct 6, 2014 at 6:53 AM, Anjana Fernando anj...@wso2.com wrote: Hi Lahiru, You can run an Xpath in the usual way for this message also; In the place you define the expression, simply first declare the namespace http://ws.apache.org/ns/synapse; with a namespace prefix, e.g. ns1, and you can put Xpath expressions with that namespace prefix, e.g. /ns1:file/ns1:endpoint/ns1:host. Cheers, Anjana. On Sun, Oct 5, 2014 at 5:05 PM, Lahiru Sandaruwan lahi...@wso2.com wrote: Hi guys, Is $subject a bug? Store get changed to following automatically, axis2ns9:store xmlns:axis2ns9=http://ws.apache.org/ns/synapse; messageStore=A/axis2ns9:store I receive this message to a proxy defined in ESB, and the message has this namespace. E.g. file xmlns=http://ws.apache.org/ns/synapse; endpoint hostmyftphost/host usernameusername/username /endpoint /file This namespace is a special one, which is used to define all synapse configs. Is there a way to run a Xpath to access elements in this message? Thanks. -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Store mediator defined in sequence template adds a namespace to the message automatically
H Lahiru, Yeah, I see, for this, we can give the namespace in the Xpath itself, like the following:- property name=host expression=//*[local-name()='host' and namespace-uri()=' http://ws.apache.org/ns/synapse']/ Cheers, Anjana. On Mon, Oct 6, 2014 at 9:36 AM, Lahiru Sandaruwan lahi...@wso2.com wrote: Created a Jira for this... https://wso2.org/jira/browse/ESBJAVA-3350 On Mon, Oct 6, 2014 at 10:16 AM, Lahiru Sandaruwan lahi...@wso2.com wrote: Hi Anjana, I tried that. But when i save, declaration of namespace http://ws.apache.org/ns/synapse; goes away(does note get saved). That is the issue. Thanks On Mon, Oct 6, 2014 at 6:53 AM, Anjana Fernando anj...@wso2.com wrote: Hi Lahiru, You can run an Xpath in the usual way for this message also; In the place you define the expression, simply first declare the namespace http://ws.apache.org/ns/synapse; with a namespace prefix, e.g. ns1, and you can put Xpath expressions with that namespace prefix, e.g. /ns1:file/ns1:endpoint/ns1:host. Cheers, Anjana. On Sun, Oct 5, 2014 at 5:05 PM, Lahiru Sandaruwan lahi...@wso2.com wrote: Hi guys, Is $subject a bug? Store get changed to following automatically, axis2ns9:store xmlns:axis2ns9=http://ws.apache.org/ns/synapse; messageStore=A/axis2ns9:store I receive this message to a proxy defined in ESB, and the message has this namespace. E.g. file xmlns=http://ws.apache.org/ns/synapse; endpoint hostmyftphost/host usernameusername/username /endpoint /file This namespace is a special one, which is used to define all synapse configs. Is there a way to run a Xpath to access elements in this message? Thanks. -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error creating by connecting to Active directory
Hi, I have configured the user-mg.xml to point active directory and tried to create a tenant and given following error. Can someone point me whats wrong ? org.wso2.carbon.user.core.UserStoreException: Error occurred while searching in root partition. at org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager.isOrganizationalUnitCreated(CommonHybridLDAPTenantManager.java:140) at org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager.addTenant(CommonHybridLDAPTenantManager.java:98) at org.wso2.carbon.tenant.mgt.core.TenantPersistor.addTenant(TenantPersistor.java:174) at org.wso2.carbon.tenant.mgt.core.TenantPersistor.persistTenantInUserStore(TenantPersistor.java:100) at org.wso2.carbon.tenant.mgt.core.TenantPersistor.persistTenant(TenantPersistor.java:66) at org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.addTenant(TenantMgtAdminService.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.addTenant(TenantMgtAdminServiceStub.java:2718) at org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient.addTenant(TenantServiceClient.java:90) at org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil.addTenantConfigBean(TenantMgtUtil.java:67) at org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp._jspService(org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp:116) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at
[Dev] Fwd: Error creating tenant by connecting to Active directory
Changed subject Hi, I have configured the user-mg.xml to point active directory and tried to create a tenant and given following error. Can someone point me whats wrong ? org.wso2.carbon.user.core.UserStoreException: Error occurred while searching in root partition. at org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager.isOrganizationalUnitCreated(CommonHybridLDAPTenantManager.java:140) at org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager.addTenant(CommonHybridLDAPTenantManager.java:98) at org.wso2.carbon.tenant.mgt.core.TenantPersistor.addTenant(TenantPersistor.java:174) at org.wso2.carbon.tenant.mgt.core.TenantPersistor.persistTenantInUserStore(TenantPersistor.java:100) at org.wso2.carbon.tenant.mgt.core.TenantPersistor.persistTenant(TenantPersistor.java:66) at org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.addTenant(TenantMgtAdminService.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.addTenant(TenantMgtAdminServiceStub.java:2718) at org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient.addTenant(TenantServiceClient.java:90) at org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil.addTenantConfigBean(TenantMgtUtil.java:67) at org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp._jspService(org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp:116) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at
Re: [Dev] Store mediator defined in sequence template adds a namespace to the message automatically
Thanks Anjana. On Mon, Oct 6, 2014 at 7:15 PM, Anjana Fernando anj...@wso2.com wrote: H Lahiru, Yeah, I see, for this, we can give the namespace in the Xpath itself, like the following:- property name=host expression=//*[local-name()='host' and namespace-uri()='http://ws.apache.org/ns/synapse']/ Cheers, Anjana. On Mon, Oct 6, 2014 at 9:36 AM, Lahiru Sandaruwan lahi...@wso2.com wrote: Created a Jira for this... https://wso2.org/jira/browse/ESBJAVA-3350 On Mon, Oct 6, 2014 at 10:16 AM, Lahiru Sandaruwan lahi...@wso2.com wrote: Hi Anjana, I tried that. But when i save, declaration of namespace http://ws.apache.org/ns/synapse; goes away(does note get saved). That is the issue. Thanks On Mon, Oct 6, 2014 at 6:53 AM, Anjana Fernando anj...@wso2.com wrote: Hi Lahiru, You can run an Xpath in the usual way for this message also; In the place you define the expression, simply first declare the namespace http://ws.apache.org/ns/synapse; with a namespace prefix, e.g. ns1, and you can put Xpath expressions with that namespace prefix, e.g. /ns1:file/ns1:endpoint/ns1:host. Cheers, Anjana. On Sun, Oct 5, 2014 at 5:05 PM, Lahiru Sandaruwan lahi...@wso2.com wrote: Hi guys, Is $subject a bug? Store get changed to following automatically, axis2ns9:store xmlns:axis2ns9=http://ws.apache.org/ns/synapse; messageStore=A/axis2ns9:store I receive this message to a proxy defined in ESB, and the message has this namespace. E.g. file xmlns=http://ws.apache.org/ns/synapse; endpoint hostmyftphost/host usernameusername/username /endpoint /file This namespace is a special one, which is used to define all synapse configs. Is there a way to run a Xpath to access elements in this message? Thanks. -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware email: lahi...@wso2.com cell: (+94) 773 325 954 blog: http://lahiruwrites.blogspot.com/ twitter: http://twitter.com/lahirus linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Carbon component writing pom xml error
HI Buddhi, Remove the *pluginManagement*** tag from your POM and add following segment in-between /plugins and /build */plugins * pluginManagement plugins !--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -- plugin groupIdorg.eclipse.m2e/groupId artifactIdlifecycle-mapping/artifactId version1.0.0/version configuration lifecycleMappingMetadata pluginExecutions pluginExecution pluginExecutionFilter groupId org.codehaus.mojo /groupId artifactId build-helper-maven-plugin /artifactId versionRange [1.9.1,) /versionRange goals goaladd-source/goal /goals /pluginExecutionFilter action ignore/ignore /action /pluginExecution pluginExecution pluginExecutionFilter groupId org.apache.maven.plugins /groupId artifactIdmaven-antrun-plugin /artifactId versionRange [1.1,) /versionRange goals goalrun/goal /goals /pluginExecutionFilter action ignore / /action /pluginExecution /pluginExecutions /lifecycleMappingMetadata /configuration /plugin /plugins /pluginManagement */build* Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Oct 3, 2014 at 1:18 PM, Vimalanathan Rajeevan rajeev...@wso2.com wrote: Hi Buddhi, You have to remove *pluginManagement../pluginManagement* tag to successfully build it using maven. After removing that, even though the line is marked as error in Eclipse, It does not matter. This may be because of some bug with Eclipse. You can even successfully build the bundle and deploy in carbon server. On Fri, Oct 3, 2014 at 12:31 PM, Buddhi Senarathna budd...@wso2.com wrote: Hi all, Thanks for your support. I did remove pluginManager tag and tested with pluginManagement. but result was the same. then i tried as Roshan said. now it is working fine. but again eclipse indicates *Plugin execution not covered by lifecycle configuration* error in *execution* tag. i have no issue with building the jar file. maven build it somehow. the problem is eclipse indicates this error. i'm using eclipse Luna Release (4.4.0) . On Fri, Oct 3, 2014 at 12:22 PM, Roshan Deniyage rosh...@wso2.com wrote: yes. the element is pluginManagement not pluginManager (typo). but same rule applies. Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Fri, Oct 3, 2014 at 12:17 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi Buddhi, Try to use pluginManagement instead of pluginManager tag On Fri, Oct 3, 2014 at 12:11 PM, Roshan Deniyage rosh...@wso2.com wrote: Hi, The problem seems with the pluginManager element. you don't need to put that element unless the pom is a parent pom which is inherited by other children poms. maven-bundle-plugin needs to come outside of the plubinManager tag. Just removing the pluginManager would solve the issue. Try it. Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage On Fri, Oct 3, 2014 at 11:30 AM, Buddhi Senarathna budd...@wso2.com wrote: Hi All, I wrote pom.xml file to build the stub to create my carbon component. When i build it, it builds the bundle without giving any error. but it indicates an error in *execution* tag and it says Plugin execution not covered by lifecycle configuration. to fix that i had put all the *plugins../plugins* part inside *pluginManagement../pluginManagement* tag. after i had done it, it gives *project build error: Unknown packaging:* bundle in *packaging* tag. how do i fix that? find my pom.xml here. project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.wso2.carbon/groupId artifactIdadd-number-components/artifactId version4.2.0/version /parent artifactIdorg.wso2.carbon.add.num.stub/artifactId packagingbundle/packaging nameWSO2 Carbon - Add Number Stub/name dependencies dependency groupIdorg.apache.axis2.wso2/groupId artifactIdaxis2/artifactId version1.6.1.wso2v10/version /dependency dependency groupIdorg.apache.ws.commons.axiom.wso2/groupId artifactIdaxiom/artifactId version1.2.11.wso2v4/version /dependency dependency groupIdwsdl4j.wso2/groupId artifactIdwsdl4j/artifactId version1.6.2.wso2v4/version /dependency /dependencies
Re: [Dev] Fault String Returned Instead of the Filtered Content
Hi Shameera, Since I'm in dev service, didn't have much time to work on this. I have created unit test cases for this scenario and attached the new diff. Thanks, On Mon, Sep 29, 2014 at 7:16 AM, Shameera Rathnayaka shameerai...@gmail.com wrote: Hi Rajith, Unfortunately, for me there is no way to test above patch, if you could attach a patch for current axis2 trunk then I can have a look. I tried with the attached patch with axis2 trunk it gave me conflicts. And it is good to add an integration test to cover this improvement then we won't break this in future. Regards, Shameera. On Mon, Sep 29, 2014 at 12:11 AM, Rajith Vitharana raji...@wso2.com wrote: ping On Tue, Sep 23, 2014 at 3:12 PM, Rajith Vitharana raji...@wso2.com wrote: Hi All, Regarding the jira [1]. In DSS when using json output mapping we can filter out the output fields according to the person's role who invokes the service. If he have permission, those fields will be visible to them. If he doesn't have permission, only other fields will be visible to him. This is explained in [2] But as the jira says, this feature doesn't work in standalone pack. In wsdl file of the data service, these fields are marked as optional by adding 'minOccurs=0' attribute. But the GsonXMLStreamWriter.java class in axis2-json module doesn't consider this minOccurs attribute when converting the xml output to json. This causes the error mentioned in the jira [1]. I have changed the source to avoid this situation and consider the minOccurs attribute when doing the conversion part. Is this the better way of resolving this problem? If so please review the code and commit to kernel patch 009. [1] - https://wso2.org/jira/browse/DS-963 [2] - https://docs.wso2.com/display/DSS321/JSON+Mapping Thanks -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Best Regards, Shameera Rathnayaka. email: shameera AT apache.org , shameerainfo AT gmail.com Blog : http://shameerarathnayaka.blogspot.com/ -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ Index: src/org/apache/axis2/json/gson/GsonXMLStreamWriter.java === --- src/org/apache/axis2/json/gson/GsonXMLStreamWriter.java (revision 207992) +++ src/org/apache/axis2/json/gson/GsonXMLStreamWriter.java (working copy) @@ -131,7 +131,11 @@ private void writeStartJson(JsonObject jsonObject) throws IOException { if (jsonObject.getType() == JSONType.OBJECT) { -jsonWriter.name(jsonObject.getName()); +try { +jsonWriter.name(jsonObject.getName()); +} catch (Exception e) { +e.printStackTrace(); +} } else if (jsonObject.getType() == JSONType.ARRAY) { jsonWriter.name(jsonObject.getName()); jsonWriter.beginArray(); @@ -208,6 +212,11 @@ if (miniStack.isEmpty()) { if (!queue.isEmpty()) { JsonObject queObj = queue.peek(); +if (!queObj.getName().equals(localName) queObj.getMinOccurs() == 0 + (stack.isEmpty() || !stack.peek().getName().equals(localName))){ +queue.poll(); +queObj = queue.peek(); +} if (queObj.getName().equals(localName)) { if (flushObject != null) { if (topNestedArrayObj != null flushObject.getType() == JSONType.NESTED_ARRAY Index: src/org/apache/axis2/json/gson/factory/JsonObject.java === --- src/org/apache/axis2/json/gson/factory/JsonObject.java (revision 207992) +++ src/org/apache/axis2/json/gson/factory/JsonObject.java (working copy) @@ -25,6 +25,7 @@ private JSONType type; private String valueType; private String namespaceUri; +private long minOccurs; public JsonObject(String name, JSONType type, String valueType , String namespaceUri) { this.name = name; @@ -48,4 +49,12 @@ public String getNamespaceUri() { return namespaceUri; } + +public void setMinOccurs(long minOccurs) { +this.minOccurs = minOccurs; +} + +public long getMinOccurs() { +return minOccurs; +} } Index: src/org/apache/axis2/json/gson/factory/XmlNode.java === --- src/org/apache/axis2/json/gson/factory/XmlNode.java (revision 207992) +++ src/org/apache/axis2/json/gson/factory/XmlNode.java (working copy) @@ -30,6 +30,7 @@ private ListXmlNode childrenList
Re: [Dev] Unable to send payload with delete request in ESB connector
Hi, You are sending a DELETE request means to delete a particular resource from the system. You can define which resource to be deleted in url by id/name or any other identifier of the resource. Why you need to send a payload in a DELETE request? Touched, not typed. Erroneous words are a feature, not a typo. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Why does ESB source consume so much disk space?
Hi, Chunk7 contains not only ESB source right. Built artifacts by default are stored in ~/.m2 local repository. Only built products packs are in products/product-name/modules/distribution/target. Touched, not typed. Erroneous words are a feature, not a typo. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error when running Cassandra: java.lang.ClassNotFoundException
Hi Vishanth, Can you please copy Cassandra into some directory under your $HOME directory and execute *./cassandra* command after moving to the *$CASSANDRA_HOME/bin* directory. Also make sure to switch your JVM to some jdk 1.7 version prior to run the above command since Cassandra needs jdk 1.7or later version. As Niranda mentioned this could be a permission issue. Setting the $CASSANDRA_HOME environment variable is also optional. Thanks Regards, On Mon, Oct 6, 2014 at 5:58 PM, Niranda Perera nira...@wso2.com wrote: Hi Vishanth, this might be a permission issue since you have installed in the /opt/ directory. alter the permissions of the directory (perform with care!!!) or try manually downloading a cassandra release as mentioned here [1]. [1] http://wiki.apache.org/cassandra/GettingStarted cheers On Mon, Oct 6, 2014 at 5:10 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Reported a similar error here. [1] [1] http://stackoverflow.com/questions/16851308/i-am-getting-this-error-when-i-am-starting-cassandra-server Regards On Mon, Oct 6, 2014 at 4:54 PM, Vishanth Balasubramaniam vishan...@wso2.com wrote: Hi, Getting this following error when I run Cassandra. root@instance-0001:/opt/cassandra/bin# cassandra root@instance-0001:/opt/cassandra/bin# Exception in thread main java.lang.NoClassDefFoundError: org/apache/cassandra/service/CassandraDaemon Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.service.CassandraDaemon at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: org.apache.cassandra.service.CassandraDaemon. Program will exit. I tried the commands cassandra, cassandra -f, cassandra -f start, which all prompted me the same error. I believe this could be because of incorrect Classpath, I would like to know how to set the Classpath correctly. Thank you, -- *Vishanth Balasubramaniam* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94771737718* about me: *http://about.me/vishanth http://about.me/vishanth* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ravindra Ranwala Software Engineer WSO2, Inc: http://wso2.com http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg Mobile: +94714198770 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to run selenium test cases in App Factory
*Test location:* [1] *Prerequisites:* 1. Create a tenant and application 2. Go to the build server, login as un:jenkinssystemadmin/ pw:admin and change the configuration setting # of executors = 1 3. Create API giving following information Name: testAPI001, Version: 1.0.0 Production url : http://weather.yahooapis.com/forecastrss?w=2442047u=c Sandbox url: http://weather.yahooapis.com/forecastrss?w=2502265 4. Update [2] DataTables.xml file changing the following properties Table name=initializeTenantLogin Header Column name=TenantAdminName type=String / Column name=TenantAdminPassword type=String / Column name=TenantDomain type=String / Column name=AppFactoryUserCommonPassword type=String / Column name=mainURL type=String / /Header Row Valuevtest011/Value Value123456/Value Value@vtest011.com/Value Value123456/Value Valuehttps://appfactory.private.wso2.com:9443/appmgt//Value /Row /Table *Run the tests* go to [1]/scenario1 folder execute mvn test *NOTE:* - You can enable/disable test scenarios changing the first value of each row of Table named 'dtScenario1' Table name=dtScenario1 Row Valuetrue/Value - To test upload application, make sure to change the file paths Value//home//appfactory//Desktop//AF_Virtusa//example.war/Value [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/selinium-tests/ [2] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/selinium-tests/scenario1/src/main/resources/data/DataTables.xml Thanks Amalka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Why does ESB source consume so much disk space?
Hi Udara, I checked my maven repo and it is not that large. So the build artifacts does not consume that much space. Anyways, if this is the usual disk space consumption of source, let it be. Concept of chunks is also another thing I need clarification. Can you help me understand it? As per the release matrix[1] http://wso2.com/products/carbon/release-matrix/ chunk 7 contains following. - Business Process Server 3.2.0 - Enterprise Service Bus 4.8.1 Does this mean chunk 7 only contains above products or does it contain above products plus other products included in the preceding chunks? Thanks. [1] http://wso2.com/products/carbon/release-matrix/ On Tue, Oct 7, 2014 at 8:47 AM, Udara Liyanage ud...@wso2.com wrote: Hi, Chunk7 contains not only ESB source right. Built artifacts by default are stored in ~/.m2 local repository. Only built products packs are in products/product-name/modules/distribution/target. Touched, not typed. Erroneous words are a feature, not a typo. -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 lahi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] jaggery file upload
file.saveAs(String targetLocation); this saves a given file relative to the Jaggery application context root Is there anyway to save the file according to absolute path? Thanks. -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] jaggery file upload
Hi Lochana! Is there any specific reason to use an absolute path instead of a relative one? By keeping a relative path, you can keep your code more flexible which I think to be the best option! Cheers! *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Tue, Oct 7, 2014 at 9:37 AM, Lochana Menikarachchi loch...@wso2.com wrote: file.saveAs(String targetLocation); this saves a given file relative to the Jaggery application context root Is there anyway to save the file according to absolute path? Thanks. -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ 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] jaggery file upload
Hi, you can do it. absolute path var absolute = function (path) { var systemProcess = require('process'); var parent = 'file:///' + (systemProcess.getProperty('jaggery.home') || systemProcess.getProperty('carbon.home')).replace(/[\\]/g, '/').replace(/^[\/]/g, ''); return parent + MODULE_PATH + path; }; [1] https://github.com/Madhuka/sugarcane/blob/master/core/sugarcane/scripts/engine/test.js On Tue, Oct 7, 2014 at 9:37 AM, Lochana Menikarachchi loch...@wso2.com wrote: -- Cheers, Madhuka Udantha http://madhukaudantha.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Add Cassandra 1.2.13.wso2v4 into Orbit repository
Hi Maheshika, Just spotted some issue in the pull request sent. Let me fix it and resubmit. Cheers, Prabath On Tue, Oct 7, 2014 at 5:56 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, Would you be able to do $subject and deploy the same into the nexus repo? The corresponding pull request containing all the required changes can be located at [1]. Please review and merge. [1] https://github.com/wso2/orbit/pull/27 Cheers, Prabath -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How do we restart the Private PAAS
Hi Gayan, AFAIK these options only valid for restart Stratos scenario. If we stop the EC2 instance and start it again, the public and private IPs of that EC2 instance got changed. Then the spin up cartridge instances didn't aware of this new IPs of Stratos. Thanks ! On Tue, Oct 7, 2014 at 9:59 AM, Gayan Gunarathne gay...@wso2.com wrote: Adding dev list Use case of this is EC2 instance stop and start again.In this case what is our recommendation procedure for user to follow start the private PASS again? AFAIK there are two options in the boot.sh. (-s and -t) -s for silent mode -t for configure services only mode Are we recommend user to use one of those options and start the private pass again? AFAIU -t option will be fitted in to this type of scenario. Thanks, Gayan On Mon, Oct 6, 2014 at 7:10 PM, Udara Liyanage ud...@wso2.com wrote: Hi, If the instances are getting restarted, that means instances are not getting activated. Look for puppet logs and agent log for the issue. If you want to terminate the instances and clean the system. First un deploy services. Then instances will be terminated. After that execute clean.sh if you want to clean the system. @gayan you can use wso2 dev list for this kind of e-mails right ? On Mon, Oct 6, 2014 at 6:57 PM, Gayan Gunarathne gay...@wso2.com wrote: Hi All, What is our recommended method to restart the Private PASS? This need to be done when the EC2 instance is getting restarted. I have used the boot.sh -t option. But still I need to run the clean.sh.Is n't ? There is a JIRA related to this.[1] [1] https://wso2.org/jira/browse/PAAS-139 Thanks, Gayan -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 -- Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985 -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] jaggery file upload
Dilan, There is a specific requirement.. We need to upload a file to a given location Madhuka, That method returns absolute path.. What I want is to upload a file to a given location (that is when absolute path is given as a string) Thanks. On Tue, Oct 7, 2014 at 9:55 AM, madhuka udantha madhukaudan...@gmail.com wrote: Hi, you can do it. absolute path var absolute = function (path) { var systemProcess = require('process'); var parent = 'file:///' + (systemProcess.getProperty('jaggery.home') || systemProcess.getProperty('carbon.home')).replace(/[\\]/g, '/').replace(/^[\/]/g, ''); return parent + MODULE_PATH + path; }; [1] https://github.com/Madhuka/sugarcane/blob/master/core/sugarcane/scripts/engine/test.js On Tue, Oct 7, 2014 at 9:37 AM, Lochana Menikarachchi loch...@wso2.com wrote: -- Cheers, Madhuka Udantha http://madhukaudantha.blogspot.com -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [DEV] MB 3.0.0 M1 Status of Tests Carried and Fixes Done
Hi All, Yesterday we did a hackathon on testing MB both as a stand alone and in clustered setup to identify the stability. The following are the issues we encountered and its status in relation to stand alone testing conducted. Hasitha will be able to provide more insight on the cluster wide tests carried out. The following use cases were tested, 1) Testing growing queue count where having one publisher and a subscriber for each queue and creating multiple queues, when the queue count started to grow 10 we observed the following, [2014-10-06 12:41:55,687] INFO {org.wso2.andes.subscription.SubscriptionStore} - New Local Subscription Added [MBQ2]ID= 3@NodeQueue_NODEpuppet.wso2.com/127.0.0.1/D=true/X=false/O=null/E=amq.direct/ET=org.wso2.andes.server.exchange.DirectExchange$1@4a714747/EUD=0/S=true Exception in thread pool-31-thread-1 java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859) at java.util.ArrayList$Itr.next(ArrayList.java:831) at org.wso2.andes.server.slot.SlotDeliveryWorker.run(SlotDeliveryWorker.java:78) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) We identified the issues for the above (which was due to having a iterative ArrayList which was modified in the QueueDeliveryWorker) Darshana worked on a fix for it. Also in the same test case we noticed the following when sending large number of messages, [2014-10-06 12:59:35,126] ERROR {org.wso2.andes.server.cassandra.QueueDeliveryWorker} - Flusher queue is growing, and this should not happen. Please check cassandra Flusher I believe it was also identified by Sajini, she was working on a fix for it. She will provide an update for it. 2) Testing through binding multiple subscribers to a particular queue and having one publisher publishing to it (Many to One) Bound upto 10 subscribers to a queue. published messages starting from 10-10, all the messages were successfully delivered and distributed among the subscribers. But noticed a performance decrees when the number of subscribers incremented event if the publishing rate was the same. 3) Testing focusing on multiple subscribers and multiple publishers (Many to Many) Where subscriber count was incremented and in parallel the number of publishers were incremented. The subscriber count was incremented upto 10 and the publisher count was incremented upto 5. In this case all the messages were delivered successfully. 4) Testing having one subscriber and multiple publishers (One to Many) In this case 10,000 messages were sent from each publisher and had one subscriber receiving the messages overall the expected message count was 50,000 but we received only 40,000. Also the error which appeared in 1 st case [2014-10-06 12:59:35,126] ERROR {org.wso2.andes.server.cassandra.QueueDeliveryWorker} - Flusher queue is growing, and this should not happen. Please check cassandra Flusher was noticed. We opened up jiras for the relevant issues and in the process of fixing them. Thanks, Pamod -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error Occured When Deploying JaX-RS WebAPP in application Server
Hi all, I have tryed to deploy an Jax-RS app in Application Server .When it deploys, following exception is shown. Is there any work around which solves this issue ? Caused by: java.lang.LinkageError: loader constraint violation: when resolving method org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver; the class loader (instance of org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, org/wso2/securevault/SecretResolverFactory, have different Class objects for the type org/apache/axiom/om/OMElement used in the signature at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210) at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:143) at org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:623) at org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:609) at org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:658) at org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:650) at com.wso2.cpt.service.UserServices.getUsers(UserServices.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Fwd: How do we restart the Private PAAS
-- Forwarded message -- From: Udara Liyanage ud...@wso2.com Date: Tue, Oct 7, 2014 at 10:37 AM Subject: Re: How do we restart the Private PAAS To: Reka Thirunavukkarasu r...@wso2.com Cc: Manula Chathurika Thantriwatte manu...@wso2.com, Gayan Gunarathne gay...@wso2.com, WSO2 Developers' List dev@wso2.org, Nirmal Fernando nir...@wso2.com, Akila Ravihansa Perera raviha...@wso2.com, Dinesh Bandara dine...@wso2.com, Imesh Gunaratne im...@wso2.com, Isuru Haththotuwa isu...@wso2.com, Lasindu Charith lasi...@wso2.com, Lahiru Sandaruwan lahi...@wso2.com, Lakmal Warusawithana lak...@wso2.com, Rajkumar Rajaratnam rajkum...@wso2.com, Isuru Perera isu...@wso2.com, Sajith Kariyawasam saj...@wso2.com, Shiroshica Kulatilake sh...@wso2.com, Chamila De Alwis chami...@wso2.com Hi Gayan, I think I have misunderstood your requirement when I replied last time. I think you are referring to a state where you boot up PP instances are spawned Now you stop the vm which PP is running? I am correct? My first concern is why someone stop the PP instance in a production environment? On Tue, Oct 7, 2014 at 10:29 AM, Reka Thirunavukkarasu r...@wso2.com wrote: Hi If ips are getting changed, can we follow one of these approaches? 1. We unsubscribe and undeploy the cartridges before stopping. May be we can create a script to do that. Later, when they start again we can ask the user to start with -t and configure the relevant services again. In this case, user will loose any configured cartridges with apps. But he can subscribe again with the same git URL. Assumption is that the user kept all the apps modification in the Git. Also, user has to wait a bit to get the system up and running after the restart, since all the cartridge has to be spun again. 2. Another case is to use MB and send the changed ips to cartridge instances using instance-notifier topic and restart cartridge agent. We need to make sure the cluster monitor shouldn't spin any new instances while the cartridge agent is restarting. Are these still feasible solution? If not, is there any other way of handling this? Thanks, Reka On Tue, Oct 7, 2014 at 10:13 AM, Manula Chathurika Thantriwatte manu...@wso2.com wrote: Hi Gayan, AFAIK these options only valid for restart Stratos scenario. If we stop the EC2 instance and start it again, the public and private IPs of that EC2 instance got changed. Then the spin up cartridge instances didn't aware of this new IPs of Stratos. Thanks ! On Tue, Oct 7, 2014 at 9:59 AM, Gayan Gunarathne gay...@wso2.com wrote: Adding dev list Use case of this is EC2 instance stop and start again.In this case what is our recommendation procedure for user to follow start the private PASS again? AFAIK there are two options in the boot.sh. (-s and -t) -s for silent mode -t for configure services only mode Are we recommend user to use one of those options and start the private pass again? AFAIU -t option will be fitted in to this type of scenario. Thanks, Gayan On Mon, Oct 6, 2014 at 7:10 PM, Udara Liyanage ud...@wso2.com wrote: Hi, If the instances are getting restarted, that means instances are not getting activated. Look for puppet logs and agent log for the issue. If you want to terminate the instances and clean the system. First un deploy services. Then instances will be terminated. After that execute clean.sh if you want to clean the system. @gayan you can use wso2 dev list for this kind of e-mails right ? On Mon, Oct 6, 2014 at 6:57 PM, Gayan Gunarathne gay...@wso2.com wrote: Hi All, What is our recommended method to restart the Private PASS? This need to be done when the EC2 instance is getting restarted. I have used the boot.sh -t option. But still I need to run the clean.sh.Is n't ? There is a JIRA related to this.[1] [1] https://wso2.org/jira/browse/PAAS-139 Thanks, Gayan -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 -- Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985 -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ -- Reka Thirunavukkarasu Senior Software Engineer, WSO2, Inc.:http://wso2.com, Mobile: +94776442007 -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 ___ Dev mailing list Dev@wso2.org
Re: [Dev] jaggery file upload
Hi Lochana! Do not know exactly whether their is a way to directly give an absolute path and save the file. BTW, as a workaround, if no such way exists, can you try to create the corresponding relative path for the given absolute one and use the same method provided. Cheers! *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Tue, Oct 7, 2014 at 10:29 AM, Lochana Menikarachchi loch...@wso2.com wrote: Dilan, There is a specific requirement.. We need to upload a file to a given location Madhuka, That method returns absolute path.. What I want is to upload a file to a given location (that is when absolute path is given as a string) Thanks. On Tue, Oct 7, 2014 at 9:55 AM, madhuka udantha madhukaudan...@gmail.com wrote: Hi, you can do it. absolute path var absolute = function (path) { var systemProcess = require('process'); var parent = 'file:///' + (systemProcess.getProperty('jaggery.home') || systemProcess.getProperty('carbon.home')).replace(/[\\]/g, '/').replace(/^[\/]/g, ''); return parent + MODULE_PATH + path; }; [1] https://github.com/Madhuka/sugarcane/blob/master/core/sugarcane/scripts/engine/test.js On Tue, Oct 7, 2014 at 9:37 AM, Lochana Menikarachchi loch...@wso2.com wrote: -- Cheers, Madhuka Udantha http://madhukaudantha.blogspot.com -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ 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] jaggery file upload
Unfortunately, that's not going to work. Shouldn't there be a file uploader in jaggery (that can upload a file to a given location)? On Tue, Oct 7, 2014 at 10:45 AM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Hi Lochana! Do not know exactly whether their is a way to directly give an absolute path and save the file. BTW, as a workaround, if no such way exists, can you try to create the corresponding relative path for the given absolute one and use the same method provided. Cheers! *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Tue, Oct 7, 2014 at 10:29 AM, Lochana Menikarachchi loch...@wso2.com wrote: Dilan, There is a specific requirement.. We need to upload a file to a given location Madhuka, That method returns absolute path.. What I want is to upload a file to a given location (that is when absolute path is given as a string) Thanks. On Tue, Oct 7, 2014 at 9:55 AM, madhuka udantha madhukaudan...@gmail.com wrote: Hi, you can do it. absolute path var absolute = function (path) { var systemProcess = require('process'); var parent = 'file:///' + (systemProcess.getProperty('jaggery.home') || systemProcess.getProperty('carbon.home')).replace(/[\\]/g, '/').replace(/^[\/]/g, ''); return parent + MODULE_PATH + path; }; [1] https://github.com/Madhuka/sugarcane/blob/master/core/sugarcane/scripts/engine/test.js On Tue, Oct 7, 2014 at 9:37 AM, Lochana Menikarachchi loch...@wso2.com wrote: -- Cheers, Madhuka Udantha http://madhukaudantha.blogspot.com -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lochana Menikarachchi Senior Tech Lead WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fwd: How do we restart the Private PAAS
Hi Udara, Yeah this is the requirement. As Manula said this can be happen due to PP host machine crashed. Thanks, Gayan On Tue, Oct 7, 2014 at 10:40 AM, Udara Liyanage ud...@wso2.com wrote: -- Forwarded message -- From: Udara Liyanage ud...@wso2.com Date: Tue, Oct 7, 2014 at 10:37 AM Subject: Re: How do we restart the Private PAAS To: Reka Thirunavukkarasu r...@wso2.com Cc: Manula Chathurika Thantriwatte manu...@wso2.com, Gayan Gunarathne gay...@wso2.com, WSO2 Developers' List dev@wso2.org, Nirmal Fernando nir...@wso2.com, Akila Ravihansa Perera raviha...@wso2.com, Dinesh Bandara dine...@wso2.com, Imesh Gunaratne im...@wso2.com, Isuru Haththotuwa isu...@wso2.com, Lasindu Charith lasi...@wso2.com, Lahiru Sandaruwan lahi...@wso2.com, Lakmal Warusawithana lak...@wso2.com, Rajkumar Rajaratnam rajkum...@wso2.com, Isuru Perera isu...@wso2.com, Sajith Kariyawasam saj...@wso2.com, Shiroshica Kulatilake sh...@wso2.com, Chamila De Alwis chami...@wso2.com Hi Gayan, I think I have misunderstood your requirement when I replied last time. I think you are referring to a state where you boot up PP instances are spawned Now you stop the vm which PP is running? I am correct? My first concern is why someone stop the PP instance in a production environment? On Tue, Oct 7, 2014 at 10:29 AM, Reka Thirunavukkarasu r...@wso2.com wrote: Hi If ips are getting changed, can we follow one of these approaches? 1. We unsubscribe and undeploy the cartridges before stopping. May be we can create a script to do that. Later, when they start again we can ask the user to start with -t and configure the relevant services again. In this case, user will loose any configured cartridges with apps. But he can subscribe again with the same git URL. Assumption is that the user kept all the apps modification in the Git. Also, user has to wait a bit to get the system up and running after the restart, since all the cartridge has to be spun again. 2. Another case is to use MB and send the changed ips to cartridge instances using instance-notifier topic and restart cartridge agent. We need to make sure the cluster monitor shouldn't spin any new instances while the cartridge agent is restarting. Are these still feasible solution? If not, is there any other way of handling this? Thanks, Reka On Tue, Oct 7, 2014 at 10:13 AM, Manula Chathurika Thantriwatte manu...@wso2.com wrote: Hi Gayan, AFAIK these options only valid for restart Stratos scenario. If we stop the EC2 instance and start it again, the public and private IPs of that EC2 instance got changed. Then the spin up cartridge instances didn't aware of this new IPs of Stratos. Thanks ! On Tue, Oct 7, 2014 at 9:59 AM, Gayan Gunarathne gay...@wso2.com wrote: Adding dev list Use case of this is EC2 instance stop and start again.In this case what is our recommendation procedure for user to follow start the private PASS again? AFAIK there are two options in the boot.sh. (-s and -t) -s for silent mode -t for configure services only mode Are we recommend user to use one of those options and start the private pass again? AFAIU -t option will be fitted in to this type of scenario. Thanks, Gayan On Mon, Oct 6, 2014 at 7:10 PM, Udara Liyanage ud...@wso2.com wrote: Hi, If the instances are getting restarted, that means instances are not getting activated. Look for puppet logs and agent log for the issue. If you want to terminate the instances and clean the system. First un deploy services. Then instances will be terminated. After that execute clean.sh if you want to clean the system. @gayan you can use wso2 dev list for this kind of e-mails right ? On Mon, Oct 6, 2014 at 6:57 PM, Gayan Gunarathne gay...@wso2.com wrote: Hi All, What is our recommended method to restart the Private PASS? This need to be done when the EC2 instance is getting restarted. I have used the boot.sh -t option. But still I need to run the clean.sh.Is n't ? There is a JIRA related to this.[1] [1] https://wso2.org/jira/browse/PAAS-139 Thanks, Gayan -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 -- Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985 -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ -- Reka Thirunavukkarasu Senior Software Engineer, WSO2, Inc.:http://wso2.com, Mobile: +94776442007 -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 --
Re: [Dev] How do we restart the Private PAAS
Hi Gayan, Yes, we need to sync the PP new IP with the existing instances. On Tue, Oct 7, 2014 at 11:11 AM, Gayan Gunarathne gay...@wso2.com wrote: Hi, On Tue, Oct 7, 2014 at 10:29 AM, Reka Thirunavukkarasu r...@wso2.com wrote: Hi If ips are getting changed, can we follow one of these approaches? 1. We unsubscribe and undeploy the cartridges before stopping. May be we can create a script to do that. Later, when they start again we can ask the user to start with -t and configure the relevant services again. In this case, user will loose any configured cartridges with apps. But he can subscribe again with the same git URL. Assumption is that the user kept all the apps modification in the Git. Also, user has to wait a bit to get the system up and running after the restart, since all the cartridge has to be spun again. AFAIU in this scenario we will spawn new instances. So this will loose the works in previous instances.Is n't? 2. Another case is to use MB and send the changed ips to cartridge instances using instance-notifier topic and restart cartridge agent. We need to make sure the cluster monitor shouldn't spin any new instances while the cartridge agent is restarting. Yeah in this scenario IP of the EC2 instance getting changed.I guess we need to sync the PP new IP with the existing instances. Are these still feasible solution? If not, is there any other way of handling this? Thanks, Reka On Tue, Oct 7, 2014 at 10:13 AM, Manula Chathurika Thantriwatte manu...@wso2.com wrote: Hi Gayan, AFAIK these options only valid for restart Stratos scenario. If we stop the EC2 instance and start it again, the public and private IPs of that EC2 instance got changed. Then the spin up cartridge instances didn't aware of this new IPs of Stratos. Thanks ! On Tue, Oct 7, 2014 at 9:59 AM, Gayan Gunarathne gay...@wso2.com wrote: Adding dev list Use case of this is EC2 instance stop and start again.In this case what is our recommendation procedure for user to follow start the private PASS again? AFAIK there are two options in the boot.sh. (-s and -t) -s for silent mode -t for configure services only mode Are we recommend user to use one of those options and start the private pass again? AFAIU -t option will be fitted in to this type of scenario. Thanks, Gayan On Mon, Oct 6, 2014 at 7:10 PM, Udara Liyanage ud...@wso2.com wrote: Hi, If the instances are getting restarted, that means instances are not getting activated. Look for puppet logs and agent log for the issue. If you want to terminate the instances and clean the system. First un deploy services. Then instances will be terminated. After that execute clean.sh if you want to clean the system. @gayan you can use wso2 dev list for this kind of e-mails right ? On Mon, Oct 6, 2014 at 6:57 PM, Gayan Gunarathne gay...@wso2.com wrote: Hi All, What is our recommended method to restart the Private PASS? This need to be done when the EC2 instance is getting restarted. I have used the boot.sh -t option. But still I need to run the clean.sh.Is n't ? There is a JIRA related to this.[1] [1] https://wso2.org/jira/browse/PAAS-139 Thanks, Gayan -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 -- Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985 -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ -- Reka Thirunavukkarasu Senior Software Engineer, WSO2, Inc.:http://wso2.com, Mobile: +94776442007 -- Best Regards, Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : gay...@wso2.com | mobile : +94 766819985 -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error Occured When Deploying JaX-RS WebAPP in application Server
Hi, I haven't come across this issue. But found this mail thread [1] and just give a try.. [1] http://mail.wso2.org/mailarchive/stratos-dev/2011-May/003062.html On Tue, Oct 7, 2014 at 10:38 AM, Tharindu Dharmarathna tharin...@wso2.com wrote: Hi all, I have tryed to deploy an Jax-RS app in Application Server .When it deploys, following exception is shown. Is there any work around which solves this issue ? Caused by: java.lang.LinkageError: loader constraint violation: when resolving method org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver; the class loader (instance of org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, org/wso2/securevault/SecretResolverFactory, have different Class objects for the type org/apache/axiom/om/OMElement used in the signature at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92) at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854) at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210) at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150) at org.apache.axis2.client.ServiceClient.init(ServiceClient.java:143) at org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:623) at org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:609) at org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:658) at org.wso2.cpt.db.CustomerproducttracDefault100Stub.init(CustomerproducttracDefault100Stub.java:650) at com.wso2.cpt.service.UserServices.getUsers(UserServices.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) -- *Tharindu Dharmarathna*Associate Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94779109091 %2B94779109091* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Dinesh J. Weerakkody* Software Engineer WSO2 Inc. lean | enterprise | middleware M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Unable to send payload with delete request in ESB connector
Hi Udara, For that particular request we need to send the resource id in request body as a json array. In their api method we can't send the id via url. like specified here: https://developer.spotify.com/web-api/remove-tracks-playlist/ On Tue, Oct 7, 2014 at 8:43 AM, Udara Liyanage ud...@wso2.com wrote: Hi, You are sending a DELETE request means to delete a particular resource from the system. You can define which resource to be deleted in url by id/name or any other identifier of the resource. Why you need to send a payload in a DELETE request? Touched, not typed. Erroneous words are a feature, not a typo. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com thili...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev