[Dev] Test failures in sevice mgt component - Failed to initialize the user manager. Error while reading realm configuration from file

2013-07-19 Thread Shameera Rathnayaka
Please note $Subject, If this has been fixed please mention in which components. --- T E S T S --- Running org.wso2.carbon.service.mgt.TestServiceAdmin log4j:WARN No appenders could be found

[Dev] What are these new INFO - ServerConnFactoryBuilder logs at start up

2013-07-19 Thread Nirodha Pramod
Hi, What are these following INFO logs which can be seen at server startup of 4.2.0 packs. Seems like related to keystores. However these occur only in API-M and ESB packs, (not in IS, AS, GReg) [2013-07-19 11:21:53,943] INFO - TomcatGenericWebappsDeployer Deployed webapp:

[Dev] Unable to run Greg tests-new integrations test module due to OutOfMemoryError in java heap space

2013-07-19 Thread Pulasthi Supun
Hi All I ran the tests-new integration tests in the G-Reg builder machine without any other application running but we still encounter OutOfMemoryError. The machine has 8GB RAM installed. Any help regarding this would be appreciated. Thanks Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2

Re: [Dev] Unable to run Greg tests-new integrations test module due to OutOfMemoryError in java heap space

2013-07-19 Thread Krishantha Samaraweera
Can you monitor surefire process and G-Reg instance though Jprofiler. So we can help you to identify the reason for this. Also send me the test automation log, which can be found at target/logs/ Thanks, Krishantha. On Fri, Jul 19, 2013 at 11:50 AM, Pulasthi Supun pulas...@wso2.com wrote: Hi

Re: [Dev] Unable to run Greg tests-new integrations test module due to OutOfMemoryError in java heap space

2013-07-19 Thread Pulasthi Supun
Hi Krishantha Will email you the logs. and will run the tests again and monitor the process with Jprofiler. Thanks. Pulasthi On Fri, Jul 19, 2013 at 11:53 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Can you monitor surefire process and G-Reg instance though Jprofiler. So we can

Re: [Dev] What is the correct way to detect access token expiry in AM

2013-07-19 Thread Supun Malinga
Hi Sanjeewa, Looks like this error code is generic?. Could you pls point me where it's initiating?. In my user case it starts with user invoking /token and getting a valid user token. So token revoke won't be applicable? (unless someone intentionally did). @Sameera, I believe keeping track of

[Dev] Publishing GREG Rest API

2013-07-19 Thread Lakmali Baminiwatta
Hi all, We have completed the implementation of the Embedded APIM functionality, to manage GREG Rest APIs. We need to clarify how are we going to publish the GREG Rest API. Publishing the API includes following tasks, - Add the API artifact to the registry - Add the API to the APIM

Re: [Dev] What is the correct way to detect access token expiry in AM

2013-07-19 Thread Sameera Jayasoma
Supun access token is a encoded string which contains the information of the end user, application, scope and other attributes. If the same user requests a token via different app, he will get a different app. I am not suggesting to keep timers. Rather when ever you do a call, check whether your

Re: [Dev] Unable to run Greg tests-new integrations test module due to OutOfMemoryError in java heap space

