Hi!

[EMAIL PROTECTED] wrote:
> 
>         Hi all
> 
>         I'm re-posting this again since I didn't get any response on that.
> 
>         findAll throws exception than trying get all data in table with more than 
>one record .
> 
> [Default] JRMPCI:invokeHome public abstract java.util.Collection com.ulybin.JobB
> oerse.database.ad.ADHome.findAll() throws javax.ejb.EJBException,java.rmi.Remote
> Exception,javax.ejb.FinderException
> [JAWS] FindAll command executing: SELECT ad_id FROM ADBean
> [JAWS] java.rmi.ServerException: Finder failed; nested exception is:
> [JAWS]  java.lang.ArrayIndexOutOfBoundsException
> [JAWS] java.lang.ArrayIndexOutOfBoundsException
> [JAWS]  at org.hsql.jdbcResultSet.getObject(jdbcResultSet.java:703)
> [JAWS]  at org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.handleResult(JDBCFi
> nderCommand.java:96)

If you read the source for JDBCFinderCommand it will try to get the
primary key for your entity at this point. Do you have a composite key
(i.e. your own pk class)? Do you have the same fields in your Entity?
Are they defined as CMP fields?

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to