[Dev] [Integration Framework] Cannot reuse the database result set returned from the MySqlDatabaseManager.executeQuery statement

2015-02-15 Thread Chanaka Fernando
Hi All, I am trying to fix the dbreport integration test case for the ESB 4.9.0 release and came through the below exception from the automation framework. java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)

Re: [Dev] [Integration Framework] Cannot reuse the database result set returned from the MySqlDatabaseManager.executeQuery statement

2015-02-15 Thread Chanaka Fernando
Hi All, I have found a fix for the above mentioned issue. We can use the CachedRowSet[1] implementation to get the result set and manipulate the results with that. I have created the pull request with the fix [2]. This approach will make sure that the connections are properly closed and the data

Re: [Dev] [Integration Framework] Cannot reuse the database result set returned from the MySqlDatabaseManager.executeQuery statement

2015-02-15 Thread Harsha Thirimanna
​Hi Chanaka, Yes , either we have to read the result and fill to some data object within this method or use CachedRowSet. But when we use CachedRowSet impl within the method to wrap the ResultSet, we don't need to change the method signature and consumer doesn't need to depend on this ​CachedRowS

Re: [Dev] Batched content chunk reading for WSO2 MB through Disruptor

2015-02-15 Thread Hasitha Hiranya
Hi, We can use message.getMessageMetaData().getContentChunkCount() to get number of content chunks. Here message is a AMQMessage message. Thanks On Fri, Feb 13, 2015 at 5:35 PM, Asitha Nanayakkara wrote: > Hi Asanka, > > On Fri, Feb 13, 2015 at 2:32 PM, Asanka Abeyweera > wrote: > >> Hi Asith

[Dev] [GSoC-2015] Proposal 1: Siddhi Process Monitor for WSO2 CEP

2015-02-15 Thread Rumesh Eranga
Hi, I am Rumesh Eranga, an undergraduate student from University of Colombo School of Computing. I was going through the Proposal [1] and found out that the reference for the CEP Event Flow, is missing in the reference section.It would be great if someone can add the reference. [1] https://docs.

Re: [Dev] [GSoC-2015] Proposal 1: Siddhi Process Monitor for WSO2 CEP

2015-02-15 Thread Tishan Dahanayakage
Hi Rumesh, Thanks for your interest and pointing that out. Link to the event flow is now added. Thanks, Tishan On Sun, Feb 15, 2015 at 6:38 PM, Rumesh Eranga wrote: > Hi, > > I am Rumesh Eranga, an undergraduate student from University of Colombo > School of Computing. > > I was going through

[Dev] Running ./configure to install Apache HTTP 2.0.35

2015-02-15 Thread Achintha Reemal
Hi, I am trying to setup Apache HTTP server on my laptop, which is currently running Ubunutu 14.04 (64 bit version). As Apache HTTP 2.0.xx are pretty old, ./configure does not seem to work on 64 bit version. Is there a work around for this issue? Regards, -- *G.H.Achintha Reemal* *BSc Eng Under

Re: [Dev] [IS] Accessing token_type from OAuth2AuthzEndpoint

2015-02-15 Thread Nuwandi Wickramasinghe
Hi Johann, Thanks for the reply. Will follow the suggested procedure. On Sun, Feb 15, 2015 at 3:42 AM, Johann Nallathamby wrote: > Hi Nuwandi, > > Since this is for carbon-identity 4.3.0 based release we have the > opportunity of fixing the APIs. You can add the token_type parameter > to OAuth2

Re: [Dev] [GSoC-2015] Proposal 1: Siddhi Process Monitor for WSO2 CEP

2015-02-15 Thread Rumesh Eranga
Hi Thishan, You are welcome and thanks for the prompt response. Regards, Rumesh On Sun, Feb 15, 2015 at 6:51 PM, Tishan Dahanayakage wrote: > Hi Rumesh, > > Thanks for your interest and pointing that out. Link to the event flow is > now added. > > Thanks, > Tishan > > On Sun, Feb 15, 2015 at

Re: [Dev] [Integration Framework] Cannot reuse the database result set returned from the MySqlDatabaseManager.executeQuery statement

