[
https://jira.jboss.org/jira/browse/GTNPORTAL-630?page=com.atlassian.jira....
]
Matt Wringe closed GTNPORTAL-630.
---------------------------------
Resolution: Done
We are now catching this type of error and printing an error message to the logs.
If a leading slash is added to the image url locations, then the application works fine.
If we use the original, non-portlet, application then it works with or without the leading
slash. This appears to be an issue with the portletbridge or the specific application.
NPE while trying to get resource of type img/png
------------------------------------------------
Key: GTNPORTAL-630
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-630
Project: GateIn Portal
Issue Type: Bug
Components: PC integration
Affects Versions: 3.0.0-Beta04, 3.0.0-Beta05
Reporter: Prabhat Jha
Assignee: Matt Wringe
Fix For: 3.0.0-GA
To reproduce this error,
- Build and deploy portlet from
http://anonsvn.jboss.org/repos/qa/prabhat/tictactoe-portlet
-Add it to home page and go to see the homepage.
You will get following exception. Please not that there is potentially a bug with bridge
but in JBoss Portal, the portlet renders fine so I would expect the same over here as
well.
13:24:31,867 INFO [portal:UIPortletActionListener] Try to get a resource of type:
image/png for the portlet:
StatefulPortletContext[local._dumbvalue,ExoPortletState[portletId=local./tictactoe-portlet.Richfaces
Tic Tac Toe Portlet,state={}]]
13:24:31,868 ERROR [portal:UIPortletActionListener] Problem while serving resource for
the portlet: local._dumbvalue
java.lang.NullPointerException
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)
at
org.exoplatform.portal.webui.application.UIPortletActionListener$ServeResourceActionListener.execute(UIPortletActionListener.java:371)
at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
at
org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:124)
at
org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:53)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
at
org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:66)
at
org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:30)
at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:124)
at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:113)
at
org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:105)
at org.exoplatform.web.WebAppController.service(WebAppController.java:143)
at
org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpSer
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira