geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivanrc <iri...@indra.es>
Subject ArrayIndexOutOfBoundsException invoking find methods of EJB Entity CMP
Date Tue, 27 Nov 2007 08:44:32 GMT

Hello, I´m ussing Apache geronimo 2.0.2

When ejb-ql doesn´t obtain any result, the associate find method throw
EJBException whith this caused by:


Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at
org.apache.openejb.core.cmp.CmpContainer.findEJBObject(CmpContainer.java:756)
	... 26 more

for example, I´ve got this findPlanByFechaDesdeFact and if query doesn´t
obtain any result, intead of return empty or null collection, it throw
javax.ejb.EJBException with message ArrayIndexOutOfBoundsException:0

              <query>
                <query-method>
                    <method-name>findAll</method-name>
                    <method-params />
                </query-method>
                <ejb-ql>SELECT DISTINCT OBJECT(p) FROM PlanExplotacionBean
AS p</ejb-ql>
            </query>

How can I resolve this?,Thanks.
-- 
View this message in context: http://www.nabble.com/ArrayIndexOutOfBoundsException-invoking-find-methods-of-EJB-Entity-CMP-tf4880411s134.html#a13966760
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message