[jboss-user] [JBoss Seam] - exception handling - likely bug that needs to be investigate

wschwendt do-not-reply at jboss.com
Wed Aug 8 11:47:07 EDT 2007


I'd like to mention the following behavior which looks to me like a bug.

Seam version used:  CVS Based Seam 2
JBoss AS 4.2.1 GA

How to reproduce:  

Deploy the seamdiscs example with the facelets.DEVELOPMENT config parameter set to false in web.xml.        (Note: in web.xml, as checked out from the Seam CVS repository,  facelets.DEVELOPMENT  is set to true, but we need to set it to false in order to test how exceptions are handled).

After deployment access the following URL:

http://127.0.0.1:8080/seam-discs/artists.seam?artistId=200&actionOutcome=artist


In this URL the artistId is deliberately set to a value for which no entity exists in the database.  The intention is to trigger an EntityNotFoundException when org.jboss.seam.framework.Home tries to load the artist (entity instance) with id 200.


What happens after above URL is accessed:

Seam redirects to 
http://127.0.0.1:8080/seam-discs/artist.seam/error.xhtml?cid=6


But it actually is supposed to redirect to
http://127.0.0.1:8080/seam-discs/error.seam?cid=6
, given the exception definition in pages.xml for the seamdiscs example.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072075#4072075

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072075



More information about the jboss-user mailing list