Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-4006

back port fix from JBSEAM-4203-Interpolator swallows all exceptions

    XMLWordPrintable

Details

    • Release Notes
    • Medium

    Description

      org.jboss.seam.core.Interpolator swallows all exceptions, so if I have #

      {entityHome.instance.name} somewere in the page, and entityHome has id which is missed from database - I expect that org.jboss.seam.framework.EntityNotFoundException will be handled by this block in pages.xml

      <exception class = "org.jboss.seam.framework.EntityNotFoundException">
      <redirect view-id = "/error.xhtml">
      <message severity = "warn">#{messages['org.jboss.seam.framework.EntityNotFoundException']}</message>
      </redirect>
      </exception>

      but, instead I got
      [WARN] exception interpolating string: #{entityHome.instance.name}

      This is due
      Interpolator.java:131
      } catch (Exception e)

      { log.warn("exception interpolating string: " + string, e); }

      Attachments

        Activity

          People

            mnovotny@redhat.com Marek Novotny
            mnovotny@redhat.com Marek Novotny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: