[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1121) exception instantiating model validator is very difficult to debug

Keith Naas (JIRA) jira-events at lists.jboss.org
Wed Mar 28 10:41:01 EDT 2007


exception instantiating model validator is very difficult to debug
------------------------------------------------------------------

                 Key: JBSEAM-1121
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1121
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: JSF
    Affects Versions: 1.2.1.GA
            Reporter: Keith Naas



Within the ModelValidator, if an exception is thrown while validating the value, the original exception is neither nested in the ValidatorException nor is it logged.  It turns out that one of our validators was causing the Hibernate validator to throw an IllegalArgumentException.  We have since fixed it, but we would like to see the code changed in the ModelValidator to make it a bit easier to debug in the future..

      catch (Exception e)
      {
         throw new ValidatorException( new FacesMessage(FacesMessage.SEVERITY_ERROR, "model validation failed:" + e.getMessage(), null) );
      }


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

        



More information about the seam-issues mailing list