Hi,
My sun portal server is installed under windows, I check the C:\Sun\AccessManager\debug\desktop.debug ,
I got the following error message.
ERROR: ProviderCaller.run(): exception thrown from Portlet_App_10_15_2006_1
com.sun.portal.providers.ProviderException: WindowProvider.getContent():container exceptioncom.sun.portal.container.ContainerException: PortletContainer.getMarkup():getting content java.lang.NullPointerException
at com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider .java:388)
at com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvide r.java:239)
at com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:2 04)
at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCalle r.java:160)
com.sun.portal.container.ContainerException: PortletContainer.getMarkup():getting content java.lang.NullPointerException
at com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContain er.java:220)
at com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider .java:386)
at com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvide r.java:239)
at com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:2 04)
at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCalle r.java:160)
java.lang.NullPointerException
at com.sun.portal.container.portlet.impl.PortletContainer.invokePAE(PortletContain er.java:409)
at com.sun.portal.container.portlet.impl.PortletContainer.getMarkup(PortletContain er.java:180)
at com.sun.portal.providers.window.WindowProvider.getPortletContent(WindowProvider .java:386)
at com.sun.portal.providers.window.WindowProvider.getContentInternal(WindowProvide r.java:239)
at com.sun.portal.providers.window.WindowProvider.getContent(WindowProvider.java:2 04)
at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCalle r.java:160)
Actually I double check the portlet code, the code is fine, no bug.
Do we need to check or setup something ?
thanks!
don't know the problem is fully solved or not , but well at least i can see my portlet on myfronttab.
i assume u use studio creator 2 to create your portlet and export it into a war file.
here what i do,
1) remove all those tags that contains your portletname in web.xml
2) then in the /tmp/portletName_portlet.xml file (after you add the war file as a new channel) You need to add tags :<portlet-preferences> ,<preference> and its value into the xml file. (refer back to the portletsamples_portlet.xml as reference).
and it should at least display the portlet.
Not so sure why such important info is not generated when the new channel is added via the amconsole. (haven't try the command yet!). Is there an issue with the deployment or is there some missing configs from the war file that is generated by the studio creator. Sun Team can you verify that?
hope this still help somebody out there......
i m answering to my question. might help someone.
here r the steps i took.
1)set debug level to ALL in PDconfig.properties file.
2)Put all the request dispatcher command in portlet class file inside try catch block.
3)Delete every thing from web.xml file except <web-app> , <display-name> </web-app>.
After these changes my portlets are running fine..
cheers.......