Hi,
Could you show the code in which you expect to catch the sqlexception? Does
everything work if you drop the unique constraint?
thanks

david jencks

On 2001.06.18 18:50:33 -0400 Bob Mancarella wrote:
> I am using Interbase with a BMP bean. If I have a column with a unique
> constraint and attempt to add another row with the same value I don't get
> a
> SQLException. JBoss seems to throw some internal errors which I am unable
> to
> catch. The output is below. 
>  
> Has anyone had any luck with unique constraints errors in JBoss?
>  
> -Bob
> 
> 
> [com.faq.ejb.UserMasterHome] TRANSACTION ROLLBACK EXCEPTION:null; nested
> exception is:
>         javax.ejb.EJBException
> [com.faq.ejb.UserMasterHome] java.lang.ClassCastException:
> java.lang.VerifyError
> 
> [com.faq.ejb.UserMasterHome]    at
> org.jboss.ejb.plugins.BMPPersistenceManager.c
> reateEntity(BMPPersistenceManager.java:151)
> [com.faq.ejb.UserMasterHome]    at
> org.jboss.ejb.EntityContainer.createHome(Enti
> tyContainer.java:441)
> [com.faq.ejb.UserMasterHome]    at java.lang.reflect.Method.invoke(Native
> Method
> )
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> 
> 
> <META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
> <BODY>
> <DIV>I am using Interbase with a BMP bean. If I have a column with a 
> unique<BR>constraint and attempt to add another row with the same value I
> don't 
> get a<BR>SQLException. JBoss seems to throw some internal errors which I
> am 
> unable to<BR>catch. The output is below.<SPAN class=361454622-18062001> 
> </SPAN></DIV>
> <DIV><SPAN class=361454622-18062001></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=361454622-18062001>Has anyone had any luck with unique 
> constraints errors in JBoss?</SPAN></DIV>
> <DIV><SPAN class=361454622-18062001></SPAN>&nbsp;</DIV>
> <DIV><SPAN class=361454622-18062001><FONT face=Arial 
> size=2>-Bob</FONT></SPAN></DIV>
> <DIV><BR><BR>[com.faq.ejb.UserMasterHome] TRANSACTION ROLLBACK
> EXCEPTION:null; 
> nested<BR>exception is:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
> javax.ejb.EJBException<BR>[com.faq.ejb.UserMasterHome] 
> 
>java.lang.ClassCastException:<BR>java.lang.VerifyError<BR><BR>[com.faq.ejb.UserMasterHome]&nbsp;&nbsp;&nbsp;
> 
> 
>at<BR>org.jboss.ejb.plugins.BMPPersistenceManager.c<BR>reateEntity(BMPPersistenceManager.java:151)<BR>[com.faq.ejb.UserMasterHome]&nbsp;&nbsp;&nbsp;
> 
> 
>at<BR>org.jboss.ejb.EntityContainer.createHome(Enti<BR>tyContainer.java:441)<BR>[com.faq.ejb.UserMasterHome]&nbsp;&nbsp;&nbsp;
> 
> at java.lang.reflect.Method.invoke(Native<BR>Method<BR>)<BR></DIV></BODY></HTML>
> 


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to