on 05-22-2008 4:36 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.