Hi Senaka/Dushan,

This is fixed in revision 130234.

Thanks
AmilaJ

On Fri, Jun 15, 2012 at 7:58 AM, Amila Jayasekara <[email protected]> wrote:
> Hi Senaka,
>
> Let me check into this issue.
>
> Thanks
> AmilaJ
>
> On Fri, Jun 15, 2012 at 1:27 AM, Senaka Fernando <[email protected]> wrote:
>> Hi AmilaJ,
>>
>> I think the initialization is not happening properly when using the login
>> with remember me. IIRC, we had similar issues with the login (without
>> remember me) method in the past, which you fixed. Can you check?
>>
>> Thanks,
>> Senaka.
>>
>>
>> On Thu, Jun 14, 2012 at 9:56 PM, Dushan Abeyruwan <[email protected]> wrote:
>>>
>>> Hi
>>>    Please refer the following jiras reported
>>>              https://wso2.org/jira/browse/ESBJAVA-1036
>>>              https://wso2.org/jira/browse/CARBON-13142
>>>
>>> Can be reproduced as
>>>
>>> Hi
>>>   This happens due to the bug in Remember Me function, Initially it wont
>>> visible, the way to recreate is
>>>
>>>     1. Before login click "Remember Me" then login
>>>     2. Then shutdown the server and restart it again
>>>     3. Re-login click any of the list given in the description you will
>>> find error similar to this
>>>
>>> After analysis found when "Remember Me" login enables
>>> the getGovernanceRegistry() returns Null thus all the pages who calls the
>>> above method will be broken, I made NPE chekings but would prefer to give a
>>> proper solution at the CARBON_CORE level, I see this
>>> method getGovernanceRegistry() is depriciated so hope this will get
>>> removed?? then what would be proper way of calling
>>>
>>> AbstractAdmin.java
>>> -------------------------------
>>>  /**
>>>      * @deprecated Use either getGovernanceSystemRegistry or
>>> getGovernanceUserRegistry
>>>      * @return Governance User Registry
>>>      */
>>>     @Deprecated protected Registry getGovernanceRegistry() {
>>>         return getGovernanceUserRegistry();
>>>     }
>>>
>>>     protected Registry getGovernanceUserRegistry() {
>>>         return (Registry) CarbonContext.getCurrentContext().getRegistry(
>>>                 RegistryType.USER_GOVERNANCE);
>>>     }
>>>
>>> e.g Sample usage
>>> ------------------------------------
>>>
>>> EndpointTemplateEditorAdmin.java
>>>     public EndpointTemplateInfo[] getDynamicEndpointTemplates(int
>>> pageNumber, int endpointTemplatesPerPage) throws AxisFault {
>>>         org.wso2.carbon.registry.core.Registry registry;
>>>         EndpointTemplateInfo[] ret;
>>>         final Lock lock = getLock();
>>>         try {
>>>             lock.lock();
>>>             String[] configInfo = getConfigSystemRegistry()
>>> !=null?getMimeTypeResult(getConfigSystemRegistry()) :new String[0];
>>>             String[] govInfo = getGovernanceRegistry()
>>> !=null?getMimeTypeResult(getGovernanceRegistry()): new String[0];
>>>             String[] info = new String[configInfo.length +
>>> govInfo.length];
>>>
>>>
>>>
>>> --
>>> Dushan Abeyruwan
>>> Senior Software Engineer
>>> Integration Technologies Team
>>> WSO2 Inc. http://wso2.com/
>>> Mobile:(+94)714408632
>>>
>>> On Thu, Jun 14, 2012 at 6:11 PM, Dushan Abeyruwan <[email protected]> wrote:
>>>>
>>>>
>>>>
>>>> ---------- Forwarded message ----------
>>>> From: Amila Jayasekara <[email protected]>
>>>> Date: Thu, Jun 14, 2012 at 5:10 PM
>>>> Subject: Re: Error -Remember Me Carbon login UI
>>>> To: Dushan Abeyruwan <[email protected]>
>>>>
>>>>
>>>> Hi Dushan,
>>>>
>>>> This could possible be due to the non-serializable objects we put
>>>> inside session. If we put a non-serializable object that will not get
>>>> persisted during session persistence. So once you restart, the session
>>>> will get restored. But non-serializable objects will not be there in
>>>> the session.
>>>>
>>>> In earlier releases we disabled session persistence. So when you
>>>> restart the server and if someone try to invoke a service he will be
>>>> re-authenticated. Basically will be directed to dashboard. (Since you
>>>> have enabled remember me). But now we have enabled session persistence
>>>> and after a restart we have the sessions and according to session user
>>>> is already authenticated. But current JSP page might be referring to
>>>> non-serialized objects which are not persisted during restart.
>>>>
>>>> So to solve this we need to figure to which non-serializable object it
>>>> is trying to invoke. Either we have to make it serializable or else we
>>>> have to handle the situation of not having object in the session.
>>>>
>>>> Thanks
>>>> AmilaJ
>>>>
>>>>
>>>>
>>>> On Thu, Jun 14, 2012 at 2:59 PM, Dushan Abeyruwan <[email protected]>
>>>> wrote:
>>>> > Hi
>>>> >  Regarding the following issue
>>>> > https://wso2.org/jira/browse/CARBON-13142
>>>> >  and the QA team informed that this has already reported can you please
>>>> > let
>>>> > me know any update on this ASAP
>>>> >
>>>> > How to recreate
>>>> > ------------------------
>>>> >     1. Before login click "Remember Me" then login
>>>> >     2. Then shutdown the server and restart it again
>>>> >     3. Re-login click any of the list given in the description you will
>>>> > find
>>>> > error similar to this
>>>> >              -14 14:50:29,523] INFO - CarbonUIServiceComponent Mgt
>>>> > Console
>>>> > URL : https://10.200.3.173:9443/carbon/
>>>> > [2012-06-14 14:50:36,559] ERROR - SequenceAdmin Unable to get Dynamic
>>>> > Sequence Info
>>>> > java.lang.NullPointerException
>>>> > at
>>>> >
>>>> > org.wso2.carbon.sequences.services.SequenceAdmin.getMimeTypeResult(SequenceAdmin.java:180)
>>>> > at
>>>> >
>>>> > org.wso2.carbon.sequences.services.SequenceAdmin.getDynamicSequences(SequenceAdmin.java:128)
>>>> > 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(AbstractInOutMessageRecei
>>>> >
>>>> > cheers,
>>>> > Dushan Abeyruwan
>>>> > Senior Software Engineer
>>>> > Integration Technologies Team
>>>> > WSO2 Inc. http://wso2.com/
>>>> > Mobile:(+94)714408632
>>>>
>>>>
>>>>
>>>> --
>>>> Mobile : +94773330538
>>>>
>>>>
>>>>
>>>> --
>>>> Dushan Abeyruwan
>>>> Senior Software Engineer
>>>> Integration Technologies Team
>>>> WSO2 Inc. http://wso2.com/
>>>> Mobile:(+94)714408632
>>>>
>>>
>>>
>>>
>>> --
>>> Dushan Abeyruwan
>>> Senior Software Engineer
>>> Integration Technologies Team
>>> WSO2 Inc. http://wso2.com/
>>> Mobile:(+94)714408632
>>>
>>
>>
>>
>> --
>> Senaka Fernando
>> Member - Integration Technologies Management Committee;
>> Technical Lead; WSO2 Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> P: +1 408 754 7388; ext: 51736; M: +94 77 322 1818
>> Linked-In: http://linkedin.com/in/senakafernando
>>
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
> Mobile : +94773330538



-- 
Mobile : +94773330538
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to