[jboss-user] [JBoss Seam] - Re: Seam conversations and third party JSF components libs

mgrouch do-not-reply at jboss.com
Tue Jul 31 22:27:51 EDT 2007


I've got rid of some exceptions by improving beginCall()


  | 		if (!Contexts.isConversationContextActive()) {
  | 			Lifecycle.beginCall();
  | 		}
  | 		if (!Contexts.isPageContextActive()) {
  | 			FacesLifecycle.resumePage();
  | 		}
  | 		try {
  | 	        if (!Transaction.instance().isActiveOrMarkedRollback()) {
  | 	            Transaction.instance().begin();
  | 	         }
  | 		}
  | 		catch (Exception ex) {
  | 	        throw new IllegalStateException("Could not start transaction", ex);
  | 	    }

I still have this exception which I haven't figured out how to get rid of:
anonymous wrote : 
  | java.lang.IllegalStateException: Could not commit transaction
  |     at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:589)
  |     at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
  |     at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
  |     at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
  |     at teamdev.jsf.util.g.b(SourceFile:87)
  |     at teamdev.jsf.util.AjaxRequestsPhaseListener.a(SourceFile:694)
  |     at teamdev.jsf.util.AjaxRequestsPhaseListener.a(SourceFile:546)
  |     at teamdev.jsf.util.AjaxRequestsPhaseListener.a(SourceFile:413)
  |     at teamdev.jsf.util.AjaxRequestsPhaseListener.b(SourceFile:404)
  |     at teamdev.jsf.util.AjaxRequestsPhaseListener.g(SourceFile:289)
  |     at teamdev.jsf.util.AjaxRequestsPhaseListener.afterPhase(SourceFile:194)
  |     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
  |     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  |     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | ...
  | 
  | Caused by: java.util.EmptyStackException
  |     at java.util.Stack.peek(Stack.java:79)
  |     at org.jboss.seam.transaction.Transaction.beforeCommit(Transaction.java:64)
  |     at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:44)
  |     at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)

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

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



More information about the jboss-user mailing list