Re: [Dev] how to pass credentials - using a AXIOM (client)
Thanks Nuwan for sharing an useful resource. Will try this out.. On Wed, Sep 10, 2014 at 10:45 AM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi The below source[1] is for secure axis2 service client implementation. please refer [1] and This may help to resolve your issue [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/test-automation-framework/4.2.6/org.wso2.carbon.automation.utils/src/main/java/org/wso2/carbon/automation/utils/axis2client/SecureAxisServiceClient.java Thanks, Nuwanw On Wed, Sep 10, 2014 at 9:56 AM, Asok Perera as...@wso2.com wrote: Hi, I have the same question and please check below how I tried to implement this. -- System.setProperty(javax.net.ssl.trustStore, /Users/asok/Documents/wso2esb-4.8.1/repository/resources/security/client-truststore.jks ); System.setProperty(javax.net.ssl.trustStorePassword, wso2carbon); options = new Options(); try { options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, loadPolicy( chb_policy_1.xml)); options.setUserName(admin); options.setPassword(admin); } catch (Exception e1) { e1.printStackTrace(); } - Im getting following error, even though I have put the chb_policy_1.xml file. org.apache.axis2.AxisFault: *Unable to engage module : rampart* at org.apache.axis2.client.ServiceClient.engageModule( ServiceClient.java:363) at client_AXIOM.Client.init(Client.java:54) at client_AXIOM.Client.main(Client.java:120) org.apache.axis2.AxisFault: Address information does not exist in the Endpoint Reference (EPR).The system cannot infer the transport mechanism. Can anyone point out how to implement this as AXIOM client ? BR *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ lean.enterprise.middleware Mobile: +94722241032 On Tue, Sep 9, 2014 at 8:46 PM, Vimalanathan Rajeevan rajeev...@wso2.com wrote: Hi Lahiru, Can I know what kind of error you are getting when using AXIOM client and passing credentials in the above way? Best Regards, V.Rajeevan Software Engineer, WSO2 Inc. :http://wso2.com Mobile : +94 773090875 Email : rajeev...@wso2.com On Tue, Sep 9, 2014 at 5:45 PM, Lahiru Cooray lahi...@wso2.com wrote: Hi, I have created a non secured web service and secured it using ESB. When I invoke the service using an ADB client it worked properly. I used the below code to pass the credentials /// HttpTransportProperties.Authenticator authenticator = new HttpTransportProperties.Authenticator(); authenticator.setUsername(admin); authenticator.setPassword(admin); stub._getServiceClient().getOptions() .setProperty(HTTPConstants.AUTHENTICATE, authenticator); stub ._getServiceClient() .getOptions() .setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE); /// *And I'm facing a problem when I try to do the same using an AXIOM client. I need to know how to pass credentials when using an AXIOM client?* -- *Lahiru Cooray* Software Engineer WSO2, Inc.;http://wso2.com/ lean.enterprise.middleware Mobile: +94 715 654154 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lahiru Cooray* Software Engineer WSO2, Inc.;http://wso2.com/ lean.enterprise.middleware Mobile: +94 715 654154 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Codenvy SDK and Codenvy WSO2 integrated SDK for WSO DEV-Studio ESB Editor implementation
Yes, first you should create a Codenvy extension project, because AFAIK Codenvy extension project is not a just GWT project it also requires couple more meta files, So once you create Codenvy extension project then you can import it to what ever IDE you prefer to develop the project Thanks and Regards /Jasintha On Wed, Sep 10, 2014 at 11:06 AM, Awanthika Senarath awanth...@wso2.com wrote: Hi, The following differences were observed in analyzing the two project mentioned in $Subject in-order to get a basic idea on integrating an editor to Codenvy SDK 1.In IDE.gwt.xml inherit the codenvy extension inherits name='com.codenvy.ide.ext.wso2.WSO2'/ 2. In IDE_dev.gwt.xml inherit similarly (I fail to understand why a single project has two gwt.xml files) inherits name='com.codenvy.ide.ext.wso2.WSO2'/ 3. In main pom.xml add the property within the properties tag codenvy-plugin-wso2-version1.0.0-M1-SNAPSHOT/codenvy-plugin-wso2-version 4. In assembly-platformapi pom.xml add codenvy-ext-wso2-core as a dependency 5. In assmbly-ide pom.xml add codenvy-ext-wso2-core as a dependency 6. have the wso2-editor-1.0.0-M1-SNAPSHOT.jar and codenvy-ext-wso2-core-1.0.0-M1-SNAPSHOT.jar in the following locations: *a.* sdk/assembly-ide/target/assembly-ide-3.0.0/WEB-INF/lib/ *wso2-editor-1.0.0-M1-SNAPSHOT.jar* *b.* sdk/assembly-platform-api/target/api/WEB-INF/lib/ *wso2-editor-1.0.0-M1-SNAPSHOT.jar* *c.* sdk/assembly-sdk/target/tomcat-ide/webapps/api/WEB-INF/lib/ *wso2-editor-1.0.0-M1-SNAPSHOT.jar* *d.* sdk/assembly-ide/target/assembly-ide-3.0.0/WEB-INF/lib/ *codenvy-ext-wso2-core-1.0.0-M1-SNAPSHOT.jar* *e.* sdk/assembly-platform-api/target/api/WEB-INF/lib/ *codenvy-ext-wso2-core-1.0.0-M1-SNAPSHOT.jar* *f.* sdk/assembly-sdk/target/tomcat-ide/webapps/api/WEB-INF/lib/ *codenvy-ext-wso2-core-1.0.0-M1-SNAPSHOT.jar* Therefore our approach needs to be not developing a basic GWT project as it will not be extendable from Codenvy as a plugin. We need to write our GWT project as a codenvy extension to be possible to be integrated with codenvy-sdk. Approach to follow- create a basic Codenvy extension project template from codenvy- Develop our editor using the generated project's Entry point extensions and MVP structure (preferably using IntelliJ) Please advice on this approach. thanks and regards Awanthika Senarath Software Engineer, WSO2 Inc. Mobile: +94717681791 -- *Jasintha Dasanayake* *Senior Software EngineerWSO2 Inc. | http://wso2.com http://wso2.com/lean . enterprise . middleware* *mobile :- 0711368118* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Graceful Restart is not working
On Wed, Sep 10, 2014 at 6:49 AM, Nipuni Perera nip...@wso2.com wrote: Hi, Yes. I can add a null check to indexingConfig element and continue only if the value is available (But it will add the whole method execution inside constructor RegistryConfigLoader() to an if block - line 75 to 150 of [1]). Is this preferable? That's a readability issue! :) I'm not sure about the code, but it sounds like you could move this whole block to a separate method. public RegistryConfigLoader() { try { FileInputStream fileInputStream = new FileInputStream(getConfigFile()); StAXOMBuilder builder = new StAXOMBuilder( CarbonUtils.replaceSystemVariablesInXml(fileInputStream)); OMElement configElement = builder.getDocumentElement(); OMElement indexingConfig = configElement.getFirstChildWithName( new QName(indexingConfiguration)); if (indexingConfig != null) { //newly added if block ... ... } } } catch (FileNotFoundException e) { // This virtually cannot happen as registry.xml is necessary to start up the registry log.error(registry.xml has not been found, e); } catch (RegistryException e) { log.error(e.getMessage(),e); } catch (XMLStreamException e) { String msg = error building registry.xml, check for badly formed xml; log.error(msg, e); } catch (CarbonException e) { log.error(An error occurred during system variable replacement, e); } } It seems if the indexingConfig is null, no need to call this constructor. RegistryConfigLoader() is called inside IndexingManager() constructor. private IndexingManager() { try { registry = Utils.getRegistryService().getRegistry(CarbonConstants.REGISTRY_SYSTEM_USERNAME); registryConfig = new RegistryConfigLoader(); // call to constructor RegistryConfigLoader() indexer = new AsyncIndexer(); } catch (RegistryException e) { log.error(Could not initialize registry for indexing, e); } } Can't we check indexingConfig value before calling RegistryConfigLoader() ? [1] https://github.com/Nipuni/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/src/main/java/org/wso2/carbon/registry/indexing/RegistryConfigLoader.java Thanks, Nipuni On Wed, Sep 10, 2014 at 8:53 AM, Kasun Gajasinghe kas...@wso2.com wrote: As a best practice, do not catch the Exception class, instead catch specific subclasses. But, you do not need to catch any exceptions in this particular case? Can't you just verify whether the indexingConfiguration element is available or not? KasunG On Wed, Sep 10, 2014 at 4:39 AM, Nipuni Perera nip...@wso2.com wrote: Hi, I am working on issue[1]. I could find that the RegistryConfigLoader() returns a null value. (line 73 in [2]). OMElement indexingConfig = configElement.getFirstChildWithName(new QName(indexingConfiguration)); This value is used in several places. but NPE is thrown in line 88, lastAccessTimeLocation = indexingConfig.getFirstChildWithName(new QName(lastAccessTimeLocation)).getText(); as the catch clause catches only catch (OMException e) { ... // set default value } while in other places (eg: line 78,79) it is catch (Exception e) { ... // set default value } This exception occurred due to a missing XML elements in registry.xml. This missing element ( indexingConfiguration /indexingConfiguration ) will be used if the product is using registry search feature. But this NPE should be handled for the products that does not use this feature. This can be fixed adding similar catch clause (catching Exception e ) in the catch clause(line 90,91) (current implementation use catch clauses to set default values if an exception occurs. Adding an extra catch clause to the later try block can be used to add similar behavior). Is there a better way to handle this? [1] https://wso2.org/jira/browse/CARBON-14904 [2] https://githubc.com/Nipuni/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/src/main/java/org/wso2/carbon/registry/indexing/RegistryConfigLoader.java https://github.com/Nipuni/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/src/main/java/org/wso2/carbon/registry/indexing/RegistryConfigLoader.java Thanks, Nipuni -- Nipuni Perera Software Engineer; WSO2 Inc.; http://wso2.com Email: nip...@wso2.com Git hub profile: https://github.com/nipuni Mobile: +94 (71) 5626680 http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev --
Re: [Dev] Graceful Restart is not working
Hi All, We have already discussed this issue in the mail thread [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. Rather than checking the null point, I feel like we have to investigate why the registry's search feature bundle getting included to the products which are not using registry search feature ( BPS ). @Ajith:- You thoughts on this Regards, Firzhan On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi, On 10 September 2014 10:19, Nipuni Perera nip...@wso2.com wrote: Hi, Yes. I can add a null check to indexingConfig element and continue only if the value is available (But it will add the whole method execution inside constructor RegistryConfigLoader() to an if block - line 75 to 150 of [1]). Is this preferable? public RegistryConfigLoader() { try { FileInputStream fileInputStream = new FileInputStream(getConfigFile()); StAXOMBuilder builder = new StAXOMBuilder( CarbonUtils.replaceSystemVariablesInXml(fileInputStream)); OMElement configElement = builder.getDocumentElement(); OMElement indexingConfig = configElement.getFirstChildWithName( new QName(indexingConfiguration)); if (indexingConfig != null) { //newly added if block ... ... } } } catch (FileNotFoundException e) { // This virtually cannot happen as registry.xml is necessary to start up the registry log.error(registry.xml has not been found, e); } catch (RegistryException e) { log.error(e.getMessage(),e); } catch (XMLStreamException e) { String msg = error building registry.xml, check for badly formed xml; log.error(msg, e); } catch (CarbonException e) { log.error(An error occurred during system variable replacement, e); } } It seems if the indexingConfig is null, no need to call this constructor. RegistryConfigLoader() is called inside IndexingManager() constructor. private IndexingManager() { try { registry = Utils.getRegistryService().getRegistry(CarbonConstants.REGISTRY_SYSTEM_USERNAME); registryConfig = new RegistryConfigLoader(); // call to constructor RegistryConfigLoader() indexer = new AsyncIndexer(); } catch (RegistryException e) { log.error(Could not initialize registry for indexing, e); } } Can't we check indexingConfig value before calling RegistryConfigLoader() ? +1 to add a null check and deal with this. As to not calling RegistryConfigLoader if indexingConfig is not present, isn't RegistryConfigLoader there to read the whole registry.xml file and indexingConfig is only a part of that? If so, I guess we do need to call RegistryConfigLoader() regardless of whether indexingConfig is present or not. Maybe the GREG team can give better input on this. Also, this exact same code segment was discussed before in thread [Dev] Missing configuration in registry.xml causes OSGi services to be unsatisfied [1], but guess I forgot to raise a JIRA under that... :-). Can you look into that thread as well and if it is possible to add a touchpoint as well as suggested in that thread? [1] http://mail.wso2.org/mailarchive/dev/2014-April/029358.html Thanks, Lasantha [1] https://github.com/Nipuni/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/src/main/java/org/wso2/carbon/registry/indexing/RegistryConfigLoader.java Thanks, Nipuni On Wed, Sep 10, 2014 at 8:53 AM, Kasun Gajasinghe kas...@wso2.com wrote: As a best practice, do not catch the Exception class, instead catch specific subclasses. But, you do not need to catch any exceptions in this particular case? Can't you just verify whether the indexingConfiguration element is available or not? KasunG On Wed, Sep 10, 2014 at 4:39 AM, Nipuni Perera nip...@wso2.com wrote: Hi, I am working on issue[1]. I could find that the RegistryConfigLoader() returns a null value. (line 73 in [2]). OMElement indexingConfig = configElement.getFirstChildWithName(new QName(indexingConfiguration)); This value is used in several places. but NPE is thrown in line 88, lastAccessTimeLocation = indexingConfig.getFirstChildWithName(new QName(lastAccessTimeLocation)).getText(); as the catch clause catches only catch (OMException e) { ... // set default value } while in other places (eg: line 78,79) it is catch (Exception e) { ... // set default value } This exception occurred due to a missing XML elements in registry.xml. This missing element ( indexingConfiguration /indexingConfiguration ) will be used
Re: [Dev] Build failed in Jenkins: product-as #230
Thanks! that would help. But it might not be the ultimate solution. It could easily fill up the disk space again. IMO we would need some process to clean the old artifacts from the disk.. On Wed, Sep 10, 2014 at 11:26 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Supun The Infra team will be increasing the disk space for the Jenkins build machine. On Wed, Sep 10, 2014 at 11:06 AM, Supun Malinga sup...@wso2.com wrote: Hi Maheshika, Error says builder is out of space. Can we clean it up please.. thanks, On Wed, Sep 10, 2014 at 3:25 AM, cbuil...@wso2.org wrote: See https://wso2.org/jenkins/job/product-as/230/ -- [...truncated 3826 lines...] at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185) at hudson.maven.Maven3Builder.call(Maven3Builder.java:141) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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: java.io.IOException: No space left on device [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen (3-p2-profile-generation) on project wso2appserver-profile-gen: P2 publisher return code was 13 - [Help 1] at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:345) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) [ERROR] at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:316) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149) [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233) at java.io.BufferedWriter.close(BufferedWriter.java:266) at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94) [ERROR] Re-run Maven using the -X switch to enable full debug logging. at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:109) at hudson.model.Fingerprint.save(Fingerprint.java:1160) [ERROR] at hudson.model.Fingerprint.save(Fingerprint.java:1110) at hudson.model.Fingerprint.add(Fingerprint.java:906) at hudson.model.Fingerprint.add(Fingerprint.java:898) [ERROR] For more information about the errors and possible solutions, please read the following articles: at hudson.maven.reporters.MavenFingerprinter$1.call(MavenFingerprinter.java:125) at hudson.maven.reporters.MavenFingerprinter$1.call(MavenFingerprinter.java:112) at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:414) [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:542) at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.model.Executor$1.call(Executor.java:559) [ERROR] After correcting the problems, you can resume the build with the command at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) at com.sun.proxy.$Proxy78.execute(Unknown Source) at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:293) [ERROR] mvn goals -rf :wso2appserver-profile-gen at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at
Re: [Dev] Best approach to send json array from ESB Connector
Hi Tharik, General practice for this has been to take the whole array from the user. Please see [1] (Quickbooks connector) Thanks. [1] http://goo.gl/9cgx2S On Wed, Sep 10, 2014 at 10:35 AM, Tharik Kanaka [via WSO2 Oxygen Tank] ml-node+s10903n10263...@n7.nabble.com wrote: Hi all, At the moment myself and pumudu ([hidden email] http://user/SendEmail.jtp?type=nodenode=102632i=0) are developing wso2 esb connector for codeplex. It has an operation to create subscription where we need to send json array like below. { Events: [ { Name: Code Change, Enabled: true, Properties: [ { Name: summary, Value: True } ] } ], Properties: [ { Name: url, Value: http://test.com; } ] } In that case what would be the best approach to handle json array? 01. get whole json array as a parameter from user 02. get properties as parameters from user and create json array inside connector. -- *Tharik Kanaka* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 77 1616060 | Work: +94 112145345 Email: [hidden email] http://user/SendEmail.jtp?type=nodenode=102632i=1 | Web: www.wso2.com ___ Dev mailing list [hidden email] http://user/SendEmail.jtp?type=nodenode=102632i=2 http://wso2.org/cgi-bin/mailman/listinfo/dev -- If you reply to this email, your message will be added to the discussion below: http://wso2-oxygen-tank.10903.n7.nabble.com/Best-approach-to-send-json-array-from-ESB-Connector-tp102632.html To start a new topic under WSO2 Development, email ml-node+s10903n3...@n7.nabble.com To unsubscribe from WSO2 Development, click here http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3code=cmFzYWRlODhAZ21haWwuY29tfDN8LTEwNDAzODU2MTk= . NAML http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- Au revoir! Ramindu Deshapriya. Member - Sahana Software Foundation http://sahanafoundation.org http://rdeshapriya.com http://www.facebook.com/rdeshapriya http://twitter.com/#%21/rami_desh https://plus.google.com/113801459480978566130 http://www.linkedin.com/profile/view?id=84017607trk=tab_pro http://rdeshapriya.com http://lmakuthan.blogspot.com -- View this message in context: http://wso2-oxygen-tank.10903.n7.nabble.com/Best-approach-to-send-json-array-from-ESB-Connector-tp102632p102649.html Sent from the WSO2 Development mailing list archive at Nabble.com.___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Carbon component deployment halts due to third party libraries used.
I think best way to figure out this is to start the server with osgi console and find out the unsatisfied items. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera / Carbon team, Im trying to expose some Machine Learning services as a carbon component. The component I wrote builds successfully. But when I try to deploy this component (tried deploying in both BAM and ESB), the deployment process halts, saying the following. *[2014-09-10 10:32:04,915] INFO {org.apache.cassandra.thrift.ThriftServer} - Listening for thrift clients...[2014-09-10 10:33:05,754] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0* Found out that the reason for this was the logger log4j (when I replace log4j with commons-logger, the component got deployed) and a class in a third party library org.apache.commons.math3.stat.descriptive.DescriptiveStatistics. Any idea what causes this issue? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ 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] Build failed in Jenkins: product-ss #74
Thanks Maheshika for the prompt response! On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Harsha Prabath We are in the process of increasing the disk space. Hi Rumesh Most Jenkins builds have failed due to inadequate disk space. Therefore, please increase the Jenkins disk space. On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara hars...@wso2.com wrote: Hi Maheshika, This is occurs time to time. It says no space left on the device. This is the reason for the previous build failure too. As I remember day before yesterday, build was successful. Thanks, Harsha On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, It looks like we're still running into this issue in the builder machine. Would you be able to have a look? Cheers, Prabath On Wed, Sep 10, 2014 at 3:16 AM, cbuil...@wso2.org wrote: See https://wso2.org/jenkins/job/product-ss/74/ -- [...truncated 729 lines...] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS [0.384s] [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS [0.025s] [INFO] WSO2 Storage Server UI styles . SUCCESS [50.917s] [INFO] WSO2 Storage Server - Features Parent . SUCCESS [0.023s] [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS [0.035s] [INFO] WSO2 Storage Server - Styles Features . SUCCESS [0.625s] [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS [1:45.002s] [INFO] WSO2 Storage Server - Distribution FAILURE [10.339s] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2:53.874s [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014 [INFO] Final Memory: 32M/476M [INFO] ERROR: Asynchronous execution failure java.util.concurrent.ExecutionException: java.io.IOException: No space left on device at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185) at hudson.maven.Maven3Builder.call(Maven3Builder.java:141) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:414) at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:542) at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.model.Executor$1.call(Executor.java:559) at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) at com.sun.proxy.$Proxy78.execute(Unknown Source) at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:293) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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) ERROR: Asynchronous execution failure java.util.concurrent.ExecutionException: java.io.IOException: No space left on device at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185) at hudson.maven.Maven3Builder.call(Maven3Builder.java:141) at
Re: [Dev] Build failed in Jenkins: product-as #230
Yes Supun I agree with you. We could use the Workspace Cleanup Plug-in [1] in the future. However, requires to be tested in the staging environment. On Wed, Sep 10, 2014 at 11:44 AM, Supun Malinga sup...@wso2.com wrote: Thanks! that would help. But it might not be the ultimate solution. It could easily fill up the disk space again. IMO we would need some process to clean the old artifacts from the disk.. On Wed, Sep 10, 2014 at 11:26 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Supun The Infra team will be increasing the disk space for the Jenkins build machine. On Wed, Sep 10, 2014 at 11:06 AM, Supun Malinga sup...@wso2.com wrote: Hi Maheshika, Error says builder is out of space. Can we clean it up please.. thanks, On Wed, Sep 10, 2014 at 3:25 AM, cbuil...@wso2.org wrote: See https://wso2.org/jenkins/job/product-as/230/ -- [...truncated 3826 lines...] at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185) at hudson.maven.Maven3Builder.call(Maven3Builder.java:141) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) 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: java.io.IOException: No space left on device [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen (3-p2-profile-generation) on project wso2appserver-profile-gen: P2 publisher return code was 13 - [Help 1] at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:345) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) [ERROR] at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:316) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149) [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233) at java.io.BufferedWriter.close(BufferedWriter.java:266) at hudson.util.AtomicFileWriter.close(AtomicFileWriter.java:94) [ERROR] Re-run Maven using the -X switch to enable full debug logging. at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:109) at hudson.model.Fingerprint.save(Fingerprint.java:1160) [ERROR] at hudson.model.Fingerprint.save(Fingerprint.java:1110) at hudson.model.Fingerprint.add(Fingerprint.java:906) at hudson.model.Fingerprint.add(Fingerprint.java:898) [ERROR] For more information about the errors and possible solutions, please read the following articles: at hudson.maven.reporters.MavenFingerprinter$1.call(MavenFingerprinter.java:125) at hudson.maven.reporters.MavenFingerprinter$1.call(MavenFingerprinter.java:112) at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:414) [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:542) at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.model.Executor$1.call(Executor.java:559) [ERROR] After correcting the problems, you can resume the build with the command at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) at com.sun.proxy.$Proxy78.execute(Unknown Source) at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:293) [ERROR] mvn goals -rf :wso2appserver-profile-gen at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
Re: [Dev] [DSS]Generating Using a Given Database Structure failed
AFAIK it should -MM-DD HH24:MI:SS.FF -- 1997-01-31 09:26:50.12 *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 3:06 AM, stevegyc steve...@163.com wrote: Hi Dakshika The format of TIMESTAMP value is like 05-2月 -12 11.17.41.000 下午 , what is the format that DSS support? -- stevegyc *From:* Dakshika Jayathilaka daksh...@wso2.com *Date:* 2014-09-10 10:25 *To:* stevegyc steve...@163.com *CC:* dev dev@wso2.org *Subject:* Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, What is the format of TIMESTAMP value ? If your sending incorrect format that will cause some issues. *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 2:16 AM, stevegyc steve...@163.com wrote: Hi: When I generated dss server by using a given database structure, it failed and following error log displayed. TID: [0] [DSS] [2014-09-09 14:50:42,957] WARN {org.wso2.carbon.dataservices.core.script.DSGenerator} - Insert operation not created {org.wso2.carbon.dataservices.core.script.DSGenerator} DS Code: UNKNOWN_ERROR Nested Exception:- DS Fault Message: Invalid query param sqlType: 'null'. DS Code: UNKNOWN_ERROR at org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123) at org.wso2.carbon.dataservices.core.engine.QueryParam.init(QueryParam.java:76) at org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754) at org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687) at org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472) at org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236) at org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197) at org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160) at org.wso2.carbon.dataservices.core.script.DSGenerator.init(DSGenerator.java:108) at org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447) My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE and TIMESTAMP, such as following: create table INFO ( object_id NUMBER(18) not null, oc_name VARCHAR2(50), last_time DATE, insert_time TIMESTAMP(3) default SYSDATE, ) It seems DSS does not support the datatype of TIMESTAMP, When I delete the datatype of TIMESTAMP, it can generate dss server successfully. I do not know why DSS do not support datatype of TIMESTAMP and how to solve it. -- stevegyc ___ 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] Select tag using Selenium web driver
Hi Krishantha/All As we discussed (offline) I used the plugin you suggested and used suggested 'xpath' selectors. Now it works perfectly. Thanks and Cheers On Wed, Sep 10, 2014 at 11:18 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Kasun, You can use driver.FindElement(By.LinkText(dummy_link)).Click() or xpath locator to click the Sign out link. Following WebDriver element locator plugin would be helpful to find selenium locator easily. - https://addons.mozilla.org/en-US/firefox/addon/element-locator-for-webdriv/ Thanks, Krishantha. On Tue, Sep 9, 2014 at 9:18 PM, Roshan Wijesena ros...@wso2.com wrote: Hi Kasun This might help you. http://stackoverflow.com/questions/17329436/selenium-xpath-selector-based-on-the-element-text Regards Roshan On Tue, Sep 9, 2014 at 8:58 PM, Kasun Dissanayake kas...@wso2.com wrote: Hi all I was working with $subject and got stuck in selecting the Sign out tag in following page source (Bolded one) div class=container a class=brand href=/store//a!-- ul class=nav menu store-menu /ul-- ul class=nav menu pull-right li class=nav-separator a href=/store/extensions/assets/webapp/subscriptionsi class=icon-tags store-topnav-bookmark/i My Subscriptions/a /li lia class=dropdown-toggle data-toggle=dropdown href=#i class=icon-user/i admin b class=caret/b/a ul class=dropdown-menu dropdown-account role=menu aria-labelledby=dLabelli *a href=/store/logouti class=icon-signout/i Sign out /a*/li /ul /li /ul /div any idea ? -- Kasun Dissanayake Software Engineer WSO2 Inc. Lean | Enterprise | Middleware Tel - +94 77 086 2860 Skype - kasun.dissanayake4 LinkedIn - lk.linkedin.com/in/kasundis/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: *+94752126789* Email: ros...@wso2.com *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Kasun Dissanayake Software Engineer WSO2 Inc. Lean | Enterprise | Middleware Tel - +94 77 086 2860 Skype - kasun.dissanayake4 LinkedIn - lk.linkedin.com/in/kasundis/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Build failed in Jenkins: product-ss #74
Are the build logs, artifacts etc. cleaned from time to time, if not, we will run into issues. On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Harsha Prabath We are in the process of increasing the disk space. Hi Rumesh Most Jenkins builds have failed due to inadequate disk space. Therefore, please increase the Jenkins disk space. On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara hars...@wso2.com wrote: Hi Maheshika, This is occurs time to time. It says no space left on the device. This is the reason for the previous build failure too. As I remember day before yesterday, build was successful. Thanks, Harsha On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, It looks like we're still running into this issue in the builder machine. Would you be able to have a look? Cheers, Prabath On Wed, Sep 10, 2014 at 3:16 AM, cbuil...@wso2.org wrote: See https://wso2.org/jenkins/job/product-ss/74/ -- [...truncated 729 lines...] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS [0.384s] [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS [0.025s] [INFO] WSO2 Storage Server UI styles . SUCCESS [50.917s] [INFO] WSO2 Storage Server - Features Parent . SUCCESS [0.023s] [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS [0.035s] [INFO] WSO2 Storage Server - Styles Features . SUCCESS [0.625s] [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS [1:45.002s] [INFO] WSO2 Storage Server - Distribution FAILURE [10.339s] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2:53.874s [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014 [INFO] Final Memory: 32M/476M [INFO] ERROR: Asynchronous execution failure java.util.concurrent.ExecutionException: java.io.IOException: No space left on device at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185) at hudson.maven.Maven3Builder.call(Maven3Builder.java:141) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:414) at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:542) at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.model.Executor$1.call(Executor.java:559) at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) at com.sun.proxy.$Proxy78.execute(Unknown Source) at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:293) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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) ERROR: Asynchronous execution failure java.util.concurrent.ExecutionException: java.io.IOException: No space left on device at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185) at
Re: [Dev] Graceful Restart is not working
Hi, Adding null check can avoid the NPE exception but may not solve the issue properly. @Lasantha, I will check with GREG team and see if this can be solved with touchpoints. @Firzhan. I have gone through the discussion [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. earlier and your findings, will check with GREG team. Thanks, Nipuni On Wed, Sep 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote: Hi All, We have already discussed this issue in the mail thread [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. Rather than checking the null point, I feel like we have to investigate why the registry's search feature bundle getting included to the products which are not using registry search feature ( BPS ). @Ajith:- You thoughts on this Regards, Firzhan On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi, On 10 September 2014 10:19, Nipuni Perera nip...@wso2.com wrote: Hi, Yes. I can add a null check to indexingConfig element and continue only if the value is available (But it will add the whole method execution inside constructor RegistryConfigLoader() to an if block - line 75 to 150 of [1]). Is this preferable? public RegistryConfigLoader() { try { FileInputStream fileInputStream = new FileInputStream(getConfigFile()); StAXOMBuilder builder = new StAXOMBuilder( CarbonUtils.replaceSystemVariablesInXml(fileInputStream)); OMElement configElement = builder.getDocumentElement(); OMElement indexingConfig = configElement.getFirstChildWithName( new QName(indexingConfiguration)); if (indexingConfig != null) { //newly added if block ... ... } } } catch (FileNotFoundException e) { // This virtually cannot happen as registry.xml is necessary to start up the registry log.error(registry.xml has not been found, e); } catch (RegistryException e) { log.error(e.getMessage(),e); } catch (XMLStreamException e) { String msg = error building registry.xml, check for badly formed xml; log.error(msg, e); } catch (CarbonException e) { log.error(An error occurred during system variable replacement, e); } } It seems if the indexingConfig is null, no need to call this constructor. RegistryConfigLoader() is called inside IndexingManager() constructor. private IndexingManager() { try { registry = Utils.getRegistryService().getRegistry(CarbonConstants.REGISTRY_SYSTEM_USERNAME); registryConfig = new RegistryConfigLoader(); // call to constructor RegistryConfigLoader() indexer = new AsyncIndexer(); } catch (RegistryException e) { log.error(Could not initialize registry for indexing, e); } } Can't we check indexingConfig value before calling RegistryConfigLoader() ? +1 to add a null check and deal with this. As to not calling RegistryConfigLoader if indexingConfig is not present, isn't RegistryConfigLoader there to read the whole registry.xml file and indexingConfig is only a part of that? If so, I guess we do need to call RegistryConfigLoader() regardless of whether indexingConfig is present or not. Maybe the GREG team can give better input on this. Also, this exact same code segment was discussed before in thread [Dev] Missing configuration in registry.xml causes OSGi services to be unsatisfied [1], but guess I forgot to raise a JIRA under that... :-). Can you look into that thread as well and if it is possible to add a touchpoint as well as suggested in that thread? [1] http://mail.wso2.org/mailarchive/dev/2014-April/029358.html Thanks, Lasantha [1] https://github.com/Nipuni/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.indexing/src/main/java/org/wso2/carbon/registry/indexing/RegistryConfigLoader.java Thanks, Nipuni On Wed, Sep 10, 2014 at 8:53 AM, Kasun Gajasinghe kas...@wso2.com wrote: As a best practice, do not catch the Exception class, instead catch specific subclasses. But, you do not need to catch any exceptions in this particular case? Can't you just verify whether the indexingConfiguration element is available or not? KasunG On Wed, Sep 10, 2014 at 4:39 AM, Nipuni Perera nip...@wso2.com wrote: Hi, I am working on issue[1]. I could find that the RegistryConfigLoader() returns a null value. (line 73 in [2]). OMElement indexingConfig = configElement.getFirstChildWithName(new QName(indexingConfiguration)); This value is used in several places. but NPE is thrown in line 88, lastAccessTimeLocation =
Re: [Dev] Carbon component deployment halts due to third party libraries used.
Hi, The imported library *org.apache.commons.math3 *is being not identified. (gets the following output in the osgi console) *reference:file:../dropins/org.wso2.carbon.ml.dataset-0.1.0.jar [340]* * Direct constraints which are unresolved:* *Missing imported package org.apache.commons.math3.stat.descriptive_[3.3.0,4.0.0)* Tried putting the relevant third-party jar file to the CARBON_HOME/repository/components/plugins folder, and deploy. But still not resolved. Thanks, Supun On Wed, Sep 10, 2014 at 11:49 AM, Danushka Fernando danush...@wso2.com wrote: I think best way to figure out this is to start the server with osgi console and find out the unsatisfied items. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera / Carbon team, Im trying to expose some Machine Learning services as a carbon component. The component I wrote builds successfully. But when I try to deploy this component (tried deploying in both BAM and ESB), the deployment process halts, saying the following. *[2014-09-10 10:32:04,915] INFO {org.apache.cassandra.thrift.ThriftServer} - Listening for thrift clients...[2014-09-10 10:33:05,754] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0* Found out that the reason for this was the logger log4j (when I replace log4j with commons-logger, the component got deployed) and a class in a third party library org.apache.commons.math3.stat.descriptive.DescriptiveStatistics. Any idea what causes this issue? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Carbon component deployment halts due to third party libraries used.
Correction : *CARBON_HOME/repository/components/lib folder* On Wed, Sep 10, 2014 at 1:00 PM, Supun Sethunga sup...@wso2.com wrote: Hi, The imported library *org.apache.commons.math3 *is being not identified. (gets the following output in the osgi console) *reference:file:../dropins/org.wso2.carbon.ml.dataset-0.1.0.jar [340]* * Direct constraints which are unresolved:* *Missing imported package org.apache.commons.math3.stat.descriptive_[3.3.0,4.0.0)* Tried putting the relevant third-party jar file to the CARBON_HOME/repository/components/plugins folder, and deploy. But still not resolved. Thanks, Supun On Wed, Sep 10, 2014 at 11:49 AM, Danushka Fernando danush...@wso2.com wrote: I think best way to figure out this is to start the server with osgi console and find out the unsatisfied items. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera / Carbon team, Im trying to expose some Machine Learning services as a carbon component. The component I wrote builds successfully. But when I try to deploy this component (tried deploying in both BAM and ESB), the deployment process halts, saying the following. *[2014-09-10 10:32:04,915] INFO {org.apache.cassandra.thrift.ThriftServer} - Listening for thrift clients...[2014-09-10 10:33:05,754] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0* Found out that the reason for this was the logger log4j (when I replace log4j with commons-logger, the component got deployed) and a class in a third party library org.apache.commons.math3.stat.descriptive.DescriptiveStatistics. Any idea what causes this issue? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Updated Invitation: Code Review - WSO2 EAM Testcases @ Wed Sep 10, 2014 3pm - 3:30pm (Kasun Dissanayake)
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20140910T093000Z DTEND:20140910T10Z DTSTAMP:20140910T074000Z ORGANIZER;CN=Kasun Dissanayake:mailto:kas...@wso2.com UID:4ugfmn2hv9ijhu64g30tn8c...@google.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Rajeeva Uthayasangar;X-NUM-GUESTS=0:mailto:raje...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Ruwan Yatawara;X-NUM-GUESTS=0:mailto:ruw...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Jenananthan Yogendran;X-NUM-GUESTS=0:mailto:jenanant...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Rushmin Fernando;X-NUM-GUESTS=0:mailto:rush...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE ;CN=Kasun Dissanayake;X-NUM-GUESTS=0:mailto:kas...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Sumedha Rubasinghe;X-NUM-GUESTS=0:mailto:sume...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Dinusha Senanayaka;X-NUM-GUESTS=0:mailto:dinu...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Krishantha Samaraweera;X-NUM-GUESTS=0:mailto:krishan...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Dharshana Warusavitharana;X-NUM-GUESTS=0:mailto:dharsha...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Nuwan Wimalasekara;X-NUM-GUESTS=0:mailto:nuw...@wso2.com CREATED:20140910T050511Z DESCRIPTION:View your event at https://www.google.com/calendar/event?action =VIEWeid=NHVnZm1uMmh2OWlqaHU2NGczMHRuOGMzZTggZGV2QHdzbzIub3Jntok=MTUja2Fz dW51QHdzbzIuY29tOWIzNWJjMGY3MWVlZDU0ZGY0MjhjZmE0ZjY2YmYxNTNiZWVlMDhhYgctz= Asia/Colombohl=en. LAST-MODIFIED:20140910T074000Z LOCATION:WSO2 Inc.\, LK 3rd Floor Meeting Room SEQUENCE:1 STATUS:CONFIRMED SUMMARY:Code Review - WSO2 EAM Testcases TRANSP:TRANSPARENT END:VEVENT END:VCALENDAR invite.ics Description: application/ics ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi Dakshika: Thank you for your reply. But it is difficult for me to change the format of TIMESTAMP. Can you tell me the location of the related code approximately? stevegyc From: Dakshika Jayathilaka Date: 2014-09-10 14:41 To: stevegyc CC: dev Subject: Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed AFAIK it should -MM-DD HH24:MI:SS.FF -- 1997-01-31 09:26:50.12 Dakshika Jayathilaka Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 3:06 AM, stevegyc steve...@163.com wrote: Hi Dakshika The format of TIMESTAMP value is like 05-2月 -12 11.17.41.000 下午 , what is the format that DSS support? stevegyc From: Dakshika Jayathilaka Date: 2014-09-10 10:25 To: stevegyc CC: dev Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, What is the format of TIMESTAMP value ? If your sending incorrect format that will cause some issues. Dakshika Jayathilaka Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 2:16 AM, stevegyc steve...@163.com wrote: Hi: When I generated dss server by using a given database structure, it failed and following error log displayed. TID: [0] [DSS] [2014-09-09 14:50:42,957] WARN {org.wso2.carbon.dataservices.core.script.DSGenerator} - Insert operation not created {org.wso2.carbon.dataservices.core.script.DSGenerator} DS Code: UNKNOWN_ERROR Nested Exception:- DS Fault Message: Invalid query param sqlType: 'null'. DS Code: UNKNOWN_ERROR at org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123) at org.wso2.carbon.dataservices.core.engine.QueryParam.init(QueryParam.java:76) at org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754) at org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687) at org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472) at org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236) at org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197) at org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160) at org.wso2.carbon.dataservices.core.script.DSGenerator.init(DSGenerator.java:108) at org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447) My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE and TIMESTAMP, such as following: create table INFO ( object_id NUMBER(18) not null, oc_name VARCHAR2(50), last_time DATE, insert_time TIMESTAMP(3) default SYSDATE, ) It seems DSS does not support the datatype of TIMESTAMP, When I delete the datatype of TIMESTAMP, it can generate dss server successfully. I do not know why DSS do not support datatype of TIMESTAMP and how to solve it. stevegyc ___ 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] EAM nightly build pack - 09-09-2014
Please find the latest pack in http://builder1.us1.wso2.org/~appm/10-09-2014/ Regards, Dinusha. On Tue, Sep 9, 2014 at 11:20 PM, Dinusha Senanayaka dinu...@wso2.com wrote: Hi, Please find the $subject in [1]. [1]. http://builder1.us1.wso2.org/~appm/09-09-2014/ Regards, Dinusha. -- Dinusha Dilrukshi Senior Software Engineer WSO2 Inc.: http://wso2.com/ Mobile: +94725255071 Blog: http://dinushasblog.blogspot.com/ -- Dinusha Dilrukshi Senior Software Engineer WSO2 Inc.: http://wso2.com/ Mobile: +94725255071 Blog: http://dinushasblog.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Invitation: Code Review - API Manager self signup for tenant's API s... @ Tue Sep 9, 2014 12pm - 1pm (Vijayaratha Vijayasingam)
Hi Nuwan, I attached the code for this feature to the jira. Please find it in [1] [1] https://wso2.org/jira/browse/APIMANAGER-2785 Thanks. Chamila On Tue, Sep 9, 2014 at 1:27 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Code review notes; 1)In self-signup configuration password is stored in plain text in registry( @ selfsignup.xml, ) we need to add support for encryption. Same thing we need to do for workflow admin configuration file too. Jira: https://wso2.org/jira/browse/APIMANAGER-2824 2) Provide UI support to edit self-sgnup configuration? (@ userstore UI/admin dashboard) Jira: https://wso2.org/jira/browse/APIMANAGER-2825 3)self-signup observer class name to be corrected. Move this to tenantServiceCreator observer 4) Change log.info's to debug level, with more info. 5)Move AM related config files to config-registry. Currently it is stored under governance space. Jira: https://wso2.org/jira/browse/APIMANAGER-2826 Thanks. On 9 September 2014 09:52, Chamila Adhikarinayake chami...@wso2.com wrote: more details » https://www.google.com/calendar/event?action=VIEWeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29ttok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en Code Review - API Manager self signup for tenant's API store *When* Tue Sep 9, 2014 12pm – 1pm Colombo *Where* LK 3rd Floor Meeting Room - Kernel (map https://maps.google.lk/maps?q=LK+3rd+Floor+Meeting+Room+-+Kernelhl=en) *Video call* https://plus.google.com/hangouts/_/wso2.com/chamilaa https://plus.google.com/hangouts/_/wso2.com/chamilaa?hceid=Y2hhbWlsYWFAd3NvMi5jb20.pt44aqhc4c3bnrr9f1mp5nnql0 *Calendar* Vijayaratha Vijayasingam *Who* • Chamila Adhikarinayake - organizer • Jenananthan Yogendran • dev@wso2.org • Lalaji Sureshika • Sumedha Rubasinghe • Vijayaratha Vijayasingam • Roshan Wijesena • Nuwan Dias • Amila De Silva • Shariq Muhammed Going? *Yes https://www.google.com/calendar/event?action=RESPONDeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29trst=1tok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en - Maybe https://www.google.com/calendar/event?action=RESPONDeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29trst=3tok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en - No https://www.google.com/calendar/event?action=RESPONDeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29trst=2tok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en* more options » https://www.google.com/calendar/event?action=VIEWeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29ttok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en Invitation from Google Calendar https://www.google.com/calendar/ You are receiving this email at the account rat...@wso2.com because you are subscribed for invitations on calendar Vijayaratha Vijayasingam. To stop receiving these notifications, please log in to https://www.google.com/calendar/ and change your notification settings for this calendar. -- -Ratha -- Regards, Chamila Adhikarinayake Software Engineer WSO2, Inc. Mobile - +94712346437 Email - chami...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Hazelcast issue with ESB 4.9.0 M3
Can you check the same with a product such as AppServer as well? On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva mal...@wso2.com wrote: Issue is reported in [1] [1] https://wso2.org/jira/browse/CARBON-14940 On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva mal...@wso2.com wrote: Tested with [1] and it has worked. [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe kas...@wso2.com wrote: On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and verify whether it works with that? [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 Malaka, can you try the above? Then we can verify whether something is wrong with the Hz 3.2.3.wso2v1 orbit bundle. On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Can confirm this is not a configuration issue, unless configuration has changed? Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1 manually, and it start working. Best Regards, Malaka On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. this might be a configuration issue. But we did not test this properly on Carbon 4.3.0 as well. Can you share you configuration files of all the nodes? Any useful logs? On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Initially I have used 127.0.0.1. Then I have changed it to IP. However same issue exists. On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Malaka, What are the values you have used for localMemberHost? In Hz 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the machine. Regards, KasunG On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez az...@wso2.com wrote: KasunG, Can you verify this? -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com*
[Dev] Stopping RXT attributes from being added as resource properties
Hi All, Currently with RXT's all the attributes of the RXT are being added as properties in the resource. The process of adding them as properties executes a significant amount of DB calls which is big performance hit. AFAIK there is no use of these properties hence we should be able to stop this and reduce a large amount of DB calls in the process. @Nuwan As for the the offline discussion we had a while back regarding this i assume that these properties are not been used in the APIM side ( Not properties in general just the properties that are created for RXT attributes ). Since we do not have any real use for this properties shall we remove these, WDYT? Regards, Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 AS Cluster issue
Hi, I am configuring AS cluster with WSO2 ELB. Once completed the configuration and send an request to management node it gives a error as TenantAwareLoadBalanceEndpoint No application members available in ELB. What can be the issue for this ? I saw few jira also there for this and couldn't find the solution. This is the sample I am following, http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html Godwin Thanks -- *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] Build failed in Jenkins: product-ss #74
Why does workspace takes too much space? Is it because of the archived old builds? On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Azeez Yes, the build has been configured to Discard old builds and artifacts. According to the Disk Usage report, workspace uses majority of the disk space. Therefore, we would have to remove workspace for each build plan periodically. This can be done manually or enable Workspace clean up plugin to clean daily. On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez az...@wso2.com wrote: Are the build logs, artifacts etc. cleaned from time to time, if not, we will run into issues. On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Harsha Prabath We are in the process of increasing the disk space. Hi Rumesh Most Jenkins builds have failed due to inadequate disk space. Therefore, please increase the Jenkins disk space. On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara hars...@wso2.com wrote: Hi Maheshika, This is occurs time to time. It says no space left on the device. This is the reason for the previous build failure too. As I remember day before yesterday, build was successful. Thanks, Harsha On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, It looks like we're still running into this issue in the builder machine. Would you be able to have a look? Cheers, Prabath On Wed, Sep 10, 2014 at 3:16 AM, cbuil...@wso2.org wrote: See https://wso2.org/jenkins/job/product-ss/74/ -- [...truncated 729 lines...] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS [0.384s] [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS [0.025s] [INFO] WSO2 Storage Server UI styles . SUCCESS [50.917s] [INFO] WSO2 Storage Server - Features Parent . SUCCESS [0.023s] [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS [0.035s] [INFO] WSO2 Storage Server - Styles Features . SUCCESS [0.625s] [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS [1:45.002s] [INFO] WSO2 Storage Server - Distribution FAILURE [10.339s] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2:53.874s [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014 [INFO] Final Memory: 32M/476M [INFO] ERROR: Asynchronous execution failure java.util.concurrent.ExecutionException: java.io.IOException: No space left on device at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185) at hudson.maven.Maven3Builder.call(Maven3Builder.java:141) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:414) at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:542) at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.model.Executor$1.call(Executor.java:559) at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) at com.sun.proxy.$Proxy78.execute(Unknown Source) at hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:293) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at
Re: [Dev] WSO2 AS Cluster issue
Goodwin This error means you haven't configured the setup correctly. When you start up the server (AS) do you see any logs saying that AS joined to the cluster? I guess there should be some error there. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Sep 10, 2014 at 2:09 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am configuring AS cluster with WSO2 ELB. Once completed the configuration and send an request to management node it gives a error as TenantAwareLoadBalanceEndpoint No application members available in ELB. What can be the issue for this ? I saw few jira also there for this and couldn't find the solution. This is the sample I am following, http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html Godwin Thanks -- *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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi, I was able to reproduce this error. From the corresponding resultSet (for TIMESTAMP type), when we try to get the SQL Type using resultSet.getInt(DATA_TYPE) it gives which is mapped to SQL Type 'OTHER' [1]. It is an issue in the Oracle ResultSet Implementation, anyway we will handle this in the DSS 3.2.2 by converting that to a STRING value. I have created a JIRA to track this issue. [1] http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Types.DATE [2] https://wso2.org/jira/browse/DS-959 Thanks On Wed, Sep 10, 2014 at 1:17 PM, stevegyc steve...@163.com wrote: Hi Dakshika: Thank you for your reply. But it is difficult for me to change the format of TIMESTAMP. Can you tell me the location of the related code approximately? -- stevegyc *From:* Dakshika Jayathilaka daksh...@wso2.com *Date:* 2014-09-10 14:41 *To:* stevegyc steve...@163.com *CC:* dev dev@wso2.org *Subject:* Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed AFAIK it should -MM-DD HH24:MI:SS.FF -- 1997-01-31 09:26:50.12 *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 3:06 AM, stevegyc steve...@163.com wrote: Hi Dakshika The format of TIMESTAMP value is like 05-2月 -12 11.17.41.000 下午 , what is the format that DSS support? -- stevegyc *From:* Dakshika Jayathilaka daksh...@wso2.com *Date:* 2014-09-10 10:25 *To:* stevegyc steve...@163.com *CC:* dev dev@wso2.org *Subject:* Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, What is the format of TIMESTAMP value ? If your sending incorrect format that will cause some issues. *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 2:16 AM, stevegyc steve...@163.com wrote: Hi: When I generated dss server by using a given database structure, it failed and following error log displayed. TID: [0] [DSS] [2014-09-09 14:50:42,957] WARN {org.wso2.carbon.dataservices.core.script.DSGenerator} - Insert operation not created {org.wso2.carbon.dataservices.core.script.DSGenerator} DS Code: UNKNOWN_ERROR Nested Exception:- DS Fault Message: Invalid query param sqlType: 'null'. DS Code: UNKNOWN_ERROR at org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123) at org.wso2.carbon.dataservices.core.engine.QueryParam.init(QueryParam.java:76) at org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754) at org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687) at org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472) at org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236) at org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197) at org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160) at org.wso2.carbon.dataservices.core.script.DSGenerator.init(DSGenerator.java:108) at org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447) My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE and TIMESTAMP, such as following: create table INFO ( object_id NUMBER(18) not null, oc_name VARCHAR2(50), last_time DATE, insert_time TIMESTAMP(3) default SYSDATE, ) It seems DSS does not support the datatype of TIMESTAMP, When I delete the datatype of TIMESTAMP, it can generate dss server successfully. I do not know why DSS do not support datatype of TIMESTAMP and how to solve it. -- stevegyc ___ 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 -- 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] Carbon component deployment halts due to third party libraries used.
Hi Supun, Please make sure that third party jar is in 'resolve' state. Be aware that importing a package doesn't import its sub-packages and there is no relationship among nested packages. You have to specifically mention Import-Package: org.apache.commons.math3.stat.descriptive; version=[3.3.0,4.0.0) Please attach your pom file as well. Thanks -Pubudu On Wed, Sep 10, 2014 at 1:04 PM, Supun Sethunga sup...@wso2.com wrote: Correction : *CARBON_HOME/repository/components/lib folder* On Wed, Sep 10, 2014 at 1:00 PM, Supun Sethunga sup...@wso2.com wrote: Hi, The imported library *org.apache.commons.math3 *is being not identified. (gets the following output in the osgi console) *reference:file:../dropins/org.wso2.carbon.ml.dataset-0.1.0.jar [340]* * Direct constraints which are unresolved:* *Missing imported package org.apache.commons.math3.stat.descriptive_[3.3.0,4.0.0)* Tried putting the relevant third-party jar file to the CARBON_HOME/repository/components/plugins folder, and deploy. But still not resolved. Thanks, Supun On Wed, Sep 10, 2014 at 11:49 AM, Danushka Fernando danush...@wso2.com wrote: I think best way to figure out this is to start the server with osgi console and find out the unsatisfied items. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera / Carbon team, Im trying to expose some Machine Learning services as a carbon component. The component I wrote builds successfully. But when I try to deploy this component (tried deploying in both BAM and ESB), the deployment process halts, saying the following. *[2014-09-10 10:32:04,915] INFO {org.apache.cassandra.thrift.ThriftServer} - Listening for thrift clients...[2014-09-10 10:33:05,754] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0* Found out that the reason for this was the logger log4j (when I replace log4j with commons-logger, the component got deployed) and a class in a third party library org.apache.commons.math3.stat.descriptive.DescriptiveStatistics. Any idea what causes this issue? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Pubudu Dissanayake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mob: + 94 775 503 304 Blog: http://geekdetected.wordpress.com/ Linkedin: *http://lk.linkedin.com/in/pubududissanayake* http://lk.linkedin.com/in/pubududissanayake Flickr : https://www.flickr.com/photos/pubudufx/ Twitter: https://twitter.com/GeekInAction ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Stopping RXT attributes from being added as resource properties
+1 for removing these. APIM doesn't deal with properties in RXTs but with the RXT attributes directly. So APIM won't have any effects by this change. Thanks, NuwanD. On Wed, Sep 10, 2014 at 1:52 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi All, Currently with RXT's all the attributes of the RXT are being added as properties in the resource. The process of adding them as properties executes a significant amount of DB calls which is big performance hit. AFAIK there is no use of these properties hence we should be able to stop this and reduce a large amount of DB calls in the process. @Nuwan As for the the offline discussion we had a while back regarding this i assume that these properties are not been used in the APIM side ( Not properties in general just the properties that are created for RXT attributes ). Since we do not have any real use for this properties shall we remove these, WDYT? Regards, Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Pull request for https://wso2.org/jira/browse/CARBON-14905
Hi Asela, Can you send a PR for the above mentioned issue? Thanks, Sameera. -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][APIM] writing automation tests for APIM
Hi, Issue logged in JIRA related to automation test case. [1] https://wso2.org/jira/browse/APIMANAGER-2835 On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera waru...@wso2.com wrote: Hi Sanjeewa, Noted. I will update the thread as we move forward about the API calls which we will think of useful to have. Thanks On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com wrote: Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? I assume here you are talking about rest APIs that we documented. For the moment most of required operations are exposed as rest APIs. But still there are missing parts. In such cases we can deploy simple jag file in the server and call to host object. If you looked at HostObjectTestCase, you will see how we tested host object operations that did not exposed as rest APIs. Please refer java test cases available in product. Do we need uniformity with test cases? (some via API calls and others with direct host object calls) IMO there is no such requirement. We cant test all scenarios in the same way. Important thing is cover use cases as much as possible. Thanks, sanjeewa. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Graceful Restart is not working
Hi Nipuni, Can you also verify if this code segment affects a normal startup as well (other than a graceful restart)? i.e. if u start with OSGi console, you can verify if registry.search.dscomponent service is satisfied or not. Then if you drill down the unsatisfied component, you will probably be able to find the NPE in the reasons listed for OSGi service being unsatisfied. I think that this NPE is thrown at normal startup as well, but somehow swallowed up when the bundle loading happens. I mean that was the case in the issue mentioned in the earlier thread. Thanks, Lasantha On 10 September 2014 14:26, Ajith Vitharana aji...@wso2.com wrote: Hi Nipuni, You need to do two things here, 1. If you are not using the registry search feature , then need to find the place that bundle going to include to the product. 2. You can do a null check and proceed in code.[ @Subash this is bug in registry code please fix.] -Ajith. On Wed, Sep 10, 2014 at 12:47 PM, Nipuni Perera nip...@wso2.com wrote: Hi, Adding null check can avoid the NPE exception but may not solve the issue properly. @Lasantha, I will check with GREG team and see if this can be solved with touchpoints. @Firzhan. I have gone through the discussion [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. earlier and your findings, will check with GREG team. Thanks, Nipuni On Wed, Sep 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote: Hi All, We have already discussed this issue in the mail thread [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. Rather than checking the null point, I feel like we have to investigate why the registry's search feature bundle getting included to the products which are not using registry search feature ( BPS ). @Ajith:- You thoughts on this Regards, Firzhan On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi, On 10 September 2014 10:19, Nipuni Perera nip...@wso2.com wrote: Hi, Yes. I can add a null check to indexingConfig element and continue only if the value is available (But it will add the whole method execution inside constructor RegistryConfigLoader() to an if block - line 75 to 150 of [1]). Is this preferable? public RegistryConfigLoader() { try { FileInputStream fileInputStream = new FileInputStream(getConfigFile()); StAXOMBuilder builder = new StAXOMBuilder( CarbonUtils.replaceSystemVariablesInXml(fileInputStream)); OMElement configElement = builder.getDocumentElement(); OMElement indexingConfig = configElement.getFirstChildWithName( new QName(indexingConfiguration)); if (indexingConfig != null) { //newly added if block ... ... } } } catch (FileNotFoundException e) { // This virtually cannot happen as registry.xml is necessary to start up the registry log.error(registry.xml has not been found, e); } catch (RegistryException e) { log.error(e.getMessage(),e); } catch (XMLStreamException e) { String msg = error building registry.xml, check for badly formed xml; log.error(msg, e); } catch (CarbonException e) { log.error(An error occurred during system variable replacement, e); } } It seems if the indexingConfig is null, no need to call this constructor. RegistryConfigLoader() is called inside IndexingManager() constructor. private IndexingManager() { try { registry = Utils.getRegistryService().getRegistry(CarbonConstants.REGISTRY_SYSTEM_USERNAME); registryConfig = new RegistryConfigLoader(); // call to constructor RegistryConfigLoader() indexer = new AsyncIndexer(); } catch (RegistryException e) { log.error(Could not initialize registry for indexing, e); } } Can't we check indexingConfig value before calling RegistryConfigLoader() ? +1 to add a null check and deal with this. As to not calling RegistryConfigLoader if indexingConfig is not present, isn't RegistryConfigLoader there to read the whole registry.xml file and indexingConfig is only a part of that? If so, I guess we do need to call RegistryConfigLoader() regardless of whether indexingConfig is present or not. Maybe the GREG team can give better input on this. Also, this exact same code segment was discussed before in thread [Dev] Missing configuration in registry.xml causes OSGi services to be unsatisfied [1], but guess I forgot to raise a JIRA under that... :-). Can you look into that thread as well and if it is possible to add a touchpoint as well as suggested in that
Re: [Dev] WSO2 AS Cluster issue
Hi, On Wed, Sep 10, 2014 at 10:49 AM, Danushka Fernando danush...@wso2.com wrote: Goodwin This error means you haven't configured the setup correctly. When you start up the server (AS) do you see any logs saying that AS joined to the cluster? I guess there should be some error there. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Sep 10, 2014 at 2:09 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am configuring AS cluster with WSO2 ELB. Once completed the configuration and send an request to management node it gives a error as TenantAwareLoadBalanceEndpoint No application members available in ELB. What can be the issue for this ? I saw few jira also there for this and couldn't find the solution. This is the sample I am following, http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html This doesn't look correct. The group_mgt_port in ELB should be different from its localMemberPort value. Try changing the localMemberPort of ELB to something other than 4000, say, 4100. And, why are you not following the Cluster 4.2.0 guide?? KasunG Godwin Thanks -- *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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 AppFactory 2.1.0 Milestone 5 Released!
WSO2 AppFactory 2.1.0 Milestone 5 Released! WSO2 AppFactory team is pleased to announce the release of version 2.1.0 M5 of the WSO2 App Factory. WSO2 App Factory is a multi-tenant, elastic and self-service enterprise platform that enables multiple project teams to collaboratively create, run and manage enterprise applications. Combining complete application lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2 App Factory makes it possible to develop, test, deploy to production and retire applications with a single click. It also provides an easy way to discover and consume apps and APIs through a user-friendly storefront. The key features of this release are BAM integration for user activity and moving run-time data from registry to database. The distribution is available to download at [1] . Bug fixes in this release can be found at [2]. Puppet manifests for App Factory can be found at [3]. We encourage you to report issues, documentation faults and feature requests regarding WSO2 AppFactory through the public WSO2 AppFactory JIRA https://wso2.org/jira/browse/APPFAC. [1] https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.1.0-M5/packs/wso2appfactory-2.0.1.zip [2] *https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20%3D%20%222.0.1-M5%22%20ORDER%20BY%20updated%20DESC%2C%20priority%20DESC%2C%20created%20ASC https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20%3D%20%222.0.1-M5%22%20ORDER%20BY%20updated%20DESC%2C%20priority%20DESC%2C%20created%20ASC* [3] https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.1.0-M5/appfactory_2.0.0/products/appfactory/2.0.1/modules/puppet-manifests/ -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi Chanika: Thank you very much! By the way, do you know when DSS 3.2.2 will be released? stevegyc From: Chanika Geeganage Date: 2014-09-10 17:24 To: stevegyc CC: Dakshika Jayathilaka; dev Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, I was able to reproduce this error. From the corresponding resultSet (for TIMESTAMP type), when we try to get the SQL Type using resultSet.getInt(DATA_TYPE) it gives which is mapped to SQL Type 'OTHER' [1]. It is an issue in the Oracle ResultSet Implementation, anyway we will handle this in the DSS 3.2.2 by converting that to a STRING value. I have created a JIRA to track this issue. [1] http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Types.DATE [2] https://wso2.org/jira/browse/DS-959 Thanks On Wed, Sep 10, 2014 at 1:17 PM, stevegyc steve...@163.com wrote: Hi Dakshika: Thank you for your reply. But it is difficult for me to change the format of TIMESTAMP. Can you tell me the location of the related code approximately? stevegyc From: Dakshika Jayathilaka Date: 2014-09-10 14:41 To: stevegyc CC: dev Subject: Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed AFAIK it should -MM-DD HH24:MI:SS.FF -- 1997-01-31 09:26:50.12 Dakshika Jayathilaka Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 3:06 AM, stevegyc steve...@163.com wrote: Hi Dakshika The format of TIMESTAMP value is like 05-2月 -12 11.17.41.000 下午 , what is the format that DSS support? stevegyc From: Dakshika Jayathilaka Date: 2014-09-10 10:25 To: stevegyc CC: dev Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, What is the format of TIMESTAMP value ? If your sending incorrect format that will cause some issues. Dakshika Jayathilaka Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 2:16 AM, stevegyc steve...@163.com wrote: Hi: When I generated dss server by using a given database structure, it failed and following error log displayed. TID: [0] [DSS] [2014-09-09 14:50:42,957] WARN {org.wso2.carbon.dataservices.core.script.DSGenerator} - Insert operation not created {org.wso2.carbon.dataservices.core.script.DSGenerator} DS Code: UNKNOWN_ERROR Nested Exception:- DS Fault Message: Invalid query param sqlType: 'null'. DS Code: UNKNOWN_ERROR at org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123) at org.wso2.carbon.dataservices.core.engine.QueryParam.init(QueryParam.java:76) at org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754) at org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687) at org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472) at org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236) at org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197) at org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160) at org.wso2.carbon.dataservices.core.script.DSGenerator.init(DSGenerator.java:108) at org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447) My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE and TIMESTAMP, such as following: create table INFO ( object_id NUMBER(18) not null, oc_name VARCHAR2(50), last_time DATE, insert_time TIMESTAMP(3) default SYSDATE, ) It seems DSS does not support the datatype of TIMESTAMP, When I delete the datatype of TIMESTAMP, it can generate dss server successfully. I do not know why DSS do not support datatype of TIMESTAMP and how to solve it. stevegyc ___ 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 -- 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] [DSS]Generating Using a Given Database Structure failed
The tentative date for the DSS 3.2.2 release is Sep 26th. You can find DSS release dates from [1] [1] https://wso2.org/jira/browse/DS#selectedTab=com.atlassian.jira.plugin.system.project%3Aversions-panel On Wed, Sep 10, 2014 at 2:59 PM, stevegyc steve...@163.com wrote: Hi Chanika: Thank you very much! By the way, do you know when DSS 3.2.2 will be released? -- stevegyc *From:* Chanika Geeganage chan...@wso2.com *Date:* 2014-09-10 17:24 *To:* stevegyc steve...@163.com *CC:* Dakshika Jayathilaka daksh...@wso2.com; dev dev@wso2.org *Subject:* Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, I was able to reproduce this error. From the corresponding resultSet (for TIMESTAMP type), when we try to get the SQL Type using resultSet.getInt(DATA_TYPE) it gives which is mapped to SQL Type 'OTHER' [1]. It is an issue in the Oracle ResultSet Implementation, anyway we will handle this in the DSS 3.2.2 by converting that to a STRING value. I have created a JIRA to track this issue. [1] http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Types.DATE [2] https://wso2.org/jira/browse/DS-959 Thanks On Wed, Sep 10, 2014 at 1:17 PM, stevegyc steve...@163.com wrote: Hi Dakshika: Thank you for your reply. But it is difficult for me to change the format of TIMESTAMP. Can you tell me the location of the related code approximately? -- stevegyc *From:* Dakshika Jayathilaka daksh...@wso2.com *Date:* 2014-09-10 14:41 *To:* stevegyc steve...@163.com *CC:* dev dev@wso2.org *Subject:* Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed AFAIK it should -MM-DD HH24:MI:SS.FF -- 1997-01-31 09:26:50.12 *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 3:06 AM, stevegyc steve...@163.com wrote: Hi Dakshika The format of TIMESTAMP value is like 05-2月 -12 11.17.41.000 下午 , what is the format that DSS support? -- stevegyc *From:* Dakshika Jayathilaka daksh...@wso2.com *Date:* 2014-09-10 10:25 *To:* stevegyc steve...@163.com *CC:* dev dev@wso2.org *Subject:* Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, What is the format of TIMESTAMP value ? If your sending incorrect format that will cause some issues. *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 2:16 AM, stevegyc steve...@163.com wrote: Hi: When I generated dss server by using a given database structure, it failed and following error log displayed. TID: [0] [DSS] [2014-09-09 14:50:42,957] WARN {org.wso2.carbon.dataservices.core.script.DSGenerator} - Insert operation not created {org.wso2.carbon.dataservices.core.script.DSGenerator} DS Code: UNKNOWN_ERROR Nested Exception:- DS Fault Message: Invalid query param sqlType: 'null'. DS Code: UNKNOWN_ERROR at org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123) at org.wso2.carbon.dataservices.core.engine.QueryParam.init(QueryParam.java:76) at org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754) at org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687) at org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472) at org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236) at org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197) at org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160) at org.wso2.carbon.dataservices.core.script.DSGenerator.init(DSGenerator.java:108) at org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447) My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE and TIMESTAMP, such as following: create table INFO ( object_id NUMBER(18) not null, oc_name VARCHAR2(50), last_time DATE, insert_time TIMESTAMP(3) default SYSDATE, ) It seems DSS does not support the datatype of TIMESTAMP, When I delete the datatype of TIMESTAMP, it can generate dss server successfully. I do not know why DSS do not support datatype of TIMESTAMP and how to solve it. -- stevegyc ___ 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 -- Best Regards.. Chanika Geeganage Software Engineer WSO2, Inc.; http://wso2.com -- Best Regards.. Chanika
[Dev] Updated Invitation: Code Review - WSO2 EAM Testcases @ Thu Sep 11, 2014 1:30pm - 2:30pm (Kasun Dissanayake)
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20140911T08Z DTEND:20140911T09Z DTSTAMP:20140910T094032Z ORGANIZER;CN=Kasun Dissanayake:mailto:kas...@wso2.com UID:4ugfmn2hv9ijhu64g30tn8c...@google.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Rajeeva Uthayasangar;X-NUM-GUESTS=0:mailto:raje...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Ruwan Yatawara;X-NUM-GUESTS=0:mailto:ruw...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Jenananthan Yogendran;X-NUM-GUESTS=0:mailto:jenanant...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Rushmin Fernando;X-NUM-GUESTS=0:mailto:rush...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE ;CN=Kasun Dissanayake;X-NUM-GUESTS=0:mailto:kas...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Sumedha Rubasinghe;X-NUM-GUESTS=0:mailto:sume...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Dinusha Senanayaka;X-NUM-GUESTS=0:mailto:dinu...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Krishantha Samaraweera;X-NUM-GUESTS=0:mailto:krishan...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Dharshana Warusavitharana;X-NUM-GUESTS=0:mailto:dharsha...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Nuwan Wimalasekara;X-NUM-GUESTS=0:mailto:nuw...@wso2.com CREATED:20140910T050511Z DESCRIPTION:View your event at https://www.google.com/calendar/event?action =VIEWeid=NHVnZm1uMmh2OWlqaHU2NGczMHRuOGMzZTggZGV2QHdzbzIub3Jntok=MTUja2Fz dW51QHdzbzIuY29tOWIzNWJjMGY3MWVlZDU0ZGY0MjhjZmE0ZjY2YmYxNTNiZWVlMDhhYgctz= Asia/Colombohl=en. LAST-MODIFIED:20140910T094031Z LOCATION:WSO2 Inc.\, LK 3rd Floor Meeting Room SEQUENCE:2 STATUS:CONFIRMED SUMMARY:Code Review - WSO2 EAM Testcases TRANSP:TRANSPARENT END:VEVENT END:VCALENDAR invite.ics Description: application/ics ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BRS]How to modify date formats in drools.
Hi Stevegyc, According to drools document, The date format dd-mmm- is supported by default. You can customize this by providing an alternative date format mask as the System property named drools.dateformat. If more control is required, use a restriction. So you can set custom value to System property drools.dateformat to modify the data format. According to that below restriction should also work. rule Date-restricted rule date-effective 10.9.2014 8:00 # 8 AM date-expires 10.9.2014 17:00 # 5 PM when then end Thanks, Waruna On Wed, Sep 10, 2014 at 8:42 AM, stevegyc steve...@163.com wrote: Hi: The default date format in drools is 'dd-MMM-', but in the definition of rule attribute date-effective, it says it contain a date and time definition. It need to use the date format as 'dd-MMM- HH:mm'. Any one know how to modify the date format to 'dd-MMM- HH:mm'? -- stevegyc ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Waruna Lakshitha Jayaweera Software Engineer WSO2 Inc; http://wso2.com phone: +94713255198 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Problem in Creating Jaggery App with IntelliJ Idea
Hi, I was trying with creating a Jaggery App using IntelliJ Idea after adding JaggeryEditor plugin downloaded from [1]. I'm following the steps mentioned in [2] and getting following error when try to create a .jag file. [1] http://plugins.jetbrains.com/plugin?pr=ideapluginId=7108 [2] http://jaggeryjs.org/editor.jag Error Log : Assertion failed: TEMPLATE_HTML_TEXT java.lang.Throwable at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:141) at com.intellij.psi.impl.source.PsiFileImpl.setContentElementType(PsiFileImpl.java:96) at org.wso2.fileType.JaggeryFileViewProvider.createFile(JaggeryFileViewProvider.java:251) at com.intellij.psi.MultiplePsiFilesPerDocumentFileViewProvider.getPsiInner(MultiplePsiFilesPerDocumentFileViewProvider.java:85) at com.intellij.psi.SingleRootFileViewProvider.getPsi(SingleRootFileViewProvider.java:147) at com.intellij.psi.MultiplePsiFilesPerDocumentFileViewProvider.getAllFiles(MultiplePsiFilesPerDocumentFileViewProvider.java:58) at com.intellij.codeInsight.preview.ImageOrColorPreviewManager.a(ImageOrColorPreviewManager.java:128) at com.intellij.codeInsight.preview.ImageOrColorPreviewManager.a(ImageOrColorPreviewManager.java:102) at com.intellij.codeInsight.preview.ImageOrColorPreviewManager.access$000(ImageOrColorPreviewManager.java:52) at com.intellij.codeInsight.preview.ImageOrColorPreviewManager$1.editorCreated(ImageOrColorPreviewManager.java:71) at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:90) at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34) at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:67) at com.sun.proxy.$Proxy30.editorCreated(Unknown Source) at com.intellij.openapi.editor.impl.EditorFactoryImpl.a(EditorFactoryImpl.java:193) at com.intellij.openapi.editor.impl.EditorFactoryImpl.createEditor(EditorFactoryImpl.java:166) at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.b(TextEditorComponent.java:162) at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent.init(TextEditorComponent.java:111) at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl$PsiAwareTextEditorComponent.init(PsiAwareTextEditorImpl.java:67) at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl$PsiAwareTextEditorComponent.init(PsiAwareTextEditorImpl.java:60) at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.createEditorComponent(PsiAwareTextEditorImpl.java:44) at com.intellij.openapi.fileEditor.impl.text.TextEditorImpl.init(TextEditorImpl.java:46) at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.init(PsiAwareTextEditorImpl.java:38) at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorProvider.createEditor(PsiAwareTextEditorProvider.java:53) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:797) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:738) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$8.run(FileEditorManagerImpl.java:718) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:715) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:652) at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:139) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$14.run(FileEditorManagerImpl.java:1046) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99) at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85) at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:1042) at com.intellij.ide.util.EditorHelper.openInEditor(EditorHelper.java:56) at com.intellij.ide.projectView.impl.ProjectViewImpl$MyIdeView.selectElement(ProjectViewImpl.java:1263) at com.intellij.ide.actions.CreateElementActionBase.actionPerformed(CreateElementActionBase.java:80) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:266) at
[Dev] Hazlecast Error in Centos 6.5
Hi All, While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below error during server start-up. Any idea for this exception. ERROR {org.apache.cassandra.service.CassandraDaemon} - Exception in thread Thread[Cluster [wso2.carbon.domain] coordinator elector thread,5,main] java.lang.NoSuchMethodError: com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock; at org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227) -- Regards, Thayalan Sivapaleswararajah Associate Technical Lead - QA Mob: +94(0)777872485 Tel : +94(0)(11)2145345 Fax : +94(0)(11)2145300 Email: thaya...@wso2.com *Disclaimer*: *This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, 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] Hazlecast Error in Centos 6.5
Looks like a jar incompatibility. What patches have you put? Is the Hazelcast upgrade patch there? Also, is the corresponding kernel patch there? Azeez On Wed, Sep 10, 2014 at 4:13 PM, Thayalan thaya...@wso2.com wrote: Hi All, While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below error during server start-up. Any idea for this exception. ERROR {org.apache.cassandra.service.CassandraDaemon} - Exception in thread Thread[Cluster [wso2.carbon.domain] coordinator elector thread,5,main] java.lang.NoSuchMethodError: com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock; at org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227) -- Regards, Thayalan Sivapaleswararajah Associate Technical Lead - QA Mob: +94(0)777872485 Tel : +94(0)(11)2145345 Fax : +94(0)(11)2145300 Email: thaya...@wso2.com *Disclaimer*: *This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, 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.* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919blog: **http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Hazlecast Error in Centos 6.5
I faced the same issue when switching from the older svn repo QA used to the new version in the QA cloud. Think was due to svn repo missmatch What I did was; 1. backup all artifacts 2. removes everything in $CARBON_HOME/repository/deployment/server/ (including .svn hidden files) 3. restart the server and add the artifacts Regards, NuwanS. On Wed, Sep 10, 2014 at 4:13 PM, Thayalan thaya...@wso2.com wrote: Hi All, While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below error during server start-up. Any idea for this exception. ERROR {org.apache.cassandra.service.CassandraDaemon} - Exception in thread Thread[Cluster [wso2.carbon.domain] coordinator elector thread,5,main] java.lang.NoSuchMethodError: com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock; at org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227) -- Regards, Thayalan Sivapaleswararajah Associate Technical Lead - QA Mob: +94(0)777872485 Tel : +94(0)(11)2145345 Fax : +94(0)(11)2145300 Email: thaya...@wso2.com *Disclaimer*: *This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, 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 -- *Nuwan Silva* *Senior Software Engineer - QA* Mobile: +94779804543 WSO2 Inc. lean . enterprise . middlewear. http://www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Hazlecast Error in Centos 6.5
Set-up the cluster using the build [1] below. There were no other patches applied to the build. Java version detail is in [2]. 1. https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-09-05_wso2bam-2.5.0.zip 2. Java Version details java version 1.7.0_65 Java(TM) SE Runtime Environment (build 1.7.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) On Wed, Sep 10, 2014 at 4:21 PM, Afkham Azeez az...@wso2.com wrote: Looks like a jar incompatibility. What patches have you put? Is the Hazelcast upgrade patch there? Also, is the corresponding kernel patch there? Azeez On Wed, Sep 10, 2014 at 4:13 PM, Thayalan thaya...@wso2.com wrote: Hi All, While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below error during server start-up. Any idea for this exception. ERROR {org.apache.cassandra.service.CassandraDaemon} - Exception in thread Thread[Cluster [wso2.carbon.domain] coordinator elector thread,5,main] java.lang.NoSuchMethodError: com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock; at org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227) -- Regards, Thayalan Sivapaleswararajah Associate Technical Lead - QA Mob: +94(0)777872485 Tel : +94(0)(11)2145345 Fax : +94(0)(11)2145300 Email: thaya...@wso2.com *Disclaimer*: *This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, 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.* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 %2B94%2077%203320919blog: * *http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- Regards, Thayalan Sivapaleswararajah Associate Technical Lead - QA Mob: +94(0)777872485 Tel : +94(0)(11)2145345 Fax : +94(0)(11)2145300 Email: thaya...@wso2.com *Disclaimer*: *This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, 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] Hazlecast Error in Centos 6.5
small mistake please disregard my reply. similar issue but not the same. On Wed, Sep 10, 2014 at 4:24 PM, Nuwan Silva nuw...@wso2.com wrote: I faced the same issue when switching from the older svn repo QA used to the new version in the QA cloud. Think was due to svn repo missmatch What I did was; 1. backup all artifacts 2. removes everything in $CARBON_HOME/repository/deployment/server/ (including .svn hidden files) 3. restart the server and add the artifacts Regards, NuwanS. On Wed, Sep 10, 2014 at 4:13 PM, Thayalan thaya...@wso2.com wrote: Hi All, While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below error during server start-up. Any idea for this exception. ERROR {org.apache.cassandra.service.CassandraDaemon} - Exception in thread Thread[Cluster [wso2.carbon.domain] coordinator elector thread,5,main] java.lang.NoSuchMethodError: com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock; at org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227) -- Regards, Thayalan Sivapaleswararajah Associate Technical Lead - QA Mob: +94(0)777872485 Tel : +94(0)(11)2145345 Fax : +94(0)(11)2145300 Email: thaya...@wso2.com *Disclaimer*: *This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, 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 -- *Nuwan Silva* *Senior Software Engineer - QA* Mobile: +94779804543 WSO2 Inc. lean . enterprise . middlewear. http://www.wso2.com -- *Nuwan Silva* *Senior Software Engineer - QA* Mobile: +94779804543 WSO2 Inc. lean . enterprise . middlewear. http://www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Hazlecast Error in Centos 6.5
It is a problem in the distribution. Somehow the Hazelcast version kernel version are incompatible. On Wed, Sep 10, 2014 at 4:29 PM, Thayalan thaya...@wso2.com wrote: Set-up the cluster using the build [1] below. There were no other patches applied to the build. Java version detail is in [2]. 1. https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-09-05_wso2bam-2.5.0.zip 2. Java Version details java version 1.7.0_65 Java(TM) SE Runtime Environment (build 1.7.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) On Wed, Sep 10, 2014 at 4:21 PM, Afkham Azeez az...@wso2.com wrote: Looks like a jar incompatibility. What patches have you put? Is the Hazelcast upgrade patch there? Also, is the corresponding kernel patch there? Azeez On Wed, Sep 10, 2014 at 4:13 PM, Thayalan thaya...@wso2.com wrote: Hi All, While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the below error during server start-up. Any idea for this exception. ERROR {org.apache.cassandra.service.CassandraDaemon} - Exception in thread Thread[Cluster [wso2.carbon.domain] coordinator elector thread,5,main] java.lang.NoSuchMethodError: com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock; at org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227) -- Regards, Thayalan Sivapaleswararajah Associate Technical Lead - QA Mob: +94(0)777872485 Tel : +94(0)(11)2145345 Fax : +94(0)(11)2145300 Email: thaya...@wso2.com *Disclaimer*: *This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, 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.* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 %2B94%2077%203320919blog: * *http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- Regards, Thayalan Sivapaleswararajah Associate Technical Lead - QA Mob: +94(0)777872485 Tel : +94(0)(11)2145345 Fax : +94(0)(11)2145300 Email: thaya...@wso2.com *Disclaimer*: *This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, 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.* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919blog: **http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 AS Cluster issue
Hi Kasun, I made the change u proposed but still not working, BTW I'll look @ Cluster 4.2.0 guide. Thanks Godwin On Wed, Sep 10, 2014 at 2:44 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi, On Wed, Sep 10, 2014 at 10:49 AM, Danushka Fernando danush...@wso2.com wrote: Goodwin This error means you haven't configured the setup correctly. When you start up the server (AS) do you see any logs saying that AS joined to the cluster? I guess there should be some error there. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Sep 10, 2014 at 2:09 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am configuring AS cluster with WSO2 ELB. Once completed the configuration and send an request to management node it gives a error as TenantAwareLoadBalanceEndpoint No application members available in ELB. What can be the issue for this ? I saw few jira also there for this and couldn't find the solution. This is the sample I am following, http://madhukaudantha.blogspot.com/2013/12/wso2-application-server-clustering.html This doesn't look correct. The group_mgt_port in ELB should be different from its localMemberPort value. Try changing the localMemberPort of ELB to something other than 4000, say, 4100. And, why are you not following the Cluster 4.2.0 guide?? KasunG Godwin Thanks -- *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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *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
[Dev] API Manager latest pack integration issue with BAM 2.3.0.
Hi When i am integrating API Manager latest pack(04/09/2014) with BAM 2.3.0 and invoking the API through Jmeter, following error message has prompted in API Manager side. Please provide directives in proceeding. ERROR - AsyncDataPublisher Stream definition already exist org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException: Same stream id with different definition already defined before sending this event definitions to TCP,10.100.5.45:7612,TCP,10.100.5.45:7712 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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) Caused by: org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException: Thrift Different Stream Definition Already Defined at org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222) ... 7 more Caused by: ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar event stream for StreamDefinition{ streamId='org.wso2.apimgt.statistics.fault:1.0.0', name='org.wso2.apimgt.statistics.fault', version='1.0.0', nickName='API Manager Fault Data', description='Fault Data', tags=null, metaData=[Attribute{name='clientType', type=STRING}], correlationData=null, payloadData=[Attribute{name='consumerKey', type=STRING}, Attribute{name='context', type=STRING}, Attribute{name='api_version', type=STRING}, Attribute{name='api', type=STRING}, Attribute{name='resourcePath', type=STRING}, Attribute{name='method', type=STRING}, Attribute{name='version', type=STRING}, Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage', type=STRING}, Attribute{name='requestTime', type=STRING}, Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain', type=STRING}, Attribute{name='hostName', type=STRING}, Attribute{name='apiPublisher', type=STRING}, Attribute{name='applicationName', type=STRING}, Attribute{name='applicationId', type=STRING}], } with the same name and version already exist: StreamDefinition{ streamId='org.wso2.apimgt.statistics.fault:1.0.0', name='org.wso2.apimgt.statistics.fault', version='1.0.0', nickName='API Manager Fault Data', description='Fault Data', tags=null, metaData=[Attribute{name='clientType', type=STRING}], correlationData=null, payloadData=[Attribute{name='consumerKey', type=STRING}, Attribute{name='context', type=STRING}, Attribute{name='api_version', type=STRING}, Attribute{name='api', type=STRING}, Attribute{name='resource', type=STRING}, Attribute{name='method', type=STRING}, Attribute{name='version', type=STRING}, Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage', type=STRING}, Attribute{name='requestTime', type=STRING}, Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain', type=STRING}, Attribute{name='hostName', type=STRING}, Attribute{name='apiPublisher', type=STRING}, Attribute{name='applicationName', type=STRING}, Attribute{name='applicationId', type=STRING}], } ) at org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$defineStream_result.read(ThriftEventTransmissionService.java:1441) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) at org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80) at org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.defineStream(ThriftEventTransmissionService.java:66) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:109) ... 8 more -- *Chalitha Maheshwari* Software Engineer-QA, WSO2 Inc. *E-mail:* chali...@wso2.com *Mobile: *+94710 411 112 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] getExternalAPIStores method no longer available in publisher host object
Hi, When I ran the APIM test cases , some methods in APIProviderHostObject.java are changed and jsFunction_getExternalAPIStores method is commented out in 1.2.2 code path hence there are test failures. Can i Know the reason for commenting out above method? [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.2.2/src/main/java/org/wso2/carbon/apimgt/hostobjects/APIProviderHostObject.java -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please merge Greg Integration test commit#29 - UI Integration Test Module
Hi Greg Team, Please merge the pull request https://github.com/wso2-dev/product-greg/pull/29. This will add the UI integration test module for Greg Thanks, Nuwanw -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Graceful Restart is not working
On 10 September 2014 16:55, Nipuni Perera nip...@wso2.com wrote: Hi Lasantha, I have compared AS 5.2.1 and AS 5.3.0-SNAPSHOT versions with osgi console enabled. I could see that the following 2 bundles are in unsatisfied state in 5.2.1 server while they are in active state in 5.3.0-SNAPSHOT. (AS does not use indexing feature hence does not has indexingConfiguration entry in registry.xml. ) Unsatisfiedorg.wso2.carbon.registry.indexing org.wso2.carbon.registry.indexing(bid=340) Unsatisfiedregistry.search.dscomponent org.wso2.carbon.registry.search(bid=347) When server is shutting down, services list in waitForServerTaskCompletion() in ServerManagement.java [1] (line 110) contains 2 services in 5.3.0-SNAPSHOT (RegistryCoreServiceComponent and IndexingServiceComponent) and in 5.2.1 pack list only one (RegistryCoreServiceComponent). The NPE occurs when shutting down the service IndexingServiceComponent in 5.3.0-SNAPSHOT. It seems that the unsatisfied bundles in earlier version is fixed in later version. Oh OK... I thought the swallowed NPE was somehow getting logged during a graceful restart, which is why I referenced the earlier thread. Seems the JIRA raised by you is for a different issue. As I debug I could see that in the normal startup this NPE is thrown but swallowed in 5.2.1. Will debug further and update the thread with the findings. Thanks for looking into this! [1] https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/ServerManagement.java Thanks, Nipuni On Wed, Sep 10, 2014 at 2:43 PM, Lasantha Fernando lasan...@wso2.com wrote: Hi Nipuni, Can you also verify if this code segment affects a normal startup as well (other than a graceful restart)? i.e. if u start with OSGi console, you can verify if registry.search.dscomponent service is satisfied or not. Then if you drill down the unsatisfied component, you will probably be able to find the NPE in the reasons listed for OSGi service being unsatisfied. I think that this NPE is thrown at normal startup as well, but somehow swallowed up when the bundle loading happens. I mean that was the case in the issue mentioned in the earlier thread. Thanks, Lasantha On 10 September 2014 14:26, Ajith Vitharana aji...@wso2.com wrote: Hi Nipuni, You need to do two things here, 1. If you are not using the registry search feature , then need to find the place that bundle going to include to the product. 2. You can do a null check and proceed in code.[ @Subash this is bug in registry code please fix.] -Ajith. On Wed, Sep 10, 2014 at 12:47 PM, Nipuni Perera nip...@wso2.com wrote: Hi, Adding null check can avoid the NPE exception but may not solve the issue properly. @Lasantha, I will check with GREG team and see if this can be solved with touchpoints. @Firzhan. I have gone through the discussion [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. earlier and your findings, will check with GREG team. Thanks, Nipuni On Wed, Sep 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote: Hi All, We have already discussed this issue in the mail thread [Dev] [AS] Error in shutting down the server : Cannot put transports into maintenance mode : NPE from RegistryConfigLoader. Rather than checking the null point, I feel like we have to investigate why the registry's search feature bundle getting included to the products which are not using registry search feature ( BPS ). @Ajith:- You thoughts on this Regards, Firzhan On Wed, Sep 10, 2014 at 11:41 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi, On 10 September 2014 10:19, Nipuni Perera nip...@wso2.com wrote: Hi, Yes. I can add a null check to indexingConfig element and continue only if the value is available (But it will add the whole method execution inside constructor RegistryConfigLoader() to an if block - line 75 to 150 of [1]). Is this preferable? public RegistryConfigLoader() { try { FileInputStream fileInputStream = new FileInputStream(getConfigFile()); StAXOMBuilder builder = new StAXOMBuilder( CarbonUtils.replaceSystemVariablesInXml(fileInputStream)); OMElement configElement = builder.getDocumentElement(); OMElement indexingConfig = configElement.getFirstChildWithName( new QName(indexingConfiguration)); if (indexingConfig != null) { //newly added if block ... ... } } } catch (FileNotFoundException e) { // This virtually cannot happen as registry.xml is necessary to start up the registry log.error(registry.xml has not been found, e); } catch (RegistryException e) {
Re: [Dev] Build failed in Jenkins: product-ss #74
Hi Kasun, Yes, the workspace does include .m2. Sample .m2 repo sizes; product-greg : 13GB product-as: 17GB product-esb : 16GB prodcut-ss: 14GB product-dss : 16GB product-is : 5.4GB product-cep : 9.2GB On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Maheshika, Can you check the size of the m2 repos inside these workspaces? We maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not delete the old snapshots from its local m2 repo. So, for 15 different products with builds that's been running 100 times: 15 x 100 x 250MB = 37GB of space. With figures like this, the total size of m2 repos could be close to 100GBs. So, I think that these m2 repos might be one of the culprit. @Maheshika, Check the size of the m2 repos, and let us know so we can be sure. Jenkins do have a Maven repository cleaner which is configured for our Jenkins instance as well. May be it's not working properly! Thanks, KasunG On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun The workspace directory is where Jenkins builds the projects. It contains the source code checkout and any files generated from the builds. The current size of the directory is 210GB. Jenkins creates a workspace directory for each build plan. Therefore, the total workspace directory size will increase. The build plans have been configured to discard old builds. Therefore, assume there could be any old builds left. On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe kas...@wso2.com wrote: Why does workspace takes too much space? Is it because of the archived old builds? On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Azeez Yes, the build has been configured to Discard old builds and artifacts. According to the Disk Usage report, workspace uses majority of the disk space. Therefore, we would have to remove workspace for each build plan periodically. This can be done manually or enable Workspace clean up plugin to clean daily. On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez az...@wso2.com wrote: Are the build logs, artifacts etc. cleaned from time to time, if not, we will run into issues. On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Harsha Prabath We are in the process of increasing the disk space. Hi Rumesh Most Jenkins builds have failed due to inadequate disk space. Therefore, please increase the Jenkins disk space. On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara hars...@wso2.com wrote: Hi Maheshika, This is occurs time to time. It says no space left on the device. This is the reason for the previous build failure too. As I remember day before yesterday, build was successful. Thanks, Harsha On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, It looks like we're still running into this issue in the builder machine. Would you be able to have a look? Cheers, Prabath On Wed, Sep 10, 2014 at 3:16 AM, cbuil...@wso2.org wrote: See https://wso2.org/jenkins/job/product-ss/74/ -- [...truncated 729 lines...] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS [0.384s] [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS [0.025s] [INFO] WSO2 Storage Server UI styles . SUCCESS [50.917s] [INFO] WSO2 Storage Server - Features Parent . SUCCESS [0.023s] [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS [0.035s] [INFO] WSO2 Storage Server - Styles Features . SUCCESS [0.625s] [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS [1:45.002s] [INFO] WSO2 Storage Server - Distribution FAILURE [10.339s] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2:53.874s [INFO] Finished at: Tue Sep 09 21:46:20 UTC 2014 [INFO] Final Memory: 32M/476M [INFO] ERROR: Asynchronous execution failure java.util.concurrent.ExecutionException: java.io.IOException: No space left on device at hudson.remoting.Channel$3.adapt(Channel.java:772) at hudson.remoting.Channel$3.adapt(Channel.java:767) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:185) at hudson.maven.Maven3Builder.call(Maven3Builder.java:141) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at
Re: [Dev] [DSS]Generating Using a Given Database Structure failed
Hi Chanika: I see! stevegyc From: Chanika Geeganage Date: 2014-09-10 18:08 To: stevegyc CC: Dakshika Jayathilaka; dev Subject: Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed The tentative date for the DSS 3.2.2 release is Sep 26th. You can find DSS release dates from [1] [1] https://wso2.org/jira/browse/DS#selectedTab=com.atlassian.jira.plugin.system.project%3Aversions-panel On Wed, Sep 10, 2014 at 2:59 PM, stevegyc steve...@163.com wrote: Hi Chanika: Thank you very much! By the way, do you know when DSS 3.2.2 will be released? stevegyc From: Chanika Geeganage Date: 2014-09-10 17:24 To: stevegyc CC: Dakshika Jayathilaka; dev Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, I was able to reproduce this error. From the corresponding resultSet (for TIMESTAMP type), when we try to get the SQL Type using resultSet.getInt(DATA_TYPE) it gives which is mapped to SQL Type 'OTHER' [1]. It is an issue in the Oracle ResultSet Implementation, anyway we will handle this in the DSS 3.2.2 by converting that to a STRING value. I have created a JIRA to track this issue. [1] http://docs.oracle.com/javase/6/docs/api/constant-values.html#java.sql.Types.DATE [2] https://wso2.org/jira/browse/DS-959 Thanks On Wed, Sep 10, 2014 at 1:17 PM, stevegyc steve...@163.com wrote: Hi Dakshika: Thank you for your reply. But it is difficult for me to change the format of TIMESTAMP. Can you tell me the location of the related code approximately? stevegyc From: Dakshika Jayathilaka Date: 2014-09-10 14:41 To: stevegyc CC: dev Subject: Re: Re: [Dev] [DSS]Generating Using a Given Database Structure failed AFAIK it should -MM-DD HH24:MI:SS.FF -- 1997-01-31 09:26:50.12 Dakshika Jayathilaka Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 3:06 AM, stevegyc steve...@163.com wrote: Hi Dakshika The format of TIMESTAMP value is like 05-2月 -12 11.17.41.000 下午 , what is the format that DSS support? stevegyc From: Dakshika Jayathilaka Date: 2014-09-10 10:25 To: stevegyc CC: dev Subject: Re: [Dev] [DSS]Generating Using a Given Database Structure failed Hi, What is the format of TIMESTAMP value ? If your sending incorrect format that will cause some issues. Dakshika Jayathilaka Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Wed, Sep 10, 2014 at 2:16 AM, stevegyc steve...@163.com wrote: Hi: When I generated dss server by using a given database structure, it failed and following error log displayed. TID: [0] [DSS] [2014-09-09 14:50:42,957] WARN {org.wso2.carbon.dataservices.core.script.DSGenerator} - Insert operation not created {org.wso2.carbon.dataservices.core.script.DSGenerator} DS Code: UNKNOWN_ERROR Nested Exception:- DS Fault Message: Invalid query param sqlType: 'null'. DS Code: UNKNOWN_ERROR at org.wso2.carbon.dataservices.core.engine.QueryParam.validateQueryParam(QueryParam.java:123) at org.wso2.carbon.dataservices.core.engine.QueryParam.init(QueryParam.java:76) at org.wso2.carbon.dataservices.core.script.DSGenerator.getQueryParamList(DSGenerator.java:754) at org.wso2.carbon.dataservices.core.script.DSGenerator.getInsertQuery(DSGenerator.java:687) at org.wso2.carbon.dataservices.core.script.DSGenerator.addInsertOperation(DSGenerator.java:472) at org.wso2.carbon.dataservices.core.script.DSGenerator.addOperations(DSGenerator.java:236) at org.wso2.carbon.dataservices.core.script.DSGenerator.makeService(DSGenerator.java:197) at org.wso2.carbon.dataservices.core.script.DSGenerator.generateService(DSGenerator.java:160) at org.wso2.carbon.dataservices.core.script.DSGenerator.init(DSGenerator.java:108) at org.wso2.carbon.dataservices.core.admin.DataServiceAdmin.getDSService(DataServiceAdmin.java:447) My DB is oracle and my table only include 4 datatypes NUMBER, VARCHAR2, DATE and TIMESTAMP, such as following: create table INFO ( object_id NUMBER(18) not null, oc_name VARCHAR2(50), last_time DATE, insert_time TIMESTAMP(3) default SYSDATE, ) It seems DSS does not support the datatype of TIMESTAMP, When I delete the datatype of TIMESTAMP, it can generate dss server successfully. I do not know why DSS do not support datatype of TIMESTAMP and how to solve it. stevegyc ___ 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 -- Best Regards.. Chanika Geeganage Software Engineer WSO2, Inc.; http://wso2.com -- 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] Carbon component deployment halts due to third party libraries used.
Hi Pubudu, Its working now. Thanks a lot for looking in to it. Regards, Supun On Wed, Sep 10, 2014 at 3:13 PM, Supun Sethunga sup...@wso2.com wrote: Hi Pubudu, Attached is the pom file. Thanks, On Wed, Sep 10, 2014 at 2:26 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi Supun, Please make sure that third party jar is in 'resolve' state. Be aware that importing a package doesn't import its sub-packages and there is no relationship among nested packages. You have to specifically mention Import-Package: org.apache.commons.math3.stat.descriptive; version=[3.3.0,4.0.0) Please attach your pom file as well. Thanks -Pubudu On Wed, Sep 10, 2014 at 1:04 PM, Supun Sethunga sup...@wso2.com wrote: Correction : *CARBON_HOME/repository/components/lib folder* On Wed, Sep 10, 2014 at 1:00 PM, Supun Sethunga sup...@wso2.com wrote: Hi, The imported library *org.apache.commons.math3 *is being not identified. (gets the following output in the osgi console) *reference:file:../dropins/org.wso2.carbon.ml.dataset-0.1.0.jar [340]* * Direct constraints which are unresolved:* *Missing imported package org.apache.commons.math3.stat.descriptive_[3.3.0,4.0.0)* Tried putting the relevant third-party jar file to the CARBON_HOME/repository/components/plugins folder, and deploy. But still not resolved. Thanks, Supun On Wed, Sep 10, 2014 at 11:49 AM, Danushka Fernando danush...@wso2.com wrote: I think best way to figure out this is to start the server with osgi console and find out the unsatisfied items. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga sup...@wso2.com wrote: Hi Sameera / Carbon team, Im trying to expose some Machine Learning services as a carbon component. The component I wrote builds successfully. But when I try to deploy this component (tried deploying in both BAM and ESB), the deployment process halts, saying the following. *[2014-09-10 10:32:04,915] INFO {org.apache.cassandra.thrift.ThriftServer} - Listening for thrift clients...[2014-09-10 10:33:05,754] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0* Found out that the reason for this was the logger log4j (when I replace log4j with commons-logger, the component got deployed) and a class in a third party library org.apache.commons.math3.stat.descriptive.DescriptiveStatistics. Any idea what causes this issue? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Pubudu Dissanayake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mob: + 94 775 503 304 Blog: http://geekdetected.wordpress.com/ Linkedin: *http://lk.linkedin.com/in/pubududissanayake* http://lk.linkedin.com/in/pubududissanayake Flickr : https://www.flickr.com/photos/pubudufx/ Twitter: https://twitter.com/GeekInAction -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Testing API Manager Statistics with Cassandra Data Purging
Hi Nuwan, We have recently implemented cassandra data purging support through BAM toolboxes(discussed under [1]). We can apply data deletion for API-M/BAM use case but it requires a few modifications to the current API-M toolbox. Herewith, I have have attached the modified API-Manager toobox and the diff file. Changes are backward compatible so attached toolbox can be applied to released BAM versions as well. However, data deletion can't be scheduled by toolboxes with the older BAM releases but still you can use the existing BAM data archival feature [2] which basically does the same thing for testing purposes. Would it possible to release API-M 1.7.1 with this toolbox so once BAM 2.5.0 is released we can get the data deletion functionality to work. [1] - [BAM] Scheduling Cassandra Data Purging through BAM Toolboxes [2] - https://docs.wso2.com/display/BAM241/Archiving+Cassandra+Data -- Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317 Index: API_Manager_Analytics/analytics/am_stats_analyzer === --- API_Manager_Analytics/analytics/am_stats_analyzer (revision 25959) +++ API_Manager_Analytics/analytics/am_stats_analyzer (working copy) @@ -15,7 +15,7 @@ 'hive.jdbc.table.create.query' = 'CREATE TABLE API_REQUEST_SUMMARY ( api VARCHAR(100), api_version VARCHAR(100), version VARCHAR(100), apiPublisher VARCHAR(100),consumerKey VARCHAR(100),userId VARCHAR(100), context VARCHAR(100),max_request_time BIGINT, total_request_count INT, hostName VARCHAR(100), year SMALLINT, month SMALLINT, day SMALLINT, time VARCHAR(30),PRIMARY KEY(api,api_version,apiPublisher,consumerKey,userId,context,hostName,time))' ); -insert overwrite table APIRequestSummaryData select api, api_version,version, apiPublisher, COALESCE(consumerKey,''),userId,context,max(requestTime) as max_request_time,sum(request) as total_request_count,hostName, year(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )) as year, month(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )) as month,day(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )) as day,concat(substring(from_unixtime(cast(requestTime/1000 as BIGINT), '-MM-dd HH:mm:ss'),0,16),':00') as time from APIRequestData group by api,api_version,version,apiPublisher,consumerKey,userId,context,hostName,year(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )), month(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )),day(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )),hour(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )),minute(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )),substring(from_unixtime(cast(requestTime/1000 as BIGINT), '-MM-dd HH:mm:ss'),0,16); +insert overwrite table APIRequestSummaryData select api, api_version,version, apiPublisher, COALESCE(consumerKey,''),userId,context,max(requestTime) as max_request_time,sum(request) as total_request_count,hostName, year(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )) as year, month(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )) as month,day(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )) as day,concat(substring(from_unixtime(cast(requestTime/1000 as BIGINT), '-MM-dd HH:mm:ss'),0,16),':00') as time from APIRequestData where context is not NULL group by api,api_version,version,apiPublisher,consumerKey,userId,context,hostName,year(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )), month(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )),day(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )),hour(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )),minute(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd HH:mm:ss.SSS' )),substring(from_unixtime(cast(requestTime/1000 as BIGINT), '-MM-dd HH:mm:ss'),0,16); CREATE EXTERNAL TABLE IF NOT EXISTS APIVersionUsageSummaryData ( api STRING, version STRING, apiPublisher STRING,context STRING,total_request_count INT, hostName STRING,year SMALLINT,month SMALLINT,day SMALLINT, time STRING) STORED BY 'org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCStorageHandler' TBLPROPERTIES ( 'wso2.carbon.datasource.name'='WSO2AM_STATS_DB', @@ -25,7 +25,7 @@ total_request_count INT,hostName VARCHAR(100), year SMALLINT, month SMALLINT, day SMALLINT, time VARCHAR(30), PRIMARY KEY(api,version,apiPublisher,context,hostName,time))' ); -insert overwrite table APIVersionUsageSummaryData select api,version,apiPublisher,context,sum(request) as total_request_count,hostName, year(from_unixtime(cast(requestTime/1000 as BIGINT),'-MM-dd
Re: [Dev] Testing API Manager Statistics with Cassandra Data Purging
Can do, please create a JiRA to track this. We'll test this and see (with BAM 2.4.1). If we see no issues we'll release this. Thanks, NuwanD. On Wed, Sep 10, 2014 at 5:57 PM, Inosh Goonewardena in...@wso2.com wrote: Hi Nuwan, We have recently implemented cassandra data purging support through BAM toolboxes(discussed under [1]). We can apply data deletion for API-M/BAM use case but it requires a few modifications to the current API-M toolbox. Herewith, I have have attached the modified API-Manager toobox and the diff file. Changes are backward compatible so attached toolbox can be applied to released BAM versions as well. However, data deletion can't be scheduled by toolboxes with the older BAM releases but still you can use the existing BAM data archival feature [2] which basically does the same thing for testing purposes. Would it possible to release API-M 1.7.1 with this toolbox so once BAM 2.5.0 is released we can get the data deletion functionality to work. [1] - [BAM] Scheduling Cassandra Data Purging through BAM Toolboxes [2] - https://docs.wso2.com/display/BAM241/Archiving+Cassandra+Data -- Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BRS]How to modify date formats in drools.
Hi Waruna: Thank you for your reply. I understand that it need to set an alternative date format to drools.dateformat, but I do not know to set it, Do I need to modify the code of BRS? stevegyc From: Waruna Jayaweera Date: 2014-09-10 18:39 To: stevegyc CC: dev Subject: Re: [Dev] [BRS]How to modify date formats in drools. Hi Stevegyc, According to drools document, The date format dd-mmm- is supported by default. You can customize this by providing an alternative date format mask as the System property named drools.dateformat. If more control is required, use a restriction. So you can set custom value to System property drools.dateformat to modify the data format. According to that below restriction should also work. rule Date-restricted rule date-effective 10.9.2014 8:00 # 8 AM date-expires 10.9.2014 17:00 # 5 PM when then end Thanks, Waruna On Wed, Sep 10, 2014 at 8:42 AM, stevegyc steve...@163.com wrote: Hi: The default date format in drools is 'dd-MMM-', but in the definition of rule attribute date-effective, it says it contain a date and time definition. It need to use the date format as 'dd-MMM- HH:mm'. Any one know how to modify the date format to 'dd-MMM- HH:mm'? stevegyc ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Waruna Lakshitha Jayaweera Software Engineer WSO2 Inc; http://wso2.com phone: +94713255198___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Pull requests for the following issues
Hi all, Please send the pull requests for the following issues. https://wso2.org/jira/browse/CARBON-14891 https://wso2.org/jira/browse/CARBON-14880 https://wso2.org/jira/browse/CARBON-14850 https://wso2.org/jira/browse/CARBON-14718 https://wso2.org/jira/browse/CARBON-14894 Regards, Aruna -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Testing API Manager Statistics with Cassandra Data Purging
Jira created. https://wso2.org/jira/browse/APIMANAGER-2836 On Wed, Sep 10, 2014 at 5:59 PM, Nuwan Dias nuw...@wso2.com wrote: Can do, please create a JiRA to track this. We'll test this and see (with BAM 2.4.1). If we see no issues we'll release this. Thanks, NuwanD. On Wed, Sep 10, 2014 at 5:57 PM, Inosh Goonewardena in...@wso2.com wrote: Hi Nuwan, We have recently implemented cassandra data purging support through BAM toolboxes(discussed under [1]). We can apply data deletion for API-M/BAM use case but it requires a few modifications to the current API-M toolbox. Herewith, I have have attached the modified API-Manager toobox and the diff file. Changes are backward compatible so attached toolbox can be applied to released BAM versions as well. However, data deletion can't be scheduled by toolboxes with the older BAM releases but still you can use the existing BAM data archival feature [2] which basically does the same thing for testing purposes. Would it possible to release API-M 1.7.1 with this toolbox so once BAM 2.5.0 is released we can get the data deletion functionality to work. [1] - [BAM] Scheduling Cassandra Data Purging through BAM Toolboxes [2] - https://docs.wso2.com/display/BAM241/Archiving+Cassandra+Data -- Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Regards, Inosh Goonewardena Associate Technical Lead- WSO2 Inc. Mobile: +94779966317 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Pull request for https://wso2.org/jira/browse/CARBON-14931
Thanks SameeraK. Regards, Aruna On Wed, Sep 10, 2014 at 5:59 PM, Sameera Kannangara samee...@wso2.com wrote: Hi Aruna, Please find pull request at [1]. Thank you, SameeraK. [1] https://github.com/wso2-dev/carbon4-kernel/pull/94 On Wed, Sep 10, 2014 at 3:43 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi SameeraK, Can you send a pull request for the above mentioned ticket?. Regards, Aruna -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com -- *Sameera Kannangara* Software Engineer Platform TG; WSO2 Inc. http://wso2.com Contact: phone: +94719541577 Lean . Enterprise . Middleware -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Build failed in Jenkins: product-ss #74
Hi Kasun Deleted all the directories in the repository. ( -Dmaven.repo.local=/build/jenkins-home/workspace/product-as/.repository) Maven repo cleaner plugin have been already installed globally. However, I think you need to add # or cron to schedule it. [1] https://wiki.jenkins-ci.org/display/JENKINS/Maven+Repo+Cleaner+Plugin On Wed, Sep 10, 2014 at 5:45 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi, On Wed, Sep 10, 2014 at 2:08 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun, Yes, the workspace does include .m2. Sample .m2 repo sizes; product-greg : 13GB product-as: 17GB product-esb : 16GB prodcut-ss: 14GB product-dss : 16GB product-is : 5.4GB product-cep : 9.2GB That's like 90GBs!! If we count the m2 repo sizes in carbon component repos the number will go much higher. So, we need to get the maven repo cleaner working ASAP. In the meanwhile, please delete the contents under .m2/repository/ for product-as. It will solve our immediate problems with build breaks. (Please don't delete anything else, just .m2/repo/). Thanks, KasunG On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Maheshika, Can you check the size of the m2 repos inside these workspaces? We maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not delete the old snapshots from its local m2 repo. So, for 15 different products with builds that's been running 100 times: 15 x 100 x 250MB = 37GB of space. With figures like this, the total size of m2 repos could be close to 100GBs. So, I think that these m2 repos might be one of the culprit. @Maheshika, Check the size of the m2 repos, and let us know so we can be sure. Jenkins do have a Maven repository cleaner which is configured for our Jenkins instance as well. May be it's not working properly! Thanks, KasunG On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun The workspace directory is where Jenkins builds the projects. It contains the source code checkout and any files generated from the builds. The current size of the directory is 210GB. Jenkins creates a workspace directory for each build plan. Therefore, the total workspace directory size will increase. The build plans have been configured to discard old builds. Therefore, assume there could be any old builds left. On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe kas...@wso2.com wrote: Why does workspace takes too much space? Is it because of the archived old builds? On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Azeez Yes, the build has been configured to Discard old builds and artifacts. According to the Disk Usage report, workspace uses majority of the disk space. Therefore, we would have to remove workspace for each build plan periodically. This can be done manually or enable Workspace clean up plugin to clean daily. On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez az...@wso2.com wrote: Are the build logs, artifacts etc. cleaned from time to time, if not, we will run into issues. On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Harsha Prabath We are in the process of increasing the disk space. Hi Rumesh Most Jenkins builds have failed due to inadequate disk space. Therefore, please increase the Jenkins disk space. On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara hars...@wso2.com wrote: Hi Maheshika, This is occurs time to time. It says no space left on the device. This is the reason for the previous build failure too. As I remember day before yesterday, build was successful. Thanks, Harsha On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, It looks like we're still running into this issue in the builder machine. Would you be able to have a look? Cheers, Prabath On Wed, Sep 10, 2014 at 3:16 AM, cbuil...@wso2.org wrote: See https://wso2.org/jenkins/job/product-ss/74/ -- [...truncated 729 lines...] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS [0.384s] [INFO] WSO2 Storage Server - Styles Parent ... SUCCESS [0.025s] [INFO] WSO2 Storage Server UI styles . SUCCESS [50.917s] [INFO] WSO2 Storage Server - Features Parent . SUCCESS [0.023s] [INFO] WSO2 Storage Server - Features Aggregator Module .. SUCCESS [0.035s] [INFO] WSO2 Storage Server - Styles Features . SUCCESS [0.625s] [INFO] WSO2 Storage Server - P2 Profile Generation ... SUCCESS [1:45.002s] [INFO] WSO2 Storage Server - Distribution FAILURE [10.339s] [INFO] [INFO] BUILD FAILURE [INFO]
Re: [Dev] Please merge pull request for EMM tests-ui-integration module
Hi Dimuthu, Will check it out and merge. Cheers~ On Wed, Sep 10, 2014 at 5:05 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi EMM Team, Please merge the pull request https://github.com/wso2-dev/product-emm/pull/2 , which includes addition of several essential modules required to run UI tests for EMM together with the tests-ui-integration module which contains UI tests of EMM. Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] Profiling AF page loading
Hi All Currently I am working on $subject. So I want to measure time to load jaggery pages (In AF we are using block model). So I tried the solution mentioned by Ramith and Anuruddha [1]. There its measuring time inside *reqiur* function in *jagg.jag*. But this only captures the time for module level calls. But what I really want is time to load a page. So thought about putting some logs in *template* function in *jagg.jag*. But still our rest apis where we call using ajax from templates. I couldn't find such place. So what I thought was to log time in each ajax call before the call and after returning from the call. WDYT about this approach? [1] Performance improvements Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BRS]How to modify date formats in drools.
Hi Stevegyc, You can add following line to wso2server.sh file in BRS_PRODUCT_HOME/bin to change the system property. -Ddrools.dateformat=dd-MMM- HH:mm \ You will find similar kind of system property settings at end of the wso2server.sh file.Add above line in same manner. Thanks, Waruna On Wed, Sep 10, 2014 at 5:59 PM, stevegyc steve...@163.com wrote: Hi Waruna: Thank you for your reply. I understand that it need to set an alternative date format to drools.dateformat, but I do not know to set it, Do I need to modify the code of BRS? -- stevegyc *From:* Waruna Jayaweera waru...@wso2.com *Date:* 2014-09-10 18:39 *To:* stevegyc steve...@163.com *CC:* dev dev@wso2.org *Subject:* Re: [Dev] [BRS]How to modify date formats in drools. Hi Stevegyc, According to drools document, The date format dd-mmm- is supported by default. You can customize this by providing an alternative date format mask as the System property named drools.dateformat. If more control is required, use a restriction. So you can set custom value to System property drools.dateformat to modify the data format. According to that below restriction should also work. rule Date-restricted rule date-effective 10.9.2014 8:00 # 8 AM date-expires 10.9.2014 17:00 # 5 PM when then end Thanks, Waruna On Wed, Sep 10, 2014 at 8:42 AM, stevegyc steve...@163.com wrote: Hi: The default date format in drools is 'dd-MMM-', but in the definition of rule attribute date-effective, it says it contain a date and time definition. It need to use the date format as 'dd-MMM- HH:mm'. Any one know how to modify the date format to 'dd-MMM- HH:mm'? -- stevegyc ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Waruna Lakshitha Jayaweera Software Engineer WSO2 Inc; http://wso2.com phone: +94713255198 -- Regards, Waruna Lakshitha Jayaweera Software Engineer WSO2 Inc; http://wso2.com phone: +94713255198 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Hazelcast issue with ESB 4.9.0 M3
Can we meet tomorrow to take a look at this? On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez az...@wso2.com wrote: Can you check the same with a product such as AppServer as well? On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva mal...@wso2.com wrote: Issue is reported in [1] [1] https://wso2.org/jira/browse/CARBON-14940 On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva mal...@wso2.com wrote: Tested with [1] and it has worked. [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe kas...@wso2.com wrote: On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and verify whether it works with that? [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 Malaka, can you try the above? Then we can verify whether something is wrong with the Hz 3.2.3.wso2v1 orbit bundle. On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Can confirm this is not a configuration issue, unless configuration has changed? Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1 manually, and it start working. Best Regards, Malaka On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. this might be a configuration issue. But we did not test this properly on Carbon 4.3.0 as well. Can you share you configuration files of all the nodes? Any useful logs? On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Initially I have used 127.0.0.1. Then I have changed it to IP. However same issue exists. On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Malaka, What are the values you have used for localMemberHost? In Hz 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the machine. Regards, KasunG On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez az...@wso2.com wrote: KasunG, Can you verify this? -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Afkham Azeez* Director of Architecture; WSO2, Inc.;
Re: [Dev] Build failed in Jenkins: product-ss #74
On Wed, Sep 10, 2014 at 6:48 PM, Kasun Gajasinghe kas...@wso2.com wrote: Given the bandwidth involved, cleaning up the repos in intervals of 7 days is good? @Azeez/Sagara, any thoughts? How long does it take to fill up the disk? If it takes 3 weeks, for example, on average, we should cleanup every 2 weeks. Also, see if we can normalize the cleanup across the week such that all the repos won't get cleaned up at the same time. Otherwise, it would add a lot of strain on the nexus server. +1 for staggering the cleanup, rather than cleaning up everything at the same time. Thanks, KasunG On Wed, Sep 10, 2014 at 3:10 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun Deleted all the directories in the repository. ( -Dmaven.repo.local=/build/jenkins-home/workspace/product-as/.repository) Maven repo cleaner plugin have been already installed globally. However, I think you need to add # or cron to schedule it. [1] https://wiki.jenkins-ci.org/display/JENKINS/Maven+Repo+Cleaner+Plugin On Wed, Sep 10, 2014 at 5:45 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi, On Wed, Sep 10, 2014 at 2:08 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun, Yes, the workspace does include .m2. Sample .m2 repo sizes; product-greg : 13GB product-as: 17GB product-esb : 16GB prodcut-ss: 14GB product-dss : 16GB product-is : 5.4GB product-cep : 9.2GB That's like 90GBs!! If we count the m2 repo sizes in carbon component repos the number will go much higher. So, we need to get the maven repo cleaner working ASAP. In the meanwhile, please delete the contents under .m2/repository/ for product-as. It will solve our immediate problems with build breaks. (Please don't delete anything else, just .m2/repo/). Thanks, KasunG On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Maheshika, Can you check the size of the m2 repos inside these workspaces? We maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not delete the old snapshots from its local m2 repo. So, for 15 different products with builds that's been running 100 times: 15 x 100 x 250MB = 37GB of space. With figures like this, the total size of m2 repos could be close to 100GBs. So, I think that these m2 repos might be one of the culprit. @Maheshika, Check the size of the m2 repos, and let us know so we can be sure. Jenkins do have a Maven repository cleaner which is configured for our Jenkins instance as well. May be it's not working properly! Thanks, KasunG On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun The workspace directory is where Jenkins builds the projects. It contains the source code checkout and any files generated from the builds. The current size of the directory is 210GB. Jenkins creates a workspace directory for each build plan. Therefore, the total workspace directory size will increase. The build plans have been configured to discard old builds. Therefore, assume there could be any old builds left. On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe kas...@wso2.com wrote: Why does workspace takes too much space? Is it because of the archived old builds? On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Azeez Yes, the build has been configured to Discard old builds and artifacts. According to the Disk Usage report, workspace uses majority of the disk space. Therefore, we would have to remove workspace for each build plan periodically. This can be done manually or enable Workspace clean up plugin to clean daily. On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez az...@wso2.com wrote: Are the build logs, artifacts etc. cleaned from time to time, if not, we will run into issues. On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Harsha Prabath We are in the process of increasing the disk space. Hi Rumesh Most Jenkins builds have failed due to inadequate disk space. Therefore, please increase the Jenkins disk space. On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara hars...@wso2.com wrote: Hi Maheshika, This is occurs time to time. It says no space left on the device. This is the reason for the previous build failure too. As I remember day before yesterday, build was successful. Thanks, Harsha On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, It looks like we're still running into this issue in the builder machine. Would you be able to have a look? Cheers, Prabath On Wed, Sep 10, 2014 at 3:16 AM, cbuil...@wso2.org wrote: See https://wso2.org/jenkins/job/product-ss/74/ -- [...truncated 729 lines...] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Storage Server - Aggregator Module ... SUCCESS [0.384s] [INFO] WSO2 Storage
Re: [Dev] Build failed in Jenkins: product-ss #74
On Wed, Sep 10, 2014 at 4:15 PM, Afkham Azeez az...@wso2.com wrote: On Wed, Sep 10, 2014 at 6:48 PM, Kasun Gajasinghe kas...@wso2.com wrote: Given the bandwidth involved, cleaning up the repos in intervals of 7 days is good? @Azeez/Sagara, any thoughts? How long does it take to fill up the disk? If it takes 3 weeks, for example, on average, we should cleanup every 2 weeks. M2 repo clean-up useful to figure out issues in builds as well. Sometimes the clean repo builds show issues in products which are not visible if we use an existing m2 repo. Also, see if we can normalize the cleanup across the week such that all the repos won't get cleaned up at the same time. Otherwise, it would add a lot of strain on the nexus server. +1 for staggering the cleanup, rather than cleaning up everything at the same time. Thanks, KasunG On Wed, Sep 10, 2014 at 3:10 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun Deleted all the directories in the repository. ( -Dmaven.repo.local=/build/jenkins-home/workspace/product-as/.repository) Maven repo cleaner plugin have been already installed globally. However, I think you need to add # or cron to schedule it. [1] https://wiki.jenkins-ci.org/display/JENKINS/Maven+Repo+Cleaner+Plugin On Wed, Sep 10, 2014 at 5:45 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi, On Wed, Sep 10, 2014 at 2:08 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun, Yes, the workspace does include .m2. Sample .m2 repo sizes; product-greg : 13GB product-as: 17GB product-esb : 16GB prodcut-ss: 14GB product-dss : 16GB product-is : 5.4GB product-cep : 9.2GB That's like 90GBs!! If we count the m2 repo sizes in carbon component repos the number will go much higher. So, we need to get the maven repo cleaner working ASAP. In the meanwhile, please delete the contents under .m2/repository/ for product-as. It will solve our immediate problems with build breaks. (Please don't delete anything else, just .m2/repo/). Thanks, KasunG On Wed, Sep 10, 2014 at 4:00 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Maheshika, Can you check the size of the m2 repos inside these workspaces? We maintain m2 repo per job. And, because of SNAPSHOT versions, maven do not delete the old snapshots from its local m2 repo. So, for 15 different products with builds that's been running 100 times: 15 x 100 x 250MB = 37GB of space. With figures like this, the total size of m2 repos could be close to 100GBs. So, I think that these m2 repos might be one of the culprit. @Maheshika, Check the size of the m2 repos, and let us know so we can be sure. Jenkins do have a Maven repository cleaner which is configured for our Jenkins instance as well. May be it's not working properly! Thanks, KasunG On Wed, Sep 10, 2014 at 12:19 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun The workspace directory is where Jenkins builds the projects. It contains the source code checkout and any files generated from the builds. The current size of the directory is 210GB. Jenkins creates a workspace directory for each build plan. Therefore, the total workspace directory size will increase. The build plans have been configured to discard old builds. Therefore, assume there could be any old builds left. On Wed, Sep 10, 2014 at 2:09 PM, Kasun Gajasinghe kas...@wso2.com wrote: Why does workspace takes too much space? Is it because of the archived old builds? On Wed, Sep 10, 2014 at 10:24 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Azeez Yes, the build has been configured to Discard old builds and artifacts. According to the Disk Usage report, workspace uses majority of the disk space. Therefore, we would have to remove workspace for each build plan periodically. This can be done manually or enable Workspace clean up plugin to clean daily. On Wed, Sep 10, 2014 at 12:35 PM, Afkham Azeez az...@wso2.com wrote: Are the build logs, artifacts etc. cleaned from time to time, if not, we will run into issues. On Wed, Sep 10, 2014 at 10:41 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Harsha Prabath We are in the process of increasing the disk space. Hi Rumesh Most Jenkins builds have failed due to inadequate disk space. Therefore, please increase the Jenkins disk space. On Wed, Sep 10, 2014 at 10:32 AM, Harsha Kumara hars...@wso2.com wrote: Hi Maheshika, This is occurs time to time. It says no space left on the device. This is the reason for the previous build failure too. As I remember day before yesterday, build was successful. Thanks, Harsha On Wed, Sep 10, 2014 at 9:57 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi Maheshika, It looks like we're still running into this issue in the builder machine. Would you be able to have a look? Cheers, Prabath On Wed, Sep 10, 2014 at 3:16 AM, cbuil...@wso2.org wrote:
Re: [Dev] Hazelcast issue with ESB 4.9.0 M3
Hi Azeez, I can join via a call if time permits. Based on Malaka's findings, the issue could probably be in Hz 3.2.3.wso2v1 orbit bundle since the Hz 3.0.1.wso2v1 on patch0009 (ie. WITH hz upgrade) works. Thanks, KasunG On Wed, Sep 10, 2014 at 4:16 PM, Afkham Azeez az...@wso2.com wrote: Can we meet tomorrow to take a look at this? On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez az...@wso2.com wrote: Can you check the same with a product such as AppServer as well? On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva mal...@wso2.com wrote: Issue is reported in [1] [1] https://wso2.org/jira/browse/CARBON-14940 On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva mal...@wso2.com wrote: Tested with [1] and it has worked. [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe kas...@wso2.com wrote: On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and verify whether it works with that? [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 Malaka, can you try the above? Then we can verify whether something is wrong with the Hz 3.2.3.wso2v1 orbit bundle. On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Can confirm this is not a configuration issue, unless configuration has changed? Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1 manually, and it start working. Best Regards, Malaka On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. this might be a configuration issue. But we did not test this properly on Carbon 4.3.0 as well. Can you share you configuration files of all the nodes? Any useful logs? On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Initially I have used 127.0.0.1. Then I have changed it to IP. However same issue exists. On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Malaka, What are the values you have used for localMemberHost? In Hz 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the machine. Regards, KasunG On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez az...@wso2.com wrote: KasunG, Can you verify this? -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware
Re: [Dev] Hazelcast issue with ESB 4.9.0 M3
Both have the same Hz version right? On Wed, Sep 10, 2014 at 7:53 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Azeez, I can join via a call if time permits. Based on Malaka's findings, the issue could probably be in Hz 3.2.3.wso2v1 orbit bundle since the Hz 3.0.1.wso2v1 on patch0009 (ie. WITH hz upgrade) works. Thanks, KasunG On Wed, Sep 10, 2014 at 4:16 PM, Afkham Azeez az...@wso2.com wrote: Can we meet tomorrow to take a look at this? On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez az...@wso2.com wrote: Can you check the same with a product such as AppServer as well? On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva mal...@wso2.com wrote: Issue is reported in [1] [1] https://wso2.org/jira/browse/CARBON-14940 On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva mal...@wso2.com wrote: Tested with [1] and it has worked. [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe kas...@wso2.com wrote: On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and verify whether it works with that? [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 Malaka, can you try the above? Then we can verify whether something is wrong with the Hz 3.2.3.wso2v1 orbit bundle. On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Can confirm this is not a configuration issue, unless configuration has changed? Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1 manually, and it start working. Best Regards, Malaka On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. this might be a configuration issue. But we did not test this properly on Carbon 4.3.0 as well. Can you share you configuration files of all the nodes? Any useful logs? On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Initially I have used 127.0.0.1. Then I have changed it to IP. However same issue exists. On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Malaka, What are the values you have used for localMemberHost? In Hz 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the machine. Regards, KasunG On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez az...@wso2.com wrote: KasunG, Can you verify this? -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn :
Re: [Dev] API Manager latest pack integration issue with BAM 2.3.0.
I thought it needs to be tested with one of the older version as well.Sorry for the inconvenience On Wed, Sep 10, 2014 at 5:13 PM, Nuwan Dias nuw...@wso2.com wrote: What use case are we trying to cover by testing with BAM which is two versions older than the current one (2.4.1)? On Wed, Sep 10, 2014 at 5:06 PM, Chalitha Waldeniyage chali...@wso2.com wrote: Hi When i am integrating API Manager latest pack(04/09/2014) with BAM 2.3.0 and invoking the API through Jmeter, following error message has prompted in API Manager side. Please provide directives in proceeding. ERROR - AsyncDataPublisher Stream definition already exist org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException: Same stream id with different definition already defined before sending this event definitions to TCP,10.100.5.45:7612,TCP,10.100.5.45:7712 at org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237) at org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295) at org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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) Caused by: org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException: Thrift Different Stream Definition Already Defined at org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112) at org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222) ... 7 more Caused by: ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar event stream for StreamDefinition{ streamId='org.wso2.apimgt.statistics.fault:1.0.0', name='org.wso2.apimgt.statistics.fault', version='1.0.0', nickName='API Manager Fault Data', description='Fault Data', tags=null, metaData=[Attribute{name='clientType', type=STRING}], correlationData=null, payloadData=[Attribute{name='consumerKey', type=STRING}, Attribute{name='context', type=STRING}, Attribute{name='api_version', type=STRING}, Attribute{name='api', type=STRING}, Attribute{name='resourcePath', type=STRING}, Attribute{name='method', type=STRING}, Attribute{name='version', type=STRING}, Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage', type=STRING}, Attribute{name='requestTime', type=STRING}, Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain', type=STRING}, Attribute{name='hostName', type=STRING}, Attribute{name='apiPublisher', type=STRING}, Attribute{name='applicationName', type=STRING}, Attribute{name='applicationId', type=STRING}], } with the same name and version already exist: StreamDefinition{ streamId='org.wso2.apimgt.statistics.fault:1.0.0', name='org.wso2.apimgt.statistics.fault', version='1.0.0', nickName='API Manager Fault Data', description='Fault Data', tags=null, metaData=[Attribute{name='clientType', type=STRING}], correlationData=null, payloadData=[Attribute{name='consumerKey', type=STRING}, Attribute{name='context', type=STRING}, Attribute{name='api_version', type=STRING}, Attribute{name='api', type=STRING}, Attribute{name='resource', type=STRING}, Attribute{name='method', type=STRING}, Attribute{name='version', type=STRING}, Attribute{name='errorCode', type=STRING}, Attribute{name='errorMessage', type=STRING}, Attribute{name='requestTime', type=STRING}, Attribute{name='userId', type=STRING}, Attribute{name='tenantDomain', type=STRING}, Attribute{name='hostName', type=STRING}, Attribute{name='apiPublisher', type=STRING}, Attribute{name='applicationName', type=STRING}, Attribute{name='applicationId', type=STRING}], } ) at org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$defineStream_result.read(ThriftEventTransmissionService.java:1441) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) at org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80) at org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.defineStream(ThriftEventTransmissionService.java:66) at
Re: [Dev] Hazelcast issue with ESB 4.9.0 M3
On Wed, Sep 10, 2014 at 4:33 PM, Afkham Azeez az...@wso2.com wrote: Both have the same Hz version right? Yes, 3.2.3. On Wed, Sep 10, 2014 at 7:53 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Azeez, I can join via a call if time permits. Based on Malaka's findings, the issue could probably be in Hz 3.2.3.wso2v1 orbit bundle since the Hz 3.0.1.wso2v1 on patch0009 (ie. WITH hz upgrade) works. Thanks, KasunG On Wed, Sep 10, 2014 at 4:16 PM, Afkham Azeez az...@wso2.com wrote: Can we meet tomorrow to take a look at this? On Wed, Sep 10, 2014 at 1:48 PM, Afkham Azeez az...@wso2.com wrote: Can you check the same with a product such as AppServer as well? On Wed, Sep 10, 2014 at 1:39 PM, Malaka Silva mal...@wso2.com wrote: Issue is reported in [1] [1] https://wso2.org/jira/browse/CARBON-14940 On Wed, Sep 10, 2014 at 9:32 AM, Malaka Silva mal...@wso2.com wrote: Tested with [1] and it has worked. [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 On Wed, Sep 10, 2014 at 9:00 AM, Kasun Gajasinghe kas...@wso2.com wrote: On Tue, Sep 9, 2014 at 2:01 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. Can you build the Hazelcast 3.0.1 from kernel patch0009 and verify whether it works with that? [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/orbit/hazelcast/3.0.1.wso2v1 Malaka, can you try the above? Then we can verify whether something is wrong with the Hz 3.2.3.wso2v1 orbit bundle. On Tue, Sep 9, 2014 at 1:52 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Can confirm this is not a configuration issue, unless configuration has changed? Reason is to verify I have downgraded to hazelcast,3.0.1.wso2v1 manually, and it start working. Best Regards, Malaka On Tue, Sep 9, 2014 at 5:10 PM, Kasun Gajasinghe kas...@wso2.com wrote: Ok.. this might be a configuration issue. But we did not test this properly on Carbon 4.3.0 as well. Can you share you configuration files of all the nodes? Any useful logs? On Tue, Sep 9, 2014 at 1:34 PM, Malaka Silva mal...@wso2.com wrote: Hi KasunG, Initially I have used 127.0.0.1. Then I have changed it to IP. However same issue exists. On Tue, Sep 9, 2014 at 4:52 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Malaka, What are the values you have used for localMemberHost? In Hz 3.2.3, you should not use 127.0.0.1 or localhost but the IP of the machine. Regards, KasunG On Tue, Sep 9, 2014 at 1:18 PM, Afkham Azeez az...@wso2.com wrote: KasunG, Can you verify this? -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11
[Dev] Problem creating an API call with an array
I am trying to develop an ESB connector for ToodleDo API v3. In that API, I need to add an array of tasks with various parameters. The number of parameters in one element of the array, can be different from other elements. The API call looks as below. http://api.toodledo.com/3/tasks/add.php access_token=yourtoken tasks=[{title%3AMy Task}%2C{title%3AAnother%2Cstar%3A1%2Cref%3A98765}%2C{title%3A%2Cref%3A1234}] fields=folder,star Tasks are added by creating a JSON object and submitting a POST to the API. Also I need to encode the data before transferring via the URL. I tried this operation by using javascript. I just tried with two parameters in the array (Mandatory -title and optional - star). My code is as below. ![CDATA[ var added = 0; var query = ; var taskString = '{tasks:' + mc.getProperty('uri.var.tasks') + '}'; if (mc.getProperty('uri.var.tasks') != null mc.getProperty('uri.var.tasks') != ) { var taskObj = eval (( + taskString + )); if(Boolean(added)) { query = query + ',tasks:['; }else { query = query + 'tasks:['; added = 1; } var count = 0; for (var i in taskObj.tasks) { if (taskObj.tasks.hasOwnProperty(i)) { if(count == 0 ) { query=query + '{\title\:\'+mc.getProperty('uri.var.title')+'\,'; query=query + '{\star\:\'+mc.getProperty('uri.var.star')+'\}'; count =1; }else { query=query + ',{\title\:\'+mc.getProperty('uri.var.title')+'\,'; query=query + '{\star\:\'+mc.getProperty('uri.var.star')+'\}'; } } } query = query + ']'; var encoded_query= encodeURIComponent(query); } mc.setProperty('uri.var.encoded_query', encoded_query); ]] /script And I have wrritten the payload factory as below. payloadFactory media-type=xml format xform access_token$1/access_token tasks$2/tasks fields$3/fields /xform !--{access_token : $1, tasks : $2fields : $3 }-- /format args arg expression=$func:access_token / arg expression=get-property('uri.var.encoded_query') / arg expression=$func:fields / /args/payloadFactory But it gives me an error as below. [2014-09-10 22:39:22,129] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.access_token. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.tasks. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.fields. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,132] ERROR - ScriptMediator Failed to get the JSON payload from the input stream. Error com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 101 What am I missing? How can I modify this to work with all the optional parameters? Thank you Dinithi De Silva Associate Software Engineer Mob: +94 716 667 655 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Our documentation on changing the default keystore is not enough
Hi all, $Subject. I couldn't find a proper document. I only found this https://docs.wso2.com/display/MB220/Changing+Default+Keystores If there is a proper doc, please point me. Otherwise, this needs to be in the admin tasks of each product. I can provide the necessary instructions if needed. Regards, Amila. -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] ID Token for Implicit grant type
Hi All, According to openid connect spec [1], Implicit grant type also should return ID token if scope is set to openid. up to IS 5.0 Implicit grant type does not return ID token even scope is set to openid. Limitation will be constructing ID token happens only for token request not for authorization request. Since Implicit grant type has only single authorization request there is no way to build an ID token. I think this limitation should be resolved in next Identity Server release. WDYT ? [1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ID Token for Implicit grant type
Hi Gayan, In the provisos releases we returned the IDToken only from the token endpoint. +1 to implement this from the completeness perspective. Thanks, -Suresh On Wed, Sep 10, 2014 at 12:07 PM, Gayan Gunawardana ga...@wso2.com wrote: Hi All, According to openid connect spec [1], Implicit grant type also should return ID token if scope is set to openid. up to IS 5.0 Implicit grant type does not return ID token even scope is set to openid. Limitation will be constructing ID token happens only for token request not for authorization request. Since Implicit grant type has only single authorization request there is no way to build an ID token. I think this limitation should be resolved in next Identity Server release. WDYT ? [1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Suresh Attanayake Senior Software Engineer; WSO2 Inc. http://wso2.com/ Blog : http://sureshatt.blogspot.com/ Twitter : https://twitter.com/sureshatt LinkedIn : http://lk.linkedin.com/in/sureshatt Mobile : +94755012060 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ID Token for Implicit grant type
+1. I think there is room for many improvements in the OIDC core spec that we can do. Let's take those up as part of next major release (one after 5.1.0). For 5.1.0 lets focus on the minimum to be spec compliant. Thanks, Johann. On Thu, Sep 11, 2014 at 12:37 AM, Gayan Gunawardana ga...@wso2.com wrote: Hi All, According to openid connect spec [1], Implicit grant type also should return ID token if scope is set to openid. up to IS 5.0 Implicit grant type does not return ID token even scope is set to openid. Limitation will be constructing ID token happens only for token request not for authorization request. Since Implicit grant type has only single authorization request there is no way to build an ID token. I think this limitation should be resolved in next Identity Server release. WDYT ? [1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ID Token for Implicit grant type
Thanks Suresh and Johann. Jira has been created [1]. [1] https://wso2.org/jira/browse/IDENTITY-2713 Thanks, Gayan On Thu, Sep 11, 2014 at 12:50 AM, Johann Nallathamby joh...@wso2.com wrote: +1. I think there is room for many improvements in the OIDC core spec that we can do. Let's take those up as part of next major release (one after 5.1.0). For 5.1.0 lets focus on the minimum to be spec compliant. Thanks, Johann. On Thu, Sep 11, 2014 at 12:37 AM, Gayan Gunawardana ga...@wso2.com wrote: Hi All, According to openid connect spec [1], Implicit grant type also should return ID token if scope is set to openid. up to IS 5.0 Implicit grant type does not return ID token even scope is set to openid. Limitation will be constructing ID token happens only for token request not for authorization request. Since Implicit grant type has only single authorization request there is no way to build an ID token. I think this limitation should be resolved in next Identity Server release. WDYT ? [1]openid.net/specs/openid-connect-core-1_0.html#ImplicitFlowAuth -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 -- Thanks Regards, *Johann Dilantha Nallathamby* Associate Technical Lead Product Lead of WSO2 Identity Server Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+9476950* Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com* -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Stopping RXT attributes from being added as resource properties
Hi all, This has nothing to do with API-M actually. Subash, this was added for JCR support (IINM, by you, :)..). And, I'm most certain that the JCR-based repository-browsers only reads what's listed as properties. Can you'll have a look into that? Or we'll endup breaking that without knowing its broken. Thanks, Senaka. On Wed, Sep 10, 2014 at 10:02 AM, Nuwan Dias nuw...@wso2.com wrote: +1 for removing these. APIM doesn't deal with properties in RXTs but with the RXT attributes directly. So APIM won't have any effects by this change. Thanks, NuwanD. On Wed, Sep 10, 2014 at 1:52 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi All, Currently with RXT's all the attributes of the RXT are being added as properties in the resource. The process of adding them as properties executes a significant amount of DB calls which is big performance hit. AFAIK there is no use of these properties hence we should be able to stop this and reduce a large amount of DB calls in the process. @Nuwan As for the the offline discussion we had a while back regarding this i assume that these properties are not been used in the APIM side ( Not properties in general just the properties that are created for RXT attributes ). Since we do not have any real use for this properties shall we remove these, WDYT? Regards, Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Software Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Stopping RXT attributes from being added as resource properties
Hi Senaka, Sure will do and update you. Btw I am not the one who add it ;-). On Thu, Sep 11, 2014 at 2:50 AM, Senaka Fernando sen...@wso2.com wrote: Hi all, This has nothing to do with API-M actually. Subash, this was added for JCR support (IINM, by you, :)..). And, I'm most certain that the JCR-based repository-browsers only reads what's listed as properties. Can you'll have a look into that? Or we'll endup breaking that without knowing its broken. Thanks, Senaka. On Wed, Sep 10, 2014 at 10:02 AM, Nuwan Dias nuw...@wso2.com wrote: +1 for removing these. APIM doesn't deal with properties in RXTs but with the RXT attributes directly. So APIM won't have any effects by this change. Thanks, NuwanD. On Wed, Sep 10, 2014 at 1:52 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi All, Currently with RXT's all the attributes of the RXT are being added as properties in the resource. The process of adding them as properties executes a significant amount of DB calls which is big performance hit. AFAIK there is no use of these properties hence we should be able to stop this and reduce a large amount of DB calls in the process. @Nuwan As for the the offline discussion we had a while back regarding this i assume that these properties are not been used in the APIM side ( Not properties in general just the properties that are created for RXT attributes ). Since we do not have any real use for this properties shall we remove these, WDYT? Regards, Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Software Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware -- Thanks /subash *Subash Chaturanga* Senior Software Engineer Lead WSO2 Governance Registry Platform TG; WSO2 Inc. http://wso2.com Contact: email: sub...@wso2.com blog: http://subashsdm.blogspot.com/ twitter: @subash89 phone: +9477 2225922 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Invitation: Code Review - API Manager self signup for tenant's API s... @ Tue Sep 9, 2014 12pm - 1pm (Vijayaratha Vijayasingam)
sorry for that. attached the new one to the jira On Wed, Sep 10, 2014 at 6:42 PM, Nuwan Dias nuw...@wso2.com wrote: Hi Chamila, Seems like the UserRegistrationConfigDTO class is missing in the patch. You need to 'svn add' that file and create the diff. Can you add it and re-attach the patch? Also get the latest from sources before you create the new diff. Thanks, NuwanD. On Wed, Sep 10, 2014 at 1:32 PM, Chamila Adhikarinayake chami...@wso2.com wrote: Hi Nuwan, I attached the code for this feature to the jira. Please find it in [1] [1] https://wso2.org/jira/browse/APIMANAGER-2785 Thanks. Chamila On Tue, Sep 9, 2014 at 1:27 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Code review notes; 1)In self-signup configuration password is stored in plain text in registry( @ selfsignup.xml, ) we need to add support for encryption. Same thing we need to do for workflow admin configuration file too. Jira: https://wso2.org/jira/browse/APIMANAGER-2824 2) Provide UI support to edit self-sgnup configuration? (@ userstore UI/admin dashboard) Jira: https://wso2.org/jira/browse/APIMANAGER-2825 3)self-signup observer class name to be corrected. Move this to tenantServiceCreator observer 4) Change log.info's to debug level, with more info. 5)Move AM related config files to config-registry. Currently it is stored under governance space. Jira: https://wso2.org/jira/browse/APIMANAGER-2826 Thanks. On 9 September 2014 09:52, Chamila Adhikarinayake chami...@wso2.com wrote: more details » https://www.google.com/calendar/event?action=VIEWeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29ttok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en Code Review - API Manager self signup for tenant's API store *When* Tue Sep 9, 2014 12pm – 1pm Colombo *Where* LK 3rd Floor Meeting Room - Kernel (map https://maps.google.lk/maps?q=LK+3rd+Floor+Meeting+Room+-+Kernelhl=en ) *Video call* https://plus.google.com/hangouts/_/wso2.com/chamilaa https://plus.google.com/hangouts/_/wso2.com/chamilaa?hceid=Y2hhbWlsYWFAd3NvMi5jb20.pt44aqhc4c3bnrr9f1mp5nnql0 *Calendar* Vijayaratha Vijayasingam *Who* • Chamila Adhikarinayake - organizer • Jenananthan Yogendran • dev@wso2.org • Lalaji Sureshika • Sumedha Rubasinghe • Vijayaratha Vijayasingam • Roshan Wijesena • Nuwan Dias • Amila De Silva • Shariq Muhammed Going? *Yes https://www.google.com/calendar/event?action=RESPONDeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29trst=1tok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en - Maybe https://www.google.com/calendar/event?action=RESPONDeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29trst=3tok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en - No https://www.google.com/calendar/event?action=RESPONDeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29trst=2tok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en* more options » https://www.google.com/calendar/event?action=VIEWeid=cHQ0NGFxaGM0YzNibnJyOWYxbXA1bm5xbDAgcmF0aGF2QHdzbzIuY29ttok=MTcjY2hhbWlsYWFAd3NvMi5jb201MjYxZjY3MWI1N2I1NTFhY2M2ZWY5N2U4NDc0ZTZkMDRlZWY1NjBjctz=Asia/Colombohl=en Invitation from Google Calendar https://www.google.com/calendar/ You are receiving this email at the account rat...@wso2.com because you are subscribed for invitations on calendar Vijayaratha Vijayasingam. To stop receiving these notifications, please log in to https://www.google.com/calendar/ and change your notification settings for this calendar. -- -Ratha -- Regards, Chamila Adhikarinayake Software Engineer WSO2, Inc. Mobile - +94712346437 Email - chami...@wso2.com -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Regards, Chamila Adhikarinayake Software Engineer WSO2, Inc. Mobile - +94712346437 Email - chami...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] BPMN Theme
Hi, Changes have been updated. The jira id: https://wso2.org/jira/browse/BPS-563 Following are screenshots of updates. [image: Inline image 1] Favicon for web browser tab. [image: Inline image 2] Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Wed, Sep 10, 2014 at 5:53 PM, Amal Gunatilake am...@wso2.com wrote: Hi Chanaka, Thank you for the feedback. I'll check on the library you gave as well and do the necessary updates. :) Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Wed, Sep 10, 2014 at 4:08 PM, Chanaka Jayasena chan...@wso2.com wrote: They seem well designed and professional. How ever current web designing trend is to use vector icons. They give you freedom to scale, color, combine and animate within css file. One popular library we use is FontAwsome. It is not required to use this library, but it will be super easy to add icons to your application in the feature. http://fortawesome.github.io/Font-Awesome/ thanks, Chanaka On Wed, Sep 10, 2014 at 3:11 PM, Amal Gunatilake am...@wso2.com wrote: Hi Chanaka, I created some icons to apply for BPMN Explorer. Please review them and let me know your feedback. Your feedback is much appreciated. Below is the screenshot after applying the icons. [image: Inline image 1] Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware -- Chanaka Jayasena Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: chan...@wso2.com; cell: +94 77 785 5565 blog: http://chanaka3d.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem creating an API call with an array
Hi Dinithi, Did you try to invoke this directly using a client. Are they expecting the values to be in url or in post body? http://api.toodledo.com/3/tasks/index.php#adding Best Regards, Malaka On Wed, Sep 10, 2014 at 11:33 PM, Dinithi De Silva dinit...@wso2.com wrote: I am trying to develop an ESB connector for ToodleDo API v3. In that API, I need to add an array of tasks with various parameters. The number of parameters in one element of the array, can be different from other elements. The API call looks as below. http://api.toodledo.com/3/tasks/add.php access_token=yourtoken tasks=[{title%3AMy Task}%2C{title%3AAnother%2Cstar%3A1%2Cref%3A98765}%2C{title%3A%2Cref%3A1234}] fields=folder,star Tasks are added by creating a JSON object and submitting a POST to the API. Also I need to encode the data before transferring via the URL. I tried this operation by using javascript. I just tried with two parameters in the array (Mandatory -title and optional - star). My code is as below. ![CDATA[ var added = 0; var query = ; var taskString = '{tasks:' + mc.getProperty('uri.var.tasks') + '}'; if (mc.getProperty('uri.var.tasks') != null mc.getProperty('uri.var.tasks') != ) { var taskObj = eval (( + taskString + )); if(Boolean(added)) { query = query + ',tasks:['; }else { query = query + 'tasks:['; added = 1; } var count = 0; for (var i in taskObj.tasks) { if (taskObj.tasks.hasOwnProperty(i)) { if(count == 0 ) { query=query + '{\title\:\'+mc.getProperty('uri.var.title')+'\,'; query=query + '{\star\:\'+mc.getProperty('uri.var.star')+'\}'; count =1; }else { query=query + ',{\title\:\'+mc.getProperty('uri.var.title')+'\,'; query=query + '{\star\:\'+mc.getProperty('uri.var.star')+'\}'; } } } query = query + ']'; var encoded_query= encodeURIComponent(query); } mc.setProperty('uri.var.encoded_query', encoded_query); ]] /script And I have wrritten the payload factory as below. payloadFactory media-type=xml format xform access_token$1/access_token tasks$2/tasks fields$3/fields /xform !--{access_token : $1, tasks : $2fields : $3}-- /format args arg expression=$func:access_token / arg expression=get-property('uri.var.encoded_query') / arg expression=$func:fields / /args/payloadFactory But it gives me an error as below. [2014-09-10 22:39:22,129] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.access_token. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.tasks. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.fields. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,132] ERROR - ScriptMediator Failed to get the JSON payload from the input stream. Error com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 101 What am I missing? How can I modify this to work with all the optional parameters? Thank you Dinithi De Silva Associate Software Engineer Mob: +94 716 667 655 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Change of a component name in EMM develop
Hi Harshan, The component - utils in master [2] has been changed to core in develop [1]. Is there a reason for this? Also if you change the component name - other places that depend on the component need to be changed too. For example /modules/apps/publisher/mobileupload.jag has to be changed -otherwise the app uploading functionality will be broken. Cheers~ [1] - https://github.com/wso2-dev/product-emm/tree/develop/modules/components [2] - https://github.com/wso2-dev/product-emm/tree/master/modules/components -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem creating an API call with an array
Yes I tried. They are expecting it in the post body. Thank you Dinithi De Silva Associate Software Engineer Mob: +94 716 667 655 On Thu, Sep 11, 2014 at 9:28 AM, Malaka Silva mal...@wso2.com wrote: Hi Dinithi, Did you try to invoke this directly using a client. Are they expecting the values to be in url or in post body? http://api.toodledo.com/3/tasks/index.php#adding Best Regards, Malaka On Wed, Sep 10, 2014 at 11:33 PM, Dinithi De Silva dinit...@wso2.com wrote: I am trying to develop an ESB connector for ToodleDo API v3. In that API, I need to add an array of tasks with various parameters. The number of parameters in one element of the array, can be different from other elements. The API call looks as below. http://api.toodledo.com/3/tasks/add.php access_token=yourtoken tasks=[{title%3AMy Task}%2C{title%3AAnother%2Cstar%3A1%2Cref%3A98765}%2C{title%3A%2Cref%3A1234}] fields=folder,star Tasks are added by creating a JSON object and submitting a POST to the API. Also I need to encode the data before transferring via the URL. I tried this operation by using javascript. I just tried with two parameters in the array (Mandatory -title and optional - star). My code is as below. ![CDATA[ var added = 0; var query = ; var taskString = '{tasks:' + mc.getProperty('uri.var.tasks') + '}'; if (mc.getProperty('uri.var.tasks') != null mc.getProperty('uri.var.tasks') != ) { var taskObj = eval (( + taskString + )); if(Boolean(added)) { query = query + ',tasks:['; }else { query = query + 'tasks:['; added = 1; } var count = 0; for (var i in taskObj.tasks) { if (taskObj.tasks.hasOwnProperty(i)) { if(count == 0 ) { query=query + '{\title\:\'+mc.getProperty('uri.var.title')+'\,'; query=query + '{\star\:\'+mc.getProperty('uri.var.star')+'\}'; count =1; }else { query=query + ',{\title\:\'+mc.getProperty('uri.var.title')+'\,'; query=query + '{\star\:\'+mc.getProperty('uri.var.star')+'\}'; } } } query = query + ']'; var encoded_query= encodeURIComponent(query); } mc.setProperty('uri.var.encoded_query', encoded_query); ]] /script And I have wrritten the payload factory as below. payloadFactory media-type=xml format xform access_token$1/access_token tasks$2/tasks fields$3/fields /xform !--{access_token : $1, tasks : $2fields : $3}-- /format args arg expression=$func:access_token / arg expression=get-property('uri.var.encoded_query') / arg expression=$func:fields / /args/payloadFactory But it gives me an error as below. [2014-09-10 22:39:22,129] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.access_token. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.tasks. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,130] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.fields. Returning empty result. Error Unexpected character ({) at position 96. [2014-09-10 22:39:22,132] ERROR - ScriptMediator Failed to get the JSON payload from the input stream. Error com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 101 What am I missing? How can I modify this to work with all the optional parameters? Thank you Dinithi De Silva Associate Software Engineer Mob: +94 716 667 655 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world
[Dev] Need to know about Stratos Rest Service Unsubscription
Hi All, We are in the process of implementing tenant deletion on cloud. We need to unsubscribe all the Stratos subscriptions for a given tenant in a given stage(dev/prod/test). ATM *StratosRestService *class has a method called *unsubscribe(**String alias**) .* I need to clarify few things. 1. What does it mean by 'alias' in the input parameter of unsubscribe method ? 2. What is the relationship between alias and a tenant. 3. If i call this unsubscribe method , will it take care of unsubscribing all Stratos services for that tenant in that stage ? -- Mahesh Chinthaka Software Engineer , WSO2. Phone : (+94) 71 63 63 083 Email : mahe...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Patches need to be committed (State in Highest 4.3.0)
Hi Sameera, Please find the ticket list for $subject. Review and commit needed. https://wso2.org/jira/browse/CARBON-14941 https://wso2.org/jira/browse/CARBON-14909 https://wso2.org/jira/browse/CARBON-14904 https://wso2.org/jira/browse/CARBON-14756 https://wso2.org/jira/browse/CARBON-14713 https://wso2.org/jira/browse/CARBON-14631 https://wso2.org/jira/browse/CARBON-14558 https://wso2.org/jira/browse/CARBON-14476 https://wso2.org/jira/browse/CARBON-14475 Regards, Aruna -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Best approach for writing integration tests for ESB connectors
Hi All, I'm working on writing integration tests for ESB Codeplex connector and I went through available connector examples. All the tests were written in single class(ConnectorIntegrationTest) so far. All mandatory parameter tests, optional parameter tests and faulty parameter tests were written in single class. Due to this integration test class getting too lengthy and not readable. Have anyone tried using parameterized test approach ( http://www.tutorialspoint.com/testng/testng_parameterized_test.htm) as a workaround to this problem? If we can introduce this approach for connector integration testing, we only need one method per proxy. By changing parameters we can develop n number of test cases for same proxy. -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] BAM git repo build failure - wso2-dev/product-bam
Hi, Encountered the following build failure in clean repo . Any help? Downloading: http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.reporting.feature/4.3.0-SNAPSHOT/org.wso2.carbon.reporting.feature-4.3.0-SNAPSHOT.zip [ERROR] Error occured when processing the Feature Artifact: org.wso2.carbon:org.wso2.carbon.reporting.feature:4.3.0-SNAPSHOT org.apache.maven.plugin.MojoExecutionException: Error occured when processing the Feature Artifact: org.wso2.carbon:org.wso2.carbon.reporting.feature:4.3.0-SNAPSHOT at org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322) at org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197) at org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR at org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:43) at org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319) ... 23 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Could not find artifact org.wso2.carbon:org.wso2.carbon.reporting.feature:zip:4.3.0-SNAPSHOT in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.wso2.carbon -DartifactId=org.wso2.carbon.reporting.feature -Dversion=4.3.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.wso2.carbon -DartifactId=org.wso2.carbon.reporting.feature -Dversion=4.3.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] org.wso2.carbon:org.wso2.carbon.reporting.feature:zip:4.3.0-SNAPSHOT from the specified remote repositories: wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true, snapshots=true), wso2.releases (http://maven.wso2.org/nexus/content/repositories/releases/, releases=true, snapshots=true), wso2.snapshots ( http://maven.wso2.org/nexus/content/repositories/snapshots/, releases=false, snapshots=true), central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525) at org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:39) ... 24 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.wso2.carbon:org.wso2.carbon.reporting.feature:zip:4.3.0-SNAPSHOT in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at