public  List findByExample(Object obj)
{
return getSession().createCriteria(obj.getClass()).add(Example.create(obj)).list();
}for(int i=0; i<3; i++)
{
   prod.findByExample(obj2);//obj2是任意的一个bean
}
为了简化问题,写了如上的测试代码,第一编执行正常,第二编报了上面所说的错误