[
https://issues.apache.org/jira/browse/OFBIZ-2836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sharan Foga updated OFBIZ-2836:
-------------------------------
Sprint: Bug Crush Event - 21/2/2015
> ModelNotification is not serializable
> -------------------------------------
>
> Key: OFBIZ-2836
> URL: https://issues.apache.org/jira/browse/OFBIZ-2836
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Release Branch 4.0
> Environment: All
> Reporter: Tony Noble
>
> request-redirect fails after submitting a form that does not meet the
> associated service's requirements.
> Steps to reproduce:
> Controller.xml entry looks as follows:
> <request-map uri="CreateItem">
> <security auth="true" https="true"/>
> <event type="service" path="" invoke="createItem" />
> <response name="success" type="request-redirect-noparam"
> value="ListItems"/>
> <response name="error" type="request-redirect"
> value="CreateItemForm"/>
> </request-map>
> The createItem service should contain at least one mandatory field. When
> submitting a form that calls the service with this field absent,
> RequestHandler generates a serialization exception with the message
> 'ModelNotification: Object is not serializable'. This appears to be
> generated by the callRedirect() method of the RequestHandler class, which
> would suggest that ModelNotification passes the 'instanceof Serializable'
> test, even though it actually isn't.
> Looking at the ModelNotification.java, making it Serializable is a trivial
> task, though I'm not sure whether this is needed or whether it should just
> not be added to the request attributes in the first place.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)