1 2 Previous Next 24 Replies Latest reply on Oct 9, 2007 6:43 PM by pmuir Go to original post
      • 15. Re: Ajax4jsf UnboundedFifoBuffer
        pmuir

        Ales, please try with current CVS, I've fixed the drools problem, and put a temporary fix in place for the commons-beanutils problem.

        • 16. Re: Ajax4jsf UnboundedFifoBuffer
          alesj

           

          "pete.muir@jboss.org" wrote:
          Ales, please try with current CVS, I've fixed the drools problem, and put a temporary fix in place for the commons-beanutils problem.


          Great, it works now, no more UnboundedFifoBuffer exception. :-)
          Thanks Pete!

          But now I'm getting this - for every request where jbpm is used:
          13:36:42,546 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@121052
          java.lang.Throwable: STACKTRACE
           at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:290)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:417)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
           at org.jbpm.persistence.db.DbPersistenceService.getConnection(DbPersistenceService.java:178)
           at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:101)
           at org.jbpm.JbpmContext.getSession(JbpmContext.java:506)
           at org.jboss.seam.bpm.ManagedJbpmContext.joinTransaction(ManagedJbpmContext.java:88)
           at org.jboss.seam.bpm.ManagedJbpmContext.getJbpmContext(ManagedJbpmContext.java:73)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2083)
           at org.jboss.seam.Component.unwrap(Component.java:2109)
           at org.jboss.seam.Component.getInstance(Component.java:1888)
           at org.jboss.seam.Component.getInstance(Component.java:1853)
           at org.jboss.seam.Component.getInstance(Component.java:1830)
           at org.jboss.seam.Component.getInstance(Component.java:1825)
           at org.jboss.seam.bpm.ManagedJbpmContext.instance(ManagedJbpmContext.java:165)
           at org.jboss.seam.bpm.PooledTaskInstanceList.getPooledTaskInstanceList(PooledTaskInstanceList.java:32)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
           at org.jboss.seam.util.Work.workInTransaction(Work.java:40)
           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
           at org.jboss.seam.bpm.PooledTaskInstanceList_$$_javassist_5.getPooledTaskInstanceList(PooledTaskInstanceList_$$_javassist_5.java)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2083)
           at org.jboss.seam.Component.unwrap(Component.java:2109)
           at org.jboss.seam.Component.getInstance(Component.java:1888)
           at org.jboss.seam.Component.getInstance(Component.java:1841)
           at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
           at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
           at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:177)
           at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
           at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
           at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
           at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
           at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
           at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
           at javax.faces.component.UIData.getValue(UIData.java:582)
           at javax.faces.component.UIData.getDataModel(UIData.java:1063)
           at javax.faces.component.UIData.setRowIndex(UIData.java:417)
           at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:85)
           at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
           at javax.faces.component.UIData.encodeBegin(UIData.java:879)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577)
           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:595)
          


          Looks like JbpmContext doesn't close session/connection.
          Is this a known issue or should I start a new post?
          Or is this my problem? :-)

          • 17. Re: Ajax4jsf UnboundedFifoBuffer
            pmuir

            I've just given the dvdstore example a spin (which also uses jbpm) and I'm not seeing any errors so I don't think this is a packaging problem.

            I would suggest starting a new topic.

            • 18. Re: Ajax4jsf UnboundedFifoBuffer
              alesj

              Got it. :-)
              This happens if you explicitly set datasource's JNDI:

              <jbpm-configuration>
               <jbpm-context>
               <service name="persistence">
               <factory>
               <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
               <field name="isTransactionEnabled"><false/></field>
               <!--<field name="dataSourceJndiName"><string value="java:/cmsDatasource"/></field>-->
               </bean>
               </factory>
               </service>
               <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
               <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
               <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
               <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
               <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
               </jbpm-context>
              </jbpm-configuration>


              When I commented that piece out, it started working.
              But when I think about it, this should be probably obvious what was wrong, since there was a new connection opening ... As JBPM went directly to underlying DS. :-(

              • 19. Re: Ajax4jsf UnboundedFifoBuffer
                alesj

                 

                "pete.muir@jboss.org" wrote:
                Ales, please try with current CVS, I've fixed the drools problem, and put a temporary fix in place for the commons-beanutils problem.


                Uf, back to this problem.
                OK, not entirely. :-)

                The weird thing is that a friend of mine works on the same AS 4.2.1.GA, checked out latest CVS Seam trunk and built this same CMS example project.
                But he still gets the mentioned exception.

                What should I be careful about?
                Or what did you fix to make it go away for me?

                Our .ear's look quite alike - with fast inspection ... at least the richfaces libs are the same ...

                My .ear works from me and him.
                His fails for him and me.

                :-(


                • 20. Re: Ajax4jsf UnboundedFifoBuffer
                  pmuir

                  Make sure that the version of commons-beanutils is 1.7.0.seam (available here http://snapshots.jboss.org/maven2/commons-beanutils/commons-beanutils/1.7.0.seam/).

                  We're going to fix this properly http://jboss.com/index.html?module=bb&op=viewtopic&p=4087874#4087874

                  I'm not quite sure what happened - I think I fixed this in CVS, then somehow reverted it - but it should be ok now. Sorry :(

                  • 21. Re: Ajax4jsf UnboundedFifoBuffer
                    alesj

                     

                    "pete.muir@jboss.org" wrote:

                    I'm not quite sure what happened - I think I fixed this in CVS, then somehow reverted it - but it should be ok now. Sorry :(

                    Will only forgive if you also fix the weird issue that I have with s:formattedText tag. :-)
                    - http://jboss.com/index.html?module=bb&op=viewtopic&t=119551

                    • 22. Re: Ajax4jsf UnboundedFifoBuffer
                      asookazian

                      so what is the "official" fix to the UnboundedFifoBuffer exception? I'm getting this as well after migrating the Seam booking app from 4.0.5.GA to 4.2.1.GA with Seam 1.2.1.GA. It happens when I'm entering data into the inputText fields in the register use case screen.

                      I read this entire thread and recall Pete Muir stating that we should use Seam 1.3 with Jboss 4.2 but as far as I know, Seam 1.3 is in alpha.

                      Our corporate direction it to use JBoss 4.2.1.GA, so what's the recommendation here??

                      also, how do I access the CVS trunk? is it the same as the following?:

                      http://snapshots.jboss.org/maven2/

                      • 23. Re: Ajax4jsf UnboundedFifoBuffer
                        asookazian

                        I reproduced the exception:

                        Exception during request processing: javax.servlet.ServletException: org.apache.commons.collections.UnboundedFifoBuffer
                        


                        in a Seam app using JBoss 4.0.5.GA and Seam 1.2.1.GA by adding the following to my build.xml for a seam-gen'd app:

                        <copy todir="${war.dir}/WEB-INF/lib">
                         <fileset dir="${lib.dir}">
                         <include name="ajax4jsf*.jar" />
                         <include name="richfaces*.jar" />
                         <include name="oscache*.jar" />
                         <include name="jsf-facelets.jar" />
                         <include name="jboss-seam-*.jar" />
                         <!-- include commons-*.jar files for JSF 1.2 -->
                         <!--
                         <include name="commons-digester-*.jar"/>
                         <include name="commons-beanutils-*.jar"/>
                         -->
                         <exclude name="jboss-seam-gen.jar" />
                        
                        


                        Commenting the commons*.jar lines as above fixed it...

                        • 24. Re: Ajax4jsf UnboundedFifoBuffer
                          pmuir

                          The correct fix is to use RichFaces 3.1.1-GA.

                          Seam 1.3 == Seam 2.

                          1 2 Previous Next