You aren't going to get a CreateException for this, you will get an 
EJBException.  The create works create but when JBoss attempts to update 
the foreign key fields it will get a SQLException which it will wrap in 
an EJBException and that lame LogInterceptor code will wrap that in a 
ServerException which is a declared RemoteException.  When this hits the 
subclass of your bean implementation class you will get the 
UndeclaredThrowableException.

Anyway, I think it is working right now except for the 
UndeclaredThrowableException.  I'm going to yank out that code soon.

-dain

McAuley, Tim wrote:

> Hiya,
> 
> 
>>Did you declare CreateException for both the ejbCreate and 
>>ejbPostCreate 
>>methods? Do they both define the exact same exception 
>>declarations?  
>>
> 
> Yes to both of the above.
> 
> 
>>Can 
>>you post a bug report the reproduces the UndeclaredThrowableException.
>>
>>
> 
> I will do so tomorrow if it is still needed.
> 
> I tried it on JBoss 3.0.0 full release and got the same behaviour.
> 
> I have just tried it now on JBoss 3.1.0alpha but a good few other things
> broke so I can't tell you the outcome of that test.
> (java.lang.NoSuchFieldError: testData)
> 
> I saw your later posts. The beans I am testing are local entity beans. This
> may explain the problem if a RemoteException is being generated for this.
> 
> All the best!
> 
> Tim
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

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

Reply via email to