This is the calling code:

  |     protected final ActionForward executeSave(ActionMapping mapping, BaseCRUDForm 
form, HttpServletRequest request, HttpServletResponse response) throws 
CRUDBusinessAccessException {
  |             if (form.isNew()) {
  |                     return executeCreate(mapping, form, request, response);
  |             } else {
  |                     ActionForward retValue = null;
  |                     try {
  |                             retValue = executeUpdate(mapping, form, request, 
response);
  |                     } catch (TransactionRolledbackException e) {
  |                             System.out.println("could not update");
  |                     } catch (RemoteException e) {
  |                             System.out.println("remote exception");
  |                             e.printStackTrace();
  |                             System.out.println("fin");
  |                     }
  |                     return retValue;
  |             }
  |     }
  | 
and in a subclass (the code above is a template method)

  |     protected ActionForward executeUpdate(ActionMapping mapping, BaseCRUDForm 
form, HttpServletRequest request, HttpServletResponse response) throws RemoteException 
{
  |             AreaValue value = new AreaValue();
  |             convertFormToValueObject((AreaForm) form, value);
  |             GeneralManager gBean = (GeneralManager) getBean();
  |             
  |             gBean.updateArea(value);
  |             
  |             return navigateBack().getActionForward(true);
  |     }
  | 

I'm getting this error logged to the console:

  | 10:48:07,532 ERROR [LogInterceptor] TransactionRolledbackException in method: pu
  | blic abstract void com.mark2k.siac.services.interfaces.GeneralManager.updateArea
  | (com.mark2k.siac.domain.comitentes.model.AreaValue) throws java.rmi.RemoteExcept
  | ion, causedBy:
  | org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImp
  | l [FormatId=257, GlobalId=barney//37, BranchQual=] status=STATUS_NO_TRANSACTION;
  |  - nested throwable: (javax.ejb.EJBException: Store failed; CausedByException is
  | :
  |         ORA-00001: unique constraint (MAT.MA_UK) violated
  | 

I'm using remote interfaces for the session beans, and local interfaces for the entity 
beans.

Thanks again!

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

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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to