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 "Craig Doremus (JIRA)" <ji...@apache.org> on 2006/04/19 03:14:18 UTC

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

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
        Type: Bug

  Components: portlet container, portal driver  
    Versions: 1.1.0, 1.1.0-beta1    
    Reporter: Craig Doremus
     Fix For: 1.1.0


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


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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/PLUTO-233?page=all ]

Elliot Metsger resolved PLUTO-233.
----------------------------------

    Resolution: Fixed

The ServletContext hadn't been initialized.  Adding the super.init() call in the TCKServlet takes care of that.

Fred Thiele on the pluto-dev list confirmed that the fix worked (thanks Fred!):
> 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.

> 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: portal driver, portlet container
>    Affects Versions: 1.1.0, 1.1.0-beta1
>            Reporter: Craig Doremus
>         Assigned To: Elliot Metsger
>             Fix For: 1.1.0-beta2, 1.1.0
>
>
> 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

        

Portlet modes and buttons in the 1.1 portal driver

Posted by Elliot Metsger <em...@jhu.edu>.
Hi all,

I'd like the portal to only display the buttons for the modes supported 
by the portlet.  It appears this is in Jira as PLUTO-233 and PLUTO-252. 
  I'm wondering if the list can comment on my approach.

In order to do this I have a patch in my working copy which does the 
following:

1. Exposes the supported modes of the portlet by modifying the 
PortletWindowConfig class, adding getModes(String mimeType) and 
setModes(Map) methods.
2. Modifies the PortletRegistryServiceImpl to populate the registry on 
initialization.
3. Modifed the PortletRegistryServiceImpl to add the supported modes to 
the PortletWindowConfig (which occurs during initialization)

That's as far as I've gotten.  I have debugging inside of PortletTag 
which confirms that what I've done so far works:

[DEBUG] PortletInvoker - Performing Render Invocation
[DEBUG] PortletInvoker - Dispatching to portlet servlet at: 
/PlutoInvoker/TestPortlet1
<...snip...>
[DEBUG] PortletTag - Evaluated portletId [${portlet}] to 
[/testsuite.TestPortlet2]
[DEBUG] PortletTag - Rendering Portlet Window: 
org.apache.pluto.driver.services.portal.PortletWindowConfig@3650ed
[DEBUG] PortletTag - Unable to determine content type from request.
[DEBUG] PortletTag - Portlet Window supports the following modes for 
content type [text/html]: [VIEW], [EDIT], [HELP]
<...snip...>

If this approach is acceptable, I'll move forward with updating the view 
side of things so that the portlet mode buttons are displayed properly. 
  If I've missed anything or if this approach is off base, please do let 
me know.

Thanks a lot,
Elliot

Elliot Metsger (JIRA) wrote:
>      [ http://issues.apache.org/jira/browse/PLUTO-233?page=all ]
> 
> Elliot Metsger reassigned PLUTO-233:
> ------------------------------------
> 
>     Assignee: Elliot Metsger
> 
>> 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
>>
>>
>> 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)
> 

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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/PLUTO-233?page=all ]

Elliot Metsger reassigned PLUTO-233:
------------------------------------

    Assignee: Elliot Metsger

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

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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Craig Doremus (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/PLUTO-233?page=all ]

Craig Doremus closed PLUTO-233.
-------------------------------

    Fix Version/s: 1.1.0-beta2
       Resolution: Fixed

I checked this out with three separate portlets and everything worked as advertised. Good job Elliot!!

> 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-beta2, 1.1.0
>
>
> 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

        

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

Posted by "Christian Raschka (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/PLUTO-233?page=comments#action_12434437 ] 
            
Christian Raschka commented on PLUTO-233:
-----------------------------------------

We have run the tck tests and they all fail in the initSupportedModesService method (PortalDriverServlet.java:199) with a NullPointerException.

Logmessage:

[HttpRequest] Dispatching
request: 'GET /pluto/tck?portletName=portlet_jp_ActionRequest_web/CheckActionRequestParameterTestPortlet
HTTP/1.0' to target server at 'localhost:8080'
ERROR: Failed to find a tag in the HTTP response body starting with the
tag :<tck-portlet><portlet-url><a href="
 and ending with the tag :">PortletURL</a></portlet-url></tck-portlet>.

ERROR:
*********************************************************
Request number:1
----------------------------------------------------------
Request Host:localhost
----------------------------------------------------------
Request Port:8080
----------------------------------------------------------
Request
URI:GET /pluto/tck?portletName=portlet_jp_ActionRequest_web/CheckActionRequestParameterTestPortlet
HTTP/1.0
----------------------------------------------------------
Request Complete
URL:http://localhost:8080/pluto/tck?portletName=portlet_jp_ActionRequest_web/CheckActionRequestParameterTestPortlet
----------------------------------------------------------
Authentication for the test:none
----------------------------------------------------------
----------------------------------------------------------
 Complete server response:

----------------------------------------------------------
<html><head><title>Apache Tomcat/5.5.17 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>The server encountered an internal error
() that prevented it from fulfilling this request.</u></p><p><b>exception</b>
<pre>java.lang.NullPointerException

org.apache.pluto.driver.PortalDriverServlet.initSupportedModesService(PortalDriverServlet.java:199)

org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:100)
        org.apache.pluto.driver.TCKDriverServlet.doGet(TCKDriverServlet.java:75)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is
available in the Apache Tomcat/5.5.17 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/5.5.17</h3></body></html>
----------------------------------------------------------
[BasePortletUrlClient] Test cleanup OK
STATUS:Failed.Test case throws exception: Failed to find a tag in the HTTP
response body starting with the tag :<tck-portlet><portlet-url><a href="  and
ending with the tag :">PortletURL</a></portlet-url></tck-portlet>.


> 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

        

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

Posted by "Elliot Metsger (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/PLUTO-233?page=comments#action_12434035 ] 
            
Elliot Metsger commented on PLUTO-233:
--------------------------------------

r442414 adds a SupportedModesService for the portal driver.  A big thank you to Craig for helping out with this and David for his ideas on pluto-dev.

This fix adds methods to the DriverConfiguration interface.  The DriverConfiguration implementation delegates the execution of the new methods to the new SupportedModesService implementation. 

The service is wired together via Spring.

The fix also adds a <pluto:modeAnchor> tag which can be used in the view to render links which change the mode of the portlet.  The tag only renders the link if the portal and the portlet both support the requested mode.

One odd thing about this service is that it deviates slightly from the lifecycle pattern of other services.  This service is initialized by the PortalDriverServlet and not by the PortalStartupListener.

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