5 Replies Latest reply on Mar 1, 2007 4:13 AM by idylle test

    Navigating through results pages problem

    idylle test Newbie

      Hi,

      I'm using the Hibernate Tools Code Generation to generate a seam application. It's working fine but I've got a problem when navigating through the results of a research.

      My case is :
      In the "Find page", I fill in criterias, then click on "Find". I get several answers and the button "next page" is activated. If I click about 10 or 15 times on the "Next page" or the "Previous page" button, I get an error. It doesn't appear each time at the same moment and the error is different each time, of type :

      javax.faces.FacesException: Cannot get value for expression '#{collectivitesSelector.createEnabled}'

      or
      11:13:57,442 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      javax.faces.FacesException: Cannot get value for expression '#{collectivites.departements.dptidt}'

      or
      javax.servlet.ServletException: Cannot get value for expression '#{collectivites.coltlc}'

      (My object name is "Collectivites")

      I'm using :
      Eclipse 3.2.1
      Hibernate tools 3.2.0.beta9a
      Seam 1.1.5
      JBoss 4.0.5

      Have you got any idea on how to solve this please?

        • 1. Re: Navigating through results pages problem
          Sean Burns Newbie

          I am having the same problem with seam-gen code (The generate-entities function). I had the problem with seam 1.1.5 and it still exists in 1.2.

          My work around at the moment is to just restart JBoss...this problem pops up for me after I have deployed/"seam restart" your app a few times to jboss.


          Anyway if someone can find another solution to this (because it is fine for a live enviroment where you hardly ever redeploy... but it is annoying while developing)..

          I just generate the entities, type seam restart then "browse" the database, seam restart... browse...etc... then... It just seams to happen at random (but quite often). When I get an exception/debug screen, I can just hit F5, and it it will display correctly.

          here is an example exception

          14:04:23,393 ERROR [STDERR] 2007/02/28 02:04:23 com.sun.facelets.FaceletViewHandler handleRenderException
          SEVERE: Error Rendering View[/QueueDatabasesList.xhtml]
          javax.faces.el.EvaluationException: Cannot get value for expression '#{queueDatabasesList.queueDatabases.dbUrl}'
           at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
           at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:57)
           at org.jboss.seam.pages.Param.getValueFromModel(Param.java:93)
           at org.jboss.seam.core.Pages.getPageParameterValue(Pages.java:582)
           at org.jboss.seam.core.Pages.getConvertedParameters(Pages.java:558)
           at org.jboss.seam.ui.HtmlLink.encodeBegin(HtmlLink.java:127)
           at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
           at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
           at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
           at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
           at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
           at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
           at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
           at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
           at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
           at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
           at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
           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:96)
           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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
           at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
           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:869)
           at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
           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(Thread.java:619)
          Caused by: java.lang.NullPointerException
           at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:620)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
           at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
           at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
           at org.jboss.seam.jsf.SeamApplication11.getPropertyResolver(SeamApplication11.java:170)
           at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
           at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
           at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
           ... 46 more


          and here is another one... all I do is hit the search button... over and over and over... until this pops up

          javax.faces.el.EvaluationException: /QueueDatabasesList.xhtml @82,66 value="#{queueDatabasesList.resultList}": Exception getting value of property resultList of base of type : coza.healthbridge.qmonitor.beans.entity.QueueDatabasesList$$EnhancerByCGLIB$$1afe9b5c
           at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
           at javax.faces.component.UIData.getValue(UIData.java:1019)
           at org.jboss.seam.ui.HtmlLink.getSelection(HtmlLink.java:42)
           at org.jboss.seam.ui.HtmlLink.encodeBegin(HtmlLink.java:175)
           at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:433)
           at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:419)
           at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:440)
           at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.renderColumnBody(HtmlTableRendererBase.java:332)
           at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java:301)
           at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:277)
           at org.apache.myfaces.shared_impl.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
           at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:244)
           at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
           at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
           at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
           at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
           at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
           at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
           at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
           at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
           at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:75)
           at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:213)
           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:96)
           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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
           at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
           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:869)
           at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
           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(Thread.java:619)
          Caused by: javax.faces.el.EvaluationException: Bean: coza.healthbridge.qmonitor.beans.entity.QueueDatabasesList$$EnhancerByCGLIB$$1afe9b5c, property: resultList
           at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:442)
           at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
           at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
           at com.sun.el.parser.AstValue.getValue(AstValue.java:117)
           at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
           at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
           at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
           ... 52 more
          Caused by: java.lang.reflect.InvocationTargetException
           at sun.reflect.GeneratedMethodAccessor448.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)
           ... 58 more
          Caused by: javax.faces.el.EvaluationException: Cannot get value for expression '#{queueDatabasesList.queueDatabases.groupName}'
           at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
           at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:57)
           at org.jboss.seam.framework.Query.isAnyParameterDirty(Query.java:280)
           at org.jboss.seam.framework.Query.isAnyParameterDirty(Query.java:308)
           at org.jboss.seam.framework.EntityQuery.getResultList(EntityQuery.java:39)
           at org.jboss.seam.framework.EntityQuery$$FastClassByCGLIB$$225925e6.invoke(<generated>)
           at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
           at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
           at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32)
           at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
           at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
           at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:154)
           at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:89)
           at coza.healthbridge.qmonitor.beans.entity.QueueDatabasesList$$EnhancerByCGLIB$$1afe9b5c.getResultList(<generated>)
           ... 62 more
          Caused by: java.lang.NullPointerException
           at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:620)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
           at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
           at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
           at org.jboss.seam.jsf.SeamApplication11.getPropertyResolver(SeamApplication11.java:170)
           at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
           at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
           at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
           ... 82 more
          


          Any solutions besides restarting jboss?


          • 2. Re: Navigating through results pages problem
            Gavin King Master

            Try increasing the perm gen space in your JVM to about 256 meg.

            • 3. Re: Navigating through results pages problem
              Gavin King Master

              The stuff in Hibernate Tools today is not uptodate. Try seam-gen in Seam 1.2.

              • 4. Re: Navigating through results pages problem
                Sean Burns Newbie

                The PermGen thing worked, thanks Gavin.

                • 5. Re: Navigating through results pages problem
                  idylle test Newbie

                  Increasing the permgen works for me too, thanks a lot!

                  I'm not using seam-gen because Hibernate Tools allow me to choose which tables are included in the reverse-engineering. I think it's not the case now with seam-gen.

                  I'll try to use seam-gen in Seam 1.2 again. Maybe I haven't seen some options.