On Fri, May 18, 2012 at 2:58 PM, Shammi Jayasinghe <[email protected]> wrote:

>
>
> On Fri, May 18, 2012 at 2:27 PM, Shammi Jayasinghe <[email protected]>wrote:
>
>> This problem went off once i  updated and built the complete platform and
>> kernel
>>
>> Thanks
>> Shammi
>>
>>
>> On Fri, May 18, 2012 at 2:08 PM, Isuru Wimalasundera <[email protected]>wrote:
>>
>>> Hi
>>>
>>> I am facing a similar kind of situation when restarting the Greg server.
>>> After a restart I can not open the service list page because from the
>>> ListMetaDataService it returns a NULL registry. When dig deep the reason
>>> for returning a NULL registry is identified as the following code segment
>>> of AbstractAdmin returns a NULL.
>>>
>>>
>>> CarbonContext.getCurrentContext().getRegistry(RegistryType.USER_GOVERNANCE);
>>>
>>> the CarbonContext.getCurrentContext() returns a NULL. How is it possible
>>> to overcome this issue?
>>>
>>> Hi Isuru,
>    Yes it still exists once i restarted the server. Seems some
> configuration happens at the initial start up and due to that this happens.
>

Can you first clear the browser cache after restarting the server and then
login and check if the issue still exist ?!

>
> Thanks
> Shammi
>
>
>>  Thanks
>>> Isuruw
>>>
>>>
>>> On Fri, May 18, 2012 at 12:38 PM, Shammi Jayasinghe <[email protected]>wrote:
>>>
>>>> Hi ,
>>>> I am getting following NPE [1]when trying to subscribe to a topic.  It
>>>> is due to the null value of "CarbonContext.getCurrentContext()" coming from
>>>> the following method in event.core module. I built the complete platform
>>>> yesterday. Is this a known issue ?
>>>>
>>>> Thanks
>>>> Shammi
>>>>
>>>>    public static String getLoggedInUserName() {
>>>>         String userName = "";
>>>>         if (CarbonContext.getCurrentContext().getTenantId() != 0) {
>>>>             userName = CarbonContext.getCurrentContext().getUsername()
>>>> + "@"
>>>>                     +
>>>> CarbonContext.getCurrentContext().getTenantDomain();
>>>>         } else {
>>>>             userName = CarbonContext.getCurrentContext().getUsername();
>>>>         }
>>>>         return userName.trim();
>>>>     }
>>>>
>>>>
>>>>
>>>>
>>>> [1]java.lang.NullPointerException
>>>> at
>>>> org.wso2.carbon.event.ws.internal.receivers.CarbonEventingMessageReceiver.handleSubscribe(CarbonEventingMessageReceiver.java:175)
>>>>  at
>>>> org.wso2.carbon.event.ws.internal.receivers.CarbonEventingMessageReceiver.processMessage(CarbonEventingMessageReceiver.java:386)
>>>> at
>>>> org.wso2.carbon.event.ws.internal.receivers.CarbonEventingMessageReceiver.invokeBusinessLogic(CarbonEventingMessageReceiver.java:81)
>>>>  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:205)
>>>> 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.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:45)
>>>>  at
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>  at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>>>>  at
>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>>>>  at
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>>>> at
>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:143)
>>>>  at
>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>>> at
>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>>>>  at
>>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:48)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>>>  at
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>>> at
>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
>>>>  at
>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
>>>> at
>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1620)
>>>>  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)
>>>> --
>>>> Best Regards,*
>>>>
>>>> Shammi Jayasinghe*
>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com,
>>>> mobile: +94 71 4493085
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Isuru Wimalasundera*
>>> Software Engineer;  WSO2, Inc.; http://wso2.com,
>>>  mobile: +94 77 920 5641
>>>
>>>
>>
>>
>> --
>> Best Regards,*
>>
>> Shammi Jayasinghe*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com,
>> mobile: +94 71 4493085
>>
>>
>>
>
>
> --
> Best Regards,*
>
> Shammi Jayasinghe*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com,
> mobile: +94 71 4493085
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to