2015-02-15 Thread Chanaka Fernando
Hi Harsha, Thank you for pointing out that. Yes, we can keep the method signature as it is. I have changed the pull request with your suggestion. Thanks, Chanaka On Sun, Feb 15, 2015 at 3:20 PM, Harsha Thirimanna wrote: > ​Hi Chanaka, > > Yes , either we have to read the result and fill to so

[Dev] Exception occurred inside cleanup method of ESB Integration test

2015-02-15 Thread Chanaka Fernando
Hi All, I'm getting the below exception when running the integration test for dblookup and dbreport mediators. FAILED CONFIGURATION: @AfterClass close org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.j

Re: [Dev] Exception occurred inside cleanup method of ESB Integration test

2015-02-15 Thread Nuwan Wimalasekara
Hi Chanaka, Did you restart the server or change any configuration within your test class? Thanks, Nuwanw On Sun, Feb 15, 2015 at 7:28 PM, Chanaka Fernando wrote: > Hi All, > > I'm getting the below exception when running the integration test for > dblookup and dbreport mediators. > > FAILED CO

Re: [Dev] Exception occurred inside cleanup method of ESB Integration test

2015-02-15 Thread Chanaka Fernando
Hi Nuwan, Here is the code inside the close method of the test class. @AfterClass(alwaysRun = true) public void close() throws Exception { try { mySqlDatabaseManager.executeUpdate("DROP DATABASE SampleDBForAutomation"); } finally { mySqlDatabaseM

Re: [Dev] Exception occurred inside cleanup method of ESB Integration test

2015-02-15 Thread Krishantha Samaraweera
Hi Chanaka, Can you share the full test class code Thanks, Krishantha. On Mon, Feb 16, 2015 at 9:05 AM, Chanaka Fernando wrote: > Hi Nuwan, > > > Here is the code inside the close method of the test class. > > > @AfterClass(alwaysRun = true) > public void close() throws Exception { > >

Re: [Dev] Exception occurred inside cleanup method of ESB Integration test

2015-02-15 Thread Chanaka Fernando
Hi Krishantha, Sure. Here is the code. /* *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * *WSO2 Inc. licenses this file to you under the Apache License, *Version 2.0 (the "License"); you may not use this file except *in compliance with the License. *You may obtain

Re: [Dev] Exception occurred inside cleanup method of ESB Integration test

2015-02-15 Thread Nuwan Wimalasekara
On Sun, Feb 15, 2015 at 7:39 PM, Chanaka Fernando wrote: > Hi Krishantha, > > Sure. Here is the code. > > /* > *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights > Reserved. > * > *WSO2 Inc. licenses this file to you under the Apache License, > *Version 2.0 (the "License"); you

Re: [Dev] Exception occurred inside cleanup method of ESB Integration test

2015-02-15 Thread Chanaka Fernando
Got it. I will apply the change. Thanks, Chanaka On Mon, Feb 16, 2015 at 9:14 AM, Nuwan Wimalasekara wrote: > > > On Sun, Feb 15, 2015 at 7:39 PM, Chanaka Fernando > wrote: > >> Hi Krishantha, >> >> Sure. Here is the code. >> >> /* >> *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org)

Re: [Dev] [DEV] Supporting IoT hub architecture via Node implementation

2015-02-15 Thread Geesara Prathap
Hi , Yes, I agree with you. I updated project structure[1] as you said. Thank you. Geesara Prathap Kulathunga, Software Engineering Intern, University of Peradeniya. gees...@wso2.com +940772684174 On Fri, Feb 13, 2015 at 11:04 PM, Prabath Abeyseker

Re: [Dev] How to Delete Tenant admin user

2015-02-15 Thread Shashika Karunatilaka
adding dev@ On Mon, Feb 16, 2015 at 10:12 AM, Shashika Karunatilaka wrote: > Hi, > > I want to delete all the users associated to a tenant, to do that i'm > taking the tenant's realm and get all the users and delete them. but when > deleting admin user it doesnt allow to delete. I noticed that t

[Dev] HTTP Status 403 when trying to view the WSDL through the browser

2015-02-15 Thread Thusitha Thilina Dayaratne
Hi All, I'm trying to develop a simple carbon component based on [1]. After creating the component, I created the bundle and put it in the dropins folder and restarted the WSO2 Application server. When I try to access the wsdl of the created component as https://localhost:9443/services/OrderServic

Re: [Dev] HTTP Status 403 when trying to view the WSDL through the browser

2015-02-15 Thread Shashika Karunatilaka
HI Thusitha, You have to set false in true on /repository/conf/carbon.xml Thank you. On Mon, Feb 16, 2015 at 10:41 AM, Thusitha Thilina Dayaratne < thusit...@wso2.com> wrote: > Hi All, > > I'm trying to develop a simple carbon component based on [1]. After > creating the component, I created t

[Dev] Custom OutputAttributeAggregator for CEP

2015-02-15 Thread Danula Eranjith
Hi, I am trying to implement a Custom OutputAttributeAggregator for CEP. I have already created the extension and added the jar files to /repository/components/lib and updated the siddhi.extension file as well according to [1] Somehow I keep on getting the following error when creating the execut

Re: [Dev] HTTP Status 403 when trying to view the WSDL through the browser

2015-02-15 Thread Thusitha Thilina Dayaratne
Hi Shashika, Thank you very much for your quick response. When I changed that to false, now I'm able to view the WSDL through the browser. Thanks /Thusitha On Mon, Feb 16, 2015 at 10:45 AM, Shashika Karunatilaka wrote: > HI Thusitha, > > You have to set false in true > on /repository/conf/carb

Re: [Dev] Custom OutputAttributeAggregator for CEP

2015-02-15 Thread Mohanadarshan Vivekanandalingam
Follow below steps to identify the issue. 1) Are there many extension jars available? Whether they have same package name ? If yes, you cannot have like that in OSGI environment then some jars which have the same package name will not be picked by the OSGI class loader.. You need to have unique pa

Re: [Dev] Custom OutputAttributeAggregator for CEP

2015-02-15 Thread Farasath Ahamed
Can you check whether you have added the extension name to the siddhi.extension file inside CEP_HOME/repository/conf/siddhi folder? On Mon, Feb 16, 2015 at 12:36 AM, Mohanadarshan Vivekanandalingam < mo...@wso2.com> wrote: > Follow below steps to identify the issue. > > 1) Are there many exten

[Dev] [DEV][AS] JAX-WS Samples NoClassDefFoundError for SAAJMetaFactoryImpl

2015-02-15 Thread Malith Munasinghe
When running client using ./run-client in sample [1] a noClassDefFoundError occurs as [2] on the server. Any resolutions for this ? Thanks, [1] https://docs.wso2.com/display/AS521/WS-Security+Sample+on+Signature+and+Encryption [2] [2015-02-16 10:33:41,849] ERROR {org.apache.catalina.core.Standar

Re: [Dev] Custom OutputAttributeAggregator for CEP

2015-02-15 Thread Danula Eranjith
Hi, Thanks a lot, solved the issue. @Mohan Yes it was the issue with having the same package name for two extension jars. @Farasath Yes I have added that Thanks, On Mon, Feb 16, 2015 at 11:06 AM, Mohanadarshan Vivekanandalingam < mo...@wso2.com> wrote: > Follow below steps to identify the issu

Re: [Dev] How to Delete Tenant admin user

2015-02-15 Thread Danushka Fernando
IMO we should say to delete realm to user store manager and it should delete all child nodes of the realm. For example for LDAP case it should delete LDAP tree for the tenant which will delete the users. WDYT? Thanks & Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile :

Re: [Dev] [DEV][AS] JAX-WS Samples NoClassDefFoundError for SAAJMetaFactoryImpl

2015-02-15 Thread KasunG Gajasinghe
What's the JDK you are running this on? On Mon, Feb 16, 2015 at 11:28 AM, Malith Munasinghe wrote: > When running client using ./run-client in sample [1] a > noClassDefFoundError occurs as [2] on the server. Any resolutions for this ? > > Thanks, > > [1] > https://docs.wso2.com/display/AS521/WS-

Re: [Dev] Fixing CApp story for Carbon 4.3.0

2015-02-15 Thread Johann Nallathamby
[Adding Godwin to the thread] IS team has already started working on this targeting the IS 5.1.0 release on Git based on carbon-kernel 4.3.0. Following are items we will be doing. 1. We will continue using the security wizard to apply STS policies and persist it to registry. 2. Previously the s

Re: [Dev] Create data service inside ESB integration test

2015-02-15 Thread Vijitha Ekanayake
Hi All, Is there any solution on this? On Thu, Feb 12, 2015 at 2:58 PM, Vijitha Ekanayake wrote: > Hi all, > > Is there a way to do the $subject? If so, can someone point me out some > references or any sample test-case may helpful. > > Thanks ! > > -- > Vijitha Ekanayake > Software Engineer*,

Re: [Dev] [DEV][AS] JAX-WS Samples NoClassDefFoundError for SAAJMetaFactoryImpl

2015-02-15 Thread Malith Munasinghe
Hi Kasun, Thanks for the prompt response. I'm using jdk1.7.0_75 On Mon, Feb 16, 2015 at 11:53 AM, KasunG Gajasinghe wrote: > What's the JDK you are running this on? > > On Mon, Feb 16, 2015 at 11:28 AM, Malith Munasinghe > wrote: > >> When running client using ./run-client in sample [1] a >>

Re: [Dev] G-Reg internal API store and publisher are not working

2015-02-15 Thread Dulitha Wijewantha
Hi guys, We are facing the same problem when including APIM store and publisher to MDM product. When will you guys be doing this release? It's a blocker for our release this weekend. Cheers~ On Thu, Feb 12, 2015 at 5:12 PM, Supun Malinga wrote: > Hi, > > Today Lalaji and myself looked into this

Re: [Dev] Create data service inside ESB integration test

2015-02-15 Thread Dharshana Warusavitharana
Hi Vijitha, There is no specific way that you can access Data service server inside integration test run. One way you can do is install DSS features to ESB. But since you may not find all P2 repos to install for each and every build. So best way to achieve this is to write a platform test. Which

Re: [Dev] [GReg] Pull Request: Impact Analysis Feature UI Revamp & Improvement

2015-02-15 Thread Jerad Rutnam
Additional changes in the PR, Improved: - Search Field style & function - On node click sync with search field - On node double click show relations: highlight clicked node icon - Graph on load try best fit by detecting screen orientation Fixed: - Graph outer other elements click deselect functio

[Dev] Please merge pull request

2015-02-15 Thread Pulasthi Mahawithana
Hi Sameera, Please review and merge [1]. It has updates to following 1. Commons-IO - 2.4.0.wso2v1 - Required by JSCEP 2. JSCEP - 2.0.2.wso2v2 - Updated with commons-io 2.4 3. BCPKIX - 1.49.0.wso2v2 - Fix for signature validation issue (similar to what was done to bcprov) [1] https://github.com/

Re: [Dev] apache-stratos-load-balancer-4.1.0 starting exception

2015-02-15 Thread Sajith Abeywardhana
​​Hi Imesh, Even I set to load balancer. conf file config as *topology-event-listener: false*; I'm still getting this ERROR message. Please advice me how to solve this? [2015-02-16 12:26:54,489] INFO - CarbonUIServiceComponent Mgt Console URL : https://10.100.7.19:9443/carbon/ [2015-02-16 12:2

[Dev] Problem with Carbon tool -DosgiDebugOptions with a file path

2015-02-15 Thread Irham Iqbal
Hi, ./wso2server.sh --help says -DosgiDebugOptions=[options-file] Start Carbon with OSGi debugging enabled. Debug options are loaded from the file repository/conf/etc/osgi-debug.options. I copied the osgi-debug.options file to another folder and start

Re: [Dev] [Secondary userstore] [UI] "Disabled" parameter is marked as mandatory with a checkbox to tick

2015-02-15 Thread Chanuka Dissanayake
Hi Johann, I looked into this issue and found the followings, This "Disabled" property is in a property list named "mandatories" in the userstore-config.jsp file in org.wso2.carbon.identity.user.store.configuration.ui component. It retrieves the mandatory properties list by calling the UserStore

Re: [Dev] [Secondary userstore] [UI] "Disabled" parameter is marked as mandatory with a checkbox to tick

2015-02-15 Thread Johann Nallathamby
[adding Pushpalanka to the thread] Why is disabled in mandadatory list in the backend. It can be optional. Default is 'enabled'. Can you explain. If there is not proper reason I think we can fix backend as well as front end correctly. Thanks. On Mon, Feb 16, 2015 at 12:55 PM, Chanuka Dissanayak