First, see if it has already been fixed. Try jboss 3.0 released version and
if not fixed there jboss 3.0.1 cvs.

david jencks

On 2002.06.12 06:19:14 -0400 "McAuley, Tim" wrote:
> Hello,
> 
> I am currently running through implementing some junit tests for some
> entity
> beans. For one of the tests I want to make sure that creating a duplicate
> entry in the database fails. The entry looks something like this:
> 
> Entry:
>       EmployeeID = 3
>       CompanyUnit = 10
> 
> Both of the attributes are foreign keys (set-up using relationships) and
> are
> set in the ejbPostCreate method of the entity bean. A unique index has
> been
> set-up on the database for these two columns.
> 
> Unfortunately, when I try to enter a duplicate entry into the database I
> do
> not receive a CreateException but a
> java.lang.reflect.UndeclaredThrowableException.
> 
> Is there anyway I can wrap this exception up into a CreateException or do
> I
> not have any choice in the matter.
> 
> I am using Windows NT 4 and currently jboss 3.0.0 RC2.
> 
> Many thanks,
> 
> Tim
> 
> _______________________________________________________________
> 
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to