[
https://jira.jboss.org/jira/browse/GTNPORTAL-630?page=com.atlassian.jira....
]
Matt Wringe commented on GTNPORTAL-630:
---------------------------------------
The null pointer exception is because the image its getting is null, the content type it
actually is a char error message ("The requested resource
(/tictactoe-portlet/pages/images/clear.png) is not available").
There are two issues here:
1) its trying to get the wrong image (not sure if this is a problem with the app, or the
portletbridge)
2) the content type for the returned value is set as image/png when its returning an error
message (also not sure where this is going wrong either)
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
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