Skip to Content
author's profile photo Former Member
Former Member

iView ( Bean lost data )

Hi ,

I am using jspdynpage(application scope) and stored all the values in bean.i have 3 iView page.i passed some values from iview1 ->2 -->3. if i am not doing anything for more than 5 mins in my 3rd iView page and again go back to iView page 2 i lost alost all my bean values.so i am getting null pointer exception(portal runtime error).

if i play around continously in all 3 iViews , i didnt get any error.

is there any reason my bean lost data?

regds,

Anto.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2004 at 09:30 AM

    Hi,

    depending on where you put the bean:

    componentSession - depending on HttpSession timeout.

    profile/context - subject to garbage collection & portal component cleanup.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2004 at 09:56 AM

    Hi Armin,

    I am using application scope .

    regds,

    Anto

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2004 at 02:43 PM

    Hi!

    I had the same Problem using "Context" and "application" scope. I also tried "Profile", "Request" and "Session".

    "Session" worked best => nothing gets lost !

    IPortalComponentSession componentSession = componentRequest.getComponentSession();

    STORE:

    componentSession.putValue("mybean", mybean);

    GET:

    mybean = (BeanClass)componentSession.getValue("mybean");

    In the JSP:

    <jsp:useBean id="mybean" scope="session" class="com.ecs.cfr.bean.BeanClass" />

    Regards Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 21, 2005 at 01:25 PM

    Hi all,

    SAP has released note 802015 about the different ways how to store data of a portal component. Please have a look.

    Best regards,

    Norbert Hamann

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.