You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Elliot Metsger (JIRA)" <ji...@apache.org> on 2006/09/13 15:26:39 UTC

[jira] Reopened: (PLUTO-233) Exception thrown if edit or help mode is not supported by portlet

     [ http://issues.apache.org/jira/browse/PLUTO-233?page=all ]

Elliot Metsger reopened PLUTO-233:
----------------------------------

             
Re-opening due to issue with TCK. 

Christian, I don't have a copy of the TCK (I have been trying to get my hands on it) otherwise I would try this fix myself:

Can you edit the TCKDriverServlet and modify its init method from this:
    public void init() {
        ServletContext servletContext = getServletContext();
        container = (PortletContainer) servletContext.getAttribute(
                AttributeKeys.PORTLET_CONTAINER);
    }

to this (add a super.init() call):

    public void init() {
        super.init();
        ServletContext servletContext = getServletContext();
        container = (PortletContainer) servletContext.getAttribute(
                AttributeKeys.PORTLET_CONTAINER);
    }

Can you let me know if that resolves the issue?

> Exception thrown if edit or help mode is not supported by portlet
> -----------------------------------------------------------------
>
>                 Key: PLUTO-233
>                 URL: http://issues.apache.org/jira/browse/PLUTO-233
>             Project: Pluto
>          Issue Type: Bug
>          Components: portlet container, portal driver
>    Affects Versions: 1.1.0, 1.1.0-beta1
>            Reporter: Craig Doremus
>         Assigned To: Elliot Metsger
>             Fix For: 1.1.0, 1.1.0-beta2
>
>
> If a portlet does not support edit or help mode an exception is thrown if the window control for edit or help mode is selected.
> Here is the top part of the stack trace produced if the Help mode is selected:
> javax.portlet.PortletException: doHelp method not implemented
> 	at javax.portlet.GenericPortlet.doHelp(GenericPortlet.java:343)
> 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:258)
> 	at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
> 	at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208)
> 	at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:143)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
> 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
> 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
> 	at org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
> 	at org.apache.pluto.core.PortletInvoker.render(PortletInvoker.java:111)
> 	at org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:158)
> 	at org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:138)
> 	at org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspx_meth_pluto_portlet_0(org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp:97)
> 	at org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp:72)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Reopened: (PLUTO-233) Exception thrown if edit or help mode is not supported by portlet

Posted by "David H. DeWolf" <dd...@apache.org>.
Have you contacted Gier?  You'll need to send in the non disclosure and 
then he can give you access as a pluto committer.

David

Elliot Metsger (JIRA) wrote:
>      [ http://issues.apache.org/jira/browse/PLUTO-233?page=all ]
> 
> Elliot Metsger reopened PLUTO-233:
> ----------------------------------
> 
>              
> Re-opening due to issue with TCK. 
> 
> Christian, I don't have a copy of the TCK (I have been trying to get my hands on it) otherwise I would try this fix myself:
> 
> Can you edit the TCKDriverServlet and modify its init method from this:
>     public void init() {
>         ServletContext servletContext = getServletContext();
>         container = (PortletContainer) servletContext.getAttribute(
>                 AttributeKeys.PORTLET_CONTAINER);
>     }
> 
> to this (add a super.init() call):
> 
>     public void init() {
>         super.init();
>         ServletContext servletContext = getServletContext();
>         container = (PortletContainer) servletContext.getAttribute(
>                 AttributeKeys.PORTLET_CONTAINER);
>     }
> 
> Can you let me know if that resolves the issue?
> 
>> Exception thrown if edit or help mode is not supported by portlet
>> -----------------------------------------------------------------
>>
>>                 Key: PLUTO-233
>>                 URL: http://issues.apache.org/jira/browse/PLUTO-233
>>             Project: Pluto
>>          Issue Type: Bug
>>          Components: portlet container, portal driver
>>    Affects Versions: 1.1.0, 1.1.0-beta1
>>            Reporter: Craig Doremus
>>         Assigned To: Elliot Metsger
>>             Fix For: 1.1.0, 1.1.0-beta2
>>
>>
>> If a portlet does not support edit or help mode an exception is thrown if the window control for edit or help mode is selected.
>> Here is the top part of the stack trace produced if the Help mode is selected:
>> javax.portlet.PortletException: doHelp method not implemented
>> 	at javax.portlet.GenericPortlet.doHelp(GenericPortlet.java:343)
>> 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:258)
>> 	at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
>> 	at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208)
>> 	at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:143)
>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
>> 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>> 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>> 	at org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
>> 	at org.apache.pluto.core.PortletInvoker.render(PortletInvoker.java:111)
>> 	at org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:158)
>> 	at org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:138)
>> 	at org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspx_meth_pluto_portlet_0(org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp:97)
>> 	at org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp:72)
>> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
>> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
>> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 

Re: [jira] Reopened: (PLUTO-233) Exception thrown if edit or help mode is not supported by portlet

Posted by Fred Thiele <fe...@informatik.uni-jena.de>.
Hi,

I'm new to the list but I'm reading along some time. I'm Fred Thiele and I'm 
busy with the Portlet-TCK 2.0 as part of my diploma thesis. I'm part of the 
FSU Jena group and I want to say hello to all.

Am Mittwoch, 13. September 2006 15:26 schrieb Elliot Metsger (JIRA):
>      [ http://issues.apache.org/jira/browse/PLUTO-233?page=all ]
>
> Elliot Metsger reopened PLUTO-233:
> ----------------------------------
>
>
> Re-opening due to issue with TCK.
>
> Christian, I don't have a copy of the TCK (I have been trying to get my
> hands on it) otherwise I would try this fix myself:
>
> Can you edit the TCKDriverServlet and modify its init method from this:
>     public void init() {
>         ServletContext servletContext = getServletContext();
>         container = (PortletContainer) servletContext.getAttribute(
>                 AttributeKeys.PORTLET_CONTAINER);
>     }
>
> to this (add a super.init() call):
>
>     public void init() {
>         super.init();
>         ServletContext servletContext = getServletContext();
>         container = (PortletContainer) servletContext.getAttribute(
>                 AttributeKeys.PORTLET_CONTAINER);
>     }
>
> Can you let me know if that resolves the issue?

With the additional super.init() call the current trunk is TCK1.0 compliant 
that far. Somebody may add this changement it to the repository. Bug can be 
closed.
 
--
Fred Thiele