Error : content is not available

Hi, I use pdeploy deploy ... to deploy the portlet to portal server. I got the error message "Error : content is not available" when I look atthe portlet on the portal desk top. What should I setup to solve this problem ?Can someone help me
[298 byte] By [ili1259cheng] at [2007-11-26 10:50:16]
# 1
Check the logs in /var/opt/SUNWam/debug
dgothe at 2007-7-7 3:02:49 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

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!

ili1259cheng at 2007-7-7 3:02:49 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3
Hi,Were you able to resolve the problem?I am facing the same error here....thx.
novicess at 2007-7-7 3:02:49 > top of Java-index,Web & Directory Servers,Portal Servers...
# 4
hi,i m alos facing the same problem. if any one of you have found out the solution please let me know.its very urgent.thanks.
sumeet_agr at 2007-7-7 3:02:49 > top of Java-index,Web & Directory Servers,Portal Servers...
# 5

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

novicess at 2007-7-7 3:02:49 > top of Java-index,Web & Directory Servers,Portal Servers...
# 6

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

sumeet_agr at 2007-7-7 3:02:49 > top of Java-index,Web & Directory Servers,Portal Servers...