cancel
Showing results for 
Search instead for 
Did you mean: 

Error running a Dynpage

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

srinivas_sistu
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

former_member254270
Participant
0 Kudos

Hi Sailaja,

I have read your question.It would be better if u paste the code here so that I can review that.Even I had a problem similar to your's which I have resolved .Looking forward for ur code.

former_member254270
Participant
0 Kudos

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.

Former Member
0 Kudos

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??