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

doInitialization() not called on application start

Hi,

I have problems to understand when doInitialization() Method in a JSPDynPage is called:

If I upload my .par file and start my application, it seems as the doInitialization() Method

is not called every FIRST time after uploading the .par file.

I inserted a

System.out.println("INIT!!!!");

in the doInit which only appears sometimes in LOG file.

The problem is that my application only works fine if the doInit is executed and my "INIT!!!!" appears in the LOG. Can anybody help me with this?!?

Thanks, and warm regards,

Christian

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2005 at 09:42 AM

    Hi again,

    even if I:

    1. remove the .par file from the server

    2. restart the server

    3. deploy the .par

    it seems like the doInitialization() Method is NOT executed...

    at least the System.out does not appear in the log.

    Any Help??

    Regards, Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2005 at 01:20 PM

    Hello!

    Thanks for your answer!

    The path is:

    D:\...\sap\J2E\JC00\j2ee\cluster\server0\log\

    Usually I get all my System.outs there in defaultTrace.xx.trc

    Sometimes I can see the statement (then my app works fine) sometimes not... then it doesn't work.

    Best Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2005 at 02:12 PM

    Hello,

    It's not the first Line and I'm not using SP2... here is a snippet:

    public DynPage getPage(){
      System.out.println("CFR: constructing DynPage!!!");
      return new DynDynPage(); 
    }
    
    public static class DynDynPage extends JSPDynPage{
      ...
      public void doInitialization(){
        IPortalComponentRequest componentRequest =   ((IPortalComponentRequest)this.getRequest());
        IPortalComponentSession componentSession = componentRequest.getComponentSession();
        IPortalComponentProfile componentProfile = componentRequest.getComponentContext().getProfile();
        IPortalComponentContext context = componentRequest.getComponentContext();
        System.out.println("CFR: INIT!!!!!!!!");
        setLang();
        sessionBean = new SessionBean();
        componentSession.putValue("sessionBean", sessionBean);
        check=false;	 
      }
    ...

    Even that

    System.out.println("CFR: constructing DynPage!!!");

    doesn't appear everytime I start the application.

    Why?!?

    Best Regards,

    Christian

    Message was edited by: Christian Frölich

    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.