java - Transactional error while commiting -
i trying solve error in payara41 server java ee 7, sample works on wildfly-9 java 7 ee , on glassfish-3.1 java ee 6 (without @transactional
, @transactionalmanagement
)
@stateful @transactional //default txtype.required @transactionmanagement(transactionmanagementtype.bean) public class improvementdaoimpl extends abstractbasedaoclass implements improvementdao { /*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/ @persistencecontext(unitname = "pu", type = persistencecontexttype.extended) private entitymanager em; @resource private usertransaction tx; ... }
here's stacktrace, apperas after executing tx.flush();
:
javax.transaction.transactionalexception: managed bean transactional annotation , txtype of required encountered exception during commit javax.transaction.rollbackexception: transaction marked rollback. (...) caused by: javax.transaction.rollbackexception: transaction marked rollback.
so far i've tried use interceptor , @transactionattribute
, none helped...
thanks advice/help! :)
Comments
Post a Comment