I am trying to get the result object from service layer through
handler, i am getting this error
"org.springframework.transaction.UnexpectedRollbackException:
Transaction rolledback because it has been marked as rollback-only"
Service layer code is :
public VerifyDataResult verifyData(VerifyData data) {
VerifyDataResult result = new VerifyDataResult ();
try {
ClientCase newClientCase = data.getClientCase();
Case newCase = new Case();
newCase.setDecinum(newClientCase.getDecinum());
newCase.setCaseNumber(newClientCase.getCaseNumber() !=
null ? newClientCase.getCaseNumber() : 0);
ccdbManager.checkDecinum(newCase);
} catch (DecinumException decinumException) {
result.setDuplicate(true);
log.debug("Duplicate Decinum exist >>> "+
decinumException.getMessage());
log.debug("Result value >>> "+ result);
// throw new DecinumException("Duplicate Decinum exist ");
} catch(Exception e){
log.debug("Duplicate Decinum exception in PMS >>> "+
e.getMessage());
}
return result;
}
Handler Code:
public VerifyDataResult execute(VerifyData action, ExecutionContext
context) throws ActionException {
VerifyDataResult result = new VerifyDataResult ();
try {
result = payloadModelService.verifyData(action);
log.debug("after setting of Duplicate Decinum
value ..."+result.isDuplicate());
} catch (DecinumException e) {
log.debug("Exception at execute....................
"+e.getMessage());
e.printStackTrace();
throw new ActionException(e.getMessage());
}catch(Exception e){
log.debug("verify decinum values =
"+result.isDuplicate());
log.debug("Duplicate Exception >>> "+e.getMessage());
e.printStackTrace();
}
log.debug("Before returning result >>> " +result);
return result;
}
Ever time the result is getting set to False even if the result is
being set to true in our service layer. Can you please suggest.
Thanks in advance.
Deb.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment