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

2015-10-15 Thread Hasanthi Purnima Dissanayake
Hi Krishanthan,

As you suggested I checked the configurations of proxy and reverse proxy
and they seems correct. I followed [1] as the reference. We can use IS and
LB with default web context root. The problem occurs when we try to login
to management console with both proxycontextpath and webcontextroot is
specified.

 [1]
http://arunasujith.blogspot.com/2014/12/adding-custom-proxy-path-for-wso2.html

Thanks

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 

On Tue, Oct 13, 2015 at 9:39 PM, Kishanthan Thangarajah  wrote:

>
>
> 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] How to make mySQL DB case sensitive

2015-10-15 Thread Mahesh Chinthaka
Hi Hasitha,

AFAIK you can set collation at both the database creation and table
creation level.
And you can set individual tables treated as case sensitive if you want.

Please refer[1]

[1] -
http://stackoverflow.com/questions/4879846/how-to-configure-mysql-to-be-case-sensitive

On Thu, Oct 15, 2015 at 5:43 PM, Hasitha Hiranya  wrote:

> Hi Devs,
>
> How can we do the subject? Are we doing this in registry/user store DBs?
>
> 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
>
>


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


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

2015-10-15 Thread Johann Nallathamby
Hi Kishanthan/Kernel Team,

We are in the process writing the test case for the issue. Should be able
to send it before end of day.

[1] has been reported in another thread. This issue in particular looks
critical to me, because AFAIK there are many users using proxyContextPath.
Not sure about WebContextRoot though. Apart from that WSO2 QA has reported
[2,3] in IS 5.1.0 SNAPSHOT pack. May be its harmless, but looks like it is
coming from kernel and would like to get your thoughts on this if this is
critical and needs to be fixed.

[1] https://wso2.org/jira/browse/CARBON-15475
[2] https://wso2.org/jira/browse/IDENTITY-3815
[3] https://wso2.org/jira/browse/IDENTITY-3817

And also it will be great if we can change the default value of
XSSPreventionConfig.Enabled to 'false' because this was added in order to
prevent XSS centrally, however the approach is not 100% bug free. Whoever
has this enabled needs to test all their functionality well. Therefore what
I suggest is to make it 'false' by default and whatever product that needs
it can enable it at product level. WDYT ? Can we do this ?

Regards,
Johann.


On Wed, Oct 14, 2015 at 6:30 PM, Kishanthan Thangarajah  wrote:

> Can we also have test case for this fix please?
>
> On Wed, Oct 14, 2015 at 6:13 PM, Isura Karunaratne  wrote:
>
>> Hi,
>>
>> This issue is fixed in [1].
>>
>>
>> Thanks
>> isura
>>
>>
>> [1] https://wso2.org/jira/browse/CARBON-15517
>>
>>
>> On Wed, Oct 14, 2015 at 11:25 AM, Johann Nallathamby 
>> wrote:
>>
>>> 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 

[Dev] How to make mySQL DB case sensitive

2015-10-15 Thread Hasitha Hiranya
Hi Devs,

How can we do the subject? Are we doing this in registry/user store DBs?

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


Re: [Dev] How to make mySQL DB case sensitive

2015-10-15 Thread Hasitha Hiranya
Hi Mahesh,

Already tried it.
Gives me following error


[image: Inline image 1]

I am using mysql  Ver 14.14 Distrib 5.6.23, for osx10.8 (x86_64)

Thanks

On Thu, Oct 15, 2015 at 5:48 PM, Mahesh Chinthaka  wrote:

> Hi Hasitha,
>
> AFAIK you can set collation at both the database creation and table
> creation level.
> And you can set individual tables treated as case sensitive if you want.
>
> Please refer[1]
>
> [1] -
> http://stackoverflow.com/questions/4879846/how-to-configure-mysql-to-be-case-sensitive
>
> On Thu, Oct 15, 2015 at 5:43 PM, Hasitha Hiranya 
> wrote:
>
>> Hi Devs,
>>
>> How can we do the subject? Are we doing this in registry/user store DBs?
>>
>> 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
>>
>>
>
>
> --
> *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
>



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


Re: [Dev] How to make mySQL DB case sensitive

2015-10-15 Thread Denuwanthi De Silva
Hi Hasitha,

For MySql DB the case sensitivity of the underlying OS also impacts[1].
For example in Linux mysql db are case sensitive, in OSX and windows not
case sensitive.

You might be able to configure 'lower_case_table_names' property as
mentioned in [1] and apply case sensitivity/insensitivity from OS level to
your mysqlDB.
Giving lower_case_table_names=2 might work in your scenario.

(Ex: I have used lower_case_table_names=1 to make mysql case insensitive
for Linux)

link[2] describes ow to configure that property.




[1]https://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html
[2]
http://stackoverflow.com/questions/11165944/how-to-change-mysql-table-names-in-linux-server-to-be-case-insensitive

Thanks,

On Thu, Oct 15, 2015 at 5:59 PM, Mahesh Chinthaka  wrote:

> Hi Hasitha,
> Did you try with collation 'utf8_bin' ?
>
> CREATE DATABASE test_database CHARACTER SET utf8 COLLATE utf8_bin;
>
>
> On Thu, Oct 15, 2015 at 5:53 PM, Hasitha Hiranya 
> wrote:
>
>> Hi Mahesh,
>>
>> Already tried it.
>> Gives me following error
>>
>>
>> [image: Inline image 1]
>>
>> I am using mysql  Ver 14.14 Distrib 5.6.23, for osx10.8 (x86_64)
>>
>> Thanks
>>
>> On Thu, Oct 15, 2015 at 5:48 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi Hasitha,
>>>
>>> AFAIK you can set collation at both the database creation and table
>>> creation level.
>>> And you can set individual tables treated as case sensitive if you want.
>>>
>>> Please refer[1]
>>>
>>> [1] -
>>> http://stackoverflow.com/questions/4879846/how-to-configure-mysql-to-be-case-sensitive
>>>
>>> On Thu, Oct 15, 2015 at 5:43 PM, Hasitha Hiranya 
>>> wrote:
>>>
 Hi Devs,

 How can we do the subject? Are we doing this in registry/user store
 DBs?

 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


>>>
>>>
>>> --
>>> *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
>>>
>>
>>
>>
>> --
>> *Hasitha Abeykoon*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> *cell:* *+94 719363063*
>> *blog: **abeykoon.blogspot.com* 
>>
>>
>
>
> --
> *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
>
>


-- 
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] How to make mySQL DB case sensitive

2015-10-15 Thread Mahesh Chinthaka
Hi Hasitha,
Did you try with collation 'utf8_bin' ?

CREATE DATABASE test_database CHARACTER SET utf8 COLLATE utf8_bin;


On Thu, Oct 15, 2015 at 5:53 PM, Hasitha Hiranya  wrote:

> Hi Mahesh,
>
> Already tried it.
> Gives me following error
>
>
> [image: Inline image 1]
>
> I am using mysql  Ver 14.14 Distrib 5.6.23, for osx10.8 (x86_64)
>
> Thanks
>
> On Thu, Oct 15, 2015 at 5:48 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi Hasitha,
>>
>> AFAIK you can set collation at both the database creation and table
>> creation level.
>> And you can set individual tables treated as case sensitive if you want.
>>
>> Please refer[1]
>>
>> [1] -
>> http://stackoverflow.com/questions/4879846/how-to-configure-mysql-to-be-case-sensitive
>>
>> On Thu, Oct 15, 2015 at 5:43 PM, Hasitha Hiranya 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> How can we do the subject? Are we doing this in registry/user store DBs?
>>>
>>> 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
>>>
>>>
>>
>>
>> --
>> *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
>>
>
>
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


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


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

2015-10-15 Thread Rajjaz Mohammed
Hi Nuwan,
i solved that error as you mentioned and now its producing new error [3]
but if i include proxy manually inside the ESB zip before start the esb
test work fine. full log [4]


[3] Failed tests:   init(org.wso2.carbon.connector.ejb2XIntegrationTest):
org.apache.axis2.databinding.ADBException: Unexpected subelement {
http://mgt.service.carbon.wso2.org/xsd}CAppArtifact
  destroy(org.wso2.carbon.connector.ejb2XIntegrationTest):
org.apache.axis2.databinding.ADBException: Unexpected subelement {
http://mgt.service.carbon.wso2.org/xsd}CAppArtifact

[4]
[2015-10-15 12:23:18,958]  INFO
{org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient}
-  Proxy Added
[2015-10-15 12:23:18,962]  INFO
{org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils} -  simpleProxy
Proxy Uploaded
[2015-10-15 12:23:19,967]  INFO
{org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils} -  waiting 3
millis for Proxy deployment simpleProxy
[2015-10-15 12:25:20,490]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2015-10-15 12:24:36,337]  WARN - CarbonAuthenticationUtil Failed
Administrator login attempt 'admin[-1234]' at [2015-10-15 12:24:36,337+0530]
[2015-10-15 12:25:20,939]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2015-10-15 12:24:40,380]  INFO - CarbonAuthenticationUtil
'admin@carbon.super [-1234]' logged in at [2015-10-15 12:24:40,380+0530]
[2015-10-15 12:25:49,690]  INFO
{org.wso2.carbon.automation.core.PlatformTestManager} -  Running the test
method ---
org.wso2.carbon.connector.ejb2XIntegrationTest.testPassThroughProxy 
[2015-10-15 12:25:49,696]  WARN
{org.wso2.carbon.automation.core.PlatformTestManager} -  On Test Skipped
[2015-10-15 12:25:49,699]  INFO
{org.wso2.carbon.automation.core.PlatformTestManager} -  --Test
Skipped null
FAILED CONFIGURATION: @BeforeClass init
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement {http://mgt.service.carbon.wso2.org/xsd}CAppArtifact
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.wso2.carbon.service.mgt.stub.ServiceAdminStub.fromOM(ServiceAdminStub.java:12981)
at
org.wso2.carbon.service.mgt.stub.ServiceAdminStub.listServices(ServiceAdminStub.java:8219)
at
org.wso2.carbon.automation.api.clients.service.mgt.ServiceAdminClient.listServices(ServiceAdminClient.java:87)
at
org.wso2.carbon.automation.api.clients.service.mgt.ServiceAdminClient.isServiceExists(ServiceAdminClient.java:126)
at
org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.isProxyDeployed(ESBTestCaseUtils.java:521)
at
org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.verifySynapseDeployment(ESBTestCaseUtils.java:1522)
at
org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.updateESBConfiguration(ESBTestCaseUtils.java:337)
at
org.wso2.carbon.esb.ESBIntegrationTest.updateESBConfiguration(ESBIntegrationTest.java:194)
at
org.wso2.carbon.esb.ESBIntegrationTest.loadESBConfigurationFromClasspath(ESBIntegrationTest.java:180)
at
org.wso2.carbon.connector.ejb2XIntegrationTest.init(ejb2XIntegrationTest.java:52)
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:84)
at
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at
org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

[Dev] WSO2 Developer Studio 3.8.0 Released!

2015-10-15 Thread Kavith Lokuhewage
*WSO2 Developer Studio 3.8.0 Released!*

WSO2 Developer Studio team is pleased to announce the release of the
version 3.8.0 WSO2 Developer Studio.

Developer Studio is the one-stop solution for almost all the development
tools you will ever need for creating middle-ware applications based on the
award-winning WSO2 Carbon platform. It provides a complete Eclipse-based
SOA development environment and immensely simplifies creation of artifacts
with graphical editors and management of the links and dependencies between
these services. You can easily test, debug, and deploy your artifacts as
Composite Application aRchives (CAR) onto your WSO2 Carbon-based servers.

To download WSO2 Developer Studio 3.8.0, please visit
http://wso2.com/products/developer-studio.

To view documentation for this release, please visit
https://docs.wso2.com/display/DVS380/WSO2+Developer+Studio+Documentation.

*How to Install*

WSO2 Developer Studio 3.8.0 is available as a Eclipse P2 repository or
pre-installed Eclipse Luna SR2 distributions.

To get a Eclipse Luna SR2 distribution with pre-installed WSO2 Developer
Studio features,

   1. From product page ,
   download the appropriate distribution for your platform (windows, mac or
   linux | 32/64bit).
   2. Extract the archive.
   3. launch eclipse executable.

To install it from a P2 repository to an existing Eclipse Luna SR2
instance,

   1. Download P2 repository zip file or get the URL
    of
   online P2 repository, from product page
   .
   2. Go to Help -> Install New Software  in Eclpse and point to the P2
   repository from step 1.
   3. Select required features and click install.
   4. Restart Eclipse.



*New Key Features in 3.8.0*


   - 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 analytic artifacts of WSO2 CEP

Improvements

   - [TOOLS-1246 ] - Error
   messages should be popped up if diagram is incomplete, when user going to
   save the diagram or going to view the source view.
   - [TOOLS-2246 ] - Use different
   icon to identify qos-project-nature
   - [TOOLS-2281 ] - Axis2 Service
   Project rename the service class does not update services.xml accordingly
   - [TOOLS-2309 ] - Provide an UI
   option to define extra parameters for Message Store
   - [TOOLS-2362 ] - Create a new
   mediator for data mapping
   - [TOOLS-2372 ] - Provide a
   warning when running with in jdk 1.6
   - [TOOLS-2387 ] - Persistence
   layer is not working, the one shows in source view is not the same in
   actuall file.
   - [TOOLS-2434 ] - [QoQ]Provide
   an option to create QoS artifact without pointing to service WSDL
   - [TOOLS-2527 ] - Generate WSDL
   with -l option so that the default axis2 server port address will be
   overridden in the generated WSDL
   - [TOOLS-2586 ] - AF Tools -
   Use eclipse embedded maven, when possible, to resolve maven dependancies
   - [TOOLS-2591 ] - AF Tools :
   tracking git branch for forked branches are not set automatically,
   - [TOOLS-2677 ] - Put a sample
   AF URL when AF is selected from login screen
   - [TOOLS-2705 ] - Re-Structure
   the Jaggery Arche-type
   - [TOOLS-2707 ] - Make the
   pre-release-plugin work with git (or other SCM systems)
   - 

Re: [Dev] Enabling security with user name token

2015-10-15 Thread Hasintha Indrajee
Are you calling the service with security headers in the request it self ?.

On Wed, Oct 14, 2015 at 8:37 PM, Rajith Vitharana  wrote:

> Hi Hasintha,
>
> We are using carbon-identity 4.5.6
>
> @Firzan we are using [1] as the policy file which contains the element you
> mentioned above.
>
> [1] -
> http://svn.wso2.org/repos/wso2/people/isuruu/qos/synapse-configs/default/local-entries/p1.xml
>
> Thanks,
>
> On Wed, Oct 14, 2015 at 5:12 PM, Hasintha Indrajee 
> wrote:
>
>> Can you please tell me the carbon-identity version you are using ?
>>
>> On Wed, Oct 14, 2015 at 3:04 PM, Rajith Vitharana 
>> wrote:
>>
>>> + Asela
>>>
>>> On Wed, Oct 14, 2015 at 1:13 PM, Rajith Vitharana 
>>> wrote:
>>>
 Hi,

 I have enabled security in DSS service specifying the policy file
 (roles included in the policy). But when invoking the service with username
 password, it throws below exception.

 java.lang.ClassCastException: org.apache.axiom.om.impl.dom.ElementImpl
 cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
 at
 org.wso2.carbon.security.pox.POXSecurityHandler.isSOAPWithoutSecHeader(POXSecurityHandler.java:362)
 at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:102)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:515)
 at
 org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
 at
 org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398)
 at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188)
 at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 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.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 

[Dev] [BPS] - Performance test - Long running

2015-10-15 Thread Chathurika De Silva
Hi

While running the $subject on a manager, 2 worker cluster, noticed a
dis-ambiguity reported in [1]

Can you please provide an explanation on this? Your help is greatly
appreciated.

[1] https://wso2.org/jira/browse/BPS-912

Thank You
Erandi

-- 
*Chathurika Erandi*
Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-10-15 Thread Nuwan Wimalasekara
Hi Rajjaz,

This might happen due to version mismatch of stub versions. Can you please
check the ServiceAdminStub version in ESB and dependency version in test
module.

Thanks,
Nuwanw

On Thu, Oct 15, 2015 at 12:30 PM, Rajjaz Mohammed  wrote:

> Hi Nuwan,
> i solved that error as you mentioned and now its producing new error [3]
> but if i include proxy manually inside the ESB zip before start the esb
> test work fine. full log [4]
>
>
> [3] Failed tests:   init(org.wso2.carbon.connector.ejb2XIntegrationTest):
> org.apache.axis2.databinding.ADBException: Unexpected subelement {
> http://mgt.service.carbon.wso2.org/xsd}CAppArtifact
>   destroy(org.wso2.carbon.connector.ejb2XIntegrationTest):
> org.apache.axis2.databinding.ADBException: Unexpected subelement {
> http://mgt.service.carbon.wso2.org/xsd}CAppArtifact
>
> [4]
> [2015-10-15 12:23:18,958]  INFO
> {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient}
> -  Proxy Added
> [2015-10-15 12:23:18,962]  INFO
> {org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils} -  simpleProxy
> Proxy Uploaded
> [2015-10-15 12:23:19,967]  INFO
> {org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils} -  waiting 3
> millis for Proxy deployment simpleProxy
> [2015-10-15 12:25:20,490]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2015-10-15 12:24:36,337]  WARN - CarbonAuthenticationUtil Failed
> Administrator login attempt 'admin[-1234]' at [2015-10-15 12:24:36,337+0530]
> [2015-10-15 12:25:20,939]  INFO
> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
> [2015-10-15 12:24:40,380]  INFO - CarbonAuthenticationUtil
> 'admin@carbon.super [-1234]' logged in at [2015-10-15 12:24:40,380+0530]
> [2015-10-15 12:25:49,690]  INFO
> {org.wso2.carbon.automation.core.PlatformTestManager} -  Running the test
> method ---
> org.wso2.carbon.connector.ejb2XIntegrationTest.testPassThroughProxy 
> [2015-10-15 12:25:49,696]  WARN
> {org.wso2.carbon.automation.core.PlatformTestManager} -  On Test Skipped
> [2015-10-15 12:25:49,699]  INFO
> {org.wso2.carbon.automation.core.PlatformTestManager} -  --Test
> Skipped null
> FAILED CONFIGURATION: @BeforeClass init
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
> Unexpected subelement {http://mgt.service.carbon.wso2.org/xsd}CAppArtifact
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> at
> org.wso2.carbon.service.mgt.stub.ServiceAdminStub.fromOM(ServiceAdminStub.java:12981)
> at
> org.wso2.carbon.service.mgt.stub.ServiceAdminStub.listServices(ServiceAdminStub.java:8219)
> at
> org.wso2.carbon.automation.api.clients.service.mgt.ServiceAdminClient.listServices(ServiceAdminClient.java:87)
> at
> org.wso2.carbon.automation.api.clients.service.mgt.ServiceAdminClient.isServiceExists(ServiceAdminClient.java:126)
> at
> org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.isProxyDeployed(ESBTestCaseUtils.java:521)
> at
> org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.verifySynapseDeployment(ESBTestCaseUtils.java:1522)
> at
> org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.updateESBConfiguration(ESBTestCaseUtils.java:337)
> at
> org.wso2.carbon.esb.ESBIntegrationTest.updateESBConfiguration(ESBIntegrationTest.java:194)
> at
> org.wso2.carbon.esb.ESBIntegrationTest.loadESBConfigurationFromClasspath(ESBIntegrationTest.java:180)
> at
> org.wso2.carbon.connector.ejb2XIntegrationTest.init(ejb2XIntegrationTest.java:52)
> 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:84)
> at
> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
> at
> org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)
> at org.testng.TestRunner.run(TestRunner.java:617)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
> at 

Re: [Dev] WSO2 MSS JAX-RS Runtime Features

2015-10-15 Thread Samiyuru Senarathne
Hi Sameera,

Please find the details you requested in the mail "WSO2 MSS JAX-RS Runtime
Design Decisions" in architecture list.

Best Regards,
Samiyuru

On Thu, Oct 15, 2015 at 11:16 AM, Sameera Jayasoma  wrote:

> +1. Since we are providing a subset of JAX-RC specification, we need to be
> clear on what we support. Otherwise we will get into trouble later. This
> got to be a public doc.
>
> Initially we forked netty-http to process JAX-RC annotations, but later
> decided to completely revamp that implementation. Can you give us a summary
> of the changes we have introduced.
>
> Thanks,
> Sameera.
>
> On Thu, Oct 15, 2015 at 10:39 AM, Samiyuru Senarathne 
> wrote:
>
>> Sure, we will.
>>
>> On Thu, Oct 15, 2015 at 10:33 AM, Sagara Gunathunga 
>> wrote:
>>
>>>
>>> Shall we also create a doc with all JAX-RS annotations, extensions and
>>> mentioning what MSS supported and what not supported ?
>>>
>>> Thanks !
>>>
>>> On Thu, Oct 15, 2015 at 10:30 AM, Samiyuru Senarathne >> > wrote:
>>>
 Hi,

 We have been developing our own JAX-RS runtime for WSO2 Micro Services
 Server (MSS). The purpose of that runtime is not to support the full JAX-RS
 specification but to support a subset of the JAX-RS specification plus a
 set of additional features focusing on performance and lightweightness to
 run microservices.

 With latest development work currently the MSS JAX-RS runtime supports
 the following features.

- The runtime can process annotated POJO JAX-RS resource classes
and their annotated methods to create REST service endpoints for valid
resource methods.
- The runtime supports the following class level annotations.
   - @Path - Root path for resource methods
   - @Consumes - Default consume media type(s) for resource methods
   - @Produces - Default produce media type(s) for resource methods
- Supports the following method level annotations.
   - @Path - Endpoint of the method relative to @Path of the class
   - @Consumes - Media type(s) that the method can consume
   - @Produces - Media type(s) that is produced by the method
   - @GET - HTTP GET method
   - @PUT - HTTP PUT method
   - @POST - HTTP POST method
   - @DELETE - HTTP DELETE method
- Supports the following parameter level annotations.
   - @DefaultValue - Specify a default parameter value
   - @Context - Inject additional objects. Currently supports
   injection of io.netty.handler.codec.http.HttpRequest and
   org.wso2.carbon.mss.HttpResponder
   - @PathParam - /StockQuote/{*symbol*} to get value of symbol
   - @QueryParam - /Students?*age=18* to get value of age
   - @HeaderParam - To read HTTP request header values
- Supports returning POJO from resource methods to response by xml
or json and getting injected POJO to resource methods for request bodies
that are json or xml.
- Supports returning *javax.ws.rs.core.Response* objects from
resource methods to send HTTP responses in a more customised way.

 Product-MSS repository url: https://github.com/wso2/product-mss

 Best Regards,
 Samiyuru
 --
 Samiyuru Senarathne
 *Software Engineer*
 Mobile : +94 (0) 71 134 6087
 samiy...@wso2.com

>>>
>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Architect; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>
>>
>> --
>> Samiyuru Senarathne
>> *Software Engineer*
>> Mobile : +94 (0) 71 134 6087
>> samiy...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
Samiyuru Senarathne
*Software Engineer*
Mobile : +94 (0) 71 134 6087
samiy...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 AppFactory 2.2.0 Milestone ​5​ Released!

2015-10-15 Thread Kasun De Silva
WSO2 AppFactory 2.2.0 Milestone ​5​ Released!

WSO2 AppFactory team is pleased to announce the release of version
2.2.0-M​5 of the WSO2 App Factory.

WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.​​
​​

*New Features & Improvements​​*

   - Stratos 4.1.3 Upgrade with Kubernetes
   - ​​​B​ug fixes


*All resolved Issues*

   - WSO2 App Factory Resolved Issues in 2.2.0-M5
   



​- ​The distribution is available to download at [1].
​- ​Source repository for App Factory can be found at [2].
​- ​Puppet manifests for App Factory can be found at [3].
- Apptypes can be found at [4].


We encourage you to report issues, documentation faults and feature
requests regarding WSO2 AppFactory through the public WSO2 AppFactory JIRA
.

[1].
https://github.com/wso2/product-af/releases/download/wso2appfactory-2.2.0-M5/wso2appfactory-2.2.0-SNAPSHOT.zip
[2]. https://github.com/wso2/product-af/tree/wso2appfactory-2.2.0-M5
[3].
https://github.com/wso2/product-af/tree/wso2appfactory-2.2.0-M5/modules/puppet-manifests
[4].
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.2.0-M5/apptypes/


*-- The WSO2 App Factory Team --*


*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : kas...@wso2.com
mobile : +94 77 794 4260
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Service provider (SaaS enabled) is not visible to tenants

2015-10-15 Thread Harshan Liyanage
Hi,

I have created a service provider (with SaaS app option enabled) in super
tenant space and configured Oauth settings. But when I try to get an oauth
token for a user in another tenant domain (wso2.com) I'm getting the below
NPE because application mgt components could not find the OAuth application
using the client-key in that tenant domain (wso2.com).

I believe making a SP as a SaaS application makes it visible to all the
tenants. We are using identity 4.6.0-M2 components. Could please someone
from IS team can look into this?

[2015-10-15 18:40:09,542] ERROR
{org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error occurred while
issuing the access token for Client ID : GuBe541o5FiUtdfQ65hs6J2pmkYa, User
ID hars...@wso2.com, Scope : [emm] and Grant Type : password
java.lang.NullPointerException
at
org.wso2.carbon.identity.application.mgt.ApplicationManagementServiceImpl.getServiceProviderNameByClientId(ApplicationManagementServiceImpl.java:594)
at
org.wso2.carbon.identity.application.mgt.ApplicationManagementServiceImpl.getServiceProviderByClientId(ApplicationManagementServiceImpl.java:648)
at
org.wso2.carbon.identity.oauth2.token.handlers.grant.PasswordGrantHandler.validateGrant(PasswordGrantHandler.java:64)
at
org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:145)
at
org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:195)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:252)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:116)
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.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:44)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at

Re: [Dev] [Private PaaS] Version command not compatible in OSX

2015-10-15 Thread Imesh Gunaratne
The below command works on both Ubuntu and OSX:
head -50 pom.xml | awk -F'>' '/SNAPSHOT/ {print $2}' | awk -F'<' '{print
$1}'

Thanks

On Thu, Oct 15, 2015 at 6:59 PM, Imesh Gunaratne  wrote:

> Hi Devs,
>
> The following command used in docker/build.sh [1] does not work in OSX:
> VERSION=`grep -oP '\K[^<]+' pom.xml| head -1`
>
> Shall we just use version text for the moment?
>
> [1]
> https://github.com/wso2/private-paas-cartridges/blob/master/wso2as/5.2.1/docker/build.sh
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Private PaaS] Version command not compatible in OSX

2015-10-15 Thread Imesh Gunaratne
Hi Devs,

The following command used in docker/build.sh [1] does not work in OSX:
VERSION=`grep -oP '\K[^<]+' pom.xml| head -1`

Shall we just use version text for the moment?

[1]
https://github.com/wso2/private-paas-cartridges/blob/master/wso2as/5.2.1/docker/build.sh

Thanks

-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Private PaaS] Version command not compatible in OSX

2015-10-15 Thread Chamila De Alwis
I think we can use printf instead of print to get to strip the new lines
and select by "version".

head -50 pom.xml | awk -F'>' '/version/ {printf $2}' | awk -F'<' '{print
$1}'


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Thu, Oct 15, 2015 at 7:14 PM, Imesh Gunaratne  wrote:

> The below command works on both Ubuntu and OSX:
> head -50 pom.xml | awk -F'>' '/SNAPSHOT/ {print $2}' | awk -F'<' '{print
> $1}'
>
> Thanks
>
> On Thu, Oct 15, 2015 at 6:59 PM, Imesh Gunaratne  wrote:
>
>> Hi Devs,
>>
>> The following command used in docker/build.sh [1] does not work in OSX:
>> VERSION=`grep -oP '\K[^<]+' pom.xml| head -1`
>>
>> Shall we just use version text for the moment?
>>
>> [1]
>> https://github.com/wso2/private-paas-cartridges/blob/master/wso2as/5.2.1/docker/build.sh
>>
>> Thanks
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>
> ___
> 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] [Architecture] [Connector + Inbound] RSS/Atom feed Connector + Inbound for WSO2 ESB

2015-10-15 Thread Rajjaz Mohammed
Hi Malaka,
i sent the PR for both inbound and connector, and i finish the
Documentation for inbound. Since connector only work with testing feed
server documentation in pending stage.
On 16 Oct 2015 08:40, "Malaka Silva"  wrote:

> Hi Rajjaz,
>
> Guess this is not added to the store yet? Can you please give an update?
>
> On Thu, Aug 27, 2015 at 12:40 PM, Rajjaz Mohammed  wrote:
>
>> Hi Mlaka,
>> Since ATOM is an IETF standard while RSS is not[1] I’m using Apache
>> abdera Framework[2] because its support with Atom Feed. even when we
>> consume the feeds as RSS using  our inbound I’m converting it into Atom and
>> then inject it as atom feed to ESB. Since we are using filter operation in
>> inbound we can only use mandatory parameters for filter operation otherwise
>> it will return NullPointException. So the mandatory parameters for Atom and
>> RSS are  title , description/summery and link only.
>>
>> [1]
>> https://shafiq2410.wordpress.com/2012/08/05/rss-vs-atom-which-one-is-better/
>> [2] https://cwiki.apache.org/confluence/display/ABDERA/
>>
>>
>> On Thu, Aug 27, 2015 at 11:12 AM, Malaka Silva  wrote:
>>
>>> Hi Rajjaz,
>>>
>>> Can we do this according to the spec.
>>>
>>> https://validator.w3.org/feed/docs/rss2.html
>>>
>>> On Thu, Aug 27, 2015 at 10:43 AM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi All,
 In My case Atom/RSS feed Inbound + Connector I’m working with these
 parameters so is there any Suggestions on it? because we can expand the
 feed elements[1] more but it may create errors . below one is the standard
 Structure and common for all feeds(Atom/RSS) .

 mandatory parameters

 titleThe title of the item.
 descriptionThe item synopsis.

 optional parameters
 authorOwner of the feed
 pubDateIndicates when the item was published



 [1] http://www.rssboard.org/rss-specification

 On Thu, Aug 27, 2015 at 10:38 AM, Rajjaz Mohammed 
 wrote:

> *sorry to all above mails are sent because of short key press
>
>
>
> On Thu, Aug 27, 2015 at 10:37 AM, Rajjaz Mohammed 
> wrote:
>
>> Hi All,
>> In My case Atom/RSS feed Connector
>>
>> mandatory parameters
>>
>> *Element**Description*
>> *title*The title of the item.
>> *link*The URL of the item.
>> *description*The item synopsis.
>>
>> authorEmail   address of the author of the item
>> pubDateIndicates when the item was published
>>
>> On Thu, Aug 27, 2015 at 10:36 AM, Rajjaz Mohammed 
>> wrote:
>>
>>> Hi All,
>>> In My case Atom/RSS feed Connector
>>>
>>> mandatory parameters
>>>
>>> *Element**Description*
>>> *title*The title of the item.
>>> *link*The URL of the item.
>>> *description*The item synopsis.
>>>
>>> authorEmail address of the author of the item
>>>
>>>
>>>
>>> On Thu, Aug 13, 2015 at 12:38 PM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi All,
 In My case Atom/RSS feed Connector I’m getting challenge is 3rd
 party backends are not allowing 3rd party to modify access to feeds 
 but we
 can produce the feeds our self. in case Blogger feed editing is not
 available in api Documentation but it can possible using apache abdera
 framework Libraries (According to they Documentation) but when i try 
 using
 they authentication method I’m getting null value reply from google 
 and for
 the case of wordpress they not allowing to edit feeds rather then read
 feeds.

 i have an idea that using our vfs(file) protocol we can read the
 files in hosting and most of the feeds are storing inside the site in 
 XML
 format so can we access that files using vfs and edit that XML files 
 and
 update it back to the site? is that possible?

 On Tue, Aug 11, 2015 at 3:35 PM, Rajjaz Mohammed 
 wrote:

> Use Case Diagram
>
>
> https://docs.google.com/a/wso2.com/document/d/1XpqU3z7xbKUb20N5ttvje3wdIR4DuydKqz1iiwAAeEY/edit?usp=sharing
>
> On Thu, Jul 30, 2015 at 6:35 PM, Malaka Silva 
> wrote:
>
>> Looks good
>>
>> On Thu, Jul 30, 2015 at 5:25 PM, Rajjaz Mohammed > > wrote:
>>
>>> Hi Malaka,
>>> as you mentioned implementation will be polling inbound and
>>> Connector for Atom/RSS feed. i will post diagram soon after study 
>>> further
>>> about Apache abdera framework working flow.
>>>
>>> here is my Milestone plan
>>>
>>>
>>> 

Re: [Dev] [Architecture] [Connector + Inbound] RSS/Atom feed Connector + Inbound for WSO2 ESB

2015-10-15 Thread Malaka Silva
Hi Rajjaz,

Guess this is not added to the store yet? Can you please give an update?

On Thu, Aug 27, 2015 at 12:40 PM, Rajjaz Mohammed  wrote:

> Hi Mlaka,
> Since ATOM is an IETF standard while RSS is not[1] I’m using Apache abdera
> Framework[2] because its support with Atom Feed. even when we consume the
> feeds as RSS using  our inbound I’m converting it into Atom and then inject
> it as atom feed to ESB. Since we are using filter operation in inbound we
> can only use mandatory parameters for filter operation otherwise it will
> return NullPointException. So the mandatory parameters for Atom and RSS
> are  title , description/summery and link only.
>
> [1]
> https://shafiq2410.wordpress.com/2012/08/05/rss-vs-atom-which-one-is-better/
> [2] https://cwiki.apache.org/confluence/display/ABDERA/
>
>
> On Thu, Aug 27, 2015 at 11:12 AM, Malaka Silva  wrote:
>
>> Hi Rajjaz,
>>
>> Can we do this according to the spec.
>>
>> https://validator.w3.org/feed/docs/rss2.html
>>
>> On Thu, Aug 27, 2015 at 10:43 AM, Rajjaz Mohammed 
>> wrote:
>>
>>> Hi All,
>>> In My case Atom/RSS feed Inbound + Connector I’m working with these
>>> parameters so is there any Suggestions on it? because we can expand the
>>> feed elements[1] more but it may create errors . below one is the standard
>>> Structure and common for all feeds(Atom/RSS) .
>>>
>>> mandatory parameters
>>>
>>> titleThe title of the item.
>>> descriptionThe item synopsis.
>>>
>>> optional parameters
>>> authorOwner of the feed
>>> pubDateIndicates when the item was published
>>>
>>>
>>>
>>> [1] http://www.rssboard.org/rss-specification
>>>
>>> On Thu, Aug 27, 2015 at 10:38 AM, Rajjaz Mohammed 
>>> wrote:
>>>
 *sorry to all above mails are sent because of short key press



 On Thu, Aug 27, 2015 at 10:37 AM, Rajjaz Mohammed 
 wrote:

> Hi All,
> In My case Atom/RSS feed Connector
>
> mandatory parameters
>
> *Element**Description*
> *title*The title of the item.
> *link*The URL of the item.
> *description*The item synopsis.
>
> authorEmail   address of the author of the item
> pubDateIndicates when the item was published
>
> On Thu, Aug 27, 2015 at 10:36 AM, Rajjaz Mohammed 
> wrote:
>
>> Hi All,
>> In My case Atom/RSS feed Connector
>>
>> mandatory parameters
>>
>> *Element**Description*
>> *title*The title of the item.
>> *link*The URL of the item.
>> *description*The item synopsis.
>>
>> authorEmail address of the author of the item
>>
>>
>>
>> On Thu, Aug 13, 2015 at 12:38 PM, Rajjaz Mohammed 
>> wrote:
>>
>>> Hi All,
>>> In My case Atom/RSS feed Connector I’m getting challenge is 3rd
>>> party backends are not allowing 3rd party to modify access to feeds but 
>>> we
>>> can produce the feeds our self. in case Blogger feed editing is not
>>> available in api Documentation but it can possible using apache abdera
>>> framework Libraries (According to they Documentation) but when i try 
>>> using
>>> they authentication method I’m getting null value reply from google and 
>>> for
>>> the case of wordpress they not allowing to edit feeds rather then read
>>> feeds.
>>>
>>> i have an idea that using our vfs(file) protocol we can read the
>>> files in hosting and most of the feeds are storing inside the site in 
>>> XML
>>> format so can we access that files using vfs and edit that XML files and
>>> update it back to the site? is that possible?
>>>
>>> On Tue, Aug 11, 2015 at 3:35 PM, Rajjaz Mohammed 
>>> wrote:
>>>
 Use Case Diagram


 https://docs.google.com/a/wso2.com/document/d/1XpqU3z7xbKUb20N5ttvje3wdIR4DuydKqz1iiwAAeEY/edit?usp=sharing

 On Thu, Jul 30, 2015 at 6:35 PM, Malaka Silva 
 wrote:

> Looks good
>
> On Thu, Jul 30, 2015 at 5:25 PM, Rajjaz Mohammed 
> wrote:
>
>> Hi Malaka,
>> as you mentioned implementation will be polling inbound and
>> Connector for Atom/RSS feed. i will post diagram soon after study 
>> further
>> about Apache abdera framework working flow.
>>
>> here is my Milestone plan
>>
>>
>> https://docs.google.com/a/wso2.com/spreadsheets/d/12wFJ1l0ffkOirvLSzO5A7T4ySiH3pIaQlQtp6fHGgX4/edit?usp=sharing
>>
>> On Thu, Jul 30, 2015 at 10:33 AM, Malaka Silva 
>> wrote:
>>
>>> Hi Rajjaz,
>>>
>>> Above implementation is going to be polling inbound and a
>>> connector for sending right?
>>>
>>> Can you provide more info on this 

Re: [Dev] Enabling security with user name token

2015-10-15 Thread Rajith Vitharana
Hi Hasintha,

I was able to resolve the error with help of ESB team, There was an error
in our deployment flow as well. How ever when we use Soap UI, it still
doesn't send the security headers itself, where as we have to manually add
the security header to the request

This was working fine with earlier ESB versions (4.8.0 where security was
enabled via security management UI) the same flow doesn't work in ESB
4.9.0. In DSS as well, this is the case now (have to add authorization
header manually).

Soap UI version I'm using is 5.0.0

Thanks,

On Thu, Oct 15, 2015 at 2:45 PM, Hasintha Indrajee 
wrote:

> Are you calling the service with security headers in the request it self
> ?.
>
> On Wed, Oct 14, 2015 at 8:37 PM, Rajith Vitharana 
> wrote:
>
>> Hi Hasintha,
>>
>> We are using carbon-identity 4.5.6
>>
>> @Firzan we are using [1] as the policy file which contains the element
>> you mentioned above.
>>
>> [1] -
>> http://svn.wso2.org/repos/wso2/people/isuruu/qos/synapse-configs/default/local-entries/p1.xml
>>
>> Thanks,
>>
>> On Wed, Oct 14, 2015 at 5:12 PM, Hasintha Indrajee 
>> wrote:
>>
>>> Can you please tell me the carbon-identity version you are using ?
>>>
>>> On Wed, Oct 14, 2015 at 3:04 PM, Rajith Vitharana 
>>> wrote:
>>>
 + Asela

 On Wed, Oct 14, 2015 at 1:13 PM, Rajith Vitharana 
 wrote:

> Hi,
>
> I have enabled security in DSS service specifying the policy file
> (roles included in the policy). But when invoking the service with 
> username
> password, it throws below exception.
>
> java.lang.ClassCastException: org.apache.axiom.om.impl.dom.ElementImpl
> cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
> at
> org.wso2.carbon.security.pox.POXSecurityHandler.isSOAPWithoutSecHeader(POXSecurityHandler.java:362)
> at
> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:102)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
> at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:515)
> at
> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433)
> at
> org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398)
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188)
> at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 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.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> 

Re: [Dev] [JS] how tosend headers with redirect in Javascript

2015-10-15 Thread Shani Ranasinghe
[+ WSO2 Dev]

On Fri, Oct 16, 2015 at 10:12 AM, Shani Ranasinghe  wrote:

>
> Hi,
>
> I have a requirement where I need to do a redirect from a Javascript, and
> I need to send some headers along with it too.
>
> The scenario is as follows.
>
> From my jaggery layer, I use a JS.At the JS, I receive a callbackURL  & a
> workflow reference Id, I need to pass this to the external party to which I
> would redirect so that they could use those information to communicate back
> to the APIM.  It is better if we can send this via headers from the JS
> (because in HTTPS headers will be secured).
>
> Cookies, is not a good choice, as browsers can disable them, Forms put in
> an additional popup & notifies that the data is transmitted insecurely,
> hence forms are not a good option as well.
>
> Could we use XMLHttpRequest for this? however, we are not expecting a
> response.
>
> Are there any other alternatives?
>
> Any help is appreciated.
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> Blog: http://waysandmeans.blogspot.com/
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



-- 
Thanks and Regards
*,Shani Ranasinghe*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
Blog: http://waysandmeans.blogspot.com/
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] - Performance test - Long running

2015-10-15 Thread Hasitha Aravinda
Hi Chathurika,

On Fri, Oct 16, 2015 at 9:47 AM, Chathurika De Silva 
wrote:

> Furthermore, following WARNING is observed frequently in the cluster at
> the 4th day of the long running test
>
> TID: [-1] [] [2015-10-16 03:58:45,455]  WARN
> {org.apache.ode.scheduler.simple.SimpleScheduler} -  Dispatching jobs with
> more than 5 minutes delay. Either the server was down for some time or the
> job load is greater than available capacity
> {org.apache.ode.scheduler.simple.SimpleScheduler}
>
>
​ODE gives this warning when there is a high load on BPS server. Because of
the load, some immediate jobs are getting queued in scheduler. As Warning
msg says, there are jobs which are older than 5 mins in job queue.

To over come this issue, you can increase number of ODE scheduler threads
along with number of DB connections allocated to BPS data source and
allocated sessions from database server. However due to database
contentions, you can't increase this number beyond a certain
limit.
​This value is mainly depend on performance of your DB and BPS vms.

​


> Also although i clean up the database once in every day at the 4th day of
> the test, the database ran out of space and had to alter by adding another
> datafile. What is the recommended frequency for the cleanup?
>
>
​Based on your test parameters, you are generating a heavy load. I would
suggest to clean db every day. Use DB clean scripts for this. Disable ODE
clean up task in bps.xml as it consumes ODE scheduler threads to clean up
db.

Thanks,
Hasitha.
 ​

> Please find the test parameters in [1]
>
> [1] https://wso2.org/jira/browse/BPS-912
>
>
> On Thu, Oct 15, 2015 at 3:14 PM, Chathurika De Silva  > wrote:
>
>> Hi
>>
>> While running the $subject on a manager, 2 worker cluster, noticed a
>> dis-ambiguity reported in [1]
>>
>> Can you please provide an explanation on this? Your help is greatly
>> appreciated.
>>
>> [1] https://wso2.org/jira/browse/BPS-912
>>
>> Thank You
>> Erandi
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>
>
>
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.blogspot.com
>



-- 
--
Hasitha Aravinda,
Senior Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [Connector + Inbound] RSS/Atom feed Connector + Inbound for WSO2 ESB

2015-10-15 Thread Malaka Silva
I think this is good for the initial version. Can you work with kathees and
add this to the store.

I guess this is in production ready state now. Have we done the load and
long running tests?

On Fri, Oct 16, 2015 at 9:10 AM, Rajjaz Mohammed  wrote:

> Hi Malaka,
> i sent the PR for both inbound and connector, and i finish the
> Documentation for inbound. Since connector only work with testing feed
> server documentation in pending stage.
> On 16 Oct 2015 08:40, "Malaka Silva"  wrote:
>
>> Hi Rajjaz,
>>
>> Guess this is not added to the store yet? Can you please give an update?
>>
>> On Thu, Aug 27, 2015 at 12:40 PM, Rajjaz Mohammed 
>> wrote:
>>
>>> Hi Mlaka,
>>> Since ATOM is an IETF standard while RSS is not[1] I’m using Apache
>>> abdera Framework[2] because its support with Atom Feed. even when we
>>> consume the feeds as RSS using  our inbound I’m converting it into Atom and
>>> then inject it as atom feed to ESB. Since we are using filter operation in
>>> inbound we can only use mandatory parameters for filter operation otherwise
>>> it will return NullPointException. So the mandatory parameters for Atom and
>>> RSS are  title , description/summery and link only.
>>>
>>> [1]
>>> https://shafiq2410.wordpress.com/2012/08/05/rss-vs-atom-which-one-is-better/
>>> [2] https://cwiki.apache.org/confluence/display/ABDERA/
>>>
>>>
>>> On Thu, Aug 27, 2015 at 11:12 AM, Malaka Silva  wrote:
>>>
 Hi Rajjaz,

 Can we do this according to the spec.

 https://validator.w3.org/feed/docs/rss2.html

 On Thu, Aug 27, 2015 at 10:43 AM, Rajjaz Mohammed 
 wrote:

> Hi All,
> In My case Atom/RSS feed Inbound + Connector I’m working with these
> parameters so is there any Suggestions on it? because we can expand the
> feed elements[1] more but it may create errors . below one is the standard
> Structure and common for all feeds(Atom/RSS) .
>
> mandatory parameters
>
> titleThe title of the item.
> descriptionThe item synopsis.
>
> optional parameters
> authorOwner of the feed
> pubDateIndicates when the item was published
>
>
>
> [1] http://www.rssboard.org/rss-specification
>
> On Thu, Aug 27, 2015 at 10:38 AM, Rajjaz Mohammed 
> wrote:
>
>> *sorry to all above mails are sent because of short key press
>>
>>
>>
>> On Thu, Aug 27, 2015 at 10:37 AM, Rajjaz Mohammed 
>> wrote:
>>
>>> Hi All,
>>> In My case Atom/RSS feed Connector
>>>
>>> mandatory parameters
>>>
>>> *Element**Description*
>>> *title*The title of the item.
>>> *link*The URL of the item.
>>> *description*The item synopsis.
>>>
>>> authorEmail   address of the author of the item
>>> pubDateIndicates when the item was published
>>>
>>> On Thu, Aug 27, 2015 at 10:36 AM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi All,
 In My case Atom/RSS feed Connector

 mandatory parameters

 *Element**Description*
 *title*The title of the item.
 *link*The URL of the item.
 *description*The item synopsis.

 authorEmail address of the author of the item



 On Thu, Aug 13, 2015 at 12:38 PM, Rajjaz Mohammed 
 wrote:

> Hi All,
> In My case Atom/RSS feed Connector I’m getting challenge is 3rd
> party backends are not allowing 3rd party to modify access to feeds 
> but we
> can produce the feeds our self. in case Blogger feed editing is not
> available in api Documentation but it can possible using apache abdera
> framework Libraries (According to they Documentation) but when i try 
> using
> they authentication method I’m getting null value reply from google 
> and for
> the case of wordpress they not allowing to edit feeds rather then read
> feeds.
>
> i have an idea that using our vfs(file) protocol we can read the
> files in hosting and most of the feeds are storing inside the site in 
> XML
> format so can we access that files using vfs and edit that XML files 
> and
> update it back to the site? is that possible?
>
> On Tue, Aug 11, 2015 at 3:35 PM, Rajjaz Mohammed 
> wrote:
>
>> Use Case Diagram
>>
>>
>> https://docs.google.com/a/wso2.com/document/d/1XpqU3z7xbKUb20N5ttvje3wdIR4DuydKqz1iiwAAeEY/edit?usp=sharing
>>
>> On Thu, Jul 30, 2015 at 6:35 PM, Malaka Silva 
>> wrote:
>>
>>> Looks good
>>>
>>> On Thu, Jul 30, 2015 at 5:25 PM, Rajjaz Mohammed <
>>> 

Re: [Dev] [BPS] - Performance test - Long running

2015-10-15 Thread Chathurika De Silva
Furthermore, following WARNING is observed frequently in the cluster at the
4th day of the long running test

TID: [-1] [] [2015-10-16 03:58:45,455]  WARN
{org.apache.ode.scheduler.simple.SimpleScheduler} -  Dispatching jobs with
more than 5 minutes delay. Either the server was down for some time or the
job load is greater than available capacity
{org.apache.ode.scheduler.simple.SimpleScheduler}

Also although i clean up the database once in every day at the 4th day of
the test, the database ran out of space and had to alter by adding another
datafile. What is the recommended frequency for the cleanup?

Please find the test parameters in [1]

[1] https://wso2.org/jira/browse/BPS-912


On Thu, Oct 15, 2015 at 3:14 PM, Chathurika De Silva 
wrote:

> Hi
>
> While running the $subject on a manager, 2 worker cluster, noticed a
> dis-ambiguity reported in [1]
>
> Can you please provide an explanation on this? Your help is greatly
> appreciated.
>
> [1] https://wso2.org/jira/browse/BPS-912
>
> Thank You
> Erandi
>
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.blogspot.com
>



-- 
*Chathurika Erandi*
Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.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-15 Thread Johann Nallathamby
Hi Kishanthan/Kernel Team,

We have added the test case as well to the same PR.

Also can we get CARBON-15505 merged? The PR for master is a very old PR
which we have missed to review and merge. This mainly contains some
reordering of fields in the UI to make it more consistent and reorder
properties in user-mgt.xml to be consistent with UI. Hope we don't need any
tests for this.

Any update on the 3 issues raised above ?

Thanks,
Johann.

On Thu, Oct 15, 2015 at 3:30 PM, Johann Nallathamby  wrote:

> Hi Kishanthan/Kernel Team,
>
> We are in the process writing the test case for the issue. Should be able
> to send it before end of day.
>
> [1] has been reported in another thread. This issue in particular looks
> critical to me, because AFAIK there are many users using proxyContextPath.
> Not sure about WebContextRoot though. Apart from that WSO2 QA has reported
> [2,3] in IS 5.1.0 SNAPSHOT pack. May be its harmless, but looks like it is
> coming from kernel and would like to get your thoughts on this if this is
> critical and needs to be fixed.
>
> [1] https://wso2.org/jira/browse/CARBON-15475
> [2] https://wso2.org/jira/browse/IDENTITY-3815
> [3] https://wso2.org/jira/browse/IDENTITY-3817
>
> And also it will be great if we can change the default value of
> XSSPreventionConfig.Enabled to 'false' because this was added in order to
> prevent XSS centrally, however the approach is not 100% bug free. Whoever
> has this enabled needs to test all their functionality well. Therefore what
> I suggest is to make it 'false' by default and whatever product that needs
> it can enable it at product level. WDYT ? Can we do this ?
>
> Regards,
> Johann.
>
>
> On Wed, Oct 14, 2015 at 6:30 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Can we also have test case for this fix please?
>>
>> On Wed, Oct 14, 2015 at 6:13 PM, Isura Karunaratne 
>> wrote:
>>
>>> Hi,
>>>
>>> This issue is fixed in [1].
>>>
>>>
>>> Thanks
>>> isura
>>>
>>>
>>> [1] https://wso2.org/jira/browse/CARBON-15517
>>>
>>>
>>> On Wed, Oct 14, 2015 at 11:25 AM, Johann Nallathamby 
>>> wrote:
>>>
 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,
> 

[Dev] [EMM][JAGGERY]Jaggery XML parsing

2015-10-15 Thread Inosh Perera
Hi all,

When working with SAML2Bearer grant type, in our Jaggery app, we need to
extract the SAML Assertion from the SAML response, and we tried as bellow,

var assertionXML = new XML(decode(assertion));
var extractedAssertion = assertionXML..*::["Assertion"].toXMLString();

When doing so, it seem to be adding formatting to XML, which causes,
signature validation issues in IS side. Is there a way to extract the
assertion without formatting?

Regards,
Inosh

-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] - Performance test - Long running

2015-10-15 Thread Vinod Kavinda
Hi Chathurika,
The first error you have reported is a known issue in hazelcast if you
interrupted a node. Please refer [2] for more info. There is a fix given.
No idea either we have included it in latest fixes of hazelcast.

The second warning message is logged, when a batch of jobs are enqueued
after a certain max delay time. Just to inform that they are delayed jobs.
The warning message explains the reasons itself.


[2] - https://github.com/hazelcast/hazelcast/issues/1815

Regards,
Vinod Kavinda

On Fri, Oct 16, 2015 at 9:47 AM, Chathurika De Silva 
wrote:

> Furthermore, following WARNING is observed frequently in the cluster at
> the 4th day of the long running test
>
> TID: [-1] [] [2015-10-16 03:58:45,455]  WARN
> {org.apache.ode.scheduler.simple.SimpleScheduler} -  Dispatching jobs with
> more than 5 minutes delay. Either the server was down for some time or the
> job load is greater than available capacity
> {org.apache.ode.scheduler.simple.SimpleScheduler}
>
> Also although i clean up the database once in every day at the 4th day of
> the test, the database ran out of space and had to alter by adding another
> datafile. What is the recommended frequency for the cleanup?
>
> Please find the test parameters in [1]
>
> [1] https://wso2.org/jira/browse/BPS-912
>
>
> On Thu, Oct 15, 2015 at 3:14 PM, Chathurika De Silva  > wrote:
>
>> Hi
>>
>> While running the $subject on a manager, 2 worker cluster, noticed a
>> dis-ambiguity reported in [1]
>>
>> Can you please provide an explanation on this? Your help is greatly
>> appreciated.
>>
>> [1] https://wso2.org/jira/browse/BPS-912
>>
>> Thank You
>> Erandi
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>
>
>
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] - Performance test - Long running

2015-10-15 Thread Vinod Kavinda
Hi Chathurika,

Missed the last part.

The required frequency for database cleanup depends on the request
frequency and the space available for DB. So it is hard to give a
recommended frequency.

Regards,
Vinod Kavinda

On Fri, Oct 16, 2015 at 10:18 AM, Vinod Kavinda  wrote:

> Hi Chathurika,
> The first error you have reported is a known issue in hazelcast if you
> interrupted a node. Please refer [2] for more info. There is a fix given.
> No idea either we have included it in latest fixes of hazelcast.
>
> The second warning message is logged, when a batch of jobs are enqueued
> after a certain max delay time. Just to inform that they are delayed jobs.
> The warning message explains the reasons itself.
>
>
> [2] - https://github.com/hazelcast/hazelcast/issues/1815
>
> Regards,
> Vinod Kavinda
>
> On Fri, Oct 16, 2015 at 9:47 AM, Chathurika De Silva  > wrote:
>
>> Furthermore, following WARNING is observed frequently in the cluster at
>> the 4th day of the long running test
>>
>> TID: [-1] [] [2015-10-16 03:58:45,455]  WARN
>> {org.apache.ode.scheduler.simple.SimpleScheduler} -  Dispatching jobs with
>> more than 5 minutes delay. Either the server was down for some time or the
>> job load is greater than available capacity
>> {org.apache.ode.scheduler.simple.SimpleScheduler}
>>
>> Also although i clean up the database once in every day at the 4th day of
>> the test, the database ran out of space and had to alter by adding another
>> datafile. What is the recommended frequency for the cleanup?
>>
>> Please find the test parameters in [1]
>>
>> [1] https://wso2.org/jira/browse/BPS-912
>>
>>
>> On Thu, Oct 15, 2015 at 3:14 PM, Chathurika De Silva <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi
>>>
>>> While running the $subject on a manager, 2 worker cluster, noticed a
>>> dis-ambiguity reported in [1]
>>>
>>> Can you please provide an explanation on this? Your help is greatly
>>> appreciated.
>>>
>>> [1] https://wso2.org/jira/browse/BPS-912
>>>
>>> Thank You
>>> Erandi
>>>
>>> --
>>> *Chathurika Erandi*
>>> Software Engineer,
>>> WSO2 Inc.
>>>
>>> *E-mail:* chathuri...@wso2.com
>>> *Mobile: *+94714 328 612
>>> *Blog*: chathurikaerandi.blogspot.com
>>>
>>
>>
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Null pointer exception from api gateway component when logging as the tenant-admin

2015-10-15 Thread Harshan Liyanage
Hi all,

We have put "synapse" as the gateway type. Changing it to none resolved the
issue. Thanks for the feedback.

Regards,

Harshan Liyanage
Software Engineer
Mobile: *+94724423048*
Email: hars...@wso2.com
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.

On Thu, Oct 15, 2015 at 10:14 AM, Uvindra Dias Jayasinha 
wrote:

> Ok, to confirm what Amila is saying, Harsha can you check the value of the
> ** element in the api-manager.xml of MDM? The value should
> be *None*.
>
>
>
> On 15 October 2015 at 10:05, Amila De Silva  wrote:
>
>> Hi Uvindra,
>>
>> IIRC TenantServiceCreator ( the task which deploys synapse artifacts upon
>> a TenantLoading) is only registered, if the Gateway type is Synapse. If we
>>  set it to None, then that task should not get registered.
>>
>>
>> On Thursday, October 15, 2015, Uvindra Dias Jayasinha 
>> wrote:
>>
>>> Hi Harsha,
>>>
>>> This seems to be happening because you dont have the default sequences
>>> that are shipped with the APIM pack. When you login to the tenant for the
>>> first time the sequence are copied over to that tenant space, but you dont
>>> have these in the MDM pack. The Error and Warning above the NPE also shows
>>> that this is the case.
>>>
>>> We have not handled the scenario where the gateway feature would be used
>>> in when an actual synapse gateway does not exist. We need to validate the
>>> gateway type and only carry this step out if the gateway type is synapse to
>>> avoid the NPE.
>>>
>>> On 14 October 2015 at 23:07, Harshan Liyanage  wrote:
>>>
 Hi all,

 I'm getting the below exception when logging as the tenant-admin
 (latest EMM build). We are
 using org.wso2.carbon.apimgt.gateway.feature.group version 4.3.0-SNAPSHOT
 at the moment.

 Could please someone from APIM team can shed a light on this issue?

 [2015-10-14 23:00:18,924] hars...@wso2.com [1] [MDM] WARN
 {org.wso2.carbon.apimgt.gateway.internal.TenantServiceCreator} -  Could not
 create
 /home/harshan/development/cdm/wso2mdm-2.0.0-SNAPSHOT/repository/tenants/1/synapse-configs/default/sequences
 [2015-10-14 23:00:18,925] hars...@wso2.com [1] [MDM]ERROR
 {org.wso2.carbon.apimgt.gateway.internal.TenantServiceCreator} -  Error
 while reading API manager specific synapse
 sequencesjava.io.FileNotFoundException: File
 '/home/harshan/development/cdm/wso2mdm-2.0.0-SNAPSHOT/repository/resources/apim-synapse-config/_auth_failure_handler_.xml'
 does not exist
 [2015-10-14 23:00:18,927] hars...@wso2.com [1] [MDM]ERROR
 {org.wso2.carbon.apimgt.gateway.internal.TenantServiceCreator} -  Couldn't
 serialise the initial synapse configuration for the domain : wso2.com
 java.lang.NullPointerException
 at
 org.apache.synapse.config.xml.MultiXMLConfigurationSerializer.serializeSequence(MultiXMLConfigurationSerializer.java:470)
 at
 org.wso2.carbon.apimgt.gateway.internal.TenantServiceCreator.createTenantSynapseConfigHierarchy(TenantServiceCreator.java:234)
 at
 org.wso2.carbon.apimgt.gateway.internal.TenantServiceCreator.createdConfigurationContext(TenantServiceCreator.java:141)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:357)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:148)
 at
 org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:134)
 at
 org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:117)
 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)
 at