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

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Manuri
​​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.


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

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. 

<Property name="ConnectionURL">ldap://localhost:10389</Property>

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

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

Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera <[hidden email]> 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.




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

phone: +94 71 668 4620




_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

Manuri
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 <[hidden email]> 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. 

<Property name="ConnectionURL">ldap://localhost:10389</Property>

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

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

Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera <[hidden email]> 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.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

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 <[hidden email]> 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 <[hidden email]> 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. 

<Property name="ConnectionURL">ldap://localhost:10389</Property>

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

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

Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera <[hidden email]> 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.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.




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

phone: +94 71 668 4620




_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

Manuri
Please find the attached logs.

On Thu, Sep 3, 2015 at 6:08 PM, Nuwan Wimalasekara <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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. 

<Property name="ConnectionURL">ldap://localhost:10389</Property>

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

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

Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera <[hidden email]> 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.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev

ldap-userstore-log.txt (148K) Download Attachment
testng-results.xml (16K) Download Attachment
automation.log (155K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

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

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 <[hidden email]> wrote:
Please find the attached logs.

On Thu, Sep 3, 2015 at 6:08 PM, Nuwan Wimalasekara <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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. 

<Property name="ConnectionURL">ldap://localhost:10389</Property>

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

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

Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera <[hidden email]> 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.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.




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

phone: +94 71 668 4620




_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

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

Manuri
Hi Nuwan,

Build is successful. Thank you.

On Thu, Sep 3, 2015 at 6:16 PM, Nuwan Wimalasekara <[hidden email]> 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 <[hidden email]> wrote:
Please find the attached logs.

On Thu, Sep 3, 2015 at 6:08 PM, Nuwan Wimalasekara <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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. 

<Property name="ConnectionURL">ldap://localhost:10389</Property>

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

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

Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 4:48 PM, Manuri Amaya Perera <[hidden email]> 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.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.




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

phone: <a href="tel:%2B94%2071%20668%204620" value="+94716684620" target="_blank">+94 71 668 4620






--
Manuri Amaya Perera
Software Engineer
WSO2 Inc.


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev