[Dev] org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase testcase failing after changing port offsets

2015-09-03 Thread Manuri Amaya Perera
​​Hi Nuwan,

According to our offline discussion I set the carbon home system property
in CarbonServerWithReadWriteLdapUSerStoreExtension inside onExecutionStart
method. Now the problem in carbon home not being set is solved.

Now, when running the testcase these exceptions occur and build fails.

configureServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
 Time elapsed: 2,284.473 sec  <<< FAILURE!
org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
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.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1563)
at
org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
at
org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)

restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
 Time elapsed: 0.003 sec  <<< FAILURE!
java.lang.NullPointerException: null
at
org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)

I think these are authorization issues relevant to LDAP. Can you be of any
help regarding this ?

Thank you.


-- 

*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


Re: [Dev] org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase testcase failing after changing port offsets

2015-09-03 Thread Nuwan Wimalasekara
Hi Manuri,

in ReadOnlyLDAPUserStoreManagerTestCase,  UserStoreManager configuration is
changed in user-mgt.xml for read only user store. user-mgt.xml is kept in
the artifacts/AS/configs/readonlyldap/user-mgt.xml and the LDAP url is hard
coded in this resource.

ldap://localhost:10389

Please change the URL as below since the server is starting with port
offset(100) now. Otherwise it will failed to start the server with read
only user store configuration

ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}

Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera 
wrote:

> ​​Hi Nuwan,
>
> According to our offline discussion I set the carbon home system property
> in CarbonServerWithReadWriteLdapUSerStoreExtension inside onExecutionStart
> method. Now the problem in carbon home not being set is solved.
>
> Now, when running the testcase these exceptions occur and build fails.
>
> configureServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>  Time elapsed: 2,284.473 sec  <<< FAILURE!
> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
> at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
> 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.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1563)
> at
> org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
> at
> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)
>
> restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>  Time elapsed: 0.003 sec  <<< FAILURE!
> java.lang.NullPointerException: null
> at
> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)
>
> I think these are authorization issues relevant to LDAP. Can you be of any
> help regarding this ?
>
> Thank you.
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase testcase failing after changing port offsets

2015-09-03 Thread Manuri Amaya Perera
Hi Nuwan,

Build is successful. Thank you.

On Thu, Sep 3, 2015 at 6:16 PM, Nuwan Wimalasekara  wrote:

> Hi Manuri
>
> There is a port bind exception in the log file. Seems the LDAP server is
> not shutdown properly. Please kill the process before executing the tests.
>
> ERR_171 Failed to bind an LDAP service (10,489) to the service registry.
>
> Thanks,
> Nuwanw
>
> On Thu, Sep 3, 2015 at 6:12 PM, Manuri Amaya Perera 
> wrote:
>
>> Please find the attached logs.
>>
>> On Thu, Sep 3, 2015 at 6:08 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Can you please share the full log of the test module tests-ldap-userstore
>>>
>>> On Thu, Sep 3, 2015 at 6:04 PM, Manuri Amaya Perera 
>>> wrote:
>>>
 Hi Nuwan,

 I changed it but now there is some other exception.

 org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException:
 UserAdminUserAdminException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at java.lang.Class.newInstance(Class.java:379)
 at
 org.wso2.carbon.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1577)
 at
 org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
 at
 org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)

 restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
  Time elapsed: 0.002 sec  <<< FAILURE!
 java.lang.NullPointerException: null
 at
 org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)

 Thank you.

 On Thu, Sep 3, 2015 at 5:29 PM, Nuwan Wimalasekara 
 wrote:

> Hi Manuri,
>
> in ReadOnlyLDAPUserStoreManagerTestCase,  UserStoreManager
> configuration is changed in user-mgt.xml for read only user store.
> user-mgt.xml is kept in the artifacts/AS/configs/readonlyldap/user-mgt.xml
> and the LDAP url is hard coded in this resource.
>
> ldap://localhost:10389
>
> Please change the URL as below since the server is starting with port
> offset(100) now. Otherwise it will failed to start the server with read
> only user store configuration
>
>  name="ConnectionURL">ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}
>
> Thanks,
> Nuwanw
>
> On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera 
> wrote:
>
>> ​​Hi Nuwan,
>>
>> According to our offline discussion I set the carbon home system
>> property in CarbonServerWithReadWriteLdapUSerStoreExtension
>> inside onExecutionStart method. Now the problem in carbon home not being
>> set is solved.
>>
>> Now, when running the testcase these exceptions occur and build fails.
>>
>> configureServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>>  Time elapsed: 2,284.473 sec  <<< FAILURE!
>> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
>> at
>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
>> at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>> 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.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1563)
>> at
>> org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
>> at
>> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)
>>
>> restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>>  Time elapsed: 0.003 

Re: [Dev] org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase testcase failing after changing port offsets

2015-09-03 Thread Nuwan Wimalasekara
Hi Manuri

There is a port bind exception in the log file. Seems the LDAP server is
not shutdown properly. Please kill the process before executing the tests.

ERR_171 Failed to bind an LDAP service (10,489) to the service registry.

Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 6:12 PM, Manuri Amaya Perera 
wrote:

> Please find the attached logs.
>
> On Thu, Sep 3, 2015 at 6:08 PM, Nuwan Wimalasekara 
> wrote:
>
>> Can you please share the full log of the test module tests-ldap-userstore
>>
>> On Thu, Sep 3, 2015 at 6:04 PM, Manuri Amaya Perera 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> I changed it but now there is some other exception.
>>>
>>> org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException:
>>> UserAdminUserAdminException
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>> at java.lang.Class.newInstance(Class.java:379)
>>> at
>>> org.wso2.carbon.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1577)
>>> at
>>> org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
>>> at
>>> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)
>>>
>>> restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>>>  Time elapsed: 0.002 sec  <<< FAILURE!
>>> java.lang.NullPointerException: null
>>> at
>>> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)
>>>
>>> Thank you.
>>>
>>> On Thu, Sep 3, 2015 at 5:29 PM, Nuwan Wimalasekara 
>>> wrote:
>>>
 Hi Manuri,

 in ReadOnlyLDAPUserStoreManagerTestCase,  UserStoreManager
 configuration is changed in user-mgt.xml for read only user store.
 user-mgt.xml is kept in the artifacts/AS/configs/readonlyldap/user-mgt.xml
 and the LDAP url is hard coded in this resource.

 ldap://localhost:10389

 Please change the URL as below since the server is starting with port
 offset(100) now. Otherwise it will failed to start the server with read
 only user store configuration

 >>> name="ConnectionURL">ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}

 Thanks,
 Nuwanw

 On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera 
 wrote:

> ​​Hi Nuwan,
>
> According to our offline discussion I set the carbon home system
> property in CarbonServerWithReadWriteLdapUSerStoreExtension
> inside onExecutionStart method. Now the problem in carbon home not being
> set is solved.
>
> Now, when running the testcase these exceptions occur and build fails.
>
> configureServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>  Time elapsed: 2,284.473 sec  <<< FAILURE!
> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
> at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
> 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.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1563)
> at
> org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
> at
> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)
>
> restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>  Time elapsed: 0.003 sec  <<< FAILURE!
> java.lang.NullPointerException: null
> at
> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)
>
> I think 

Re: [Dev] org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase testcase failing after changing port offsets

2015-09-03 Thread Manuri Amaya Perera
Hi Nuwan,

I changed it but now there is some other exception.

org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException:
UserAdminUserAdminException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:379)
at
org.wso2.carbon.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1577)
at
org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
at
org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)

restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
 Time elapsed: 0.002 sec  <<< FAILURE!
java.lang.NullPointerException: null
at
org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)

Thank you.

On Thu, Sep 3, 2015 at 5:29 PM, Nuwan Wimalasekara  wrote:

> Hi Manuri,
>
> in ReadOnlyLDAPUserStoreManagerTestCase,  UserStoreManager configuration
> is changed in user-mgt.xml for read only user store. user-mgt.xml is kept
> in the artifacts/AS/configs/readonlyldap/user-mgt.xml and the LDAP url is
> hard coded in this resource.
>
> ldap://localhost:10389
>
> Please change the URL as below since the server is starting with port
> offset(100) now. Otherwise it will failed to start the server with read
> only user store configuration
>
>  name="ConnectionURL">ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}
>
> Thanks,
> Nuwanw
>
> On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera 
> wrote:
>
>> ​​Hi Nuwan,
>>
>> According to our offline discussion I set the carbon home system property
>> in CarbonServerWithReadWriteLdapUSerStoreExtension inside onExecutionStart
>> method. Now the problem in carbon home not being set is solved.
>>
>> Now, when running the testcase these exceptions occur and build fails.
>>
>> configureServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>>  Time elapsed: 2,284.473 sec  <<< FAILURE!
>> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
>> at
>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
>> at
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>> at
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>> 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.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1563)
>> at
>> org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
>> at
>> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)
>>
>> restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>>  Time elapsed: 0.003 sec  <<< FAILURE!
>> java.lang.NullPointerException: null
>> at
>> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)
>>
>> I think these are authorization issues relevant to LDAP. Can you be of
>> any help regarding this ?
>>
>> Thank you.
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 

*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


Re: [Dev] org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase testcase failing after changing port offsets

2015-09-03 Thread Nuwan Wimalasekara
Can you please share the full log of the test module tests-ldap-userstore

On Thu, Sep 3, 2015 at 6:04 PM, Manuri Amaya Perera 
wrote:

> Hi Nuwan,
>
> I changed it but now there is some other exception.
>
> org.wso2.carbon.user.mgt.stub.UserAdminUserAdminException:
> UserAdminUserAdminException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at java.lang.Class.newInstance(Class.java:379)
> at
> org.wso2.carbon.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1577)
> at
> org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
> at
> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)
>
> restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>  Time elapsed: 0.002 sec  <<< FAILURE!
> java.lang.NullPointerException: null
> at
> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)
>
> Thank you.
>
> On Thu, Sep 3, 2015 at 5:29 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Manuri,
>>
>> in ReadOnlyLDAPUserStoreManagerTestCase,  UserStoreManager configuration
>> is changed in user-mgt.xml for read only user store. user-mgt.xml is kept
>> in the artifacts/AS/configs/readonlyldap/user-mgt.xml and the LDAP url is
>> hard coded in this resource.
>>
>> ldap://localhost:10389
>>
>> Please change the URL as below since the server is starting with port
>> offset(100) now. Otherwise it will failed to start the server with read
>> only user store configuration
>>
>> > name="ConnectionURL">ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}
>>
>> Thanks,
>> Nuwanw
>>
>> On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera 
>> wrote:
>>
>>> ​​Hi Nuwan,
>>>
>>> According to our offline discussion I set the carbon home system
>>> property in CarbonServerWithReadWriteLdapUSerStoreExtension
>>> inside onExecutionStart method. Now the problem in carbon home not being
>>> set is solved.
>>>
>>> Now, when running the testcase these exceptions occur and build fails.
>>>
>>> configureServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>>>  Time elapsed: 2,284.473 sec  <<< FAILURE!
>>> org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
>>> at
>>> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330)
>>> at
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196)
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
>>> at
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>>> at
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>>> 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.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1563)
>>> at
>>> org.wso2.carbon.integration.common.admin.client.UserManagementClient.addUser(UserManagementClient.java:89)
>>> at
>>> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.configureServer(ReadOnlyLDAPUserStoreManagerTestCase.java:68)
>>>
>>> restoreServer(org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase)
>>>  Time elapsed: 0.003 sec  <<< FAILURE!
>>> java.lang.NullPointerException: null
>>> at
>>> org.wso2.appserver.integration.tests.readonlyldap.ReadOnlyLDAPUserStoreManagerTestCase.restoreServer(ReadOnlyLDAPUserStoreManagerTestCase.java:225)
>>>
>>> I think these are authorization issues relevant to LDAP. Can you be of
>>> any help regarding this ?
>>>
>>> Thank you.
>>>
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
>