You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Tony Noble (JIRA)" <ji...@apache.org> on 2009/08/17 12:38:14 UTC

[jira] Created: (OFBIZ-2836) ModelNotification is not serializable

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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.