赞
踩
ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction.
try{ TransactionUtil .begin(); EntityListIterator iterator = delegator.find(); TransactionUtil .commit(); }catch (GenericEntityException e) { try { TransactionUtil .rollback(); } catch (GenericTransactionException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } throw e; }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。