[JBoss JIRA] (GTNWSRP-353) Reading properties for a portlet that contains non-portlet.xml declared properties leads to NPE
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/GTNWSRP-353?page=com.atlassian.jira.plugi... ]
RH Bugzilla Integration commented on GTNWSRP-353:
-------------------------------------------------
Martin Weiler <mweiler(a)redhat.com> made a comment on [bug 947371|https://bugzilla.redhat.com/show_bug.cgi?id=947371]
Description of problem:
Platform issue for GTNWSRP-353
Calling the getPortletProperties method fails with a NullPointerException if setPortletProperties has been called before for the same portlet handle, including a property not declared in portlet.xml.
Steps to Reproduce:
1. invoke v1:clonePortlet to get the portlet handle
2. invoke v1:setPortletProperties using this handle. The important part here is to add a portlet property which is NOT defined in the portlet.xml file
3. invoke v1:getPortletProperties using the portlet handle
Actual results:
ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception java.lang.NullPointerException
at org.gatein.wsrp.producer.handlers.PortletManagementHandler.getPortletProperties(PortletManagementHandler.java:606)
at org.gatein.wsrp.producer.WSRPProducerImpl.getPortletProperties(WSRPProducerImpl.java:295)
at org.gatein.wsrp.endpoints.v1.PortletManagementEndpoint.getPortletProperties(PortletManagementEndpoint.java:380)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Expected results:
getPortletProperties returns the list of portlet properties
Additional info:
> Reading properties for a portlet that contains non-portlet.xml declared properties leads to NPE
> -----------------------------------------------------------------------------------------------
>
> Key: GTNWSRP-353
> URL: https://issues.jboss.org/browse/GTNWSRP-353
> Project: GateIn WSRP
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Producer
> Affects Versions: 2.1.7-GA, 2.2.2.Final
> Reporter: Chris Laprun
> Assignee: Chris Laprun
> Fix For: 2.1.8-GA, 2.2.3.Final
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months