[
https://issues.jboss.org/browse/GTNPORTAL-1664?page=com.atlassian.jira.pl...
]
Khoi Nguyen commented on GTNPORTAL-1664:
----------------------------------------
@Chris: Actually, in your case, PortletInvoker couldn't get the remote portlet info
and throw an exception. You can see in UIPortlet.java line 936, if the portlet's
remote, we get a ConsumerException, so UIPortlet couldn't take care this case and
producerOfferedPortletContext is null.
So, I think that you should wrap the ConsumerException as NoSuchPortletException because
of portal don't want to take care a portlet which is local or remote portlet
NPE if portlet information cannot be retrieved
----------------------------------------------
Key: GTNPORTAL-1664
URL:
https://issues.jboss.org/browse/GTNPORTAL-1664
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.1.0-GA
Reporter: Chris Laprun
Assignee: Khoi Nguyen
Labels: portal-s43, portal-s47
Fix For: 3.2.0-GA
Original Estimate: 4 hours
Remaining Estimate: 4 hours
Caused by: java.lang.NullPointerException
at
org.exoplatform.portal.webui.application.UIPortlet.supportsPublicParam(UIPortlet.java:565)
at
org.exoplatform.portal.webui.application.UIPortlet.getPublicParameters(UIPortlet.java:683)
at org.exoplatform.portal.webui.application.UIPortlet.create(UIPortlet.java:714)
at
org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:186)
Basically, in the following code:
if (producedOfferedPortlet == null)
{
log.info("Could not find portlet with ID : " +
producerOfferedPortletContext.getId());
return null;
}
it's very likely that if producerOfferedPortlet is null, then the associated context
is as well... hence the NPE.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira