Thank everyone,
i will change my method signature to throws finderException...

But i agree with you guys..
it should be legal.... thru inheritence.

anyway, for now, i'll just do as above.
regards,
John



----- Original Message -----
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: "Sacha Labourey" <[EMAIL PROTECTED]>
Cc: "John LYC" <[EMAIL PROTECTED]>; "Jboss Mailing List"
<[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 8:09 PM
Subject: RE: [JBoss-user] Jboss warning whenever i deploy.


> ObjectNotFoundException is a subclass of FinderException...
>
> On Wed, 3 Oct 2001, Sacha Labourey wrote:
>
> > John,
> >
> > I guess the message is quite clear...
> >
> > > Section: 9.2.8
> > > Warning: All the exceptions defined in the throws clause of an ejbFind
> > > method of the entity bean class must be included in the throws
> > > clause of the
> > > matching find method of the home interface.
> >
> > Look at section 9.2.8 of the EJB 1.1 spec.
> >
> > in short: exception on finder methods of the bean must be present on
finder
> > declaration of the home.
> >
> > Your bean finder declaration:
> > > public String ejbFindByPrimaryKey(String key) throws
> > > ObjectNotFoundException
> >
> > => ObjectNotFoundException may be thrown
> >
> > Your home declaration for this finder:
> > >     public Contact findByPrimaryKey(String primaryKey) throws
> > > RemoteException, FinderException;
> >
> > Where is the ObjectNotFoundException declaration on this method
declaration
> > of the home?
> >
> >
> >
> >
> > Sacha
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>

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

Reply via email to