I've changed jboss-seam.jar to the last from CVS and my application start 
crushing after I add items to the "user cart"
It was working well before changing.

<h:commandButton id="addSelectedAction" value="add selected to cart" 
action="#{productOrdering.addToCart}" styleClass="button" />

@Stateful
  | @Name("productOrdering")
  | @Interceptor(SeamInterceptor.class)
  | @Intercept(ALWAYS)
  | @Cache(value=NoPassivationCache.class)
  | //@Conversational(ifNotBegunOutcome="main")
  | @LoggedIn
  | public class ProductOrderingAction implements ProductOrdering, Serializable 
{
  | 
  | ....
  | 
  | public String addToCart() {
  |             if (products == null) {
  |                     log.info("products null");
  |                     return null;
  |             }
  |             for (SelectableItem<SiteProduct> item: products) {
  |                 if (item.getSelected()) {
  |                     item.setSelected(false);
  |                     cartService.addProduct(item.getItem(), new Double(1));
  |                     log.info("1 a");
  |                 }
  |             }
  |             return null;
  |     }
  | 

cart bean

@Stateful
  | @Name("cartService")
  | @Interceptor(SeamInterceptor.class)
  | @Intercept(ALWAYS)
  | @Cache(value=NoPassivationCache.class) 
  | //@Conversational(ifNotBegunOutcome="main")
  | @Scope(SESSION)
  | @LoggedIn
  | public class CartAction implements Cart, Serializable {
  | 
  | ......
  | 
  | public void addProduct(SiteProduct product, Double quantity) {
  |         log.info("??????? ? ??????? ??????");
  |         for (SelectableItem<CartItem> item: cart) {
  |             log.info("1");
  |             if 
(product.getId().equals(item.getItem().getSiteProduct().getId())) {
  |                 item.getItem().addQuantity(quantity);
  |                 log.info("2");
  |                 return;
  |             }
  |         }
  |         log.info("3");
  |         CartItem line = new CartItem();
  |         log.info("4");
  |         line.setQuantity(quantity);
  |         line.setSiteProduct(product);
  |         log.info("5");
  |         cart.add(new SelectableItem<CartItem>(line));
  |         log.info("6");
  |     }

One component use method from another component

but after stage 6  I have exception:

17:40:36,437 INFO  [Cart] 3
  | 17:40:36,437 INFO  [Cart] 4
  | 17:40:36,437 INFO  [Cart] 5
  | 17:40:36,437 INFO  [Cart] 6
  | 17:40:36,437 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: Error calling action method of component with 
id productsFound:addSelectedAction
  |     at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  |     at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  |     at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
  |     at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
  |     at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
  |     at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  |     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |     at com.web.UTF8Filter.doFilter(UTF8Filter.java:31)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |     at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |     at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  |     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  |     at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
  |     at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
  |     at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
  |     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  |     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  |     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  |     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  |     at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
  |     at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
  |     at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  |     at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  |     at java.lang.Thread.run(Unknown Source)
  | Caused by: javax.faces.el.EvaluationException: /main.xhtml @179,141 
action="#{productOrdering.addToCart}": 
javax.ejb.EJBTransactionRolledbackException: null; CausedByException is:
  |     java.util.ArrayList
  |     at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
  |     at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  |     ... 31 more
  | Caused by: javax.ejb.EJBTransactionRolledbackException: null; 
CausedByException is:
  |     java.util.ArrayList
  |     at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:65)
  |     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:117)
  |     at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:138)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:32)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:136)
  |     at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:83)
  |     at $Proxy250.addProduct(Unknown Source)
  |     at 
ejb.seam.ProductOrderingAction.addToCart(ProductOrderingAction.java:295)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)
  |     at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:124)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:62)
  |     at 
org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:57)
  |     at sun.reflect.GeneratedMethodAccessor450.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |     at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:81)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
  |     at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:32)
  |     at sun.reflect.GeneratedMethodAccessor449.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |     at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:81)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
  |     at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:19)
  |     at sun.reflect.GeneratedMethodAccessor448.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |     at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:81)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
  |     at 
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:46)
  |     at sun.reflect.GeneratedMethodAccessor447.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |     at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:81)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
  |     at 
ejb.seam.LoggedInInterceptor.checkLoggedIn(LoggedInInterceptor.java:26)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |     at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:81)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
  |     at 
org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:28)
  |     at sun.reflect.GeneratedMethodAccessor446.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |     at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:81)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
  |     at 
org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:58)
  |     at sun.reflect.GeneratedMethodAccessor445.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |     at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:81)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
  |     at 
org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:31)
  |     at sun.reflect.GeneratedMethodAccessor444.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  |     at 
org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:81)
  |     at 
org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
  |     at 
org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:41)
  |     at sun.reflect.GeneratedMethodAccessor443.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:79)
  |     at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:65)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:70)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:133)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:66)
  |     at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:32)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
  |     at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  |     at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:136)
  |     at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:83)
  |     at $Proxy255.addToCart(Unknown Source)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |     at java.lang.reflect.Method.invoke(Unknown Source)
  |     at com.sun.el.parser.AstValue.invoke(AstValue.java:130)
  |     at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
  |     at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  |     at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
  |     ... 32 more

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to