2013-07-19 Thread Krishantha Samaraweera
Found this entry in logs. SEVERE: The web application [/juddiv3] appears to have started a thread named [H2 File Lock Watchdog

Re: [Dev] Publishing GREG Rest API

2013-07-19 Thread Nuwan Dias
Hi, I think the API should initially be in a created state rather than being in a published state. The admin or whoever responsible should publish it through the publisher. We also need to make this a generic solution so that it works even with external API Management. When the API is added to

[Dev] Server Startup going to almost 100% cpu in 4.2.0 packs

2013-07-19 Thread Nirodha Pramod
Hi, $Subject happens at server startup, seems like when the patches are being applied. thanks, Nirodha -- * * *Nirodha Gallage* Senior Software Engineer, QA. WSO2 Inc.: http://wso2.com/ Mobile: +94716429078 ___ Dev mailing list Dev@wso2.org

Re: [Dev] Unable to run Greg tests-new integrations test module due to OutOfMemoryError in java heap space

2013-07-19 Thread Krishantha Samaraweera
I do see lots of test failures in each package. The best way to fix this is to execute each package individually and fix issues. Thanks, Krishantha. On Fri, Jul 19, 2013 at 12:16 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Found this entry in logs. SEVERE: The web application

Re: [Dev] What is the correct way to detect access token expiry in AM

2013-07-19 Thread Supun Malinga
Hi Sameera, On Fri, Jul 19, 2013 at 12:15 PM, Sameera Jayasoma same...@wso2.com wrote: Supun access token is a encoded string which contains the information of the end user, application, scope and other attributes. If the same user requests a token via different app, he will get a different

Re: [Dev] Server Startup going to almost 100% cpu in 4.2.0 packs

2013-07-19 Thread Sameera Jayasoma
We've optimized patch copying [1] and the changes will be applied trunk soon. You will get the fixes with the next build. Thanks, Sameera. [1] https://wso2.org/jira/browse/CARBON-14193 On Fri, Jul 19, 2013 at 12:19 PM, Nirodha Pramod niro...@wso2.com wrote: Hi, $Subject happens at server

Re: [Dev] What are these new INFO - ServerConnFactoryBuilder logs at start up

2013-07-19 Thread Suresh Attanayaka
Hi, These seems come from Synapse. May be Kasun or Jeewantha knows. Thanks, -Suresh On Fri, Jul 19, 2013 at 11:48 AM, Nirodha Pramod niro...@wso2.com wrote: Hi, What are these following INFO logs which can be seen at server startup of 4.2.0 packs. Seems like related to keystores. However

Re: [Dev] What is the correct way to detect access token expiry in AM

2013-07-19 Thread Sameera Jayasoma
Keep the access token in user session. Before you do an API call, compare the expiry time with the current time. The logic is simple. Sameera. On Fri, Jul 19, 2013 at 12:25 PM, Supun Malinga sup...@wso2.com wrote: Hi Sameera, On Fri, Jul 19, 2013 at 12:15 PM, Sameera Jayasoma

Re: [Dev] What is the correct way to detect access token expiry in AM

2013-07-19 Thread Nuwan Dias
On Fri, Jul 19, 2013 at 12:25 PM, Supun Malinga sup...@wso2.com wrote: Hi Sameera, On Fri, Jul 19, 2013 at 12:15 PM, Sameera Jayasoma same...@wso2.comwrote: Supun access token is a encoded string which contains the information of the end user, application, scope and other attributes. If the

Re: [Dev] Jaggery test failure in AS

2013-07-19 Thread Piyum Fernando
Seems the value of {$installFolder} relative to the product root has been changed with new changes in trunk. @Pradeep please have a look. Thanks. On Fri, Jul 19, 2013 at 11:54 AM, Piyum Fernando pi...@wso2.com wrote: Hi, modules directory which comes with jaggery.server.feature is missing

Re: [Dev] Publishing GREG Rest API

2013-07-19 Thread Lakmali Baminiwatta
Hi Nuwan, On 19 July 2013 12:19, Nuwan Dias nuw...@wso2.com wrote: Hi, I think the API should initially be in a created state rather than being in a published state. The admin or whoever responsible should publish it through the publisher. We also need to make this a generic solution so

Re: [Dev] What is the correct way to detect access token expiry in AM

2013-07-19 Thread Supun Malinga
Thanks Sameera and NuwanD. On Fri, Jul 19, 2013 at 12:33 PM, Nuwan Dias nuw...@wso2.com wrote: On Fri, Jul 19, 2013 at 12:25 PM, Supun Malinga sup...@wso2.com wrote: Hi Sameera, On Fri, Jul 19, 2013 at 12:15 PM, Sameera Jayasoma same...@wso2.comwrote: Supun access token is a encoded

Re: [Dev] What is the correct way to detect access token expiry in AM

2013-07-19 Thread Kishanthan Thangarajah
To elaborate more on this, what we could do here is, on the first access to the token, get the accessed time and save it to the user session. And on the subsequent requests, get this accessed time value and compare with current time and check whether the diff exceeds the expiry time. If yes, we

Re: [Dev] Test failures in sevice mgt component - Failed to initialize the user manager. Error while reading realm configuration from file

2013-07-19 Thread Shameera Rathnayaka
Hi, Module mgt component test also effect this. Is it possible to know who is looking this issue in IS team? --- T E S T S --- Running

Re: [Dev] Unable to run Greg tests-new integrations test module due to OutOfMemoryError in java heap space

2013-07-19 Thread Pulasthi Supun
Hi Krishantha Ok will try it out package wise. Thanks,BTW i am not sure about the juddiv3 thing maybe Subash would know somthing about it. Regards Pulasthi On Fri, Jul 19, 2013 at 12:21 PM, Krishantha Samaraweera krishan...@wso2.com wrote: I do see lots of test failures in each package. The

Re: [Dev] What are these new INFO - ServerConnFactoryBuilder logs at start up

2013-07-19 Thread Jeewantha Dharmaparakrama
These logs are printed when SSLContext is made when initializing Passthru or NHttp transport listeners. Jeewantha. On Fri, Jul 19, 2013 at 12:31 PM, Suresh Attanayaka sur...@wso2.com wrote: Hi, These seems come from Synapse. May be Kasun or Jeewantha knows. Thanks, -Suresh On Fri, Jul

Re: [Dev] Test failures in sevice mgt component - Failed to initialize the user manager. Error while reading realm configuration from file

2013-07-19 Thread Prabath Siriwardena
Shameera please talk directly to Darshana or IS team.. Thanks... Sent from my mobile device On Jul 19, 2013, at 1:13 PM, Shameera Rathnayaka shame...@wso2.com wrote: Hi, Module mgt component test also effect this. Is it possible to know who is looking this issue in IS team?

Re: [Dev] What are these new INFO - ServerConnFactoryBuilder logs at start up

2013-07-19 Thread Suresh Attanayaka
Hi, On Fri, Jul 19, 2013 at 2:01 PM, Nirodha Pramod niro...@wso2.com wrote: So whats the importance of having them in the startup log? we haven;t seen these logs in previous releases. I think they should be debug logs. On Fri, Jul 19, 2013 at 1:53 PM, Jeewantha Dharmaparakrama

Re: [Dev] What are these new INFO - ServerConnFactoryBuilder logs at start up

2013-07-19 Thread Jeewantha Dharmaparakrama
That's a change done by Oleg to print the certificate information in the keyStore. 162829 oleg@wso2. for (X509Certificate cert: certs) { 162829 oleg@wso2. log.info(name + Subject DN: + cert.getSubjectDN()); 162829 oleg@wso2.

Re: [Dev] Test failures in sevice mgt component - Failed to initialize the user manager. Error while reading realm configuration from file

2013-07-19 Thread Kasun Gajasinghe
Hi, This particular issue is fixed.. On Fri, Jul 19, 2013 at 2:05 PM, Prabath Siriwardena prab...@wso2.comwrote: Shameera please talk directly to Darshana or IS team.. Thanks... Sent from my mobile device On Jul 19, 2013, at 1:13 PM, Shameera Rathnayaka shame...@wso2.com wrote: Hi,

[Dev] Test failures in apimgt/org.wso2.carbon.apimgt.impl

2013-07-19 Thread Shameera Rathnayaka
Hi APIM team, There is a test error with apimgt/org.wso2.carbon.apimgt.impl test. Please have a look. Running org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest Tests run: 20, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.089 sec FAILURE! Running

Re: [Dev] Test failures in sevice mgt component - Failed to initialize the user manager. Error while reading realm configuration from file

2013-07-19 Thread Asela Pathberiya
Yes... this error is due, svn externals are not properly updated in these components and they were still pointed to 4.0.0 branch... However when you see the user manager name in an error, Please do not think, it is always an issue with our user kernel :D... It is always great, if you could

Re: [Dev] Test failures in sevice mgt component - Failed to initialize the user manager. Error while reading realm configuration from file

2013-07-19 Thread Kasun Gajasinghe
Hi Asela, Shameera, Yes, and this issue is fixed.. But still the service-mgt and module-mgt tests fail which is related to caching+registry. We should take a full update and build to make sure that issue is really there. org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add

Re: [Dev] [DEV][APPFAC]Reducing Ajax calls and displaying meaningfull error messages when inviting a user to app

2013-07-19 Thread Asanka Dissanayake
Hi All, can we include this in AF 1.1.0. Flooding back end with ajax calls is not nice which happens now when inviting multiple users and updating multiple users. we can come up with a same solution for update users and delete users operations. This not just a nice to have feature i guess.

Re: [Dev] What are these new INFO - ServerConnFactoryBuilder logs at start up

2013-07-19 Thread Suresh Attanayaka
Changed to debug logs in r178694. On Fri, Jul 19, 2013 at 2:18 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: That's a change done by Oleg to print the certificate information in the keyStore. 162829 oleg@wso2. for (X509Certificate cert: certs) {

Re: [Dev] Is there a property defined to check whether a carbon server running in Tenant Mode/Non Tenant Mode

2013-07-19 Thread Shariq Muhammed
On Fri, Jul 19, 2013 at 12:17 AM, Lalaji Sureshika lal...@wso2.com wrote: Hi, $Is Subject available? The requirement for asking above property is,though each carbon server supports multi-tenancy,there will be instances where a carbon server is running in Super Tenant mode only [without

Re: [Dev] Publishing GREG Rest API

2013-07-19 Thread Nuwan Dias
On Fri, Jul 19, 2013 at 12:35 PM, Lakmali Baminiwatta lakm...@wso2.comwrote: Hi Nuwan, On 19 July 2013 12:19, Nuwan Dias nuw...@wso2.com wrote: Hi, I think the API should initially be in a created state rather than being in a published state. The admin or whoever responsible should

Re: [Dev] Is there a property defined to check whether a carbon server running in Tenant Mode/Non Tenant Mode

2013-07-19 Thread Supun Malinga
If you simply want to do this by checking how many tenants are there, I guess that can be possible.. thanks, On Fri, Jul 19, 2013 at 2:42 PM, Shariq Muhammed sha...@wso2.com wrote: On Fri, Jul 19, 2013 at 12:17 AM, Lalaji Sureshika lal...@wso2.comwrote: Hi, $Is Subject available? The

Re: [Dev] Publishing GREG Rest API

2013-07-19 Thread Senaka Fernando
Hi all, I think its best to publish the API at server start-up. This is because the DB can be cleaned at start-up etc, and asking someone to add the whole thing manually is also not so usable. However, I think what Nuwan suggests is also good, because the admin needs to decide as to whether these

Re: [Dev] Publishing GREG Rest API

2013-07-19 Thread Senaka Fernando
Hi Nuwan, I think the check at start-up is not going to be very expensive. During server start-up we do several checks for services too. It will become expensive if you try to do the same for all tenants of course. Such needs to happen when the tenant gets loaded. That's the standard pattern

Re: [Dev] Is there a property defined to check whether a carbon server running in Tenant Mode/Non Tenant Mode

2013-07-19 Thread Sumedha Rubasinghe
On Fri, Jul 19, 2013 at 3:06 PM, Senaka Fernando sen...@wso2.com wrote: Hi Sumedha, Didn't we decide to have a Store of all Stores in the MT mode of AM? Yes.. we did. We are trying to find a way to distinguish Super Tenant Store in MT mode Super Tenant Store in super tenant (no tenants)

Re: [Dev] Publishing GREG Rest API

2013-07-19 Thread Nuwan Dias
On Fri, Jul 19, 2013 at 2:59 PM, Senaka Fernando sen...@wso2.com wrote: Hi Nuwan, I think the check at start-up is not going to be very expensive. During server start-up we do several checks for services too. It will become expensive if you try to do the same for all tenants of course. Such

[Dev] Why do we checkin .wars in svn?

2013-07-19 Thread Supun Malinga
Hi, $subject. https://svn.wso2.org/repos/wso2/carbon/platform/trunk/features/data-bridge/org.wso2.carbon.databridge.receiver.restapi.server.feature/src/main/resources/datareceiver.war thanks, -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com http://wso2.org email -

Re: [Dev] Publishing GREG Rest API

2013-07-19 Thread Sriragu Arudsothy
Hi Nuwan, I agree to you. I also have done the second option calling jaggery REST endpoint to publish the REST API. I tested using a menu item click on it will publish the REST API after Greg server start up. User who has certain permission may publish the REST API if not published

Re: [Dev] Publishing GREG Rest API

2013-07-19 Thread Senaka Fernando
Hi Nuwan, I believe that you should be able to determine the availability of the required components using @scr annotations isn't it? Before looking into other options such as onLogin, I think its best to experiment with that possibility which would make it possible for us to easily make use of

Re: [Dev] java.lang.NullPointerException while invoking admin service operation thru SoapUI

2013-07-19 Thread Supun Malinga
Hi, Is this in trunk? or whats the carbon version?. Please ignore this if you managed to find a solution.. thanks, On Thu, Jul 18, 2013 at 11:09 PM, Miyuru Wanninayaka miy...@wso2.comwrote: As stack trace, you are sending messages to NIO transport. You need to hit servlet port (9443) to

Re: [Dev] Why do we checkin .wars in svn?

2013-07-19 Thread Anjana Fernando
Hi, I'm guessing this is a JAX-RS service used to implement the BAM REST API. I hope there is a Maven plugin to build a JAX-RS war from the source, if so, we should fix it. Dunith, can you please do the needful. Cheers, Anjana. On Fri, Jul 19, 2013 at 3:26 PM, Supun Malinga sup...@wso2.com

Re: [Dev] ESB 4.7.0 Scheduled Tasks

2013-07-19 Thread Susinda Perera
Implemented as requested as follows If the selected task implementation is MessageInjector we can list it's parameters, else if the selected task implementation is a custom one, user can manually add it's parameters. Rdgs Susi.. -- *Susinda Perera* Software Engineer Mobile:(+94)716049075

Re: [Dev] Why do we checkin .wars in svn?

2013-07-19 Thread Supun Malinga
Hi, There is a mvn war plugin. Probably there is one specific to cxf/jax-rs. But anyways war plugin should be sufficient.. thanks, On Fri, Jul 19, 2013 at 5:11 PM, Anjana Fernando anj...@wso2.com wrote: Hi, I'm guessing this is a JAX-RS service used to implement the BAM REST API. I hope

Re: [Dev] Test failures in apimgt/org.wso2.carbon.apimgt.impl

2013-07-19 Thread Nuwan Dias
Will have this checked. On Fri, Jul 19, 2013 at 2:24 PM, Shameera Rathnayaka shame...@wso2.comwrote: Hi APIM team, There is a test error with apimgt/org.wso2.carbon.apimgt.impl test. Please have a look. Running org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest Tests run: 20, Failures:

Re: [Dev] Is there a property defined to check whether a carbon server running in Tenant Mode/Non Tenant Mode

2013-07-19 Thread Shariq Muhammed
On Fri, Jul 19, 2013 at 2:25 AM, Nuwan Dias nuw...@wso2.com wrote: On Fri, Jul 19, 2013 at 2:42 PM, Shariq Muhammed sha...@wso2.com wrote: On Fri, Jul 19, 2013 at 12:17 AM, Lalaji Sureshika lal...@wso2.comwrote: Hi, $Is Subject available? The requirement for asking above property

Re: [Dev] Is there a property defined to check whether a carbon server running in Tenant Mode/Non Tenant Mode

2013-07-19 Thread Sumedha Rubasinghe
On Fri, Jul 19, 2013 at 5:49 PM, Shariq Muhammed sha...@wso2.com wrote: On Fri, Jul 19, 2013 at 2:25 AM, Nuwan Dias nuw...@wso2.com wrote: On Fri, Jul 19, 2013 at 2:42 PM, Shariq Muhammed sha...@wso2.com wrote: On Fri, Jul 19, 2013 at 12:17 AM, Lalaji Sureshika lal...@wso2.comwrote: Hi,

[Dev] Compilation error on Platform / Trunk - org.wso2.carbon.identity.provider.mgt.u

2013-07-19 Thread Geeth Munasinghe
HI I am getting following error on platform trunk [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project org.wso2.carbon.identity.provider.mgt.ui: Compilation failure: Compilation failure: [ERROR]

Re: [Dev] Test failures in sevice mgt component - Failed to initialize the user manager. Error while reading realm configuration from file

2013-07-19 Thread Shameera Rathnayaka
Hi, Caching issues have been fixed with revision 178732, Now test failure count is 1 and it is registry related issue. As i found following code segment return configRegistry value as null, this will cause to throw an AxisFault. Any idea how to fix this? configRegistry =

Re: [Dev] Compilation error on Platform / Trunk - org.wso2.carbon.identity.provider.mgt.u

2013-07-19 Thread Prabath Siriwardena
Looks like your service-stubs not updated.. Thanks regards, -Prabath On Fri, Jul 19, 2013 at 10:25 PM, Geeth Munasinghe ge...@wso2.com wrote: HI I am getting following error on platform trunk [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile