On Sun, Dec 11, 2011 at 1:48 PM, Harshana Martin <[email protected]> wrote:
> Hi Azeez, Hasini, > > On Sun, Dec 11, 2011 at 1:42 PM, Hasini Gunasinghe <[email protected]>wrote: > >> Hi Azeez, >> >> I encountered this during carbon-3.2.0 release time and reported in [1]. >> But I didn't get response to it. >> >> IMO, this should be fixed at carbon-core/integration-test level. >> >> Not only IS, but any product that persist data during an integration test >> cycle can face this issue as I've mentioned in [1]. >> >> [1] >> http://old.nabble.com/Issue-with-integration-tests---carbontmp-doesn't-get-deleted-at-the-completion-of-a-test-cycle.-td31219266.html >> > > One thing we can do is to run clean plugin regardless of the command. But > is it the proper fix? or the test itself should remove persisted data at > the end of the test execution? > Forcing a clean only for the integration modules should be OK IMO. > > Thanks and Regards, > Harshana > >> >> >> <http://old.nabble.com/Issue-with-integration-tests---carbontmp-doesn't-get-deleted-at-the-completion-of-a-test-cycle.-td31219266.html> >> Thanks, >> Hasini. >> >> On Sun, Dec 11, 2011 at 1:11 PM, Afkham Azeez <[email protected]> wrote: >> >>> Running User Admin Tests... >>> [2011-12-11 13:09:16,631] INFO >>> {org.wso2.carbon.integration.core.AuthenticateStub} - AuthenticateStub : >>> Stub created with session JSESSIONID=4A873F31456A4A788095633B9CB6E65F; >>> Path=/; Secure=null; HttpOnly=null >>> [2011-12-11 13:09:21,406] ERROR >>> {org.wso2.carbon.user.core.ldap.ApacheDSUserStoreManager} - Can not access >>> the directory context oruser already exists in the system >>> javax.naming.NameAlreadyBoundException: [LDAP: error code 68 - >>> ENTRY_ALREADY_EXISTS: failed for Add Request : >>> ClientEntry >>> dn: uid=User2,ou=Users,dc=wso2,dc=org >>> objectClass: wso2Person >>> uid: User2 >>> sn: User2 >>> userPassword: '0x7B 0x53 0x48 0x41 0x7D 0x75 0x35 0x37 0x30 0x36 >>> 0x43 0x4A 0x43 0x76 0x45 0x50 ...' >>> cn: User2 >>> : ERR_250 uid=User2,ou=Users,dc=wso2,dc=org already exists!]; remaining >>> name 'uid=User2' >>> at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3036) >>> at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987) >>> at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794) >>> at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:397) >>> at >>> com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:277) >>> at >>> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:197) >>> at >>> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:186) >>> at >>> org.wso2.carbon.user.core.ldap.ApacheDSUserStoreManager.addUser(ApacheDSUserStoreManager.java:277) >>> at >>> org.wso2.carbon.user.mgt.UserRealmProxy.addUser(UserRealmProxy.java:218) >>> at org.wso2.carbon.user.mgt.UserAdmin.addUser(UserAdmin.java:107) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at >>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) >>> at >>> org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) >>> at >>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) >>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) >>> at >>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) >>> at >>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) >>> at >>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:206) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >>> at >>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) >>> at >>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) >>> at >>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >>> at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>> at >>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) >>> at >>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) >>> at >>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) >>> at >>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) >>> at >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) >>> at >>> org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154) >>> at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:257) >>> at >>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) >>> at >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>> at >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) >>> at >>> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396) >>> at >>> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356) >>> at >>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>> at java.lang.Thread.run(Thread.java:680) >>> [2011-12-11 13:09:21,410] ERROR >>> {org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver} - Can not access >>> the directory context oruser already exists in the system >>> org.wso2.carbon.user.mgt.common.UserAdminException: Can not access the >>> directory context oruser already exists in the system >>> at >>> org.wso2.carbon.user.mgt.UserRealmProxy.addUser(UserRealmProxy.java:221) >>> at org.wso2.carbon.user.mgt.UserAdmin.addUser(UserAdmin.java:107) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at >>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) >>> at >>> org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) >>> at >>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) >>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) >>> at >>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) >>> at >>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) >>> at >>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:206) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >>> at >>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) >>> at >>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) >>> at >>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >>> at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) >>> at >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>> at >>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) >>> at >>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) >>> at >>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) >>> at >>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) >>> at >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) >>> at >>> org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154) >>> at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:257) >>> at >>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) >>> at >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>> at >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399) >>> at >>> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396) >>> at >>> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356) >>> at >>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>> at java.lang.Thread.run(Thread.java:680) >>> Caused by: org.wso2.carbon.user.core.UserStoreException: Can not access >>> the directory context oruser already exists in the system >>> at >>> org.wso2.carbon.user.core.ldap.ApacheDSUserStoreManager.addUser(ApacheDSUserStoreManager.java:305) >>> at >>> org.wso2.carbon.user.mgt.UserRealmProxy.addUser(UserRealmProxy.java:218) >>> ... 38 more >>> Caused by: javax.naming.NameAlreadyBoundException: [LDAP: error code 68 >>> - ENTRY_ALREADY_EXISTS: failed for Add Request : >>> ClientEntry >>> dn: uid=User2,ou=Users,dc=wso2,dc=org >>> objectClass: wso2Person >>> uid: User2 >>> sn: User2 >>> userPassword: '0x7B 0x53 0x48 0x41 0x7D 0x75 0x35 0x37 0x30 0x36 >>> 0x43 0x4A 0x43 0x76 0x45 0x50 ...' >>> cn: User2 >>> : ERR_250 uid=User2,ou=Users,dc=wso2,dc=org already exists!]; remaining >>> name 'uid=User2' >>> at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3036) >>> at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987) >>> at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794) >>> at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:397) >>> at >>> com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:277) >>> at >>> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:197) >>> at >>> com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:186) >>> at >>> org.wso2.carbon.user.core.ldap.ApacheDSUserStoreManager.addUser(ApacheDSUserStoreManager.java:277) >>> ... 39 more >>> [2011-12-11 13:09:21,612] ERROR {UserAdminTest} - Error in running >>> integration tests over user admin service... >>> org.apache.axis2.AxisFault: Can not access the directory context oruser >>> already exists in the system >>> at >>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) >>> at >>> org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91) >>> at >>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) >>> at >>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) >>> at >>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) >>> at >>> org.wso2.carbon.user.mgt.stub.UserAdminStub.addUser(UserAdminStub.java:1298) >>> at UserAdminTest.addUserWithRole(UserAdminTest.java:143) >>> at UserAdminTest.runSuccessCase(UserAdminTest.java:76) >>> at >>> org.wso2.carbon.integration.core.TestTemplate.testTemplate(TestTemplate.java:44) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at junit.framework.TestCase.runTest(TestCase.java:164) >>> at junit.framework.TestCase.runBare(TestCase.java:130) >>> at junit.framework.TestResult$1.protect(TestResult.java:106) >>> at junit.framework.TestResult.runProtected(TestResult.java:124) >>> at junit.framework.TestResult.run(TestResult.java:109) >>> at junit.framework.TestCase.run(TestCase.java:120) >>> at junit.framework.TestSuite.runTest(TestSuite.java:230) >>> at junit.framework.TestSuite.run(TestSuite.java:225) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at >>> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) >>> at >>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) >>> at >>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) >>> at org.apache.maven.surefire.Surefire.run(Surefire.java:129) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>> at java.lang.reflect.Method.invoke(Method.java:597) >>> at >>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) >>> at >>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747) >>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 49.688 >>> sec <<< FAILURE! >>> >>> Results : >>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 >>> >>> >>> -- >>> *Afkham Azeez* >>> Director of Architecture; WSO2, Inc.; http://wso2.com >>> Member; Apache Software Foundation; http://www.apache.org/ >>> * <http://www.apache.org/>** >>> email: **[email protected]* <[email protected]>* cell: +94 77 3320919 >>> blog: **http://blog.afkham.org* <http://blog.afkham.org>* >>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>> * >>> linked-in: **http://lk.linkedin.com/in/afkhamazeez* >>> * >>> * >>> *Lean . Enterprise . Middleware* >>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > -- > Harshana Martin > Software Engineer > WSO2 Inc. > Web:http://wso2.com > http://wso2.org > > Mobile: +94 716062650 > Blog: http://harshana05.blogspot.com > Profile: https://www.google.com/profiles/harshana05 > Twitter: http://twitter.com/harshana05 > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>** email: **[email protected]* <[email protected]>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware*
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
