This isn't my code that caused the problem... It's the generated code from GenIC. I can send you the generated code, but there's nothing wrong with my code... the problem exists with the generated code. I was just looking at the release notes, and it says that CreateExceptions and RemoveExceptions can now be caught with the client. I believe this is where the problem lies. I don't *want* or *need* to catch those exceptions with the client, but GenIC is still generating code to allow me to do that. It's complaining because I'm not catching those anywhere. Assuming my bean were a standard EJB1.1 bean and that I need to catch those exceptions so that javac quits complaining, what can I do in my own code to accommodate this change? Just adding the throws clause to the ejbCreate method doesn't do the trick. Here's a rundown of why adding the throws clause to my ejbCreate method doesn't work:
Before adding the throws clause, I'm only getting the uncaught exception errors. When I add the throws clause, it now wants me to catch the errors from my ejbCreate method (called by super.ejbCreate(...) in the generated create method). What would fix this, as I see it, is not if I add the throws clause to my ejbCreate method, but if the generated code adds the throws clause to its generated create method.
Would you like the generated code?
-----Original Message-----
From: Philippe Coq [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 8:13 AM
To: Skidmore, Walt
Cc: '[EMAIL PROTECTED]'
Subject: Re: New error...
> "Skidmore, Walt" wrote:
>
> In addition to the three previous errors, when I add the throws clause
> to the ejbCreate and ejbPostCreate methods, I get the following error:
>
> ./medinex/server/entitybean/JOnASMDXAccountingCodeBean.java:56:
> unreported exception javax.ejb.CreateException; must be caught or
> declared to be thrown
>
> super.ejbCreate(p1, p2, p3, p4);
> ^
>
> Is there some other way I need to be "defining" the CreateException?
> Also, how would that help with the RemoveException and the
> DuplicateKeyException?
>
Excuse me Walt, I will not able to help you
if you don't give me enough information about your bean
Can you send me the excerpt of the code that cause problem?
thanks,
--
Philippe
Philippe Coq Evidian Phone: (33) 04 76 29 78 49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org
