[JIRA] Closed: (OFBIZ-250) Error Messages broken in Webtools Entity Data Maintenance

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Closed: (OFBIZ-250) Error Messages broken in Webtools Entity Data Maintenance

JIRA jira@ofbiz.org
     [ http://jira.undersunconsulting.com/browse/OFBIZ-250?page=all ]
     
Jacopo Cappellato closed OFBIZ-250:
-----------------------------------

    Resolution: Fixed

This should be (at least) partially fixed in the current svn.

> Error Messages broken in Webtools Entity Data Maintenance
> ---------------------------------------------------------
>
>          Key: OFBIZ-250
>          URL: http://jira.undersunconsulting.com/browse/OFBIZ-250
>      Project: [OFBiz] Open For Business
>         Type: Bug
>   Components: webtools
>  Environment: Java 1.4.2_07, Windows XP SP 2
>     Reporter: Robert Merrill
>     Assignee: Jira Administrator
>     Priority: Minor

>
>
> I observed that a failed delete using Entity Data Maintenance did not show an error message on the screen. Logs showed missing resource bundle. Changed line 58 of GenericWebEvent.java to "WebtoolsErrorUiLabels" (was singular Label) and that fixes the missing-resource problem.
> <p>
> Still no error messages because there's no logic in entity/ViewGeneric.jsp to display them. I added code to display _ERROR_MESSAGE_ from session and request and displayed "<code>Delete failed (write error)</code>." Though better than nothing, it would be nice to display the root cause,
> <pre>
> org.ofbiz.entity.GenericDataSourceException: SQL Exception while executing the following:DELETE FROM OFBIZ.PARTY WHERE PARTY_ID=? (DELETE on table 'PARTY' caused a violation of foreign key constraint 'PARTY_RLE_PARTY' for key (1039).  The statement has been rolled back.)
> </pre>
> I haven't figured out how to do that yet, because I don't yet know where _ERROR_MESSAGE_ is set in the request.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.undersunconsulting.com/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira