[
https://jira.jboss.org/browse/GTNPORTAL-1664?page=com.atlassian.jira.plug...
]
Chris Laprun commented on GTNPORTAL-1664:
-----------------------------------------
A way to reproduce the problem: put a WSRP portlet from the selfv2 producer on a page,
then modify the URL of the WSDL for the selfv2 producer so that it won't be accessible
anymore, stop the server then restart it and refresh the page where the WSRP is.
You should see something like this:
Caused by: java.lang.NullPointerException
at
org.exoplatform.portal.webui.application.UIPortlet.supportsPublicParam(UIPortlet.java:573)
at
org.exoplatform.portal.webui.application.UIPortlet.getPublicParameters(UIPortlet.java:691)
at org.exoplatform.portal.webui.application.UIPortlet.create(UIPortlet.java:722)
at
org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:186)
Note that looking at the code for UIPortlet, there are many instances where similar NPEs
would occur in similar circumstances…
NPE if portlet information cannot be retrieved
----------------------------------------------
Key: GTNPORTAL-1664
URL:
https://jira.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
Labels: portal-s43, worked
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