Skip to main content

Portlet-container and IPC in a Servlet

3 replies [Last post]
natoine
Offline
Joined: 2010-12-17
Points: 0

Hi, i'm not sure that's the good place for this topic. Sorry if it's not.
I'm trying to do IPC with portlets inside a Servlet.
I've followed the process discribed there : https://portlet-container.dev.java.net/public/UserGuide.html#Including_t...
And well it works oO
I have my two portlets in my page. But when i try to sen an event from a portlet to the other i got an error.
If i use my portlets through localhost:8080/portletdriver i have no error and my event is sent and received.
Do i try to do something not possible ?
Can somebody help me please ?
Here is my java error in my server.log file :
[#|2010-12-17T11:02:18.673+0100|SEVERE|glassfish3.0.1|com.sun.portal.portletcontainer.driver.taglib|_ThreadID=26;_ThreadName=Thread-1;|Exception thrown for PortletTestGlassfish-1.0.0.PortletSendEvent
java.lang.NullPointerException
at com.sun.portal.portletcontainer.impl.PortletContainer.getDeletedParameters(PortletContainer.java:880)
at com.sun.portal.portletcontainer.impl.PortletContainer.executeAction(PortletContainer.java:332)
at com.sun.portal.portletcontainer.invoker.WindowInvoker.processActionInternal(WindowInvoker.java:556)
at com.sun.portal.portletcontainer.invoker.WindowInvoker.processAction(WindowInvoker.java:454)
at com.sun.portal.portletcontainer.driver.PortletContent.executeAction(PortletContent.java:87)
at com.sun.portal.portletcontainer.driver.taglib.PortletTag.executeProcessAction(PortletTag.java:260)
at com.sun.portal.portletcontainer.driver.taglib.PortletTag.doStartTag(PortletTag.java:215)
at org.apache.jsp.WEB_002dINF.jsp.portlet_jsp._jspx_meth_pcdriver_portlet_0(portlet_jsp.java from :105)
at org.apache.jsp.WEB_002dINF.jsp.portlet_jsp._jspService(portlet_jsp.java from :71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:406)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:373)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:822)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:569)
at fr.natoine.PortletTestGlassfish.ServletIncludePortlet.doGet(ServletIncludePortlet.java:30)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:662)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
seco69
Offline
Joined: 2007-03-26
Points: 0

hello natoine,
I have the same problem, how did you solve it?
Thanks

natoine
Offline
Joined: 2010-12-17
Points: 0

Ok i ve solved this problem.
Now i would like to do ajax partial-refresh of my portlets.
Is it possible using the portlet-container in glassfish ?

seco69
Offline
Joined: 2007-03-26
Points: 0

Thanks again