[
https://issues.jboss.org/browse/GTNPORTAL-1903?page=com.atlassian.jira.pl...
]
Minh Hoang TO commented on GTNPORTAL-1903:
------------------------------------------
Your NPE happened while deploying WebUI portlet as a remote portlet?
If the request goes through portal 's request handler, it is certain that the
PortalRequestContext is initialized for thread handling the request.
Possible NPE in
org.exoplatform.portal.webui.util.Util.getPortalRequestContext()
--------------------------------------------------------------------------------
Key: GTNPORTAL-1903
URL:
https://issues.jboss.org/browse/GTNPORTAL-1903
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: WebUI
Affects Versions: 3.1.0-GA
Environment: tomcat, webservice call
Reporter: Romain Dénarié
Assignee: Minh Hoang TO
Labels: portal-s53
Fix For: 3.2.0-GA
Original Estimate: 1 hour
Remaining Estimate: 1 hour
Hi, in method Util.getPortalRequestContext(), I have a null pointer exception.
In fact, I make a webservice call on components above Gatein. Theses components make a
call to getPortalRequestContext() without portalContext because of REST.
So this line
{code}context = (WebuiRequestContext)context.getParentAppRequestContext();{code}
throws a NPE.
This exception should be catched and method should return null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira