Re: [Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)

2015-10-13 Thread Rajjaz Mohammed
Hi this is my testng.xml file

http://testng.org/testng-1.0.dtd"; >




















On Wed, Oct 14, 2015 at 12:24 PM, Nuwan Wimalasekara 
wrote:

> Hi Rajjaz,
>
> Please check the testng.xml file whether it is in valid format.
>
> Thanks,
> Nuwanw
>
> On Wed, Oct 14, 2015 at 12:21 PM, Rajjaz Mohammed  wrote:
>
>> Hi Dev,
>> I'm writing a simple integration test [1] but while running the test i'm
>> getting the following error[2]. and i attached my pom also. can anyone
>> guide on me on this?
>>
>> [1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB
>>
>> [2]
>> ---
>>  T E S T S
>> ---
>> Forking command line: /bin/sh -c cd
>> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target &&
>> /home/rajjaz/Documents/jdk1.7.0_79/jre/bin/java -Xms512m -Xmx1024m
>> -XX:MaxPermSize=128m -jar
>> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefirebooter7361817641598581788.jar
>> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire8778537678578881741tmp
>> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire_06295743703835172308tmp
>> org.apache.maven.surefire.util.SurefireReflectionException:
>> java.lang.reflect.InvocationTargetException; nested exception is
>> java.lang.reflect.InvocationTargetException: null
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>> Caused by: org.apache.maven.surefire.testset.TestSetFailedException:
>> Suite file /src/test/resources/testng.xml is not a valid file
>> at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:124)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:89)
>> ... 9 more
>>
>> Results :
>>
>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>>
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 9.685 s
>> [INFO] Finished at: 2015-10-14T12:17:26+05:30
>> [INFO] Final Memory: 94M/668M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
>> on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
>> forked VM terminated without saying properly goodbye. VM crash or
>> System.exit called ? -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
>> (default-test) on project org.wso2.carbon.connector.ejb2X: Execution
>> default-test of goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
>> forked VM terminated without saying properly goodbye. VM crash or
>> System.exit called ?
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
>> 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:116)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>> at
>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>> at org.apache.maven.cli.MavenCl

Re: [Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)

2015-10-13 Thread Nuwan Wimalasekara
Hi Rajjaz,

Please check the testng.xml file whether it is in valid format.

Thanks,
Nuwanw

On Wed, Oct 14, 2015 at 12:21 PM, Rajjaz Mohammed  wrote:

> Hi Dev,
> I'm writing a simple integration test [1] but while running the test i'm
> getting the following error[2]. and i attached my pom also. can anyone
> guide on me on this?
>
> [1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB
>
> [2]
> ---
>  T E S T S
> ---
> Forking command line: /bin/sh -c cd
> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target &&
> /home/rajjaz/Documents/jdk1.7.0_79/jre/bin/java -Xms512m -Xmx1024m
> -XX:MaxPermSize=128m -jar
> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefirebooter7361817641598581788.jar
> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire8778537678578881741tmp
> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire_06295743703835172308tmp
> org.apache.maven.surefire.util.SurefireReflectionException:
> java.lang.reflect.InvocationTargetException; nested exception is
> java.lang.reflect.InvocationTargetException: null
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Caused by: org.apache.maven.surefire.testset.TestSetFailedException: Suite
> file /src/test/resources/testng.xml is not a valid file
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:124)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:89)
> ... 9 more
>
> Results :
>
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 9.685 s
> [INFO] Finished at: 2015-10-14T12:17:26+05:30
> [INFO] Final Memory: 94M/668M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
> on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
> forked VM terminated without saying properly goodbye. VM crash or
> System.exit called ? -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
> (default-test) on project org.wso2.carbon.connector.ejb2X: Execution
> default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
> forked VM terminated without saying properly goodbye. VM crash or
> System.exit called ?
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
> 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:116)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.D

[Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)

2015-10-13 Thread Rajjaz Mohammed
Hi Dev,
I'm writing a simple integration test [1] but while running the test i'm
getting the following error[2]. and i attached my pom also. can anyone
guide on me on this?

[1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB

[2]
---
 T E S T S
---
Forking command line: /bin/sh -c cd
/home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target &&
/home/rajjaz/Documents/jdk1.7.0_79/jre/bin/java -Xms512m -Xmx1024m
-XX:MaxPermSize=128m -jar
/home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefirebooter7361817641598581788.jar
/home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire8778537678578881741tmp
/home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire_06295743703835172308tmp
org.apache.maven.surefire.util.SurefireReflectionException:
java.lang.reflect.InvocationTargetException; nested exception is
java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.apache.maven.surefire.testset.TestSetFailedException: Suite
file /src/test/resources/testng.xml is not a valid file
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:124)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:89)
... 9 more

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 9.685 s
[INFO] Finished at: 2015-10-14T12:17:26+05:30
[INFO] Final Memory: 94M/668M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
forked VM terminated without saying properly goodbye. VM crash or
System.exit called ? -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
(default-test) on project org.wso2.carbon.connector.ejb2X: Execution
default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
forked VM terminated without saying properly goodbye. VM crash or
System.exit called ?
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
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:116)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.l

Re: [Dev] Can not find defineStream method in Siddhi 3.0.0M1

2015-10-13 Thread Lasantha Fernando
Hi,

You can read more about the syntax and annotations from the SiddhiQL guide.
For stream syntax, please refer to [1]. You can drop the
@config(async='true') annotation in Siddhi-3.0.0 since that is the default
mode and the only mode of processing currently.

[1]
https://docs.wso2.com/display/CEP400/SiddhiQL+Guide+3.0#SiddhiQLGuide3.0-EventStreamDefinition

Thanks,

On 14 October 2015 at 12:00, Lakini Senanayaka  wrote:

> Hi,
>
> I have read the link Lasantha gave me.[1]
>
> Is there any format of writing EventStreams and queries as strings when
> passing them to the createExecutionPlanRuntime method ?
>
> Example:-
> String cseEventStream = "@config(async = 'true') define stream
> cseEventStream (symbol string, price float, volume long);";
>
> I couldn't understand the annotations used to write them.Could you please
> give me a reference to read about them.
>
> [1]
> https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/FilterTestCase.java
>
> Thank you.
>
> On Wed, Oct 14, 2015 at 11:17 AM, Lakini Senanayaka 
> wrote:
>
>> Thank you Lasantha.
>> I'll refer the link which you gave me.
>>
>> On Wed, Oct 14, 2015 at 11:07 AM, Lasantha Fernando 
>> wrote:
>>
>>> Hi Lakini,
>>>
>>> Better use a released version of Siddhi instead of the milestone
>>> version. Siddhi-3.0.0-M1 would have very little of the actual features
>>> implemented since this is the first milestone for the rewrite of Siddhi.
>>> Siddhi-3.0.2 is already released and you can use that version instead.
>>>
>>> Also from Siddhi-3.0.0 onwards, separate methods like defineStream,
>>> defineTable were removed from the API and there is a single API method
>>> createExecutionPlanRuntime() to which you can pass in the complete query,
>>> along with stream definitions, table definitions etc. This was done so that
>>> the user can simply pass in the execution plan just as you would write the
>>> query in CEP, without the API user having to know about different methods
>>> to define different constructs of the language.
>>>
>>> You can refer to the test cases in [1] or any other test case to get a
>>> better idea on how to use the Siddhi library API.
>>>
>>> [1]
>>> https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/FilterTestCase.java
>>>
>>> Thanks,
>>> Lasantha
>>>
>>> On 14 October 2015 at 10:49, Lakini Senanayaka  wrote:
>>>
 Hi,

  I have used SiddhiQueryapi  3.0.0M1 and SiddhiCore 3.0.0M1 in my
 android project.Now I can create siddhimanager instances.But I don't get
 defineStream,addQuery methods.Instead of that I get defineFunction.But in
 the siddhi user guide there are examples with defineStream method.Could you
 please explain me why is that and guide me how to continue the task.
 PS:I'm using siddhi queries in android.

 Thank you.
 --
 *Intern-Engineering*
 Lakini S.Senanayaka
 Mobile: +94 712295444
 Email: lak...@wso2.com

>>>
>>>
>>>
>>> --
>>> *Lasantha Fernando*
>>> Senior Software Engineer - Data Technologies Team
>>> WSO2 Inc. http://wso2.com
>>>
>>> email: lasan...@wso2.com
>>> mobile: (+94) 71 5247551
>>>
>>
>>
>>
>> --
>> *Intern-Engineering*
>> Lakini S.Senanayaka
>> Mobile: +94 712295444
>> Email: lak...@wso2.com
>>
>
>
>
> --
> *Intern-Engineering*
> Lakini S.Senanayaka
> Mobile: +94 712295444
> Email: lak...@wso2.com
>



-- 
*Lasantha Fernando*
Senior Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can not find defineStream method in Siddhi 3.0.0M1

2015-10-13 Thread Lakini Senanayaka
Hi,

I have read the link Lasantha gave me.[1]

Is there any format of writing EventStreams and queries as strings when
passing them to the createExecutionPlanRuntime method ?

Example:-
String cseEventStream = "@config(async = 'true') define stream
cseEventStream (symbol string, price float, volume long);";

I couldn't understand the annotations used to write them.Could you please
give me a reference to read about them.

[1]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/FilterTestCase.java

Thank you.

On Wed, Oct 14, 2015 at 11:17 AM, Lakini Senanayaka  wrote:

> Thank you Lasantha.
> I'll refer the link which you gave me.
>
> On Wed, Oct 14, 2015 at 11:07 AM, Lasantha Fernando 
> wrote:
>
>> Hi Lakini,
>>
>> Better use a released version of Siddhi instead of the milestone version.
>> Siddhi-3.0.0-M1 would have very little of the actual features implemented
>> since this is the first milestone for the rewrite of Siddhi. Siddhi-3.0.2
>> is already released and you can use that version instead.
>>
>> Also from Siddhi-3.0.0 onwards, separate methods like defineStream,
>> defineTable were removed from the API and there is a single API method
>> createExecutionPlanRuntime() to which you can pass in the complete query,
>> along with stream definitions, table definitions etc. This was done so that
>> the user can simply pass in the execution plan just as you would write the
>> query in CEP, without the API user having to know about different methods
>> to define different constructs of the language.
>>
>> You can refer to the test cases in [1] or any other test case to get a
>> better idea on how to use the Siddhi library API.
>>
>> [1]
>> https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/FilterTestCase.java
>>
>> Thanks,
>> Lasantha
>>
>> On 14 October 2015 at 10:49, Lakini Senanayaka  wrote:
>>
>>> Hi,
>>>
>>>  I have used SiddhiQueryapi  3.0.0M1 and SiddhiCore 3.0.0M1 in my
>>> android project.Now I can create siddhimanager instances.But I don't get
>>> defineStream,addQuery methods.Instead of that I get defineFunction.But in
>>> the siddhi user guide there are examples with defineStream method.Could you
>>> please explain me why is that and guide me how to continue the task.
>>> PS:I'm using siddhi queries in android.
>>>
>>> Thank you.
>>> --
>>> *Intern-Engineering*
>>> Lakini S.Senanayaka
>>> Mobile: +94 712295444
>>> Email: lak...@wso2.com
>>>
>>
>>
>>
>> --
>> *Lasantha Fernando*
>> Senior Software Engineer - Data Technologies Team
>> WSO2 Inc. http://wso2.com
>>
>> email: lasan...@wso2.com
>> mobile: (+94) 71 5247551
>>
>
>
>
> --
> *Intern-Engineering*
> Lakini S.Senanayaka
> Mobile: +94 712295444
> Email: lak...@wso2.com
>



-- 
*Intern-Engineering*
Lakini S.Senanayaka
Mobile: +94 712295444
Email: lak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [IS] [user store] Login failed for user from secondary store when same ldap used for R/W & Read only

2015-10-13 Thread Maduranga Siriwardena
Hi Kavitha,

Have you assigned login permission to the user?

Thanks,
Maduranga.

On Wed, Oct 14, 2015 at 10:09 AM, Kavitha Subramaniyam 
wrote:

> Hi IS team,
>
> I have configured both R/W and Read only LDAP secondary user store manager
> by using same ldap connection and I could not be able to login via user
> created under RW ldap user store. But note that I could view the same user
> under both secondary store's domain (Users & Roles -> List -> select each
> domain and search).
>
> I want to check with you whether the above behavior is expected or not,
> please clarify..
>
> Steps followed:
> - Configure R/W secondary user store - ReadWriteLDAPUserStoreManager -
> using open ldap connectoin 1
> - Configure Read only secondary user store - ReadOnlyLDAPUserStoreManager
> - using open ldap connectoin 1
> - Create a user1 under R/W ldap domain
> - Login by user1
>
> When try to login without domain, log shows as below:
>
> 
> [2015-10-13 16:32:55,232] DEBUG
> {org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager} -  SELECT * FROM
> UM_USER WHERE UM_USER_NAME=? AND UM_TENANT_ID=?
> [2015-10-13 16:32:55,241] DEBUG
> {org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager} -  User userkavirw3
> login attempt. Login success :: false
> [2015-10-13 16:32:55,241] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -
>  Authenticating user userkavirw3
> [2015-10-13 16:32:55,241] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Cache hit.
> Using DN uid=userkavirw3,ou=People,ou=WSO2,o=Opensource,dc=ITIndustry,dc=sl
> [2015-10-13 16:32:55,252] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
> uid=userkavirw3,ou=People,ou=WSO2,o=Opensource,dc=ITIndustry,dc=sl is
> authnticated: true
> [2015-10-13 16:32:55,253] DEBUG
> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -
>  Authorization cache hit. roldap.com/userkavirw3 user is not Authorized
> to perform ui.execute on /permission/admin/login
> [2015-10-13 16:32:55,253]  WARN
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
> Administrator login attempt 'ROLDAP.COM/userkavirw3[-1234]
> ' at [2015-10-13
> 16:32:55,253+0530]
>
>
> When try to login with domain, log shows as below:
> ---
> [2015-10-13 16:33:14,424] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -
>  Authenticating user userkavirw3
> [2015-10-13 16:33:14,425] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Cache hit.
> Using DN uid=userkavirw3,ou=People,ou=WSO2,o=Opensource,dc=ITIndustry,dc=sl
> [2015-10-13 16:33:14,458] DEBUG
> {org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
> uid=userkavirw3,ou=People,ou=WSO2,o=Opensource,dc=ITIndustry,dc=sl is
> authnticated: true
> [2015-10-13 16:33:14,463] DEBUG
> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -
>  Authorization cache hit. rwldap.com/userkavirw3 user is not Authorized
> to perform ui.execute on /permission/admin/login
> [2015-10-13 16:33:14,463]  WARN
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
> Administrator login attempt 'RWLDAP.COM/userkavirw3[-1234]
> ' at [2015-10-13
> 16:33:14,463+0530]
>
>
> Thanks & Kind regards,
> --
> Kavitha.S
> *Software Engineer -QA*
> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
> kavi...@wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Johann Nallathamby
Hi Isura,

Can you look into this issue urgently. I remember you fixing an issue
related to this.

Thanks.

On Wed, Oct 14, 2015 at 7:16 AM, Indika Sampath  wrote:

> Hi All,
>
> I debug code of our and found issue. It seems implementation of some API
> changed in user-core. Let me explain the flow.
>
> Our queue/topic creation has two call.
>
> 1. We create internal role when adding queue and assign
> "changePermission", "publish", "consume"  permissions to it. Which means
> that, user who created particular queue can update permission, publish or
> consume.
>
> - Below code line used to get internal role name:
>
> UserCoreUtil.addInternalDomainName(QUEUE_ROLE_PREFIX +
> queueName.replace(".","-").replace("/", "-"))
>
> result = {java.lang.String@10289}"*Internal/Q_userQueue*"
> value = {char[21]@10290}
> hash = 0
> hash32 = 0
>
> - assign permission as below:
>
> userStoreManager.addRole(roleName, user, null);
> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
> PERMISSION_CHANGE_PERMISSION);
> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
> TreeNode.Permission.CONSUME.toString().toLowerCase());
> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
> TreeNode.Permission.PUBLISH.toString().toLowerCase());
>
> 2. User can select some other role listed in in queue add page. He can
> select these role when adding queue or later by updating queue. So in
> update permission we checked whether any of user's role has above assign
> change permission.
>
> - get role list of user:
>
> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser)
>
> result = {java.lang.String[3]@9689}
> [0] = {java.lang.String@9690}"*Internal/Q_userQueue*"
> [1] = {java.lang.String@9691}"Internal/everyone"
> [2] = {java.lang.String@9692}"role1"
>
> - check whether any of role has change permission
>
> for (String userRole : userRoles) {
> if
> (userRealm.getAuthorizationManager().isRoleAuthorized(userRole, queueID,
> PERMISSION_CHANGE_PERMISSION)) {
> isUserHasChangePermission = true;
> }
> }
>
> Issue is above check false for all roles. But we assigned change
> permission to *Internal/Q_userQueue*  role when creating queue.
>
> 3. Next I evaluate below code line to check whether which role has change
> permission to queueID. Result is as below:
>
> userRealm.getAuthorizationManager().getAllowedRolesForResource(queueID,
> PERMISSION_CHANGE_PERMISSION)
>
> result = {java.lang.String[1]@9694}
> [0] = {java.lang.String@9686}"*INTERNAL/Q_userQueue*"
>
> Result has different role name. We created role name called
> *Internal/Q_userQueue* and assign permissions but it has created with
> different name *INTERNAL/Q_userQueue* and assign permission.
>
> Please have look into this because it is blocking issue to our
> implementation.
>
> Cheers!
>
>
> On Tue, Oct 13, 2015 at 5:22 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Was this issue found in 4.4.2 RC1 too?
>>
>> On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda 
>> wrote:
>>
>>> Hi Manuri,
>>>
>>> We tested MB 3.0.0 with this release and our scenario of queue creation
>>> fails after giving a permission denied error. The scenario is as follows:
>>>
>>> 1. Create a user "user1" with a role assigned with permission to create
>>> queues.
>>> 2. Login from "user1" and try to create a queue, we get a permission
>>> denied error.
>>>
>>> When creating a queue the following happens from our code.
>>>
>>> 1. We create an internal role for the queue and assign it to the current
>>> user with permissions assigned.
>>>
>>> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>>>   
>>> PERMISSION_CHANGE_PERMISSION);
>>>
>>> 2. Next, we create the queue and update permissions for the queue. In this 
>>> step, we check if the current user has permissions to change the queue.
>>>
>>> String[] userRoles = 
>>> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
>>> for (String userRole : userRoles) {
>>> if (userRealm.getAuthorizationManager().isRoleAuthorized(
>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
>>> isUserHasChangePermission = true;
>>> }
>>> }
>>>
>>> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false 
>>> implying that any of roles assigned to the user do not have permissions to 
>>> change the queue, thus not allowing the user to create the queue.
>>>
>>>
>>> Thank you
>>>
>>>
>>> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
>>> wrote:
>>>
 Hi Devs,

 WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12396

 Please download and test your products with kernel 4.4.2 RC2 and

Re: [Dev] Can not find defineStream method in Siddhi 3.0.0M1

2015-10-13 Thread Lakini Senanayaka
Thank you Lasantha.
I'll refer the link which you gave me.

On Wed, Oct 14, 2015 at 11:07 AM, Lasantha Fernando 
wrote:

> Hi Lakini,
>
> Better use a released version of Siddhi instead of the milestone version.
> Siddhi-3.0.0-M1 would have very little of the actual features implemented
> since this is the first milestone for the rewrite of Siddhi. Siddhi-3.0.2
> is already released and you can use that version instead.
>
> Also from Siddhi-3.0.0 onwards, separate methods like defineStream,
> defineTable were removed from the API and there is a single API method
> createExecutionPlanRuntime() to which you can pass in the complete query,
> along with stream definitions, table definitions etc. This was done so that
> the user can simply pass in the execution plan just as you would write the
> query in CEP, without the API user having to know about different methods
> to define different constructs of the language.
>
> You can refer to the test cases in [1] or any other test case to get a
> better idea on how to use the Siddhi library API.
>
> [1]
> https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/FilterTestCase.java
>
> Thanks,
> Lasantha
>
> On 14 October 2015 at 10:49, Lakini Senanayaka  wrote:
>
>> Hi,
>>
>>  I have used SiddhiQueryapi  3.0.0M1 and SiddhiCore 3.0.0M1 in my android
>> project.Now I can create siddhimanager instances.But I don't get
>> defineStream,addQuery methods.Instead of that I get defineFunction.But in
>> the siddhi user guide there are examples with defineStream method.Could you
>> please explain me why is that and guide me how to continue the task.
>> PS:I'm using siddhi queries in android.
>>
>> Thank you.
>> --
>> *Intern-Engineering*
>> Lakini S.Senanayaka
>> Mobile: +94 712295444
>> Email: lak...@wso2.com
>>
>
>
>
> --
> *Lasantha Fernando*
> Senior Software Engineer - Data Technologies Team
> WSO2 Inc. http://wso2.com
>
> email: lasan...@wso2.com
> mobile: (+94) 71 5247551
>



-- 
*Intern-Engineering*
Lakini S.Senanayaka
Mobile: +94 712295444
Email: lak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting PKIX path building failed

2015-10-13 Thread Sriashalya Srivathsan
Hi

I have run the direct call to API with the java Client for
tokenAuthentication. It is also giving the same error. but there is no
error when I run another call for pushAuthentication.
It seems problem with the API. I'm trying to contact with their support.

On Thu, Oct 1, 2015 at 10:08 PM, Sriashalya Srivathsan 
wrote:

> Hi Malintha,
>
> I tried that also..still getting the same issue.
>
> On Thu, Oct 1, 2015 at 5:03 PM, Malintha Adikari 
> wrote:
>
>> Hi,
>>
>> To generate cert from the keystore
>>
>> keytool -genkey -alias keyAlias-keyalg RSA -keypass changeit -storepass
>> changeit keystore keystore.jks
>>
>> To export the generated certificate
>>
>> keytool -export -alias keyAlias-storepass changeit -file server.cer
>> -keystore keystore.jks
>>
>>
>> You can use above commands to do it and more information from doc
>> https://docs.oracle.com/cd/E19798-01/821-1751/ghlgv/index.html
>>
>> Regards,
>> Malintha
>>
>> On Thu, Oct 1, 2015 at 4:46 PM, Danushka Fernando 
>> wrote:
>>
>>> You need to export the certificate from the keystore and import it to
>>> java. You can use keytool for that purpose.
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Thu, Oct 1, 2015 at 11:31 AM, Sriashalya Srivathsan >> > wrote:
>>>
 Hi Malintha,
 I have a problem in adding keystore in to java.we can add the
 certificate to java cacert, but I have keystore. how to add it?

 On Thu, Oct 1, 2015 at 11:12 AM, Sriashalya Srivathsan <
 asha...@wso2.com> wrote:

> Thanx Malintha, I'll check on that
>
> On Thu, Oct 1, 2015 at 10:49 AM, Malintha Adikari 
> wrote:
>
>> Hi Sriashalya,
>>
>> Are you getting this error while sending requests to IS ? When you
>> install new keystore to wso2 product you have to configure it in 
>> carbon.xml
>> also.
>>
>> 
>> 
>>
>> ${carbon.home}/repository/resources/security/wso2carbon.jks
>> 
>> JKS
>> 
>> wso2carbon
>> 
>> wso2carbon
>> 
>> wso2carbon
>> 
>>
>> Regards,
>> Malintha
>>
>> On Thu, Oct 1, 2015 at 10:35 AM, Sriashalya Srivathsan <
>> asha...@wso2.com> wrote:
>>
>>> Hi
>>>
>>> Getting the following error while adding the keystore to IS which is
>>> provided by the API.
>>>
>>> javax.net.ssl.SSLHandshakeException:
>>> sun.security.validator.ValidatorException: PKIX path building failed:
>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
>>> find
>>> valid certification path to requested target
>>>
>>> I've added the certificate to java cacerts and wso2 IS.
>>>
>>>
>>> --
>>> Regards
>>> S.Sriashalya,
>>> WSO2 *Inc*.
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Malintha Adikari*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile: +94 71 2312958
>> Blog:http://malinthas.blogspot.com
>> Page:   http://about.me/malintha
>>
>
>
>
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>



 --
 Regards
 S.Sriashalya,
 WSO2 *Inc*.
 lean . enterprise . middleware

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>
>>
>> --
>> *Malintha Adikari*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile: +94 71 2312958
>> Blog:http://malinthas.blogspot.com
>> Page:   http://about.me/malintha
>>
>
>
>
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>



-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] EmptyStackException when resuming a paused message processor

2015-10-13 Thread Jagath Sisirakumara Ariyarathne
Hi Nuwan,

Our plan is to do the first milestone release end of next week. With this
we hope to incorporate latest carbon-deployment and kernel releases (if it
released during this week).

Thanks.

On Wed, Oct 14, 2015 at 11:07 AM, Chanaka Fernando 
wrote:

> [Adding Jagath]
>
> On Wed, Oct 14, 2015 at 10:17 AM, Nuwan Dias  wrote:
>
>> Hi ESB folks,
>>
>> Can we get a milestone release of synapse and carbon-mediation including
>> this fix and another PR I sent to synapse? We have to do a milestone
>> release of API Manager this week.
>>
>> Thanks,
>> NuwanD.
>>
>> On Mon, Oct 12, 2015 at 11:43 AM, Nuwan Dias  wrote:
>>
>>> Thanks a lot Chanaka.
>>>
>>> On Mon, Oct 12, 2015 at 11:39 AM, Chanaka Fernando 
>>> wrote:
>>>
 Hi All,

 This issue is fixed with the following PR [1]. Thanks for reporting and
 helping us to figure out the issue.

 [1] https://github.com/wso2/carbon-mediation/pull/467

 On Fri, Oct 9, 2015 at 3:41 PM, Chanaka Fernando 
 wrote:

> Hi Sameera,
>
> Your judgment is correct and it helped us to find the root cause :).
> I'll fix the code from carbon-mediation side. Thanks for your input.
>
> On Fri, Oct 9, 2015 at 3:19 PM, Sameera Jayasoma 
> wrote:
>
>> Hi Chanaka,
>>
>> You don't need to destroy the current context. This part is handle by
>> the Kernel code. Users of the CarbonContext API do not need to worry 
>> about
>> destroying the context.
>>
>> Who has done this change? So my initial judgment is correct. :) Stack
>> cannot become empty.
>>
>> Thanks,
>> Sameera.
>>
>> On Thu, Oct 8, 2015 at 6:14 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi All,
>>>
>>> At last, I was able to find the root cause for this behavior. This
>>> is actually coming from carbon-mediation code. What actually happens is
>>> that when ESB starts with a tenant, it will not load the tenant until it
>>> receives the first request. When It receives the first request, it will
>>> call the MultitenantMessageReceiver.processRequest() method. Within this
>>> method, it will call the following method.
>>>
>>> PrivilegedCarbonContext.startTenantFlow();
>>>
>>>
>>> This will get the ThreadLocal variable *parentContextHolderStack *and
>>> get the stack  and push the carbonContextDataHolder object to the
>>> stack. After this, tenant loading happens and within the initialization 
>>> of
>>> the carbon mediation registry we have the following code segment.
>>>
>>> *org.wso2.carbon.mediation.registry.WSO2Registry.java*
>>>
>>> /**
>>>  *  Carbon Kernel mandates to set Threadlocal before calling anything 
>>> in kernel
>>>  */
>>> private void setTenantInfo() {
>>> // Preserve user name
>>> String username = 
>>> PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername();
>>> *PrivilegedCarbonContext.destroyCurrentContext();*
>>> PrivilegedCarbonContext cc = 
>>> PrivilegedCarbonContext.getThreadLocalCarbonContext();
>>> cc.setTenantDomain(domain);
>>> cc.setTenantId(tenantId);
>>> if (username != null) { // Set back the user name
>>> 
>>> PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(username);
>>> }
>>> }
>>>
>>> Within the above method following line causes the issue.
>>>
>>> PrivilegedCarbonContext.destroyCurrentContext();
>>>
>>> When this method is called, it will reset the *parentContextHolderStack
>>> *and the initial object push into the stack is destroyed. Then
>>> after tenant loading, within the
>>> MultitenantMessageReceiver.processRequest() method, it tries to end the
>>> tenant flow within finally block and try to pop the object which it 
>>> pushes
>>> early. But right now, we have a new context stack and it will throw the
>>> emptyStackException due to that.
>>>
>>> @Sameera/KasunG: Do we really need to use the following code segment
>>> within the above method?
>>>
>>>
>>> *PrivilegedCarbonContext.destroyCurrentContext();*
>>>
>>> I saw this method called within carbon-mediation components in 3
>>> different locations. AFAIU, we don't need to destroy the current context
>>> when we are accessing the ThreadLocalContext. Please share your thoughts
>>> such that we can fix this issue. Issue is fixed when I comment out the
>>> above line :)
>>>
>>>
>>> Thanks,
>>> Chanaka
>>>
>>>
>>>
>>> On Wed, Oct 7, 2015 at 5:34 PM, Chanaka Fernando 
>>> wrote:
>>>
 Hi Sameera/KasunG,

 I have debugged the code to find the root cause for this empty
 stack exception. This is causing several other issues at the ESB layer.
 What actually happens is that inside the
 MultitenantMessageRece

Re: [Dev] [ESB] EmptyStackException when resuming a paused message processor

2015-10-13 Thread Chanaka Fernando
[Adding Jagath]

On Wed, Oct 14, 2015 at 10:17 AM, Nuwan Dias  wrote:

> Hi ESB folks,
>
> Can we get a milestone release of synapse and carbon-mediation including
> this fix and another PR I sent to synapse? We have to do a milestone
> release of API Manager this week.
>
> Thanks,
> NuwanD.
>
> On Mon, Oct 12, 2015 at 11:43 AM, Nuwan Dias  wrote:
>
>> Thanks a lot Chanaka.
>>
>> On Mon, Oct 12, 2015 at 11:39 AM, Chanaka Fernando 
>> wrote:
>>
>>> Hi All,
>>>
>>> This issue is fixed with the following PR [1]. Thanks for reporting and
>>> helping us to figure out the issue.
>>>
>>> [1] https://github.com/wso2/carbon-mediation/pull/467
>>>
>>> On Fri, Oct 9, 2015 at 3:41 PM, Chanaka Fernando 
>>> wrote:
>>>
 Hi Sameera,

 Your judgment is correct and it helped us to find the root cause :).
 I'll fix the code from carbon-mediation side. Thanks for your input.

 On Fri, Oct 9, 2015 at 3:19 PM, Sameera Jayasoma 
 wrote:

> Hi Chanaka,
>
> You don't need to destroy the current context. This part is handle by
> the Kernel code. Users of the CarbonContext API do not need to worry about
> destroying the context.
>
> Who has done this change? So my initial judgment is correct. :) Stack
> cannot become empty.
>
> Thanks,
> Sameera.
>
> On Thu, Oct 8, 2015 at 6:14 PM, Chanaka Fernando 
> wrote:
>
>> Hi All,
>>
>> At last, I was able to find the root cause for this behavior. This is
>> actually coming from carbon-mediation code. What actually happens is that
>> when ESB starts with a tenant, it will not load the tenant until it
>> receives the first request. When It receives the first request, it will
>> call the MultitenantMessageReceiver.processRequest() method. Within this
>> method, it will call the following method.
>>
>> PrivilegedCarbonContext.startTenantFlow();
>>
>>
>> This will get the ThreadLocal variable *parentContextHolderStack *and
>> get the stack  and push the carbonContextDataHolder object to the
>> stack. After this, tenant loading happens and within the initialization 
>> of
>> the carbon mediation registry we have the following code segment.
>>
>> *org.wso2.carbon.mediation.registry.WSO2Registry.java*
>>
>> /**
>>  *  Carbon Kernel mandates to set Threadlocal before calling anything in 
>> kernel
>>  */
>> private void setTenantInfo() {
>> // Preserve user name
>> String username = 
>> PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername();
>> *PrivilegedCarbonContext.destroyCurrentContext();*
>> PrivilegedCarbonContext cc = 
>> PrivilegedCarbonContext.getThreadLocalCarbonContext();
>> cc.setTenantDomain(domain);
>> cc.setTenantId(tenantId);
>> if (username != null) { // Set back the user name
>> 
>> PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(username);
>> }
>> }
>>
>> Within the above method following line causes the issue.
>>
>> PrivilegedCarbonContext.destroyCurrentContext();
>>
>> When this method is called, it will reset the *parentContextHolderStack
>> *and the initial object push into the stack is destroyed. Then after
>> tenant loading, within the MultitenantMessageReceiver.processRequest()
>> method, it tries to end the tenant flow within finally block and try to 
>> pop
>> the object which it pushes early. But right now, we have a new context
>> stack and it will throw the emptyStackException due to that.
>>
>> @Sameera/KasunG: Do we really need to use the following code segment
>> within the above method?
>>
>>
>> *PrivilegedCarbonContext.destroyCurrentContext();*
>>
>> I saw this method called within carbon-mediation components in 3
>> different locations. AFAIU, we don't need to destroy the current context
>> when we are accessing the ThreadLocalContext. Please share your thoughts
>> such that we can fix this issue. Issue is fixed when I comment out the
>> above line :)
>>
>>
>> Thanks,
>> Chanaka
>>
>>
>>
>> On Wed, Oct 7, 2015 at 5:34 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Sameera/KasunG,
>>>
>>> I have debugged the code to find the root cause for this empty stack
>>> exception. This is causing several other issues at the ESB layer. What
>>> actually happens is that inside the
>>> MultitenantMessageReceiver.processRequest() method, we have the 
>>> following
>>> code segment.
>>>
>>> try {
>>> PrivilegedCarbonContext.startTenantFlow();
>>> PrivilegedCarbonContext privilegedCarbonContext = 
>>> PrivilegedCarbonContext.getThreadLocalCarbonContext();
>>> privilegedCarbonContext.setTenantDomain(tenantDomain, true);
>>> // this is to prevent non-blocking t

[Dev] Clarifications on command in DAS analytic migration tool

2015-10-13 Thread Nayomi Dayarathne
Hi DAS team,

I need below clarifications regarding the command that we used to
migrate data from BAM to DAS using analytic migration tool.

 I used below command to migrate data from a table in BAM to DAS

./analytics-migrate.sh -serverUrl  -cassandra_Url
 -serverPort  -columnFamily
 -analyticTable  -batchSize
1000  -tenantId   -1234   -username 
-password  -cassandraPort 
-clusterName 

1. Are there any optional and mandatory parameters in the command ?

Because when we remove  and  parameters and
run the command, it still migrate data from BAM to DAS.

2. If we are migrating data from multiple tables from BAM to DAS, how
do we define it in the command ?


Regards,

Nayomi Dayarathne
Software Engineer-QA
Mobile : +94 (0) 775246619
nay...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can not find defineStream method in Siddhi 3.0.0M1

2015-10-13 Thread Lasantha Fernando
Hi Lakini,

Better use a released version of Siddhi instead of the milestone version.
Siddhi-3.0.0-M1 would have very little of the actual features implemented
since this is the first milestone for the rewrite of Siddhi. Siddhi-3.0.2
is already released and you can use that version instead.

Also from Siddhi-3.0.0 onwards, separate methods like defineStream,
defineTable were removed from the API and there is a single API method
createExecutionPlanRuntime() to which you can pass in the complete query,
along with stream definitions, table definitions etc. This was done so that
the user can simply pass in the execution plan just as you would write the
query in CEP, without the API user having to know about different methods
to define different constructs of the language.

You can refer to the test cases in [1] or any other test case to get a
better idea on how to use the Siddhi library API.

[1]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/test/java/org/wso2/siddhi/core/query/FilterTestCase.java

Thanks,
Lasantha

On 14 October 2015 at 10:49, Lakini Senanayaka  wrote:

> Hi,
>
>  I have used SiddhiQueryapi  3.0.0M1 and SiddhiCore 3.0.0M1 in my android
> project.Now I can create siddhimanager instances.But I don't get
> defineStream,addQuery methods.Instead of that I get defineFunction.But in
> the siddhi user guide there are examples with defineStream method.Could you
> please explain me why is that and guide me how to continue the task.
> PS:I'm using siddhi queries in android.
>
> Thank you.
> --
> *Intern-Engineering*
> Lakini S.Senanayaka
> Mobile: +94 712295444
> Email: lak...@wso2.com
>



-- 
*Lasantha Fernando*
Senior Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-13 Thread Nuwan Dias
Can you please do a milestone release with this fix? We need to do a
milestone release of API Manager 1.10.0 this week.

Thanks,
NuwanD.

On Wed, Oct 14, 2015 at 10:57 AM, Sameera Kannangara 
wrote:

> Hi All,
>
> We are releasing Carbon-governance repo on 23rd oct.
> This fix will be included in the new release.
>
> Thank you,
> SameeraK.
>
>
> On Wed, Oct 14, 2015 at 10:52 AM, Sameera Kannangara 
> wrote:
>
>> Hi Jena,
>>
>> We have added a fix to governance API to validate permission when
>> retrieving from registry.
>> Please use current development governance version (4.5.10-SNAPSHOT) in
>> your local build and verify that the issue is fixed.
>>
>> Thank you,
>> SameeraK.
>>
>>
>> On Sat, Oct 10, 2015 at 10:36 AM, Sameera Kannangara 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> We were able to reproduce this issue.
>>> Problem seems to be there is no enforce of user permissions when
>>> retrieving from UUID cache.
>>> We are looking in to this.
>>>
>>> Thank you,
>>> SameeraK.
>>>
>>>
>>> On Fri, Oct 9, 2015 at 10:28 PM, Nuwan Dias  wrote:
>>>
 Hi Sameera,

 This is a very simple scenario. Something that was working fine all
 this time is now breaking. No client side code changes have happened. You
 can get an API Manager 1.9.1 and try this scenario and then compare the
 same behaviour with a 1.10.0-SNAPSHOT build. Here are the steps to try.

 1. Create a role (manager-role) and assign that role to a user
 (manager).
 2. Login to the Publisher using admin credentials and create an API
 with restricted visibility to the manager-role. Add a tag for this API as
 well.
 3. Login to the API Store by the manager user. You will see this API.
 4. Logout and access the Store as the anonymous user. You will see no
 error on 1.9.1 and you will see the error on 1.10.0.

 To me it looks like a bug has been introduced by the underlying
 governance code since no code changes have happened on the client side and
 this error is clearly visible on both API Manager and APP Manager products.

 Thanks,
 NuwanD.

 On Fri, Oct 9, 2015 at 10:00 PM, Sameera Kannangara 
 wrote:

> Hi Jena,
>
> There seems to be a misunderstanding here.
> Please confirm you are executing retrieveGovernanceArtifactById method
> with a UserRegistry instance as the registry parameter.
> Or is registry parameter here is a CacheBackedRegistry instance?
>
> Because UserRegistry is the registry implementation which enforces
> permissions on registry calls.
> After validating permissions for the registry call, user registry
> internally calls cached backed registry.
>
> If you call cached back registry directly it will return data from
> cache without validating permissions.
> That could happen if registry parameter is some how a cache backed
> registry.
>
> I tried out the scenario where a user who has not logged in to the
> carbon context trying to retrieve a governance artifact
> using retrieveGovernanceArtifactById, and method returns null for a
> available UUID as user is not logged in.
> When I checked user name and tenent ID of the not logged in user both
> values turned out to be null.
>
> If you are passing a UserRegistry instance as the registry parameter
> of retrieveGovernanceArtifactById,
> Please provide user name and tenent ID of the carbon context when the
> user is not logged in.
>
> Thank you,
> SameeraK.
>
>
> On Fri, Oct 9, 2015 at 3:36 PM, Jenananthan Yogendran <
> jenanant...@wso2.com> wrote:
>
>> Hi Sameera,
>>
>> This is what I observed when debugged the code,
>>
>> method getArtifactPath is getting called in the method
>> retrieveGovernanceArtifactById[1]. Before caching is introduced query[2] 
>> in
>> getArtifactPath returned null if unauthorized user try to get the
>> atrifactpath. if path is null, then method retrieveGovernanceArtifactById
>> will returned null for GovernanceArtifact. So if unauthorized user try to
>> get atrifact from uuid ,null was returned. But now getArtifactPath 
>> returns
>> artifact path to unauthorized user from cache(which has the entry since
>> authorized user accessed the app list before this step) and
>> registry.get(artifactPath) in retrieveGovernanceArtifactByPath throws
>> exception.
>>
>> can't we modify the caching key (uuid) by appending the username.
>> This will ensure unauhorized user will not get path from cache.(I am not
>> sure whether this will impact any other functionality)
>>
>> UserRegistry userRegistry = (UserRegistry) registry;
>> String userName = userRegistry.getUserName();
>> String key = artifactId + "-" + userNam
>>
>>
>> [1]
>> public static GovernanceArtifact
>> retrieveGovernanceArtifactById(Registry registry,
>>
>>>

Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-13 Thread Sameera Kannangara
Hi All,

We are releasing Carbon-governance repo on 23rd oct.
This fix will be included in the new release.

Thank you,
SameeraK.


On Wed, Oct 14, 2015 at 10:52 AM, Sameera Kannangara 
wrote:

> Hi Jena,
>
> We have added a fix to governance API to validate permission when
> retrieving from registry.
> Please use current development governance version (4.5.10-SNAPSHOT) in
> your local build and verify that the issue is fixed.
>
> Thank you,
> SameeraK.
>
>
> On Sat, Oct 10, 2015 at 10:36 AM, Sameera Kannangara 
> wrote:
>
>> Hi Nuwan,
>>
>> We were able to reproduce this issue.
>> Problem seems to be there is no enforce of user permissions when
>> retrieving from UUID cache.
>> We are looking in to this.
>>
>> Thank you,
>> SameeraK.
>>
>>
>> On Fri, Oct 9, 2015 at 10:28 PM, Nuwan Dias  wrote:
>>
>>> Hi Sameera,
>>>
>>> This is a very simple scenario. Something that was working fine all this
>>> time is now breaking. No client side code changes have happened. You can
>>> get an API Manager 1.9.1 and try this scenario and then compare the same
>>> behaviour with a 1.10.0-SNAPSHOT build. Here are the steps to try.
>>>
>>> 1. Create a role (manager-role) and assign that role to a user (manager).
>>> 2. Login to the Publisher using admin credentials and create an API with
>>> restricted visibility to the manager-role. Add a tag for this API as well.
>>> 3. Login to the API Store by the manager user. You will see this API.
>>> 4. Logout and access the Store as the anonymous user. You will see no
>>> error on 1.9.1 and you will see the error on 1.10.0.
>>>
>>> To me it looks like a bug has been introduced by the underlying
>>> governance code since no code changes have happened on the client side and
>>> this error is clearly visible on both API Manager and APP Manager products.
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Fri, Oct 9, 2015 at 10:00 PM, Sameera Kannangara 
>>> wrote:
>>>
 Hi Jena,

 There seems to be a misunderstanding here.
 Please confirm you are executing retrieveGovernanceArtifactById method
 with a UserRegistry instance as the registry parameter.
 Or is registry parameter here is a CacheBackedRegistry instance?

 Because UserRegistry is the registry implementation which enforces
 permissions on registry calls.
 After validating permissions for the registry call, user registry
 internally calls cached backed registry.

 If you call cached back registry directly it will return data from
 cache without validating permissions.
 That could happen if registry parameter is some how a cache backed
 registry.

 I tried out the scenario where a user who has not logged in to the
 carbon context trying to retrieve a governance artifact
 using retrieveGovernanceArtifactById, and method returns null for a
 available UUID as user is not logged in.
 When I checked user name and tenent ID of the not logged in user both
 values turned out to be null.

 If you are passing a UserRegistry instance as the registry parameter
 of retrieveGovernanceArtifactById,
 Please provide user name and tenent ID of the carbon context when the
 user is not logged in.

 Thank you,
 SameeraK.


 On Fri, Oct 9, 2015 at 3:36 PM, Jenananthan Yogendran <
 jenanant...@wso2.com> wrote:

> Hi Sameera,
>
> This is what I observed when debugged the code,
>
> method getArtifactPath is getting called in the method
> retrieveGovernanceArtifactById[1]. Before caching is introduced query[2] 
> in
> getArtifactPath returned null if unauthorized user try to get the
> atrifactpath. if path is null, then method retrieveGovernanceArtifactById
> will returned null for GovernanceArtifact. So if unauthorized user try to
> get atrifact from uuid ,null was returned. But now getArtifactPath returns
> artifact path to unauthorized user from cache(which has the entry since
> authorized user accessed the app list before this step) and
> registry.get(artifactPath) in retrieveGovernanceArtifactByPath throws
> exception.
>
> can't we modify the caching key (uuid) by appending the username. This
> will ensure unauhorized user will not get path from cache.(I am not sure
> whether this will impact any other functionality)
>
> UserRegistry userRegistry = (UserRegistry) registry;
> String userName = userRegistry.getUserName();
> String key = artifactId + "-" + userNam
>
>
> [1]
> public static GovernanceArtifact
> retrieveGovernanceArtifactById(Registry registry,
>
> String artifactId)
> throws GovernanceException {
> String artifactPath = getArtifactPath(registry, artifactId);
> if (artifactPath == null) {
> String msg = "Governance artifact is not found for id: " +
> artifactId + ".";
> if (log.isDebugEnabled()) {
>   

Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-13 Thread Jenananthan Yogendran
Hi  Sameera,

I checked 4.5.10-SNAPSHOT with appmanager , now issue is fixed .

On Wed, Oct 14, 2015 at 10:52 AM, Sameera Kannangara 
wrote:

> Hi Jena,
>
> We have added a fix to governance API to validate permission when
> retrieving from registry.
> Please use current development governance version (4.5.10-SNAPSHOT) in
> your local build and verify that the issue is fixed.
>
> Thank you,
> SameeraK.
>
>
> On Sat, Oct 10, 2015 at 10:36 AM, Sameera Kannangara 
> wrote:
>
>> Hi Nuwan,
>>
>> We were able to reproduce this issue.
>> Problem seems to be there is no enforce of user permissions when
>> retrieving from UUID cache.
>> We are looking in to this.
>>
>> Thank you,
>> SameeraK.
>>
>>
>> On Fri, Oct 9, 2015 at 10:28 PM, Nuwan Dias  wrote:
>>
>>> Hi Sameera,
>>>
>>> This is a very simple scenario. Something that was working fine all this
>>> time is now breaking. No client side code changes have happened. You can
>>> get an API Manager 1.9.1 and try this scenario and then compare the same
>>> behaviour with a 1.10.0-SNAPSHOT build. Here are the steps to try.
>>>
>>> 1. Create a role (manager-role) and assign that role to a user (manager).
>>> 2. Login to the Publisher using admin credentials and create an API with
>>> restricted visibility to the manager-role. Add a tag for this API as well.
>>> 3. Login to the API Store by the manager user. You will see this API.
>>> 4. Logout and access the Store as the anonymous user. You will see no
>>> error on 1.9.1 and you will see the error on 1.10.0.
>>>
>>> To me it looks like a bug has been introduced by the underlying
>>> governance code since no code changes have happened on the client side and
>>> this error is clearly visible on both API Manager and APP Manager products.
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Fri, Oct 9, 2015 at 10:00 PM, Sameera Kannangara 
>>> wrote:
>>>
 Hi Jena,

 There seems to be a misunderstanding here.
 Please confirm you are executing retrieveGovernanceArtifactById method
 with a UserRegistry instance as the registry parameter.
 Or is registry parameter here is a CacheBackedRegistry instance?

 Because UserRegistry is the registry implementation which enforces
 permissions on registry calls.
 After validating permissions for the registry call, user registry
 internally calls cached backed registry.

 If you call cached back registry directly it will return data from
 cache without validating permissions.
 That could happen if registry parameter is some how a cache backed
 registry.

 I tried out the scenario where a user who has not logged in to the
 carbon context trying to retrieve a governance artifact
 using retrieveGovernanceArtifactById, and method returns null for a
 available UUID as user is not logged in.
 When I checked user name and tenent ID of the not logged in user both
 values turned out to be null.

 If you are passing a UserRegistry instance as the registry parameter
 of retrieveGovernanceArtifactById,
 Please provide user name and tenent ID of the carbon context when the
 user is not logged in.

 Thank you,
 SameeraK.


 On Fri, Oct 9, 2015 at 3:36 PM, Jenananthan Yogendran <
 jenanant...@wso2.com> wrote:

> Hi Sameera,
>
> This is what I observed when debugged the code,
>
> method getArtifactPath is getting called in the method
> retrieveGovernanceArtifactById[1]. Before caching is introduced query[2] 
> in
> getArtifactPath returned null if unauthorized user try to get the
> atrifactpath. if path is null, then method retrieveGovernanceArtifactById
> will returned null for GovernanceArtifact. So if unauthorized user try to
> get atrifact from uuid ,null was returned. But now getArtifactPath returns
> artifact path to unauthorized user from cache(which has the entry since
> authorized user accessed the app list before this step) and
> registry.get(artifactPath) in retrieveGovernanceArtifactByPath throws
> exception.
>
> can't we modify the caching key (uuid) by appending the username. This
> will ensure unauhorized user will not get path from cache.(I am not sure
> whether this will impact any other functionality)
>
> UserRegistry userRegistry = (UserRegistry) registry;
> String userName = userRegistry.getUserName();
> String key = artifactId + "-" + userNam
>
>
> [1]
> public static GovernanceArtifact
> retrieveGovernanceArtifactById(Registry registry,
>
> String artifactId)
> throws GovernanceException {
> String artifactPath = getArtifactPath(registry, artifactId);
> if (artifactPath == null) {
> String msg = "Governance artifact is not found for id: " +
> artifactId + ".";
> if (log.isDebugEnabled()) {
> log.debug(msg);
> }
> 

Re: [Dev] [APPM/APIM] AuthorizationFailedException when getting tags where webapp/api visibility is restricted by role

2015-10-13 Thread Sameera Kannangara
Hi Jena,

We have added a fix to governance API to validate permission when
retrieving from registry.
Please use current development governance version (4.5.10-SNAPSHOT) in your
local build and verify that the issue is fixed.

Thank you,
SameeraK.


On Sat, Oct 10, 2015 at 10:36 AM, Sameera Kannangara 
wrote:

> Hi Nuwan,
>
> We were able to reproduce this issue.
> Problem seems to be there is no enforce of user permissions when
> retrieving from UUID cache.
> We are looking in to this.
>
> Thank you,
> SameeraK.
>
>
> On Fri, Oct 9, 2015 at 10:28 PM, Nuwan Dias  wrote:
>
>> Hi Sameera,
>>
>> This is a very simple scenario. Something that was working fine all this
>> time is now breaking. No client side code changes have happened. You can
>> get an API Manager 1.9.1 and try this scenario and then compare the same
>> behaviour with a 1.10.0-SNAPSHOT build. Here are the steps to try.
>>
>> 1. Create a role (manager-role) and assign that role to a user (manager).
>> 2. Login to the Publisher using admin credentials and create an API with
>> restricted visibility to the manager-role. Add a tag for this API as well.
>> 3. Login to the API Store by the manager user. You will see this API.
>> 4. Logout and access the Store as the anonymous user. You will see no
>> error on 1.9.1 and you will see the error on 1.10.0.
>>
>> To me it looks like a bug has been introduced by the underlying
>> governance code since no code changes have happened on the client side and
>> this error is clearly visible on both API Manager and APP Manager products.
>>
>> Thanks,
>> NuwanD.
>>
>> On Fri, Oct 9, 2015 at 10:00 PM, Sameera Kannangara 
>> wrote:
>>
>>> Hi Jena,
>>>
>>> There seems to be a misunderstanding here.
>>> Please confirm you are executing retrieveGovernanceArtifactById method
>>> with a UserRegistry instance as the registry parameter.
>>> Or is registry parameter here is a CacheBackedRegistry instance?
>>>
>>> Because UserRegistry is the registry implementation which enforces
>>> permissions on registry calls.
>>> After validating permissions for the registry call, user registry
>>> internally calls cached backed registry.
>>>
>>> If you call cached back registry directly it will return data from cache
>>> without validating permissions.
>>> That could happen if registry parameter is some how a cache backed
>>> registry.
>>>
>>> I tried out the scenario where a user who has not logged in to the
>>> carbon context trying to retrieve a governance artifact
>>> using retrieveGovernanceArtifactById, and method returns null for a
>>> available UUID as user is not logged in.
>>> When I checked user name and tenent ID of the not logged in user both
>>> values turned out to be null.
>>>
>>> If you are passing a UserRegistry instance as the registry parameter
>>> of retrieveGovernanceArtifactById,
>>> Please provide user name and tenent ID of the carbon context when the
>>> user is not logged in.
>>>
>>> Thank you,
>>> SameeraK.
>>>
>>>
>>> On Fri, Oct 9, 2015 at 3:36 PM, Jenananthan Yogendran <
>>> jenanant...@wso2.com> wrote:
>>>
 Hi Sameera,

 This is what I observed when debugged the code,

 method getArtifactPath is getting called in the method
 retrieveGovernanceArtifactById[1]. Before caching is introduced query[2] in
 getArtifactPath returned null if unauthorized user try to get the
 atrifactpath. if path is null, then method retrieveGovernanceArtifactById
 will returned null for GovernanceArtifact. So if unauthorized user try to
 get atrifact from uuid ,null was returned. But now getArtifactPath returns
 artifact path to unauthorized user from cache(which has the entry since
 authorized user accessed the app list before this step) and
 registry.get(artifactPath) in retrieveGovernanceArtifactByPath throws
 exception.

 can't we modify the caching key (uuid) by appending the username. This
 will ensure unauhorized user will not get path from cache.(I am not sure
 whether this will impact any other functionality)

 UserRegistry userRegistry = (UserRegistry) registry;
 String userName = userRegistry.getUserName();
 String key = artifactId + "-" + userNam


 [1]
 public static GovernanceArtifact
 retrieveGovernanceArtifactById(Registry registry,

 String artifactId)
 throws GovernanceException {
 String artifactPath = getArtifactPath(registry, artifactId);
 if (artifactPath == null) {
 String msg = "Governance artifact is not found for id: " +
 artifactId + ".";
 if (log.isDebugEnabled()) {
 log.debug(msg);
 }
 return null;
 }
 return retrieveGovernanceArtifactByPath(registry, artifactPath);
 }


 [2]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/governance/org.wso2.carbon.governance.api/4.2.1/src/main/java/o

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Rajith Vitharana
Hi,

There is also a minor issue in user core as well, which is related to mysql
server version. Created a public jira for that in [1]

[1] - https://wso2.org/jira/browse/CARBON-15514

Thanks,

On Wed, Oct 14, 2015 at 10:32 AM, Sasikala Kottegoda 
wrote:

> Hi Kishanthan,
>
> Yes, it is present in 4.4.2 RC1 as well. But not in 4.4.1.
>
> Thank you.
>
> On Tue, Oct 13, 2015 at 5:22 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Was this issue found in 4.4.2 RC1 too?
>>
>> On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda 
>> wrote:
>>
>>> Hi Manuri,
>>>
>>> We tested MB 3.0.0 with this release and our scenario of queue creation
>>> fails after giving a permission denied error. The scenario is as follows:
>>>
>>> 1. Create a user "user1" with a role assigned with permission to create
>>> queues.
>>> 2. Login from "user1" and try to create a queue, we get a permission
>>> denied error.
>>>
>>> When creating a queue the following happens from our code.
>>>
>>> 1. We create an internal role for the queue and assign it to the current
>>> user with permissions assigned.
>>>
>>> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>>>   
>>> PERMISSION_CHANGE_PERMISSION);
>>>
>>> 2. Next, we create the queue and update permissions for the queue. In this 
>>> step, we check if the current user has permissions to change the queue.
>>>
>>> String[] userRoles = 
>>> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
>>> for (String userRole : userRoles) {
>>> if (userRealm.getAuthorizationManager().isRoleAuthorized(
>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
>>> isUserHasChangePermission = true;
>>> }
>>> }
>>>
>>> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false 
>>> implying that any of roles assigned to the user do not have permissions to 
>>> change the queue, thus not allowing the user to create the queue.
>>>
>>>
>>> Thank you
>>>
>>>
>>> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
>>> wrote:
>>>
 Hi Devs,

 WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12396

 Please download and test your products with kernel 4.4.2 RC2 and vote.
 Vote will be open for 72 hours or longer as needed.

 *​Source and binary distribution files:*
 https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2

 *Maven staging repository:*
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/

 *The tag to be voted upon:*
 https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release


 Thank you
 Carbon Team

 --

 *Manuri Amaya Perera*

 *Software Engineer*

 *WSO2 Inc.*

 *Blog: http://manuriamayaperera.blogspot.com
 *

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Sasikala Kottegoda
>>> *Software Engineer*
>>> WSO2 Inc., http://wso2.com/
>>> lean. enterprise. middleware
>>> Mobile: +94 774835928/712792401
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can not find defineStream method in Siddhi 3.0.0M1

2015-10-13 Thread Lakini Senanayaka
Hi,

 I have used SiddhiQueryapi  3.0.0M1 and SiddhiCore 3.0.0M1 in my android
project.Now I can create siddhimanager instances.But I don't get
defineStream,addQuery methods.Instead of that I get defineFunction.But in
the siddhi user guide there are examples with defineStream method.Could you
please explain me why is that and guide me how to continue the task.
PS:I'm using siddhi queries in android.

Thank you.
-- 
*Intern-Engineering*
Lakini S.Senanayaka
Mobile: +94 712295444
Email: lak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Sasikala Kottegoda
Hi Kishanthan,

Yes, it is present in 4.4.2 RC1 as well. But not in 4.4.1.

Thank you.

On Tue, Oct 13, 2015 at 5:22 PM, Kishanthan Thangarajah  wrote:

> Was this issue found in 4.4.2 RC1 too?
>
> On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda 
> wrote:
>
>> Hi Manuri,
>>
>> We tested MB 3.0.0 with this release and our scenario of queue creation
>> fails after giving a permission denied error. The scenario is as follows:
>>
>> 1. Create a user "user1" with a role assigned with permission to create
>> queues.
>> 2. Login from "user1" and try to create a queue, we get a permission
>> denied error.
>>
>> When creating a queue the following happens from our code.
>>
>> 1. We create an internal role for the queue and assign it to the current
>> user with permissions assigned.
>>
>> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>>   
>> PERMISSION_CHANGE_PERMISSION);
>>
>> 2. Next, we create the queue and update permissions for the queue. In this 
>> step, we check if the current user has permissions to change the queue.
>>
>> String[] userRoles = 
>> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
>> for (String userRole : userRoles) {
>> if (userRealm.getAuthorizationManager().isRoleAuthorized(
>> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
>> isUserHasChangePermission = true;
>> }
>> }
>>
>> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
>> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false 
>> implying that any of roles assigned to the user do not have permissions to 
>> change the queue, thus not allowing the user to create the queue.
>>
>>
>> Thank you
>>
>>
>> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12396
>>>
>>> Please download and test your products with kernel 4.4.2 RC2 and vote.
>>> Vote will be open for 72 hours or longer as needed.
>>>
>>> *​Source and binary distribution files:*
>>> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>>>
>>> *Maven staging repository:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>>
>>> Thank you
>>> Carbon Team
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sasikala Kottegoda
>> *Software Engineer*
>> WSO2 Inc., http://wso2.com/
>> lean. enterprise. middleware
>> Mobile: +94 774835928/712792401
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Sasikala Kottegoda
*Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928/712792401
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error on FHIR connector integration Test case

2015-10-13 Thread Hariprasath Thanarajah
Hi Saneth,

FHIR is in the development phase and they released a set of third party
testing server to check the FHIR resources. You can find the list of test
servers on [1]

[1]
http://wiki.hl7.org/index.php?title=Publicly_Available_FHIR_Servers_for_testing

I manually checked with the same pack it is working  fine.

I resolved this issue by adding the certificate to the product and ESB.
Earlier I only added the certification to the ESB. Now it's working fine.

Thank you all.



On Wed, Oct 14, 2015 at 8:25 AM, Saneth Dharmakeerthi 
wrote:

> Hi Hariprasath,
>
> 1) What do you mean by "testing with the test server"?
> 2) Could you able to do this task manually using same pack?.
> 3) Put a debug point at the line you add the certification and
>  execute that line, then try the rest of  the actions manually and see
> the behaviour.
>
> Also share the testcase code
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Tue, Oct 13, 2015 at 4:52 PM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi Rajjaz,
>>
>> I already added the certification like you mentioned in [2]. But still
>> it's giving the same error.
>>
>> On Tue, Oct 13, 2015 at 4:41 PM, Rajjaz Mohammed  wrote:
>>
>>> Hi,
>>> its seems to be like a error i got earlier so what i did is i import the
>>> certificate through the terminal like[1] and its solved my error.
>>>
>>> AFAIK test server not will be the reason for this error. and try the way
>>> [2].
>>>
>>> [1]Navigate to "/repository/resources/security/" using command prompt
>>> and execute keytool -importcert -file CERT_FILE_NAME -keystore
>>> client-truststore.jks -alias "CERT_NAME" in command line to import api
>>> certificate in to keystore. Give "*wso2carbon*" as password.
>>>
>>> [2]
>>> http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Connector-Integration-Test-Error-SSL-Handshake-Exception-td98612.html
>>>
>>> On Tue, Oct 13, 2015 at 3:55 PM, Rajeenthini Satkunam <
>>> rajeenth...@wso2.com> wrote:
>>>
 Hi Hariprasanth,

 You can search for this subject "*[Dev] Connector Integration Test
 Error!- SSL Handshake Exception*" .This could help you to give some
 idea about the error.

 On Tue, Oct 13, 2015 at 3:42 PM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Hi all,
>
> Is it the error came because of the testing server? I am testing with
> the test server because it is only available for FHIR. The FHIR is in the
> development phase.
>
> On Tue, Oct 13, 2015 at 11:13 AM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi All ,
>>
>> I got the response at the wire. But after that only  i am getting the
>> above error[1].
>>
>> On Tue, Oct 13, 2015 at 11:08 AM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi Elilmatha,
>>>
>>> I already included the certificates at client-truststore.jks as well
>>> as wso2carbon.jks.
>>>
>>> On Tue, Oct 13, 2015 at 11:06 AM, Elilmatha Sivanesan <
>>> elilma...@wso2.com> wrote:
>>>
 Hi Hariprasath,

 As per you error log you need to include the certificate.

 Thanks.

 On Tue, Oct 13, 2015 at 10:56 AM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Hi All,
>
> I am working on FHIR connector. I got the following[1] error while
> I am running the integration test case of FHIR. Any suggestion on this
> error?
>
>
>
> [1]
> [2015-10-13 10:49:58,488] ERROR
> {org.wso2.carbon.automation.core.PlatformTestManager} -  On Test 
> failure..
> [2015-10-13 10:49:58,488] ERROR
> {org.wso2.carbon.automation.core.PlatformTestManager} -
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
> find
> valid certification path to requested target
> [2015-10-13 10:49:58,489]  INFO
> {org.wso2.carbon.automation.core.PlatformTestManager} -
> --Tests Failed
> org.wso2.carbon.connector.integration.test.fhir.fhirConnectorIntegrationTest.readResource
> [2015-10-13 10:49:58,503]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2015-10-13 10:49:58,503]  WARN - ProxyServiceAdmin No proxy service 
> exists
> by the name : fhir
> [2015-10-13 10:49:58,525]  INFO
> {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient}
> -  Proxy Deleted
> FAILED: readResource
> fhir {readResource} integration test.
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.Valid

Re: [Dev] [ESB 4.9.0]NPE when click on "Mediation Statistics" menu.

2015-10-13 Thread Ajith Vitharana
On Wed, Oct 14, 2015 at 12:26 AM, Viraj Senevirathne 
wrote:

> Hi Ajith,
>
> When did this occur? Normally this happens when you try to access
> statistics when statistics collection is not enabled in carbon.xml.
> Statistics collector can be enabled by setting element
> "StatisticsReporterDisabled" as "false" in
> [ESB_HOME]/repository/conf/carbon.xml.
>

Yes. This happened before enable the statistics. But why it is returning
NPE ?

-Ajith

>
> Thank You,
>
>
>
> On Tue, Oct 13, 2015 at 10:04 PM, Ajith Vitharana  wrote:
>
>> Hi All
>>
>> I noticed following exception in the carbon logs.
>>
>>
>> [2015-10-13 12:31:50,717] ERROR - RPCMessageReceiver Exception occurred
>> while trying to invoke service method getDataForGraph
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:178)
>> at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>> at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>> at
>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>> at
>> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>> at
>> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>> at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>> at
>> org.wso2.carbon.mediation.statistics.stub.MediationStatisticsAdminStub.getDataForGraph(MediationStatisticsAdminStub.java:560)
>> at
>> org.wso2.carbon.mediation.statistics.ui.client.MediationStatisticsClient.getDataForGraph(MediationStatisticsClient.java:75)
>> at
>> org.apache.jsp.mediationstats.statistics_005fmain_jsp._jspService(statistics_005fmain_jsp.java:174)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
>> at
>> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
>> at
>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
>> at
>> org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
>> at
>> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:

Re: [Dev] [ESB] EmptyStackException when resuming a paused message processor

2015-10-13 Thread Nuwan Dias
Hi ESB folks,

Can we get a milestone release of synapse and carbon-mediation including
this fix and another PR I sent to synapse? We have to do a milestone
release of API Manager this week.

Thanks,
NuwanD.

On Mon, Oct 12, 2015 at 11:43 AM, Nuwan Dias  wrote:

> Thanks a lot Chanaka.
>
> On Mon, Oct 12, 2015 at 11:39 AM, Chanaka Fernando 
> wrote:
>
>> Hi All,
>>
>> This issue is fixed with the following PR [1]. Thanks for reporting and
>> helping us to figure out the issue.
>>
>> [1] https://github.com/wso2/carbon-mediation/pull/467
>>
>> On Fri, Oct 9, 2015 at 3:41 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> Your judgment is correct and it helped us to find the root cause :).
>>> I'll fix the code from carbon-mediation side. Thanks for your input.
>>>
>>> On Fri, Oct 9, 2015 at 3:19 PM, Sameera Jayasoma 
>>> wrote:
>>>
 Hi Chanaka,

 You don't need to destroy the current context. This part is handle by
 the Kernel code. Users of the CarbonContext API do not need to worry about
 destroying the context.

 Who has done this change? So my initial judgment is correct. :) Stack
 cannot become empty.

 Thanks,
 Sameera.

 On Thu, Oct 8, 2015 at 6:14 PM, Chanaka Fernando 
 wrote:

> Hi All,
>
> At last, I was able to find the root cause for this behavior. This is
> actually coming from carbon-mediation code. What actually happens is that
> when ESB starts with a tenant, it will not load the tenant until it
> receives the first request. When It receives the first request, it will
> call the MultitenantMessageReceiver.processRequest() method. Within this
> method, it will call the following method.
>
> PrivilegedCarbonContext.startTenantFlow();
>
>
> This will get the ThreadLocal variable *parentContextHolderStack *and
> get the stack  and push the carbonContextDataHolder object to the
> stack. After this, tenant loading happens and within the initialization of
> the carbon mediation registry we have the following code segment.
>
> *org.wso2.carbon.mediation.registry.WSO2Registry.java*
>
> /**
>  *  Carbon Kernel mandates to set Threadlocal before calling anything in 
> kernel
>  */
> private void setTenantInfo() {
> // Preserve user name
> String username = 
> PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername();
> *PrivilegedCarbonContext.destroyCurrentContext();*
> PrivilegedCarbonContext cc = 
> PrivilegedCarbonContext.getThreadLocalCarbonContext();
> cc.setTenantDomain(domain);
> cc.setTenantId(tenantId);
> if (username != null) { // Set back the user name
> 
> PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(username);
> }
> }
>
> Within the above method following line causes the issue.
>
> PrivilegedCarbonContext.destroyCurrentContext();
>
> When this method is called, it will reset the *parentContextHolderStack
> *and the initial object push into the stack is destroyed. Then after
> tenant loading, within the MultitenantMessageReceiver.processRequest()
> method, it tries to end the tenant flow within finally block and try to 
> pop
> the object which it pushes early. But right now, we have a new context
> stack and it will throw the emptyStackException due to that.
>
> @Sameera/KasunG: Do we really need to use the following code segment
> within the above method?
>
>
> *PrivilegedCarbonContext.destroyCurrentContext();*
>
> I saw this method called within carbon-mediation components in 3
> different locations. AFAIU, we don't need to destroy the current context
> when we are accessing the ThreadLocalContext. Please share your thoughts
> such that we can fix this issue. Issue is fixed when I comment out the
> above line :)
>
>
> Thanks,
> Chanaka
>
>
>
> On Wed, Oct 7, 2015 at 5:34 PM, Chanaka Fernando 
> wrote:
>
>> Hi Sameera/KasunG,
>>
>> I have debugged the code to find the root cause for this empty stack
>> exception. This is causing several other issues at the ESB layer. What
>> actually happens is that inside the
>> MultitenantMessageReceiver.processRequest() method, we have the following
>> code segment.
>>
>> try {
>> PrivilegedCarbonContext.startTenantFlow();
>> PrivilegedCarbonContext privilegedCarbonContext = 
>> PrivilegedCarbonContext.getThreadLocalCarbonContext();
>> privilegedCarbonContext.setTenantDomain(tenantDomain, true);
>> // this is to prevent non-blocking transports from sending 202
>> 
>> mainInMsgContext.getOperationContext().setProperty(Constants.RESPONSE_WRITTEN,
>>  "SKIP");
>>
>> ConfigurationContext tenantConfigCtx =
>>

Re: [Dev] Error in executing Groovy scripts using WSO2 API Manager

2015-10-13 Thread Nuwan Dias
In the next release of API Manager, we are hoping to use the synapse
version used in ESB. Which should have the support for Groovy as well. If
all goes well (no OSGI related errors) we can get the full support of the
underlying synapse engine.

Thanks,
NuwanD.

On Wed, Oct 14, 2015 at 9:54 AM, Shenavi de Mel  wrote:

> @ copying AmilaM
>
> Thanks Ruwan and Isuru for that explanation.
>
> @Nuwan - Can we get the support of groovy for APIM in the next release? Or
> has it been scheduled for a future release?
>
> Regards
> Shenavi
>
>
>
> *Shenavi de Mel*
> Software Engineer
> WSO2 Inc: http://wso2.com
> email: shen...@wso2.com
> mobile:+94771244470
>
>
> On Wed, Oct 14, 2015 at 7:12 AM, Ruwan Yatawara  wrote:
>
>> Yes Shenavi, as Isuru pointed out, this is infact the case. There was a
>> problem with the java script mediator on earlier versions of APIM, IIRC
>> this was due to a OSGI issue related to the BSF jar.
>>
>> In APIM, since we wanted to ship the javascript based dummy API
>> functionality in the 1.7.0 release, we had to modify the script mediator to
>> omit BSF and use the Rhino Engine directly. This lead to the script
>> mediator breaking for other types of scripts.
>>
>> I believe this is scheduled to be fixed in the coming versions of APIM.
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>> www: :http://wso2.com
>>
>>
>> On Wed, Oct 14, 2015 at 2:56 AM, Isuru Udana  wrote:
>>
>>> Hi Shenavi,
>>>
>>> I think script mediator functionality has been broken from API Manager
>>> version 1.7.0.
>>> There was some change done in API Manager synapse branch which made
>>> script mediator to work only with Javascript.
>>>
>>> Thanks.
>>>
>>> On Tue, Oct 13, 2015 at 7:04 AM, Shenavi de Mel 
>>> wrote:
>>>
 Hi,

 I was trying to write a groovy script mediator to be executed within an
 API hosted in the API Manager 1.9.1 locally and i am getting the following
 error on my console. I have attached the full stack trace in this mail.

 {ERROR}

 [2015-10-13 18:10:56,987] ERROR - ScriptMediator No script engine found
 for language: groovy
 [2015-10-13 18:10:56,988] ERROR - CarbonDeploymentSchedulerTask Error
 while running deployment scheduler..
 org.apache.synapse.SynapseException: No script engine found for
 language: groovy

 {ERROR}

 This is the script i included in the in sequence which was a simple
 script to check if it works.

 println "The current time is: ${new
 Date()}"

 I have also included the groovy-all-1.1-rc-1.jar into
 APIM_HOME/repository/components/lib/ and i checked the OSGI service and it
 is active as well.

 When i tried this scenario as mentioned in the blog [1] for the ESB i
 was able to get the result successfully. Do i need to add any other
 dependencies to the API Manager to support groovy?

 Your help would be much appreciated.

 [1]
 http://heshans.blogspot.com/2011/05/executing-groovy-scripts-using-wso2-esb.html

 Thanks
 Shenavi



>>>
>>>
>>> --
>>> *Isuru Udana*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>>
>>
>>
>


-- 
Nuwan Dias

Technical 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] [VOTE] Release WSO2 Developer Studio 3.8.0 RC 4

2015-10-13 Thread Awanthika Senarath
Hi

I have tested the following features and bug fixes and the observations
were positive, hence +1


   - ESB projects,
   - Registry Projects
   - Data Service Projects



   - Capp projects (creation, deploy, redeploy, removal)
   - Servers (remote/local)



   - Artifact renaming.


Regards
Awanthika


Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, Oct 14, 2015 at 9:25 AM, Kavith Lokuhewage  wrote:

> Hi Devs,
>
> Please vote for the fourth release candidate of WSO2 Developer Studio
> 3.8.0.
>
> This release fixes following issues.
> https://wso2.org/jira/issues/?filter=12453
>
> Please download, test and vote. Vote will be open for 72 hours or as
> needed.
>
> Sources, binary distribution and pre-installed eclipse distributions:
> http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.8.0/RC4/
>
> The tag to be voted upon:
> https://github.com/wso2/developer-studio/tree/v3.8.0-RC4
>
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (explain why)
>
> Thanks and Regards,
> DevStudio Team
>
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>
> ___
> 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] [DEV] [IS] [user store] Login failed for user from secondary store when same ldap used for R/W & Read only

2015-10-13 Thread Kavitha Subramaniyam
Hi IS team,

I have configured both R/W and Read only LDAP secondary user store manager
by using same ldap connection and I could not be able to login via user
created under RW ldap user store. But note that I could view the same user
under both secondary store's domain (Users & Roles -> List -> select each
domain and search).

I want to check with you whether the above behavior is expected or not,
please clarify..

Steps followed:
- Configure R/W secondary user store - ReadWriteLDAPUserStoreManager -
using open ldap connectoin 1
- Configure Read only secondary user store - ReadOnlyLDAPUserStoreManager
- using open ldap connectoin 1
- Create a user1 under R/W ldap domain
- Login by user1

When try to login without domain, log shows as below:

[2015-10-13 16:32:55,232] DEBUG
{org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager} -  SELECT * FROM
UM_USER WHERE UM_USER_NAME=? AND UM_TENANT_ID=?
[2015-10-13 16:32:55,241] DEBUG
{org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager} -  User userkavirw3
login attempt. Login success :: false
[2015-10-13 16:32:55,241] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -
 Authenticating user userkavirw3
[2015-10-13 16:32:55,241] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Cache hit.
Using DN uid=userkavirw3,ou=People,ou=WSO2,o=Opensource,dc=ITIndustry,dc=sl
[2015-10-13 16:32:55,252] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
uid=userkavirw3,ou=People,ou=WSO2,o=Opensource,dc=ITIndustry,dc=sl is
authnticated: true
[2015-10-13 16:32:55,253] DEBUG
{org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -
 Authorization cache hit. roldap.com/userkavirw3 user is not Authorized to
perform ui.execute on /permission/admin/login
[2015-10-13 16:32:55,253]  WARN
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
Administrator login attempt 'ROLDAP.COM/userkavirw3[-1234]' at [2015-10-13
16:32:55,253+0530]


When try to login with domain, log shows as below:
---
[2015-10-13 16:33:14,424] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -
 Authenticating user userkavirw3
[2015-10-13 16:33:14,425] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  Cache hit.
Using DN uid=userkavirw3,ou=People,ou=WSO2,o=Opensource,dc=ITIndustry,dc=sl
[2015-10-13 16:33:14,458] DEBUG
{org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager} -  User:
uid=userkavirw3,ou=People,ou=WSO2,o=Opensource,dc=ITIndustry,dc=sl is
authnticated: true
[2015-10-13 16:33:14,463] DEBUG
{org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -
 Authorization cache hit. rwldap.com/userkavirw3 user is not Authorized to
perform ui.execute on /permission/admin/login
[2015-10-13 16:33:14,463]  WARN
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
Administrator login attempt 'RWLDAP.COM/userkavirw3[-1234]' at [2015-10-13
16:33:14,463+0530]


Thanks & Kind regards,
-- 
Kavitha.S
*Software Engineer -QA*
Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
kavi...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB 4.9.0]NPE when click on "Mediation Statistics" menu.

2015-10-13 Thread Viraj Senevirathne
Hi Ajith,

When did this occur? Normally this happens when you try to access
statistics when statistics collection is not enabled in carbon.xml.
Statistics collector can be enabled by setting element
"StatisticsReporterDisabled" as "false" in
[ESB_HOME]/repository/conf/carbon.xml.

Thank You,



On Tue, Oct 13, 2015 at 10:04 PM, Ajith Vitharana  wrote:

> Hi All
>
> I noticed following exception in the carbon logs.
>
>
> [2015-10-13 12:31:50,717] ERROR - RPCMessageReceiver Exception occurred
> while trying to invoke service method getDataForGraph
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:178)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
> at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
> at
> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.wso2.carbon.mediation.statistics.stub.MediationStatisticsAdminStub.getDataForGraph(MediationStatisticsAdminStub.java:560)
> at
> org.wso2.carbon.mediation.statistics.ui.client.MediationStatisticsClient.getDataForGraph(MediationStatisticsClient.java:75)
> at
> org.apache.jsp.mediationstats.statistics_005fmain_jsp._jspService(statistics_005fmain_jsp.java:174)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
> at
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
> at
> org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
> at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
> at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.tiles.jsp.context.JspUtil.doI

Re: [Dev] Hazelcast Issue - sequence is too small. the current head sequence...

2015-10-13 Thread Sasikala Kottegoda
Hi Hasitha,

Please find the comments in line for the ways of handling the issue.

1. Come to a default balance between the buffer size (currently 1000) and
the TTL value for each item in buffer (seconds) / make this configurable.

I don't think there is an impact of the ring buffer size on the expiration
of items. Increasing the TTL seems the only solution. But we did not
increase this since we needed to avoid the possibility of getting old
notifications in the case of a network failure or a crashed node. Making
the TTL configurable seems like a good solution.

2. In case the producing node is attempting an over-write on the buffer,
hold it until the buffer is processed. (flow control for subscriptions..)

This is provided by default configurations of Hazelcast 'RealiableTopic' as
per [1]

[1]
http://docs.hazelcast.org/docs/latest-dev/manual/html/reliabletopic.html#reliable-topic-configuration

Thank you

On Tue, Oct 13, 2015 at 8:07 PM, Hasitha Amal De Silva 
wrote:

> increasing the Time-to-Live value [1] from 1 second to about 30 seconds
> got rid of this issue for my scenario. This exception can only occur if the
> item is expired or had been rewritten within the buffer as per [2].
>
> 2 ways to properly handle this as I can think :
>
> 1. Come to a default balance between the buffer size (currently 1000) and
> the TTL value for each item in buffer (seconds) / make this configurable.
> 2. In case the producing node is attempting an over-write on the buffer,
> hold it until the buffer is processed. (flow control for subscriptions..)
>
> For me, the issue was reproduced by creating about 400 durable JMS topic
> subscriptions with a ramp time of about 2 seconds from Jmeter.
>
> [1] : http://blog.hazelcast.com/ringbuffer-data-structure/
> [2] :
> http://docs.hazelcast.org/docs/3.5/javadoc/com/hazelcast/ringbuffer/StaleSequenceException.html
>
>
>
> On Tue, Oct 6, 2015 at 4:47 PM, Hasitha Hiranya  wrote:
>
>> Hi Peter,
>>
>> We are using Hazelcast in our Message Broker project. We are getting
>> following exception when using a iTopic for syncing data.
>>
>> Appreciate any idea why this happen? Are we doing something wrong in our
>> client application?
>>
>> We found code [1] throwing the exception.
>>
>> Oct 06, 2015 4:26:44 PM
>> com.hazelcast.ringbuffer.impl.operations.ReadManyOperation
>> SEVERE: [192.168.1.50]:4000 [wso2.mb.domain] [3.5] sequence:8 is too
>> small. The current headSequence is:9
>> com.hazelcast.ringbuffer.StaleSequenceException: sequence:8 is too small.
>> The current headSequence is:9
>> at
>> com.hazelcast.ringbuffer.impl.RingbufferContainer.checkBlockableReadSequence(RingbufferContainer.java:176)
>> at
>> com.hazelcast.ringbuffer.impl.operations.ReadManyOperation.beforeRun(ReadManyOperation.java:55)
>> at
>> com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:131)
>> at
>> com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.processOperation(OperationThread.java:154)
>> at
>> com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.process(OperationThread.java:110)
>> at
>> com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.doRun(OperationThread.java:101)
>> at
>> com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.run(OperationThread.java:76)
>>
>>
>> [1].
>> https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/ringbuffer/impl/RingbufferContainer.java
>>
>> Thanks
>>
>> --
>> *Hasitha Abeykoon*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> *cell:* *+94 719363063*
>> *blog: **abeykoon.blogspot.com* 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Cheers,
>
> Hasitha Amal De Silva
> Software Engineer
> Mobile : 0772037426
> Blog: http://devnutshell.tumblr.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>



-- 
Sasikala Kottegoda
*Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928/712792401
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES]Query of recent assets in ES store

2015-10-13 Thread Himasha Guruge
Thanks for the response Udara.

On Tue, Oct 13, 2015 at 6:02 PM, Udara Rathnayake  wrote:

> Since we have the asset UUID in url, using a proxy to track page views is
> an option. But not sure how practical.
>
> On Tue, Oct 13, 2015 at 5:58 PM, Udara Rathnayake  wrote:
>
>>
>>
>> On Tue, Oct 13, 2015 at 4:36 PM, Himasha Guruge 
>> wrote:
>>
>>> Hi all,
>>>
>>> How are recent assets queried in ES store? Is it based on the created
>>> time( most recently created) or is it based on the number of views per
>>> asset?
>>>
>> based on created time.
>>
>>>
>>>   Also is there an already available api/method  that can be used to
>>> query mostly viewed/accessed assets?  Given that there is no out of the box
>>> method what would be the best way to achieve above?
>>>
>>
>> We don't have any stat related capabilities to track no of views ATM. We
>> have stats related to number of bookmarks/downloads.
>>
>>>
>>> Thanks,
>>>
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Developer Studio 3.8.0 RC 4

2015-10-13 Thread Kavith Lokuhewage
Hi Devs,

Please vote for the fourth release candidate of WSO2 Developer Studio 3.8.0.

This release fixes following issues.
https://wso2.org/jira/issues/?filter=12453

Please download, test and vote. Vote will be open for 72 hours or as needed.

Sources, binary distribution and pre-installed eclipse distributions:
http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.8.0/RC4/

The tag to be voted upon:
https://github.com/wso2/developer-studio/tree/v3.8.0-RC4


[+] Stable - go ahead and release
[-]  Broken - do not release (explain why)

Thanks and Regards,
DevStudio Team

-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error on FHIR connector integration Test case

2015-10-13 Thread Saneth Dharmakeerthi
Hi Hariprasath,

1) What do you mean by "testing with the test server"?
2) Could you able to do this task manually using same pack?.
3) Put a debug point at the line you add the certification and
 execute that line, then try the rest of  the actions manually and see
the behaviour.

Also share the testcase code

Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Tue, Oct 13, 2015 at 4:52 PM, Hariprasath Thanarajah <
haripras...@wso2.com> wrote:

> Hi Rajjaz,
>
> I already added the certification like you mentioned in [2]. But still
> it's giving the same error.
>
> On Tue, Oct 13, 2015 at 4:41 PM, Rajjaz Mohammed  wrote:
>
>> Hi,
>> its seems to be like a error i got earlier so what i did is i import the
>> certificate through the terminal like[1] and its solved my error.
>>
>> AFAIK test server not will be the reason for this error. and try the way
>> [2].
>>
>> [1]Navigate to "/repository/resources/security/" using command prompt
>> and execute keytool -importcert -file CERT_FILE_NAME -keystore
>> client-truststore.jks -alias "CERT_NAME" in command line to import api
>> certificate in to keystore. Give "*wso2carbon*" as password.
>>
>> [2]
>> http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Connector-Integration-Test-Error-SSL-Handshake-Exception-td98612.html
>>
>> On Tue, Oct 13, 2015 at 3:55 PM, Rajeenthini Satkunam <
>> rajeenth...@wso2.com> wrote:
>>
>>> Hi Hariprasanth,
>>>
>>> You can search for this subject "*[Dev] Connector Integration Test
>>> Error!- SSL Handshake Exception*" .This could help you to give some
>>> idea about the error.
>>>
>>> On Tue, Oct 13, 2015 at 3:42 PM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi all,

 Is it the error came because of the testing server? I am testing with
 the test server because it is only available for FHIR. The FHIR is in the
 development phase.

 On Tue, Oct 13, 2015 at 11:13 AM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Hi All ,
>
> I got the response at the wire. But after that only  i am getting the
> above error[1].
>
> On Tue, Oct 13, 2015 at 11:08 AM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi Elilmatha,
>>
>> I already included the certificates at client-truststore.jks as well
>> as wso2carbon.jks.
>>
>> On Tue, Oct 13, 2015 at 11:06 AM, Elilmatha Sivanesan <
>> elilma...@wso2.com> wrote:
>>
>>> Hi Hariprasath,
>>>
>>> As per you error log you need to include the certificate.
>>>
>>> Thanks.
>>>
>>> On Tue, Oct 13, 2015 at 10:56 AM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi All,

 I am working on FHIR connector. I got the following[1] error while
 I am running the integration test case of FHIR. Any suggestion on this
 error?



 [1]
 [2015-10-13 10:49:58,488] ERROR
 {org.wso2.carbon.automation.core.PlatformTestManager} -  On Test 
 failure..
 [2015-10-13 10:49:58,488] ERROR
 {org.wso2.carbon.automation.core.PlatformTestManager} -
 javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to 
 find
 valid certification path to requested target
 [2015-10-13 10:49:58,489]  INFO
 {org.wso2.carbon.automation.core.PlatformTestManager} -
 --Tests Failed
 org.wso2.carbon.connector.integration.test.fhir.fhirConnectorIntegrationTest.readResource
 [2015-10-13 10:49:58,503]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2015-10-13 10:49:58,503]  WARN - ProxyServiceAdmin No proxy service 
 exists
 by the name : fhir
 [2015-10-13 10:49:58,525]  INFO
 {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient}
 -  Proxy Deleted
 FAILED: readResource
 fhir {readResource} integration test.
 javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to 
 find
 valid certification path to requested target
 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
 at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904)
 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)
 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)
 at
 sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446)
 at
 sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.j

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Indika Sampath
Hi All,

I debug code of our and found issue. It seems implementation of some API
changed in user-core. Let me explain the flow.

Our queue/topic creation has two call.

1. We create internal role when adding queue and assign "changePermission",
"publish", "consume"  permissions to it. Which means that, user who created
particular queue can update permission, publish or consume.

- Below code line used to get internal role name:

UserCoreUtil.addInternalDomainName(QUEUE_ROLE_PREFIX +
queueName.replace(".","-").replace("/", "-"))

result = {java.lang.String@10289}"*Internal/Q_userQueue*"
value = {char[21]@10290}
hash = 0
hash32 = 0

- assign permission as below:

userStoreManager.addRole(roleName, user, null);
userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
PERMISSION_CHANGE_PERMISSION);
userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
TreeNode.Permission.CONSUME.toString().toLowerCase());
userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
TreeNode.Permission.PUBLISH.toString().toLowerCase());

2. User can select some other role listed in in queue add page. He can
select these role when adding queue or later by updating queue. So in
update permission we checked whether any of user's role has above assign
change permission.

- get role list of user:

userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser)

result = {java.lang.String[3]@9689}
[0] = {java.lang.String@9690}"*Internal/Q_userQueue*"
[1] = {java.lang.String@9691}"Internal/everyone"
[2] = {java.lang.String@9692}"role1"

- check whether any of role has change permission

for (String userRole : userRoles) {
if
(userRealm.getAuthorizationManager().isRoleAuthorized(userRole, queueID,
PERMISSION_CHANGE_PERMISSION)) {
isUserHasChangePermission = true;
}
}

Issue is above check false for all roles. But we assigned change permission
to *Internal/Q_userQueue*  role when creating queue.

3. Next I evaluate below code line to check whether which role has change
permission to queueID. Result is as below:

userRealm.getAuthorizationManager().getAllowedRolesForResource(queueID,
PERMISSION_CHANGE_PERMISSION)

result = {java.lang.String[1]@9694}
[0] = {java.lang.String@9686}"*INTERNAL/Q_userQueue*"

Result has different role name. We created role name called
*Internal/Q_userQueue* and assign permissions but it has created with
different name *INTERNAL/Q_userQueue* and assign permission.

Please have look into this because it is blocking issue to our
implementation.

Cheers!


On Tue, Oct 13, 2015 at 5:22 PM, Kishanthan Thangarajah  wrote:

> Was this issue found in 4.4.2 RC1 too?
>
> On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda 
> wrote:
>
>> Hi Manuri,
>>
>> We tested MB 3.0.0 with this release and our scenario of queue creation
>> fails after giving a permission denied error. The scenario is as follows:
>>
>> 1. Create a user "user1" with a role assigned with permission to create
>> queues.
>> 2. Login from "user1" and try to create a queue, we get a permission
>> denied error.
>>
>> When creating a queue the following happens from our code.
>>
>> 1. We create an internal role for the queue and assign it to the current
>> user with permissions assigned.
>>
>> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>>   
>> PERMISSION_CHANGE_PERMISSION);
>>
>> 2. Next, we create the queue and update permissions for the queue. In this 
>> step, we check if the current user has permissions to change the queue.
>>
>> String[] userRoles = 
>> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
>> for (String userRole : userRoles) {
>> if (userRealm.getAuthorizationManager().isRoleAuthorized(
>> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
>> isUserHasChangePermission = true;
>> }
>> }
>>
>> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
>> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false 
>> implying that any of roles assigned to the user do not have permissions to 
>> change the queue, thus not allowing the user to create the queue.
>>
>>
>> Thank you
>>
>>
>> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12396
>>>
>>> Please download and test your products with kernel 4.4.2 RC2 and vote.
>>> Vote will be open for 72 hours or longer as needed.
>>>
>>> *​Source and binary distribution files:*
>>> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>>>
>>> *Maven staging repository:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>>>
>>>

Re: [Dev] Error in executing Groovy scripts using WSO2 API Manager

2015-10-13 Thread Ruwan Yatawara
Yes Shenavi, as Isuru pointed out, this is infact the case. There was a
problem with the java script mediator on earlier versions of APIM, IIRC
this was due to a OSGI issue related to the BSF jar.

In APIM, since we wanted to ship the javascript based dummy API
functionality in the 1.7.0 release, we had to modify the script mediator to
omit BSF and use the Rhino Engine directly. This lead to the script
mediator breaking for other types of scripts.

I believe this is scheduled to be fixed in the coming versions of APIM.

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
www: :http://wso2.com


On Wed, Oct 14, 2015 at 2:56 AM, Isuru Udana  wrote:

> Hi Shenavi,
>
> I think script mediator functionality has been broken from API Manager
> version 1.7.0.
> There was some change done in API Manager synapse branch which made script
> mediator to work only with Javascript.
>
> Thanks.
>
> On Tue, Oct 13, 2015 at 7:04 AM, Shenavi de Mel  wrote:
>
>> Hi,
>>
>> I was trying to write a groovy script mediator to be executed within an
>> API hosted in the API Manager 1.9.1 locally and i am getting the following
>> error on my console. I have attached the full stack trace in this mail.
>>
>> {ERROR}
>>
>> [2015-10-13 18:10:56,987] ERROR - ScriptMediator No script engine found
>> for language: groovy
>> [2015-10-13 18:10:56,988] ERROR - CarbonDeploymentSchedulerTask Error
>> while running deployment scheduler..
>> org.apache.synapse.SynapseException: No script engine found for language:
>> groovy
>>
>> {ERROR}
>>
>> This is the script i included in the in sequence which was a simple
>> script to check if it works.
>>
>> println "The current time is: ${new
>> Date()}"
>>
>> I have also included the groovy-all-1.1-rc-1.jar into
>> APIM_HOME/repository/components/lib/ and i checked the OSGI service and it
>> is active as well.
>>
>> When i tried this scenario as mentioned in the blog [1] for the ESB i was
>> able to get the result successfully. Do i need to add any other
>> dependencies to the API Manager to support groovy?
>>
>> Your help would be much appreciated.
>>
>> [1]
>> http://heshans.blogspot.com/2011/05/executing-groovy-scripts-using-wso2-esb.html
>>
>> Thanks
>> Shenavi
>>
>>
>>
>
>
> --
> *Isuru Udana*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Documentation for Developer Studio JAXWS and JAXRS Samples

2015-10-13 Thread Tania Mahanama
Noted. Thanks, Nuwan!

On Tue, Oct 13, 2015 at 6:46 PM, Susinda Perera  wrote:

> Hi Nuwan
> It's good if we can highlight the use of query params too.
>
> Thanks
> Susinda
>
> On Tue, Oct 13, 2015 at 3:05 PM, Nuwan Pallewela  wrote:
>
>> Hi,
>>
>> Following link [2] contain draft sample documentation for JAX-RS sample
>> project
>>
>> [2]
>> https://docs.google.com/a/wso2.com/document/d/1iE9qJtR6yPs193VtF6EwlklC1v-ZOwqRaBKqF5ZZSNU/edit?usp=sharing
>>
>> Thanks,
>> Nuwan
>>
>> On Tue, Oct 13, 2015 at 11:37 AM, Nuwan Pallewela 
>> wrote:
>>
>>> Hi,
>>>
>>> Following link [1] contain draft sample documentation for JAX-WS sample
>>> project.
>>>
>>> [1]
>>> https://docs.google.com/a/wso2.com/document/d/1LRCeJfcczAIZFi6UD2SCgZT5Q7LWjp8DFrdHj6zpAGE/edit?usp=sharing
>>>
>>> Thanks,
>>> Nuwan
>>> --
>>> --
>>>
>>> *Nuwan Chamara Pallewela*
>>>
>>>
>>> *Software Engineer*
>>>
>>> *WSO2, Inc. *http://wso2.com
>>> *lean . enterprise . middleware*
>>>
>>> Email   *nuw...@wso2.com *
>>> Mobile  *+94719079739 <%2B94719079739>@*
>>>
>>>
>>>
>>
>>
>> --
>> --
>>
>> *Nuwan Chamara Pallewela*
>>
>>
>> *Software Engineer*
>>
>> *WSO2, Inc. *http://wso2.com
>> *lean . enterprise . middleware*
>>
>> Email   *nuw...@wso2.com *
>> Mobile  *+94719079739 <%2B94719079739>@*
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>


-- 
Tania Mahanama
Senior Technical Writer

Contact:
Mob: +94 077 5129270
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in executing Groovy scripts using WSO2 API Manager

2015-10-13 Thread Isuru Udana
Hi Shenavi,

I think script mediator functionality has been broken from API Manager
version 1.7.0.
There was some change done in API Manager synapse branch which made script
mediator to work only with Javascript.

Thanks.

On Tue, Oct 13, 2015 at 7:04 AM, Shenavi de Mel  wrote:

> Hi,
>
> I was trying to write a groovy script mediator to be executed within an
> API hosted in the API Manager 1.9.1 locally and i am getting the following
> error on my console. I have attached the full stack trace in this mail.
>
> {ERROR}
>
> [2015-10-13 18:10:56,987] ERROR - ScriptMediator No script engine found
> for language: groovy
> [2015-10-13 18:10:56,988] ERROR - CarbonDeploymentSchedulerTask Error
> while running deployment scheduler..
> org.apache.synapse.SynapseException: No script engine found for language:
> groovy
>
> {ERROR}
>
> This is the script i included in the in sequence which was a simple script
> to check if it works.
>
> println "The current time is: ${new
> Date()}"
>
> I have also included the groovy-all-1.1-rc-1.jar into
> APIM_HOME/repository/components/lib/ and i checked the OSGI service and it
> is active as well.
>
> When i tried this scenario as mentioned in the blog [1] for the ESB i was
> able to get the result successfully. Do i need to add any other
> dependencies to the API Manager to support groovy?
>
> Your help would be much appreciated.
>
> [1]
> http://heshans.blogspot.com/2011/05/executing-groovy-scripts-using-wso2-esb.html
>
> Thanks
> Shenavi
>
>
>


-- 
*Isuru Udana*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SSO OAuth Token

2015-10-13 Thread Júnior
Hi Darshana,

In case it is not a webview, is there any way to create a "SSO request"
using the token to get the user logged into Salesforce, for example?

thanks

2015-10-09 17:04 GMT-03:00 Darshana Gunawardana :

> Hi Francisco,
>
> Your scenario seems possible with WSO2 Identity Server 5.0.0.
>
> Let me explain the flow you wanted to have.
>
> Step 1 : User access a mobile application. It requires user to be
> authenticated to access the application.
> Step 2 : App opens a web view and user will redirected to IS login page.
> Step 3 : User enters it's credentials and get to auth code then finally
> obtains the oauth access token.
> Step 4 : In the mobile app user click a link which pointed to salesforce,
> its open a web view and try to access the salesforce domain
> (Salesforce domain configured to login with Identity Server using SAML2)
> Step 5 : Salesforce redirects IS to do authentication
> Step 6 : Since user already authenticated in Step 3, so it will bypass the
> login page, generates and send SAML response to the salesforce.
> Step 7 : Salesforce verify the SAML response and user get logged in to the
> salesforce domain.
>
> The most important step is Step 6. Here its depends on the fact that the
> web view will share the same session between Step 3 & Step 6.
>
>
> Thanks,
> Darshana.
>
>
>
> On Fri, Oct 9, 2015 at 11:00 PM, Júnior  wrote:
>
>> Hi,
>>
>> I have the following scenario:
>>
>> The customer has an application, mobile application, that he will use
>> OAuth for users login. It will be used WSO2IS for OAuth provider.
>>
>> After the user has logged into the system and have the AccessCode, he'd
>> like to have a link on a web view, for example to salesforce that is
>> connected to the WSo2, and using the access token already have the user
>> authenticated on Salesforce.
>>
>> Is it possible?
>>
>> I've already setup salesforce to login against wso2 via SAML. Is there
>> any way of once we had the oauth token we create the saml assertation for
>> the user to log into salesforce?
>>
>> Thanks
>> --
>> Francisco Ribeiro
>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error installing publisher feature to G-Reg 5.0.1

2015-10-13 Thread Ajith Vitharana
Hi All,

I'm installing the publisher feature to G-Reg 5.0.1 as mentioned in the doc
[1], But i'm getting following error at back-end.

[1]
https://docs.wso2.com/display/Governance501/Installing+WSO2+API+Manager+Features#InstallingWSO2APIManagerFeatures-G-REGserver-Publisher


[2015-10-13 14:16:53,648]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
 'admin@carbon.super [-1234]' logged in at [2015-10-13 14:16:53,647-0400]
java.io.FileNotFoundException:
/home/wso2/G-Reg-5.0.1/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.4.1/repository/components/artifacts.xml
(No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:221)
at java.io.FileOutputStream.(FileOutputStream.java:171)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:1187)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:1168)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.(SimpleArtifactRepository.java:348)
at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:134)
at
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.factoryCreate(ArtifactRepositoryManager.java:61)
at
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.doCreateRepository(AbstractRepositoryManager.java:288)
at
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager.java:49)
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getBundlePoolRepository(Util.java:86)
at
org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseMarkSetProvider.getMarkSets(EclipseMarkSetProvider.java:41)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector$ParameterizedSafeRunnable.run(GarbageCollector.java:69)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.contributeMarkSets(GarbageCollector.java:97)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.traverseRegisteredProfiles(GarbageCollector.java:225)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.runGC(GarbageCollector.java:163)
at
org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.notify(GarbageCollector.java:148)
at
org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:108)
at
org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.publishEvent(ProvisioningEventBus.java:85)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:96)
at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
at
org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:41)
at
org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:23)
at
org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:209)
at
org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:70)
at
org.wso2.carbon.feature.mgt.core.util.ProvisioningUtils.performProvisioningAction(ProvisioningUtils.java:85)
at
org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.performProvisioningAction(ProvisioningAdminService.java:313)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45

[Dev] [ESB 4.9.0]NPE when click on "Mediation Statistics" menu.

2015-10-13 Thread Ajith Vitharana
Hi All

I noticed following exception in the carbon logs.


[2015-10-13 12:31:50,717] ERROR - RPCMessageReceiver Exception occurred
while trying to invoke service method getDataForGraph
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:178)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.wso2.carbon.mediation.statistics.stub.MediationStatisticsAdminStub.getDataForGraph(MediationStatisticsAdminStub.java:560)
at
org.wso2.carbon.mediation.statistics.ui.client.MediationStatisticsClient.getDataForGraph(MediationStatisticsClient.java:75)
at
org.apache.jsp.mediationstats.statistics_005fmain_jsp._jspService(statistics_005fmain_jsp.java:174)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
at
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
at
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
at
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
at
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
at
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
at
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTa

Re: [Dev] [Carbon]Can't login in to management console when both proxycontextpath and webcontextroot is used together

2015-10-13 Thread Kishanthan Thangarajah
On Tue, Oct 13, 2015 at 12:58 PM, Johann Nallathamby 
wrote:

> [adding kernel team members]
>
> On Wed, Oct 7, 2015 at 7:07 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi,
>> I configured both ProxyContextPath and WebContextRoot together in
>> carbon.xml and tried to log in to the management console. But it did not
>> redirect to the index page even I got  success information in the console
>> as below.
>>
>
Is your load-balancer configuration correct (proxy and reverse proxy
settings)? Can we double check that?

Also does your config (both LB and IS) work with default web context root?


> INFO{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>>
>> - 'admin@carbon.super [-1234]' logged in at [2015-10-07
>> 12:13:38,200+0530]
>>
>> I have referred [1] to configure ProxyContextPath and created a jira for
>> the issue [2]
>>
>> [1]
>> http://arunasujith.blogspot.com/2014/12/adding-custom-proxy-path-for-wso2.html
>>
>> [2] https://wso2.org/jira/browse/CARBON-15475
>>
>> Thanks
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com 
>> M :0718407133| http://wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazelcast Issue - sequence is too small. the current head sequence...

2015-10-13 Thread Hasitha Amal De Silva
increasing the Time-to-Live value [1] from 1 second to about 30 seconds got
rid of this issue for my scenario. This exception can only occur if the
item is expired or had been rewritten within the buffer as per [2].

2 ways to properly handle this as I can think :

1. Come to a default balance between the buffer size (currently 1000) and
the TTL value for each item in buffer (seconds) / make this configurable.
2. In case the producing node is attempting an over-write on the buffer,
hold it until the buffer is processed. (flow control for subscriptions..)

For me, the issue was reproduced by creating about 400 durable JMS topic
subscriptions with a ramp time of about 2 seconds from Jmeter.

[1] : http://blog.hazelcast.com/ringbuffer-data-structure/
[2] :
http://docs.hazelcast.org/docs/3.5/javadoc/com/hazelcast/ringbuffer/StaleSequenceException.html



On Tue, Oct 6, 2015 at 4:47 PM, Hasitha Hiranya  wrote:

> Hi Peter,
>
> We are using Hazelcast in our Message Broker project. We are getting
> following exception when using a iTopic for syncing data.
>
> Appreciate any idea why this happen? Are we doing something wrong in our
> client application?
>
> We found code [1] throwing the exception.
>
> Oct 06, 2015 4:26:44 PM
> com.hazelcast.ringbuffer.impl.operations.ReadManyOperation
> SEVERE: [192.168.1.50]:4000 [wso2.mb.domain] [3.5] sequence:8 is too
> small. The current headSequence is:9
> com.hazelcast.ringbuffer.StaleSequenceException: sequence:8 is too small.
> The current headSequence is:9
> at
> com.hazelcast.ringbuffer.impl.RingbufferContainer.checkBlockableReadSequence(RingbufferContainer.java:176)
> at
> com.hazelcast.ringbuffer.impl.operations.ReadManyOperation.beforeRun(ReadManyOperation.java:55)
> at
> com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:131)
> at
> com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.processOperation(OperationThread.java:154)
> at
> com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.process(OperationThread.java:110)
> at
> com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.doRun(OperationThread.java:101)
> at
> com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.run(OperationThread.java:76)
>
>
> [1].
> https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/ringbuffer/impl/RingbufferContainer.java
>
> Thanks
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Cheers,

Hasitha Amal De Silva
Software Engineer
Mobile : 0772037426
Blog: http://devnutshell.tumblr.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SMPP Server Installation.

2015-10-13 Thread Ruwan Abeykoon
Hi
Please see [1], which can be used to test/simulate the service provider.
The advantage I see is that we can write the server code to simulate the
message sequence and timing. That way we can test any scenario.

Btw, you can directly connect to the server at [1], no need the OZEKI NG

Also there are few other simulators [2] [3]. [3] is preferred by the
industry.


[1] https://github.com/twitter/cloudhopper-smpp
[2] https://github.com/OpenSmpp/opensmpp
[3] http://www.seleniumsoftware.com/user-guide.htm

Cheers,
Ruwan

On Tue, Oct 13, 2015 at 12:34 AM, Elilmatha Sivanesan 
wrote:

>
> Hi all,
>
> I'm working on smsotp authenticator, I have a requirement to send sms. I'm
> using OZEKI NG SMS Gateway and installing SMPP server for this purpose I'm
> following doc [1]. For that I need the GSM service provider information.
> Can anyone suggest me how can I get the service Provider informations.
> (Host ,port, username, password,phone no, etc).
>
> Or Is there any other way I can send sms ( without vendor specific like
> twillio , nexmo ...).
>
> [1] http://www.ozekisms.com/index.php?owpn=177
>
> Thanks.
>
> *S.Elilmatha*
> Associate  Software Engineer,
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile 0779842221.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Saml assertation from oauth acces token

2015-10-13 Thread Júnior
Hi Raj,

Using the SOAP API I can validate the token and get the subject. Do you
know if having this information can I create the SAML request or
assertation?

Thanks

2015-10-09 23:17 GMT-03:00 Rajkumar Rajaratnam :

> Hi,
>
> AFAIK, OAuth access tokens doesn't carry any identity information (about a
> principal).
>
> So you can't generate SAML Assertion from OAuth access tokens. But you can
> do the reverse - that is, you can send a valid SAML Assertion to the token
> endpoint of IS to request for an OAuth access token. Refer [1 , 2 & 3] for
> more details on this.
>
> [1]
> https://docs.wso2.com/display/IS500/SAML2+Bearer+Assertion+Profile+for+OAuth+2.0
> [2]
> http://xacmlinfo.org/2014/10/31/saml2-bearer-assertion-profile-for-oauth-2-0/
> [3] https://docs.wso2.com/pages/viewpage.action?pageId=47515509
>
> Thanks,
> Raj.
>
> On Sat, Oct 10, 2015 at 2:49 PM, Júnior  wrote:
>
>> Hi,
>> Is is possible to generate a Saml assertation from a Oauth access token?
>>
>> Is there any API or service on wso2 IS that does this job?
>>
>> Thanks
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>



-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Documentation for Developer Studio JAXWS and JAXRS Samples

2015-10-13 Thread Susinda Perera
Hi Nuwan
It's good if we can highlight the use of query params too.

Thanks
Susinda

On Tue, Oct 13, 2015 at 3:05 PM, Nuwan Pallewela  wrote:

> Hi,
>
> Following link [2] contain draft sample documentation for JAX-RS sample
> project
>
> [2]
> https://docs.google.com/a/wso2.com/document/d/1iE9qJtR6yPs193VtF6EwlklC1v-ZOwqRaBKqF5ZZSNU/edit?usp=sharing
>
> Thanks,
> Nuwan
>
> On Tue, Oct 13, 2015 at 11:37 AM, Nuwan Pallewela  wrote:
>
>> Hi,
>>
>> Following link [1] contain draft sample documentation for JAX-WS sample
>> project.
>>
>> [1]
>> https://docs.google.com/a/wso2.com/document/d/1LRCeJfcczAIZFi6UD2SCgZT5Q7LWjp8DFrdHj6zpAGE/edit?usp=sharing
>>
>> Thanks,
>> Nuwan
>> --
>> --
>>
>> *Nuwan Chamara Pallewela*
>>
>>
>> *Software Engineer*
>>
>> *WSO2, Inc. *http://wso2.com
>> *lean . enterprise . middleware*
>>
>> Email   *nuw...@wso2.com *
>> Mobile  *+94719079739 <%2B94719079739>@*
>>
>>
>>
>
>
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *nuw...@wso2.com *
> Mobile  *+94719079739 <%2B94719079739>@*
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Documentation for Developer Studio Axis2 Account Service Sample

2015-10-13 Thread Susinda Perera
Hi Kushan

God if we can have a screenshot after this sentence. At the right hand side
corner of the dashboard there is a section called “Samples”. Select “Axis2
Account Service”

On Tue, Oct 13, 2015 at 5:22 PM, Kushan Adikari  wrote:

>
> Hi,
>
> Following link [1] contain draft sample documentation for Axis2 sample
> project.
>
> [1]
> https://docs.google.com/a/wso2.com/document/d/171qyXCTFRL55EKqEfV0XP-5Zwn3201oHjAAHkLG8KkU/edit?usp=sharing
>
> Thanks,
> Kushan
> --
> Kushan Adikari
> Software Engineer - Intern
> Mobile : +94715669163
> Email : kus...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES]Query of recent assets in ES store

2015-10-13 Thread Udara Rathnayake
Since we have the asset UUID in url, using a proxy to track page views is
an option. But not sure how practical.

On Tue, Oct 13, 2015 at 5:58 PM, Udara Rathnayake  wrote:

>
>
> On Tue, Oct 13, 2015 at 4:36 PM, Himasha Guruge  wrote:
>
>> Hi all,
>>
>> How are recent assets queried in ES store? Is it based on the created
>> time( most recently created) or is it based on the number of views per
>> asset?
>>
> based on created time.
>
>>
>>   Also is there an already available api/method  that can be used to
>> query mostly viewed/accessed assets?  Given that there is no out of the box
>> method what would be the best way to achieve above?
>>
>
> We don't have any stat related capabilities to track no of views ATM. We
> have stats related to number of bookmarks/downloads.
>
>>
>> Thanks,
>>
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES]Query of recent assets in ES store

2015-10-13 Thread Udara Rathnayake
On Tue, Oct 13, 2015 at 4:36 PM, Himasha Guruge  wrote:

> Hi all,
>
> How are recent assets queried in ES store? Is it based on the created
> time( most recently created) or is it based on the number of views per
> asset?
>
based on created time.

>
>   Also is there an already available api/method  that can be used to query
> mostly viewed/accessed assets?  Given that there is no out of the box
> method what would be the best way to achieve above?
>

We don't have any stat related capabilities to track no of views ATM. We
have stats related to number of bookmarks/downloads.

>
> Thanks,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Lasitha Wattaladeniya

2015-10-13 Thread Johann Nallathamby
Hi All,

It's my pleasure to announce Lasitha Wattaladeniya as a WSO2 Committer.
Lasitha has been a valuable contributor for WSO2 Identity Server product,
and in recognition of his contribution to WSO2, he has been voted as a WSO2
Committer.

Lasitha, congratulations and keep up the good work!

Thanks & Regards.

-- 

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Kishanthan Thangarajah
Was this issue found in 4.4.2 RC1 too?

On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda 
wrote:

> Hi Manuri,
>
> We tested MB 3.0.0 with this release and our scenario of queue creation
> fails after giving a permission denied error. The scenario is as follows:
>
> 1. Create a user "user1" with a role assigned with permission to create
> queues.
> 2. Login from "user1" and try to create a queue, we get a permission
> denied error.
>
> When creating a queue the following happens from our code.
>
> 1. We create an internal role for the queue and assign it to the current
> user with permissions assigned.
>
> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>   
> PERMISSION_CHANGE_PERMISSION);
>
> 2. Next, we create the queue and update permissions for the queue. In this 
> step, we check if the current user has permissions to change the queue.
>
> String[] userRoles = 
> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
> for (String userRole : userRoles) {
> if (userRealm.getAuthorizationManager().isRoleAuthorized(
> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
> isUserHasChangePermission = true;
> }
> }
>
> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false implying 
> that any of roles assigned to the user do not have permissions to change the 
> queue, thus not allowing the user to create the queue.
>
>
> Thank you
>
>
> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
> wrote:
>
>> Hi Devs,
>>
>> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12396
>>
>> Please download and test your products with kernel 4.4.2 RC2 and vote.
>> Vote will be open for 72 hours or longer as needed.
>>
>> *​Source and binary distribution files:*
>> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>>
>> *Maven staging repository:*
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>>
>> Thank you
>> Carbon Team
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Documentation for Developer Studio Axis2 Account Service Sample

2015-10-13 Thread Kushan Adikari
Hi,

Following link [1] contain draft sample documentation for Axis2 sample
project.

[1]
https://docs.google.com/a/wso2.com/document/d/171qyXCTFRL55EKqEfV0XP-5Zwn3201oHjAAHkLG8KkU/edit?usp=sharing

Thanks,
Kushan
-- 
Kushan Adikari
Software Engineer - Intern
Mobile : +94715669163
Email : kus...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity User management

2015-10-13 Thread Rajith Vitharana
Thanks Hasintha, that worked :)

On Tue, Oct 13, 2015 at 12:26 PM, Hasintha Indrajee 
wrote:

> Hi Rajith
>
> You need to install org.wso2.carbon.identity.core.ui.feature in order to
> get this. Once install you will find it under main menu.
>
> 
> org.wso2.carbon.identity.core.ui.feature.group
> ${carbon.identity.version}
> 
>
> On Tue, Oct 13, 2015 at 11:51 AM, Rajith Vitharana 
> wrote:
>
>> Hi ISTeam,
>>
>> We were using commons user management earlier, and migrated to identity
>> user management. But now we can't see usermanagement section in management
>> console. We have used below feature
>>
>> 
>>
>> org.wso2.carbon.user.mgt.feature.group
>> 4.5.6
>> 
>> Do we need to do anything else?
>>
>> Thanks,
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Hasintha Indrajee
> Software Engineer
> WSO2, Inc.
> Mobile:+94 771892453
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Ramith Jayasinghe
could we hold the release until permission related issue is fixed?

On Tue, Oct 13, 2015 at 5:10 PM, Ramith Jayasinghe  wrote:

> could we hold the release until permission related issue?
>
> On Tue, Oct 13, 2015 at 5:06 PM, Rajith Vitharana 
> wrote:
>
>> Hi,
>>
>> We have tested Basic scenarios + installing DSS features in ESB 4.9.0 and
>> those are successful (there were some integration test failiers due to
>> configuration changes which needs some fixes in test cases in DSS)
>>
>> +1 to release
>>
>> Thanks,
>>
>> On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda 
>> wrote:
>>
>>> Hi Manuri,
>>>
>>> We tested MB 3.0.0 with this release and our scenario of queue creation
>>> fails after giving a permission denied error. The scenario is as follows:
>>>
>>> 1. Create a user "user1" with a role assigned with permission to create
>>> queues.
>>> 2. Login from "user1" and try to create a queue, we get a permission
>>> denied error.
>>>
>>> When creating a queue the following happens from our code.
>>>
>>> 1. We create an internal role for the queue and assign it to the current
>>> user with permissions assigned.
>>>
>>> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>>>   
>>> PERMISSION_CHANGE_PERMISSION);
>>>
>>> 2. Next, we create the queue and update permissions for the queue. In this 
>>> step, we check if the current user has permissions to change the queue.
>>>
>>> String[] userRoles = 
>>> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
>>> for (String userRole : userRoles) {
>>> if (userRealm.getAuthorizationManager().isRoleAuthorized(
>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
>>> isUserHasChangePermission = true;
>>> }
>>> }
>>>
>>> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
>>> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false 
>>> implying that any of roles assigned to the user do not have permissions to 
>>> change the queue, thus not allowing the user to create the queue.
>>>
>>>
>>> Thank you
>>>
>>>
>>> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
>>> wrote:
>>>
 Hi Devs,

 WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.

 This release fixes the following issues:
 https://wso2.org/jira/issues/?filter=12396

 Please download and test your products with kernel 4.4.2 RC2 and vote.
 Vote will be open for 72 hours or longer as needed.

 *​Source and binary distribution files:*
 https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2

 *Maven staging repository:*
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/

 *The tag to be voted upon:*
 https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release


 Thank you
 Carbon Team

 --

 *Manuri Amaya Perera*

 *Software Engineer*

 *WSO2 Inc.*

 *Blog: http://manuriamayaperera.blogspot.com
 *

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Sasikala Kottegoda
>>> *Software Engineer*
>>> WSO2 Inc., http://wso2.com/
>>> lean. enterprise. middleware
>>> Mobile: +94 774835928/712792401
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>
>


-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Ramith Jayasinghe
could we hold the release until permission related issue?

On Tue, Oct 13, 2015 at 5:06 PM, Rajith Vitharana  wrote:

> Hi,
>
> We have tested Basic scenarios + installing DSS features in ESB 4.9.0 and
> those are successful (there were some integration test failiers due to
> configuration changes which needs some fixes in test cases in DSS)
>
> +1 to release
>
> Thanks,
>
> On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda 
> wrote:
>
>> Hi Manuri,
>>
>> We tested MB 3.0.0 with this release and our scenario of queue creation
>> fails after giving a permission denied error. The scenario is as follows:
>>
>> 1. Create a user "user1" with a role assigned with permission to create
>> queues.
>> 2. Login from "user1" and try to create a queue, we get a permission
>> denied error.
>>
>> When creating a queue the following happens from our code.
>>
>> 1. We create an internal role for the queue and assign it to the current
>> user with permissions assigned.
>>
>> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>>   
>> PERMISSION_CHANGE_PERMISSION);
>>
>> 2. Next, we create the queue and update permissions for the queue. In this 
>> step, we check if the current user has permissions to change the queue.
>>
>> String[] userRoles = 
>> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
>> for (String userRole : userRoles) {
>> if (userRealm.getAuthorizationManager().isRoleAuthorized(
>> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
>> isUserHasChangePermission = true;
>> }
>> }
>>
>> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
>> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false 
>> implying that any of roles assigned to the user do not have permissions to 
>> change the queue, thus not allowing the user to create the queue.
>>
>>
>> Thank you
>>
>>
>> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/issues/?filter=12396
>>>
>>> Please download and test your products with kernel 4.4.2 RC2 and vote.
>>> Vote will be open for 72 hours or longer as needed.
>>>
>>> *​Source and binary distribution files:*
>>> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>>>
>>> *Maven staging repository:*
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>>
>>> Thank you
>>> Carbon Team
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sasikala Kottegoda
>> *Software Engineer*
>> WSO2 Inc., http://wso2.com/
>> lean. enterprise. middleware
>> Mobile: +94 774835928/712792401
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Rajith Vitharana
Hi,

We have tested Basic scenarios + installing DSS features in ESB 4.9.0 and
those are successful (there were some integration test failiers due to
configuration changes which needs some fixes in test cases in DSS)

+1 to release

Thanks,

On Tue, Oct 13, 2015 at 4:58 PM, Sasikala Kottegoda 
wrote:

> Hi Manuri,
>
> We tested MB 3.0.0 with this release and our scenario of queue creation
> fails after giving a permission denied error. The scenario is as follows:
>
> 1. Create a user "user1" with a role assigned with permission to create
> queues.
> 2. Login from "user1" and try to create a queue, we get a permission
> denied error.
>
> When creating a queue the following happens from our code.
>
> 1. We create an internal role for the queue and assign it to the current
> user with permissions assigned.
>
> userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
>   
> PERMISSION_CHANGE_PERMISSION);
>
> 2. Next, we create the queue and update permissions for the queue. In this 
> step, we check if the current user has permissions to change the queue.
>
> String[] userRoles = 
> userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
> for (String userRole : userRoles) {
> if (userRealm.getAuthorizationManager().isRoleAuthorized(
> userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
> isUserHasChangePermission = true;
> }
> }
>
> At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
> userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false implying 
> that any of roles assigned to the user do not have permissions to change the 
> queue, thus not allowing the user to create the queue.
>
>
> Thank you
>
>
> On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
> wrote:
>
>> Hi Devs,
>>
>> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12396
>>
>> Please download and test your products with kernel 4.4.2 RC2 and vote.
>> Vote will be open for 72 hours or longer as needed.
>>
>> *​Source and binary distribution files:*
>> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>>
>> *Maven staging repository:*
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>>
>> Thank you
>> Carbon Team
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC2

2015-10-13 Thread Sasikala Kottegoda
Hi Manuri,

We tested MB 3.0.0 with this release and our scenario of queue creation
fails after giving a permission denied error. The scenario is as follows:

1. Create a user "user1" with a role assigned with permission to create
queues.
2. Login from "user1" and try to create a queue, we get a permission denied
error.

When creating a queue the following happens from our code.

1. We create an internal role for the queue and assign it to the current
user with permissions assigned.

userRealm.getAuthorizationManager().authorizeRole(roleName, queueId,
  PERMISSION_CHANGE_PERMISSION);

2. Next, we create the queue and update permissions for the queue. In
this step, we check if the current user has permissions to change the
queue.

String[] userRoles =
userRealm.getUserStoreManager().getRoleListOfUser(loggedInUser);
for (String userRole : userRoles) {
if (userRealm.getAuthorizationManager().isRoleAuthorized(
userRole, queueID, PERMISSION_CHANGE_PERMISSION)) {
isUserHasChangePermission = true;
}
}

At this stage, *'*(userRealm.getAuthorizationManager().isRoleAuthorized(
userRole, queueID, PERMISSION_CHANGE_PERMISSION))' false
implying that any of roles assigned to the user do not have
permissions to change the queue, thus not allowing the user to create
the queue.


Thank you


On Mon, Oct 12, 2015 at 9:24 PM, Manuri Amaya Perera 
wrote:

> Hi Devs,
>
> WSO2 Carbon Kernel 4.4.2 RC2 Release Vote.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12396
>
> Please download and test your products with kernel 4.4.2 RC2 and vote.
> Vote will be open for 72 hours or longer as needed.
>
> *​Source and binary distribution files:*
> https://svn.wso2.org/repos/wso2/people/aruna/v4.4.2-rc2
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-019/
>
> *The tag to be voted upon:*
> https://github.com/wso2/carbon-kernel/tree/v4.4.2-rc2
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
>
> Thank you
> Carbon Team
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sasikala Kottegoda
*Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928/712792401
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Prabath Ariyarathna

2015-10-13 Thread Ravindra Ranwala
Congratulations Prabath !

On Tue, Oct 13, 2015 at 11:50 AM, Chanaka Fernando 
wrote:

> Congratulations Prabath !!! Keep up the good work.
>
> On Tue, Oct 13, 2015 at 11:44 AM, Kasun Indrasiri  wrote:
>
>> Hi devs,
>>
>> Its my pleasure to welcome Prabath Ariyarathna as a WSO2 Committer.
>> Prabath, welcome aboard and keep up the good work!
>>
>> Thanks.
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

Mobile: +94714198770
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error on FHIR connector integration Test case

2015-10-13 Thread Hariprasath Thanarajah
Hi Rajjaz,

I already added the certification like you mentioned in [2]. But still it's
giving the same error.

On Tue, Oct 13, 2015 at 4:41 PM, Rajjaz Mohammed  wrote:

> Hi,
> its seems to be like a error i got earlier so what i did is i import the
> certificate through the terminal like[1] and its solved my error.
>
> AFAIK test server not will be the reason for this error. and try the way
> [2].
>
> [1]Navigate to "/repository/resources/security/" using command prompt and
> execute keytool -importcert -file CERT_FILE_NAME -keystore
> client-truststore.jks -alias "CERT_NAME" in command line to import api
> certificate in to keystore. Give "*wso2carbon*" as password.
>
> [2]
> http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Connector-Integration-Test-Error-SSL-Handshake-Exception-td98612.html
>
> On Tue, Oct 13, 2015 at 3:55 PM, Rajeenthini Satkunam <
> rajeenth...@wso2.com> wrote:
>
>> Hi Hariprasanth,
>>
>> You can search for this subject "*[Dev] Connector Integration Test
>> Error!- SSL Handshake Exception*" .This could help you to give some idea
>> about the error.
>>
>> On Tue, Oct 13, 2015 at 3:42 PM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> Is it the error came because of the testing server? I am testing with
>>> the test server because it is only available for FHIR. The FHIR is in the
>>> development phase.
>>>
>>> On Tue, Oct 13, 2015 at 11:13 AM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi All ,

 I got the response at the wire. But after that only  i am getting the
 above error[1].

 On Tue, Oct 13, 2015 at 11:08 AM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Hi Elilmatha,
>
> I already included the certificates at client-truststore.jks as well
> as wso2carbon.jks.
>
> On Tue, Oct 13, 2015 at 11:06 AM, Elilmatha Sivanesan <
> elilma...@wso2.com> wrote:
>
>> Hi Hariprasath,
>>
>> As per you error log you need to include the certificate.
>>
>> Thanks.
>>
>> On Tue, Oct 13, 2015 at 10:56 AM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I am working on FHIR connector. I got the following[1] error while I
>>> am running the integration test case of FHIR. Any suggestion on this 
>>> error?
>>>
>>>
>>>
>>> [1]
>>> [2015-10-13 10:49:58,488] ERROR
>>> {org.wso2.carbon.automation.core.PlatformTestManager} -  On Test 
>>> failure..
>>> [2015-10-13 10:49:58,488] ERROR
>>> {org.wso2.carbon.automation.core.PlatformTestManager} -
>>> javax.net.ssl.SSLHandshakeException:
>>> sun.security.validator.ValidatorException: PKIX path building failed:
>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
>>> find
>>> valid certification path to requested target
>>> [2015-10-13 10:49:58,489]  INFO
>>> {org.wso2.carbon.automation.core.PlatformTestManager} -
>>> --Tests Failed
>>> org.wso2.carbon.connector.integration.test.fhir.fhirConnectorIntegrationTest.readResource
>>> [2015-10-13 10:49:58,503]  INFO
>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>>> [2015-10-13 10:49:58,503]  WARN - ProxyServiceAdmin No proxy service 
>>> exists
>>> by the name : fhir
>>> [2015-10-13 10:49:58,525]  INFO
>>> {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient}
>>> -  Proxy Deleted
>>> FAILED: readResource
>>> fhir {readResource} integration test.
>>> javax.net.ssl.SSLHandshakeException:
>>> sun.security.validator.ValidatorException: PKIX path building failed:
>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
>>> find
>>> valid certification path to requested target
>>> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>>> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904)
>>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)
>>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)
>>> at
>>> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446)
>>> at
>>> sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209)
>>> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901)
>>> at
>>> sun.security.ssl.Handshaker.process_record(Handshaker.java:837)
>>> at
>>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)
>>> at
>>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
>>> at
>>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
>>> at
>>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
>>> at
>>> sun.net.www.protocol.https.HttpsClient.afterCon

Re: [Dev] WSO2 GREG Promote services are not displayed in wso2 gerg-5.0.1

2015-10-13 Thread Denuwanthi De Silva
Hi Akila,

In wso2 greg-5.0.1 promoted 'service' artifacts are displayed in
*“_system/governance/branches/testing”
*path without issue.

You might be experiencing this with 'soapservice' artifact types.
In order to put 'soapservice' artifact in the
*“_system/governance/branches/testing”
*path you can  edit the ServiceLifeCycle.xml and give the relevant media
type.











or else you can write your own customized class for Promote event similar
to ServiceVersionExecutor class.

Thanks,

On Mon, Oct 12, 2015 at 11:46 AM, Akila Nimantha [IT/EKO/LOITS] <
aki...@lolctech.com> wrote:

> Hi All,
>
>
>
> Previously I used wso2 greg-4.6.0 version and now evaluating the latest
> greg version ( 5.0.1 ).
>
> In *wso2 greg-4.6.0*, promote services are displayed in
> *“_system/governance/branches/testing”* path successfully.
>
> But in *wso2 greg-5.0.1*, promote services are not displayed in above
> path. And there is no error mentioned in log files.
>
>
>
> Is this an issue in *greg-5.0.1* or is there any workarounds for follow
> to promote the service in greg-5.0.1.
>
>
>
>
>
>
>
> Best Regards,
>
>
>
> *Akila Rathnayake*
>
> Software Engineer
>
>
>
>
>
> This message (including any attachments) is intended only for the use of
> the individual or entity to which it is addressed and may contain
> information that is non-public, proprietary, privileged, confidential, and
> exempt from disclosure under applicable law or may constitute as attorney
> work product. If you are not the intended recipient, you are hereby
> notified that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and (i) destroy
> this message if a facsimile or (ii) delete this message immediately if this
> is an electronic communication. Thank you.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error on FHIR connector integration Test case

2015-10-13 Thread Rajjaz Mohammed
Hi,
its seems to be like a error i got earlier so what i did is i import the
certificate through the terminal like[1] and its solved my error.

AFAIK test server not will be the reason for this error. and try the way
[2].

[1]Navigate to "/repository/resources/security/" using command prompt and
execute keytool -importcert -file CERT_FILE_NAME -keystore
client-truststore.jks -alias "CERT_NAME" in command line to import api
certificate in to keystore. Give "*wso2carbon*" as password.

[2]
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Connector-Integration-Test-Error-SSL-Handshake-Exception-td98612.html

On Tue, Oct 13, 2015 at 3:55 PM, Rajeenthini Satkunam 
wrote:

> Hi Hariprasanth,
>
> You can search for this subject "*[Dev] Connector Integration Test
> Error!- SSL Handshake Exception*" .This could help you to give some idea
> about the error.
>
> On Tue, Oct 13, 2015 at 3:42 PM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi all,
>>
>> Is it the error came because of the testing server? I am testing with the
>> test server because it is only available for FHIR. The FHIR is in the
>> development phase.
>>
>> On Tue, Oct 13, 2015 at 11:13 AM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi All ,
>>>
>>> I got the response at the wire. But after that only  i am getting the
>>> above error[1].
>>>
>>> On Tue, Oct 13, 2015 at 11:08 AM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi Elilmatha,

 I already included the certificates at client-truststore.jks as well as
 wso2carbon.jks.

 On Tue, Oct 13, 2015 at 11:06 AM, Elilmatha Sivanesan <
 elilma...@wso2.com> wrote:

> Hi Hariprasath,
>
> As per you error log you need to include the certificate.
>
> Thanks.
>
> On Tue, Oct 13, 2015 at 10:56 AM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi All,
>>
>> I am working on FHIR connector. I got the following[1] error while I
>> am running the integration test case of FHIR. Any suggestion on this 
>> error?
>>
>>
>>
>> [1]
>> [2015-10-13 10:49:58,488] ERROR
>> {org.wso2.carbon.automation.core.PlatformTestManager} -  On Test 
>> failure..
>> [2015-10-13 10:49:58,488] ERROR
>> {org.wso2.carbon.automation.core.PlatformTestManager} -
>> javax.net.ssl.SSLHandshakeException:
>> sun.security.validator.ValidatorException: PKIX path building failed:
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
>> find
>> valid certification path to requested target
>> [2015-10-13 10:49:58,489]  INFO
>> {org.wso2.carbon.automation.core.PlatformTestManager} -
>> --Tests Failed
>> org.wso2.carbon.connector.integration.test.fhir.fhirConnectorIntegrationTest.readResource
>> [2015-10-13 10:49:58,503]  INFO
>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
>> [2015-10-13 10:49:58,503]  WARN - ProxyServiceAdmin No proxy service 
>> exists
>> by the name : fhir
>> [2015-10-13 10:49:58,525]  INFO
>> {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient}
>> -  Proxy Deleted
>> FAILED: readResource
>> fhir {readResource} integration test.
>> javax.net.ssl.SSLHandshakeException:
>> sun.security.validator.ValidatorException: PKIX path building failed:
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to 
>> find
>> valid certification path to requested target
>> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904)
>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)
>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)
>> at
>> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446)
>> at
>> sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209)
>> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901)
>> at sun.security.ssl.Handshaker.process_record(Handshaker.java:837)
>> at
>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)
>> at
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
>> at
>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
>> at
>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
>> at
>> sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
>> at
>> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
>> at
>> java.net.HttpURLConnection.getResponseCo

[Dev] [ES]Query of recent assets in ES store

2015-10-13 Thread Himasha Guruge
Hi all,

How are recent assets queried in ES store? Is it based on the created time(
most recently created) or is it based on the number of views per asset?

  Also is there an already available api/method  that can be used to query
mostly viewed/accessed assets?  Given that there is no out of the box
method what would be the best way to achieve above?

Thanks,

Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error on FHIR connector integration Test case

2015-10-13 Thread Rajeenthini Satkunam
Hi Hariprasanth,

You can search for this subject "*[Dev] Connector Integration Test Error!-
SSL Handshake Exception*" .This could help you to give some idea about the
error.

On Tue, Oct 13, 2015 at 3:42 PM, Hariprasath Thanarajah <
haripras...@wso2.com> wrote:

> Hi all,
>
> Is it the error came because of the testing server? I am testing with the
> test server because it is only available for FHIR. The FHIR is in the
> development phase.
>
> On Tue, Oct 13, 2015 at 11:13 AM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi All ,
>>
>> I got the response at the wire. But after that only  i am getting the
>> above error[1].
>>
>> On Tue, Oct 13, 2015 at 11:08 AM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi Elilmatha,
>>>
>>> I already included the certificates at client-truststore.jks as well as
>>> wso2carbon.jks.
>>>
>>> On Tue, Oct 13, 2015 at 11:06 AM, Elilmatha Sivanesan <
>>> elilma...@wso2.com> wrote:
>>>
 Hi Hariprasath,

 As per you error log you need to include the certificate.

 Thanks.

 On Tue, Oct 13, 2015 at 10:56 AM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Hi All,
>
> I am working on FHIR connector. I got the following[1] error while I
> am running the integration test case of FHIR. Any suggestion on this 
> error?
>
>
>
> [1]
> [2015-10-13 10:49:58,488] ERROR
> {org.wso2.carbon.automation.core.PlatformTestManager} -  On Test failure..
> [2015-10-13 10:49:58,488] ERROR
> {org.wso2.carbon.automation.core.PlatformTestManager} -
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> [2015-10-13 10:49:58,489]  INFO
> {org.wso2.carbon.automation.core.PlatformTestManager} -
> --Tests Failed
> org.wso2.carbon.connector.integration.test.fhir.fhirConnectorIntegrationTest.readResource
> [2015-10-13 10:49:58,503]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2015-10-13 10:49:58,503]  WARN - ProxyServiceAdmin No proxy service 
> exists
> by the name : fhir
> [2015-10-13 10:49:58,525]  INFO
> {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient}
> -  Proxy Deleted
> FAILED: readResource
> fhir {readResource} integration test.
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904)
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)
> at
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446)
> at
> sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209)
> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901)
> at sun.security.ssl.Handshaker.process_record(Handshaker.java:837)
> at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)
> at
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
> at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
> at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
> at
> sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
> at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
> at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
> at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
> at
> org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.readResponse(ConnectorIntegrationTestBase.java:898)
> at
> org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.sendJsonRestRequest(ConnectorIntegrationTestBase.java:371)
> at
> org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.sendJsonRestRequest(ConnectorIntegrationTestBase.java:253)
> at
> org.wso2.carbon.connector.integration.test.fhir.fhirConnectorIntegrationTest.readResource(fhirConnectorIntegrationTest.java:69)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>

Re: [Dev] Error on FHIR connector integration Test case

2015-10-13 Thread Hariprasath Thanarajah
Hi all,

Is it the error came because of the testing server? I am testing with the
test server because it is only available for FHIR. The FHIR is in the
development phase.

On Tue, Oct 13, 2015 at 11:13 AM, Hariprasath Thanarajah <
haripras...@wso2.com> wrote:

> Hi All ,
>
> I got the response at the wire. But after that only  i am getting the
> above error[1].
>
> On Tue, Oct 13, 2015 at 11:08 AM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi Elilmatha,
>>
>> I already included the certificates at client-truststore.jks as well as
>> wso2carbon.jks.
>>
>> On Tue, Oct 13, 2015 at 11:06 AM, Elilmatha Sivanesan > > wrote:
>>
>>> Hi Hariprasath,
>>>
>>> As per you error log you need to include the certificate.
>>>
>>> Thanks.
>>>
>>> On Tue, Oct 13, 2015 at 10:56 AM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi All,

 I am working on FHIR connector. I got the following[1] error while I am
 running the integration test case of FHIR. Any suggestion on this error?



 [1]
 [2015-10-13 10:49:58,488] ERROR
 {org.wso2.carbon.automation.core.PlatformTestManager} -  On Test failure..
 [2015-10-13 10:49:58,488] ERROR
 {org.wso2.carbon.automation.core.PlatformTestManager} -
 javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to find
 valid certification path to requested target
 [2015-10-13 10:49:58,489]  INFO
 {org.wso2.carbon.automation.core.PlatformTestManager} -
 --Tests Failed
 org.wso2.carbon.connector.integration.test.fhir.fhirConnectorIntegrationTest.readResource
 [2015-10-13 10:49:58,503]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2015-10-13 10:49:58,503]  WARN - ProxyServiceAdmin No proxy service exists
 by the name : fhir
 [2015-10-13 10:49:58,525]  INFO
 {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient}
 -  Proxy Deleted
 FAILED: readResource
 fhir {readResource} integration test.
 javax.net.ssl.SSLHandshakeException:
 sun.security.validator.ValidatorException: PKIX path building failed:
 sun.security.provider.certpath.SunCertPathBuilderException: unable to find
 valid certification path to requested target
 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
 at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904)
 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)
 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)
 at
 sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446)
 at
 sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209)
 at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901)
 at sun.security.ssl.Handshaker.process_record(Handshaker.java:837)
 at
 sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)
 at
 sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
 at
 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
 at
 sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
 at
 sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
 at
 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
 at
 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
 at
 java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
 at
 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
 at
 org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.readResponse(ConnectorIntegrationTestBase.java:898)
 at
 org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.sendJsonRestRequest(ConnectorIntegrationTestBase.java:371)
 at
 org.wso2.connector.integration.test.base.ConnectorIntegrationTestBase.sendJsonRestRequest(ConnectorIntegrationTestBase.java:253)
 at
 org.wso2.carbon.connector.integration.test.fhir.fhirConnectorIntegrationTest.readResource(fhirConnectorIntegrationTest.java:69)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
 at org.testng.internal.Invoker.invokeMe

Re: [Dev] [Suggestion] Add JSON editor to add a cartridge group & application in PPaaS

2015-10-13 Thread Pubudu Gunatilaka
Hi Mari,

AFAIK we came across with some issues when converting json format to drag
and drop structure. That's why we have limited to drag and drop approach
when adding a cartridge group or an application.

[+ Adding Dakshika]

Thank you!

On Tue, Oct 13, 2015 at 2:56 PM, Mariangela Hills 
wrote:

> Hi Devs,
>
> The JSON editor appears when viewing details of a cartridge group and
> application. However, it is not available at the time of adding a cartridge
> group or application.
>
> The current topology aspect to add a cartridge group or application is
> nice. However, IMO it will be really useful if we can also provide the user
> with the JSON editor function when adding a cartridge group and application
> via the PPaaS Console, because there will be users who will prefer to use
> this function.
>
> For example, if a user wants to tryout sample configurations using a
> step-by-step approach via the UI and has all the JSON definitions with
> him/her, he/she will look at simply copying and pasting the JSON definition
> in the JSON editor, rather than having to analyze the sample and figure the
> dependancies etc. to use the topology approach.
>
> https://wso2.org/jira/browse/PAAS-263
>
>
> Regards,
> Mariangela
>
>
> *Mariangela Hills*
> Senior Technical Writer - WSO2, Inc. http://wso2.com
> Committer and PMC member - Apache Stratos
> email:mariang...@wso2.com | mobile: +94 773 500185
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774079049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Documentation for Developer Studio JAXWS and JAXRS Samples

2015-10-13 Thread Nuwan Pallewela
Hi,

Following link [2] contain draft sample documentation for JAX-RS sample
project

[2]
https://docs.google.com/a/wso2.com/document/d/1iE9qJtR6yPs193VtF6EwlklC1v-ZOwqRaBKqF5ZZSNU/edit?usp=sharing

Thanks,
Nuwan

On Tue, Oct 13, 2015 at 11:37 AM, Nuwan Pallewela  wrote:

> Hi,
>
> Following link [1] contain draft sample documentation for JAX-WS sample
> project.
>
> [1]
> https://docs.google.com/a/wso2.com/document/d/1LRCeJfcczAIZFi6UD2SCgZT5Q7LWjp8DFrdHj6zpAGE/edit?usp=sharing
>
> Thanks,
> Nuwan
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *nuw...@wso2.com *
> Mobile  *+94719079739 <%2B94719079739>@*
>
>
>


-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739@*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Suggestion] Add JSON editor to add a cartridge group & application in PPaaS

2015-10-13 Thread Mariangela Hills
Hi Devs,

The JSON editor appears when viewing details of a cartridge group and
application. However, it is not available at the time of adding a cartridge
group or application.

The current topology aspect to add a cartridge group or application is
nice. However, IMO it will be really useful if we can also provide the user
with the JSON editor function when adding a cartridge group and application
via the PPaaS Console, because there will be users who will prefer to use
this function.

For example, if a user wants to tryout sample configurations using a
step-by-step approach via the UI and has all the JSON definitions with
him/her, he/she will look at simply copying and pasting the JSON definition
in the JSON editor, rather than having to analyze the sample and figure the
dependancies etc. to use the topology approach.

https://wso2.org/jira/browse/PAAS-263


Regards,
Mariangela


*Mariangela Hills*
Senior Technical Writer - WSO2, Inc. http://wso2.com
Committer and PMC member - Apache Stratos
email:mariang...@wso2.com | mobile: +94 773 500185
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Developer Studio 3.8.0 RC 3

2015-10-13 Thread Kavith Lokuhewage
Hi All,

We are calling of this vote as per the issues found with connector import
wizard. We have fixed the issues and will release fourth release candidate
shortly.

Please vote for RC4 instead of this.

Thanks,

On Tue, Oct 13, 2015 at 11:34 AM, Kavith Lokuhewage  wrote:

> Hi All,
>
> Tested App Factory, API Manager and Connector stories,
>
> Found a regression issue with connector import wizard [1].
> This is blocker for connector story. Therefore [-] for the RC 3 pack.
>
>
> Thanks,
>
> [1] https://wso2.org/jira/browse/TOOLS-3257
>
> On Tue, Oct 13, 2015 at 9:46 AM, Kavith Lokuhewage 
> wrote:
>
>> Hi Supun,
>>
>> Please find the list of new features below.
>>
>>- Applying security policies to your solution using WSO2 Developer
>>Studio
>>   - WSO2 Developer Studio provides the facility to create security
>>   policies by using predefined security scenarios
>>   - enforce them on Data Services, BPEL workflows, ESB artifacts.
>>
>>
>>- Enhanced support for WSO2 Connectors
>>- Connect to WSO2 Connector Store and import preferred connectors
>>   directly
>>   - Include these connectors into the same CAR file, which wraps
>>   other artifacts such as sequences, proxy services, APIs etc., and 
>> deploy as
>>   one unit
>>
>>
>>- Inbound Endpoint support
>>
>>
>>- PublishEvent Mediator and ForEach Mediator support
>>
>>
>>- Exploded WebApp Deployment Support
>>- Makes it easier to make changes in the files, without requiring a
>>   redeployment of the complete WAR file.
>>
>>
>>- Enhanced support for maven release plugin with new WSO2
>>build-helper Plugin
>>   - now supports all major scm providers
>>   - now supports dry run and rollback modes
>>
>>
>>- API Manager perspective for Developer Studio
>>- to perform updates, edits to your APIM sequences.
>>
>>
>>- Basic tooling support for new artifact types of WSO2 CEP
>>
>>
>>- Utilizes in-memory graphical meta-data instead of file based
>>meta-data to improve performance
>>
>>
>> Thanks,
>>
>> On Mon, Oct 12, 2015 at 8:01 PM, Supun Malinga  wrote:
>>
>>> Hi Kavith,
>>>
>>> Can you pls mention what are the new features in 3.8.0 ?.
>>>
>>> thanks,
>>>
>>> On Mon, Oct 12, 2015 at 3:05 AM, Kavith Lokuhewage 
>>> wrote:
>>>
 Hi Devs,

 Please vote for the third release candidate of WSO2 Developer Studio
 3.8.0.

 This release fixes following issues.
 https://wso2.org/jira/issues/?filter=12450

 Please download, test and vote. Vote will be open for 72 hours or as
 needed.

 Sources, binary distribution and pre-installed eclipse distributions:

 http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.8.0/RC3/

 The tag to be voted upon:
 https://github.com/wso2/developer-studio/tree/v3.8.0-RC3


 [+] Stable - go ahead and release
 [-]  Broken - do not release (explain why)

 Thanks and Regards,
 DevStudio Team

 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +9477-9-145-123 | +9471-455-6-401
 Linkedin 
 Twitter 

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> *Kavith Lokuhewage*
>> Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +9477-9-145-123 | +9471-455-6-401
>> Linkedin 
>> Twitter 
>>
>
>
>
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>



-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Nuwan Wimalasekara
Hi Amalka,

As per my understand, There is no way to pass parameters form
TestManagerListener
to Individual test classes.

However There are two possible way to achieve  your requirement.

1) Tenant Management admin service can be used in test classes to get the
tenant id if the tenant domain is static.

2) Static variable can be used to store the tenant id in TestManagerListener
and that variable can be refer in test classes.

in both ways you can get the tenant id which you created in
TestManagerListener.

Thanks,
Nuwanw

On Tue, Oct 13, 2015 at 2:27 PM, Amalka Subasinghe  wrote:

> No we can't
>
> What I want to do it, when executing TestManagerListener.onStart() class
> we create a tenant and then in the test cases i want to use that tenant's
> id.
>
> if we hard code the tenant id in automation.xml file, every time we have
> to manually create the tenant in the af setup before execute our test cases.
>
>
>
> On Tue, Oct 13, 2015 at 2:22 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi Amalka,
>>
>> What is the use case ? Why do you want to pass a value from onStart
>> method to a test case.
>> Configuring the value in automation.xml and reading it inside the test
>> case wont help ?
>>
>> Thanks
>>
>> On Tue, Oct 13, 2015 at 2:16 PM, Amalka Subasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> I want to set a value to a variable in TestManagerListener.onStart()
>>> method and use it in a test case. How can I do it?
>>>
>>> Thanks
>>> Amalka
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>
>
>
> --
> Amalka Subasinghe
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>



-- 
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


[Dev] WSO2 Committers += Lahiru Cooray

2015-10-13 Thread Dinusha Senanayaka
Hi All,

Its my pleasure to welcome Lahiru Cooray as a WSO2 Committer.

Lahiru, welcome aboard and keep up the good work ..

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Amalka Subasinghe
No we can't

What I want to do it, when executing TestManagerListener.onStart() class we
create a tenant and then in the test cases i want to use that tenant's id.

if we hard code the tenant id in automation.xml file, every time we have to
manually create the tenant in the af setup before execute our test cases.



On Tue, Oct 13, 2015 at 2:22 PM, Mahesh Chinthaka  wrote:

> Hi Amalka,
>
> What is the use case ? Why do you want to pass a value from onStart method
> to a test case.
> Configuring the value in automation.xml and reading it inside the test
> case wont help ?
>
> Thanks
>
> On Tue, Oct 13, 2015 at 2:16 PM, Amalka Subasinghe 
> wrote:
>
>> Hi,
>>
>> I want to set a value to a variable in TestManagerListener.onStart()
>> method and use it in a test case. How can I do it?
>>
>> Thanks
>> Amalka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



-- 
Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Mahesh Chinthaka
Hi Amalka,

What is the use case ? Why do you want to pass a value from onStart method
to a test case.
Configuring the value in automation.xml and reading it inside the test case
wont help ?

Thanks

On Tue, Oct 13, 2015 at 2:16 PM, Amalka Subasinghe  wrote:

> Hi,
>
> I want to set a value to a variable in TestManagerListener.onStart()
> method and use it in a test case. How can I do it?
>
> Thanks
> Amalka
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Using unregistered realm in PassiveSTS request

2015-10-13 Thread Chamara Philips
Hi,

This is regarding [1] .
Currently when we send an unregistered realm or no realm with the parameter
'wtrealm' in the Passive STS request, we receive the same response as it is
with the correct realm, but without the claim attributes.
When an unregistered realm is passed a log is printed at back-end
from RegistryBasedTrustedServiceStore. This is the expected behavior at the
moment.
The specification at [2]
,
doesn't specify what to do when a invalid 'wtrealm' is passed. How ever
according to [2]
 both
the 'wtreply' and 'wtrealm' are optional parameters. In section 8 in [2]
, as
security concerns, there is a possibility of man-in-the -middle-attack when
the Identity Provider doesn't verify whether the 'wtreply' is same or is in
'wtrealm'. The following part is quoted from [2]
.


[Man-in-the-Middle attacks: The wtreply must be in wtrealm (i.e., the same
URL, or, e.g., wtreply is a host within the domain of wtrealm). It is
strongly RECOMMENDED that the Identity Provider verifies this, and that
wtreply is an valid HTTP/S address.

• The wtrealm SHOULD be a security realm of the resource in which nobody
can control URLs.

• For Kerberos tokens the key distribution SHOULD distribute correct realms
for the keys, so that Identity Providers know what the correct realms are
for keys that they use.

• For SAML tokens the resource SHOULD verify that exactly this realm is in
one of the two (fix one!) fields of the ticket.

• For other token types similar considerations SHOULD be made before using
them.

It is strongly RECOMMENDED that the resourceSTS secure information or use
HTTP/S or some other transport-level security mechanism for all
communications. ]

As far as I understand the behavior when an unregistered realm is passed in
request, is OK according to the spec [2]
.
Though we don't support the verification of 'wtreply' and 'wtrealm' as
described in spec [2]
 at
the moment, we can enforce to verify the provided 'wtreply' in the request
to be similar to the provided 'Passive STS WReply URL' when registering the
Service Provider in IS. If they are not similar the user will be redirected
to the given 'Passive STS WReply URL'.

As far as I understand overall realm validation workflow is ok to proceed.
Any suggestions on any improvement are welcome.

[1] https://wso2.org/jira/browse/IDENTITY-2803

[2] http://public.dhe.ibm.com/software/dw/specs/ws-fedpass/ws-fedpass.pdf

Thank you.
-- 
Hareendra Chamara Philips
*Software  Engineer*
Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
chama...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Amalka Subasinghe
Hi,

I want to set a value to a variable in TestManagerListener.onStart() method
and use it in a test case. How can I do it?

Thanks
Amalka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Issue in Android Enrollment

2015-10-13 Thread Shavindri Dissanayake
Hi Prabath,

Noted. Thank you for the info!

Created a JIRA for this: https://wso2.org/jira/browse/DOCUMENTATION-2542

Thanks & Regards
Shavindri Dissanayake
Technical Writer

WSO2 Inc.
lean.enterprise.middleware

On Tue, Oct 13, 2015 at 11:22 AM, Prabath Abeysekera 
wrote:

>
> On Tue, Oct 13, 2015 at 11:18 AM, Milan Perera  wrote:
>
>> Hi Prabath,
>>
>> I believe, HTTPS redirection needs be disabled by default to be able to
>>> make sure "unzip and run" use-cases work smoothly.
>>>
>> ​
>> +1 for that.
>>
>> And the other thing is we can do this in one-go at tomcat level without
>> editing each and every web.xmls.
>> To do that ​we can add the same configuration that I mentioned above to
>> the web.xml of the tomcat which resides in the *repository/conf/tomcat*
>>
>
> Great! Thanks for the confirmation.
>
> @Shavindri, This needs to be added to the EMM configuration/deployment
> guide as well. Please note.
>
> Cheers,
> Prabath
>
>
>> ​Regards,​
>> --
>> *Milan Harindu Perera *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>> Email: mi...@wso2.com  | Web: www.wso2.com
>> 
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] Average and Standard Deviation extensions for siddhi

2015-10-13 Thread Seshika Fernando
Ah super. Can we add a link from the math extension to this? Because its
difficult for ppl to locate this unless they know how these functions have
been implemented.

On Tue, Oct 13, 2015 at 1:52 PM, Thilini Anoratna  wrote:

> Hi Seshika,
>
> You can find average and standard deviation functions in Siddhi under the
> "Inbuilt Aggregate Functions". Please refer [1] for more information.
>
> Thanks.
> Thilini
>
> [1] https://docs.wso2.com/display/CEP400/Inbuilt+Aggregate+Functions
>
> On Tue, Oct 13, 2015 at 1:43 PM, Seshika Fernando 
> wrote:
>
>> Hi,
>> I cannot find the average and standard deviation functions in siddhi
>> under the math extension or under inbuilt functions. Can you guys check and
>> add this since this is pretty useful for many queries.
>>
>> Thanks,
>> seshi
>>
>
>
>
> --
>
> *Thilini Anoratna*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 778955654 <+94+778955654>
>
> * *
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] Average and Standard Deviation extensions for siddhi

2015-10-13 Thread Thilini Anoratna
Hi Seshika,

You can find average and standard deviation functions in Siddhi under the
"Inbuilt Aggregate Functions". Please refer [1] for more information.

Thanks.
Thilini

[1] https://docs.wso2.com/display/CEP400/Inbuilt+Aggregate+Functions

On Tue, Oct 13, 2015 at 1:43 PM, Seshika Fernando  wrote:

> Hi,
> I cannot find the average and standard deviation functions in siddhi under
> the math extension or under inbuilt functions. Can you guys check and add
> this since this is pretty useful for many queries.
>
> Thanks,
> seshi
>



-- 

*Thilini Anoratna*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 778955654 <+94+778955654>

* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CEP] Average and Standard Deviation extensions for siddhi

2015-10-13 Thread Seshika Fernando
Hi,
I cannot find the average and standard deviation functions in siddhi under
the math extension or under inbuilt functions. Can you guys check and add
this since this is pretty useful for many queries.

Thanks,
seshi
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Error] Unable to add an application policy via UI

2015-10-13 Thread Mariangela Hills
[Adding dev@wso2.org]

Regards,
Mariangela


*Mariangela Hills*
Senior Technical Writer - WSO2, Inc. http://wso2.com
Committer and PMC member - Apache Stratos
email:mariang...@wso2.com | mobile: +94 773 500185

On Tue, Oct 13, 2015 at 12:21 PM, Gayan Gunarathne  wrote:

>
> Hi,
>
> On Tue, Oct 13, 2015 at 12:03 PM, Mariangela Hills 
> wrote:
>
>> Hi Pubudu & Akila,
>>
>> Pubudu, based on our offline discussion I signed out and signed in again,
>> and now it shows the application policy that mysteriously disappeared :)
>> Other users too might get confused in a scenario like this, because
>> normally when there is a session timeout the user is directed to the login
>> page. I wonder how I wasn't directed to the login page in this instance.
>>
>
> In that case we need to handle session timeout.
>
> @Dakshika, is it possible to redirect the page into the login page in the
> case of the session timeout?
>
>
>> Thanks, for the help Pubudu and Akila!
>>
>> Regards,
>> Mariangela
>>
>>
>> *Mariangela Hills*
>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>> Committer and PMC member - Apache Stratos
>> email:mariang...@wso2.com | mobile: +94 773 500185
>>
>> On Tue, Oct 13, 2015 at 12:02 PM, Akila Ravihansa Perera <
>> raviha...@wso2.com> wrote:
>>
>>> [Looping Dakshika]
>>>
>>> But shouldn't the console app renew the authentication cookie on session
>>> timeout?
>>>
>>> On Tue, Oct 13, 2015 at 11:57 AM, Pubudu Gunatilaka 
>>> wrote:
>>>
 This is due to the session timeout.

 On Tue, Oct 13, 2015 at 11:55 AM, Akila Ravihansa Perera <
 raviha...@wso2.com> wrote:

> Hi Mari,
>
> Can you try the same via curl command and check the response you get?
>
> Thanks.
>
> On Tue, Oct 13, 2015 at 11:48 AM, Mariangela Hills <
> mariang...@wso2.com> wrote:
>
>> Hi Team,
>>
>> Initially, I successfully added an application policy [1] via the
>> PPaaS Console. After sometime it disappeared from the application 
>> policies
>> main page, so I assumed that I accidentally deleted it and tried adding 
>> it
>> again, but I keep getting an error (The endpoint requires
>> authentication). Note that no message appears in the logs that I
>> deleted the application policy, which makes me wonder whether I actually
>> deleted it, and no message gets printed in the logs stating that there in
>> an issue with the application policy that I am trying to add.
>>
>> Can someone please let me know how I can resolve this issue that I am
>> facing.
>>
>>
>> [1]
>> https://github.com/wso2/private-paas-cartridges/blob/master/wso2am/1.9.0/samples/application-policies/mock/application-policy-1.json
>>
>> [2]
>>
>> [2015-10-12 16:34:29,239]  INFO
>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>> -  Adding cartridge: [cartridge-type] wso2am-190-gw-worker
>> [2015-10-12 16:34:29,272]  INFO
>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
>> -  Publishing service created event: [service-name] wso2am-190-gw-worker
>> [2015-10-12 16:34:29,289]  INFO
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> -  Service created: [service] wso2am-190-gw-worker
>> [2015-10-12 16:34:29,292]  INFO
>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>> -  Successfully added cartridge: [cartridge-type] wso2am-190-gw-worker
>> [2015-10-12 16:35:15,820]  INFO
>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>> -  Adding cartridge: [cartridge-type] wso2am-190-km
>> [2015-10-12 16:35:15,842]  INFO
>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
>> -  Publishing service created event: [service-name] wso2am-190-km
>> [2015-10-12 16:35:15,857]  INFO
>> {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor}
>> -  Service created: [service] wso2am-190-km
>> [2015-10-12 16:35:15,858]  INFO
>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>> -  Successfully added cartridge: [cartridge-type] wso2am-190-km
>> [2015-10-12 16:43:36,193]  INFO
>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>  Adding cartridge group: [group-name] keymanager-gw-manager-gw-worker
>> [2015-10-12 16:43:36,342]  INFO
>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>  Cartridge group successfully added: [group-name]
>> keymanager-gw-manager-gw-worker
>> [2015-10-13 09:24:48,588]  INFO
>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>  Adding cartridge group: [group-name] test_group
>> [2015-10-13 09:24:48,648]  INFO
>> {org.apache.stratos.autoscaler.services.impl.Autoscal

Re: [Dev] [Carbon]Can't login in to management console when both proxycontextpath and webcontextroot is used together

2015-10-13 Thread Johann Nallathamby
[adding kernel team members]

On Wed, Oct 7, 2015 at 7:07 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi,
> I configured both ProxyContextPath and WebContextRoot together in
> carbon.xml and tried to log in to the management console. But it did not
> redirect to the index page even I got  success information in the console
> as below.
>
> INFO{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>
> - 'admin@carbon.super [-1234]' logged in at [2015-10-07 12:13:38,200+0530]
>
> I have referred [1] to configure ProxyContextPath and created a jira for
> the issue [2]
>
> [1]
> http://arunasujith.blogspot.com/2014/12/adding-custom-proxy-path-for-wso2.html
>
> [2] https://wso2.org/jira/browse/CARBON-15475
>
> Thanks
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com 
> M :0718407133| http://wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev