6 Replies Latest reply on Jan 29, 2008 8:36 AM by Piotr Walczyszyn

    pojoCache is not injected with latest build from SVN

    Piotr Walczyszyn Newbie

      I just updated my project to run on latest source from SVN and current configuration doesn't inject pojoCache:

      @In
       private PojoCache pojoCache;


      throws org.jboss.seam.RequiredException: @In attribute requires non-null value

      Last SVN update that I did was 2-3 days ago and everything was fine. Any ideas what that can be?

        • 1. Re: pojoCache is not injected with latest build from SVN
          Nicklas Karlsson Master

          Anything in the deploy logs? Tried cleaning the project?

          • 2. Re: pojoCache is not injected with latest build from SVN
            Piotr Walczyszyn Newbie

            When I start JBoss everything is fine, when I run my application I get this stacktrace:

            08:22:26,444 ERROR [UICache] error accessing cache
            java.lang.NullPointerException
            at org.jboss.seam.ui.renderkit.CacheRendererBase.getFromCache(CacheRende
            rerBase.java:80)
            at org.jboss.seam.ui.renderkit.CacheRendererBase.doEncodeChildren(CacheR
            endererBase.java:34)
            at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.j
            ava:92)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
            java:812)
            at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java
            :186)
            at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.j
            ava:166)
            at org.jboss.seam.ui.renderkit.FragmentRendererBase.doEncodeChildren(Fra
            gmentRendererBase.java:29)
            at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.j
            ava:92)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
            java:812)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
            at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.jav
            a:592)
            at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWra
            pper.java:108)
            at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.j
            ava:216)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
            se.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(Appl
            icationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
            .java:83)
            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:45)
            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.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
            a:68)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
            .java:69)
            at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
            lter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
            alve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
            alve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
            yAssociationValve.java:179)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
            torBase.java:433)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
            e.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
            ava:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
            ava:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
            onnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
            ve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
            a:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
            :844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
            ss(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
            7)
            at java.lang.Thread.run(Thread.java:619)
            08:22:26,454 ERROR [STDERR] 2008-01-29 08:22:26 com.sun.facelets.FaceletViewHand
            ler handleRenderException
            SEVERE: Error Rendering View[/home.xhtml]
            javax.el.ELException: /layout/template.xhtml: @In attribute requires non-null va
            lue: usersStatistics.pojoCache
            at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:
            50)
            at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.j
            ava:39)
            at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java
            :184)
            at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.j
            ava:166)
            at org.jboss.seam.ui.renderkit.CacheRendererBase.doEncodeChildren(CacheR
            endererBase.java:41)
            at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.j
            ava:92)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
            java:812)
            at org.jboss.seam.ui.util.cdk.RendererBase.renderChild(RendererBase.java
            :186)
            at org.jboss.seam.ui.util.cdk.RendererBase.renderChildren(RendererBase.j
            ava:166)
            at org.jboss.seam.ui.renderkit.FragmentRendererBase.doEncodeChildren(Fra
            gmentRendererBase.java:29)
            at org.jboss.seam.ui.util.cdk.RendererBase.encodeChildren(RendererBase.j
            ava:92)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.
            java:812)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
            at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.jav
            a:592)
            at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWra
            pper.java:108)
            at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.j
            ava:216)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
            se.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(Appl
            icationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
            .java:83)
            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:45)
            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.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.jav
            a:68)
            at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter
            .java:69)
            at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
            lter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
            alve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
            alve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
            yAssociationValve.java:179)
            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
            torBase.java:433)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
            e.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
            ava:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
            ava:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
            onnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
            ve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
            a:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
            :844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
            ss(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
            7)
            at java.lang.Thread.run(Thread.java:619)
            Caused by: javax.ejb.EJBTransactionRolledbackException: @In attribute requires n
            on-null value: usersStatistics.pojoCache
            at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87)

            at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
            at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java
            :195)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInt
            erceptor.java:76)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulIn
            stanceInterceptor.java:83)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic
            ationInterceptor.java:77)
            at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth
            enticationInterceptor.java:106)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce
            ptor.java:46)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(Asynchrono
            usInterceptor.java:106)
            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
            java:101)
            at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContain
            er.java:204)
            at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.
            java:100)
            at $Proxy156.getActiveUsersCount(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
            at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocation
            Context.java:31)
            at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideIn
            terceptor.java:76)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
            Context.java:56)
            at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.j
            ava:41)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
            Context.java:68)
            at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(Synchroni
            zationInterceptor.java:32)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
            Context.java:68)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
            107)
            at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInter
            ceptor.java:54)
            at org.javassist.tmp.java.lang.Object_$$_javassist_9.getActiveUsersCount
            (Object_$$_javassist_9.java)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Dele
            08:22:26,464 ERROR [STDERR] gatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            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:2082)
            at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1926)
            at org.jboss.seam.Component.getInstance(Component.java:1863)
            at org.jboss.seam.Component.getInstance(Component.java:1840)
            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:166)

            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(FacesCompositeELRe
            solver.java:64)
            at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
            at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:18
            6)
            at com.sun.facelets.el.ELText$ELTextVariable.writeText(ELText.java:184)
            at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:
            45)
            ... 57 more
            Caused by: org.jboss.seam.RequiredException: @In attribute requires non-null val
            ue: usersStatistics.pojoCache
            at org.jboss.seam.Component.getValueToInject(Component.java:2168)...


            • 3. Re: pojoCache is not injected with latest build from SVN
              Nicklas Karlsson Master

              Never used pojoCache myself but the manual mentions treecache.xml. Do you have one (or is there a default included in the jars)?

              • 4. Re: pojoCache is not injected with latest build from SVN
                Pete Muir Master

                Post the whole of the startup log please. I might have broken something here.

                • 5. Re: pojoCache is not injected with latest build from SVN
                  Pete Muir Master

                  I've reverted the bad commit I made. Try now.