find method is not returning anything

I have a find method that is not returning anything what can be the problem?My code is SalesHome salesHome = (SalesHome) (new InitialContext()).lookup("SalesBean");Collection c=salesHome.findByCustID(liCustomerID);
[242 byte] By [samrat_kara] at [2007-11-26 23:43:05]
# 1
see any exception is thrown...are u getting a null or a collection object without any elements? ur query may not be matched to give any output..that may be other cause..
mshanua at 2007-7-11 15:12:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

see any exception is thrown...are u getting a null or a collection object without any elements? ur query may not be matched to give any output..that may be other cause..

I'm getting no exceptions...I'm getting a colletion object without any elements...my ejb-jar.xml looks like this

<query>

<description></description>

<query-method>

<method-name>findByCustID</method-name>

<method-params>

<method-param>int</method-param>

</method-params>

</query-method>

<ejb-ql>select OBJECT(s) from SalesBean as s where s.custId= ?1</ejb-ql>

</query>

samrat_kara at 2007-7-11 15:12:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
are u sure for ur cust id is a valid id that u are passing and available in ur table? do a cross check..
mshanua at 2007-7-11 15:12:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
yes the custid i'm passing is valid and there is data for that in the database...
samrat_kara at 2007-7-11 15:12:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

CMP unlike bmp are difficult to debug..find out any where any time any exception or any sor of error printed any where..or try to redeploy ur entity bean alone adn see any exception or error is created.....

Very sorry to say that with this information i cant figure out what could be the issue....

regards

Shanu

mshanua at 2007-7-11 15:12:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...