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

Error running a Dynpage

Hello All,

I am having problems while running a component from NWDS. I got a par file from one of our portals PORTAL1 and added the following jar files - htmlb, htmlb_api and servlet from plugins. I deployed this par file on PORTAL2. Deployment was successful without any errors but when I run the component (from portalapp.xml) I am getting the following error:

java.lang.NullPointerException at doInitialization()

at com.sapportals.htmlb.page.PageProcessor.........

I think line - "request.getComponentContext" in doInitialization() method is throwing this exception.

Also, I am getting this error only when I run the component after deploying the par file on PORTAL2. When I deploy it on PORTAL1 ( portal with original par file), and run the component, I am not getting any errors.

Am I missing something here? Do I need to include any Jar files in my project?

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2008 at 12:38 PM

    Hi,

    i think u wud have solved your problem, but i am giving this solution bcoz it may b useful.

    the null pionter exception is being thrown since the request object which u r using is not getting instantiated, since the method doInitialization() does not have any parameters which can get u the request object.

    can u be a bit more clearer in ur doubt so that i can help u??

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2008 at 04:37 PM

    Hi Srikanth,

    Thanks for your response.

    My main problem is that this par file works on another portal without any problem. If something is wrong with the code, it should not be working on any portal.

    If the Request object is not instantiated on this portal - is something wrong with the installation? Did we miss anything?

    Even if I create a project from scratch and deploy it on PORTAL2 - I am getting the same error. It works fine if deployed on PORTAL1.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi sailaja,

      the following would be a better solution

      check this:::

      you can do one thing for checking whether your installation is correct or not.

      First write a simple application and check whether it is working fine or not on the portal2. if it works then u can come to a conclusion that there is a problem with ur application.

      If so, pls paste the code here so that I can review that.

      If there is problem running the simple application too then try installing the portal again.

      Hope this tip works and resolves this issue.

  • Posted on May 28, 2008 at 07:51 AM

    Hi Sailaja,

    Have you added the HTMLB sharing reference in your portlaapp.xml???

    hope this problem is from your portalapp.xml.... try checking it ones again...

    one more thing u can do is... create a iview for this PAR in your PORTAL2 and check from there through iView preview...

    Regards,

    Srinivas.

    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.