Hi ,

This seems to be due to a missing tenant domain information in the thread.

Regards
Pulasthi


On Tue, Jul 16, 2013 at 9:58 AM, Krishantha Samaraweera <[email protected]
> wrote:

> I have run tests in tests-new module with the latest trunk pack. However
> all test test cases were failed due to graceful restart issue.
>
> Please check the stacktrace below. The server cannot be gracefully
> restarted, it throws NPE and remain on started mode.
>
> [2013-07-16 09:52:23,991] ERROR {org.wso2.carbon.registry.handler.listener
> .HandlerLoader} -  Error in adding the default handlers
> java.lang.NullPointerException
>  at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
>  at org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(
> CacheManagerFactoryImpl.java:78)
>  at org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(
> RegistryUtils.java:289)
>  at org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(
> RegistryUtils.java:272)
>  at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(
> CacheBackedRegistry.java:62)
>  at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.
> resourceExists(CacheBackedRegistry.java:246)
>  at org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(
> UserRegistry.java:629)
>  at org.wso2.carbon.registry.handler.util.CommonUtil.
> addDefaultHandlersIfNotAvailable(CommonUtil.java:838)
>  at org.wso2.carbon.registry.handler.listener.HandlerLoader.onLogin(
> HandlerLoader.java:49)
>  at org.wso2.carbon.core.services.callback.
> LoginSubscriptionManagerServiceImpl.triggerEvent(
> LoginSubscriptionManagerServiceImpl.java:42)
>  at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.
> onSuccessAdminLogin(CarbonAuthenticationUtil.java:120)
>  at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login
> (AuthenticationAdmin.java:130)
>  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.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)
>  
> atorg.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>  
> atorg.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>  at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.
> finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>  at org.apache.axis2.transport.local.LocalTransportSender.invoke(
> LocalTransportSender.java:77)
>  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>  
> atorg.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:398)
> atorg.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
>  at org.apache.axis2.client.OperationClient.execute(OperationClient.java:
> 149)
>  at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(
> AuthenticationAdminStub.java:659)
>  
> atorg.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.login(AuthenticationAdminClient.java:64)
>  at org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(
> DefaultCarbonAuthenticator.java:119)
>  at org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(
> AbstractCarbonUIAuthenticator.java:218)
>  at org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticate(
> BasicAuthUIAuthenticator.java:77)
>  at org.wso2.carbon.ui.CarbonUILoginUtil.handleLogin(
> CarbonUILoginUtil.java:342)
>  at org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(
> CarbonSecuredHttpContext.java:246)
>  at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(
> ServletRegistration.java:60)
>  
> atorg.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:848)
>  at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(
> DelegationServlet.java:68)
>  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:305)
>  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:210)
>  at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(
> CharacterSetFilter.java:61)
>  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:243)
>  at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:210)
>  at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:222)
>  at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:123)
>  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:472)
>  at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:171)
>  at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:99)
>  at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(
> CompositeValve.java:178)
>  at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(
> TomcatValveContainer.java:49)
>  at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(
> CompositeValve.java:141)
>  at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.
> invoke(CarbonStuckThreadDetectionValve.java:156)
>  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
> 936)
>  at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(
> CarbonContextCreatorValve.java:52)
>  at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:118)
>  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :407)
>  
> atorg.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> atorg.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>  
> atorg.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
> 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:662)
>
>
> Thanks,
> Krishantha.
>
> On Fri, Jul 12, 2013 at 7:00 PM, Eranda Sooriyabandara <[email protected]>wrote:
>
>> New results after the latest user-core changes.
>>
>> Succeeded - 715
>> Failed - 27
>> Skipped - 39
>>
>>
>> On Thu, Jul 11, 2013 at 11:43 AM, Krishantha Samaraweera <
>> [email protected]> wrote:
>>
>>> I have seen this issue when restarting G-Reg gracefully. The G-Reg
>>> server restart multiple times to change configurations while running tests.
>>> Sometime the server hangs at restart. Can you please check when the test
>>> get hangs and please share the test logs. You can find the test log at the
>>> target/logs directory.
>>>
>>> Also you need to allocate enough memory to surefire process. And make
>>> sure to have adequate ulimit value. As a practice, I normally stop all
>>> work when running G-Reg tests on my machine. Otherwise tests will get
>>> affected.
>>>
>>> Can you get a separate builder machine and do a test run again.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Thu, Jul 11, 2013 at 11:11 AM, Eranda Sooriyabandara <[email protected]
>>> > wrote:
>>>
>>>> Hi Krishantha,
>>>> I encounter a problem of running the tests-new module where it hangs
>>>> after some time and I couldn't able to run the tests completely. I think
>>>> other team members encounter the same problem.
>>>> Please advise.
>>>>
>>>> thanks
>>>> Eranda
>>>>
>>>>
>>>> On Thu, Jul 11, 2013 at 11:01 AM, Krishantha Samaraweera <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi G-Reg team,
>>>>>
>>>>> Are you fixing tests included in tests-new module as well ?
>>>>>
>>>>> This module contains around 900 test cases.
>>>>>
>>>>> Thanks,
>>>>> Krishantha.
>>>>>
>>>>> On Thu, Jul 11, 2013 at 9:45 AM, Lasith Chandrasekara <[email protected]
>>>>> > wrote:
>>>>>
>>>>>> G-Reg integration test results (based on yesterday evening svnupdate)
>>>>>>
>>>>>> Passed - 727
>>>>>> Failed - 16
>>>>>> Skipped - 38
>>>>>>
>>>>>>
>>>>>> On Mon, Jul 8, 2013 at 10:25 AM, Eranda Sooriyabandara <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> G-Reg integration test results
>>>>>>> Passed - 726
>>>>>>> Failed - 17
>>>>>>> Skipped - 38
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Jul 3, 2013 at 8:23 AM, Eranda Sooriyabandara <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> G-Reg integration test results
>>>>>>>> Passed - 676
>>>>>>>> Failed - 62
>>>>>>>> Skipped - 53
>>>>>>>>
>>>>>>>> Attaching the surefire-reports. Will be attaching the tests-new
>>>>>>>> results once finished.
>>>>>>>>
>>>>>>>> @G-Reg team,
>>>>>>>> Please start fixing the integration tests and send a group mail
>>>>>>>> with the test name you fixing to avoid conflicts.
>>>>>>>>
>>>>>>>> thanks
>>>>>>>>  Eranda
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Eranda Sooriyabandara
>>>>>>>> *Senior Software Engineer;
>>>>>>>> Integration Technologies Team;
>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>> Lean . Enterprise . Middleware
>>>>>>>>
>>>>>>>> E-mail: eranda AT wso2.com
>>>>>>>> Mobile: +94 716 472 816
>>>>>>>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
>>>>>>>> Blog: http://emsooriyabandara.blogspot.com/
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> *
>>>>>>>> *
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Eranda Sooriyabandara
>>>>>>> *Senior Software Engineer;
>>>>>>> Integration Technologies Team;
>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>> Lean . Enterprise . Middleware
>>>>>>>
>>>>>>> E-mail: eranda AT wso2.com
>>>>>>> Mobile: +94 716 472 816
>>>>>>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
>>>>>>> Blog: http://emsooriyabandara.blogspot.com/
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *
>>>>>>> *
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Eranda Sooriyabandara
>>>> *Senior Software Engineer;
>>>> Integration Technologies Team;
>>>> WSO2 Inc.; http://wso2.com
>>>> Lean . Enterprise . Middleware
>>>>
>>>> E-mail: eranda AT wso2.com
>>>> Mobile: +94 716 472 816
>>>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
>>>> Blog: http://emsooriyabandara.blogspot.com/
>>>>
>>>>
>>>>
>>>> *
>>>> *
>>>>
>>>
>>>
>>
>>
>> --
>> *Eranda Sooriyabandara
>> *Senior Software Engineer;
>> Integration Technologies Team;
>> WSO2 Inc.; http://wso2.com
>> Lean . Enterprise . Middleware
>>
>> E-mail: eranda AT wso2.com
>> Mobile: +94 716 472 816
>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
>> Blog: http://emsooriyabandara.blogspot.com/
>>
>>
>>
>> *
>> *
>>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Pulasthi Supun
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: [email protected]
Mobile: +94 (71) 9258281
Blog : http://pulasthisupun.blogspot.com/
Git hub profile: https://github.com/pulasthi
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to