I used the following EJB-QL in the dynamic query search (I tried it in finder 
method and it worked):

"select object(a) from TestDateSchema as a where a.tstampDate > ?1 and 
a.tstampDate < ?2"  --- where a.tstampDate is java.sql.Timestamp and two 
arguments (?1 = start date and ?2 = end date)...

...and here is the statement to get a collection...

java.sql.Timestamp gotTimestamp;

Collection lc = myBeanHome.getGeneric(jbossql.toString(), args);

...and Iteration and while loop...

while(iter1.hasNext()){
  TestDateLocal mydate = (TestDateLocal)iter1.next();
  gotTimestamp = mydate.getTstampDate(); // This statement returns error
}                                               }

TestDateLocal (extends EJBLocalObject) has the getTstampDate method and this 
method returns the following message:

java.lang.NullPointerException
        at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:44)
        at $Proxy1.getKey(Unknown Source)
        at com.testdate.TestDateClient.testBean(TestDateClient.java:127)
        at com.testdate.TestDateClient.main(TestDateClient.java:145)


I had checked entire EJBsrc folder for all files but I came up nothing...Please 
let me know if you have encountered this problem before.

Thanks...

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866912#3866912

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866912


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to