0 Replies Latest reply on Nov 13, 2009 3:57 PM by Osian Hughes

    Pageflow Component Not Found

    Osian Hughes Newbie

      Hi Everyone,


      I have a strange exception when I'm trying to use pageflows for the first time, it appears that the core component pageflow isn't loaded for some reason.
      Here is the exception in my logfile when I click on the s:link to initiate my nested conversation and pageflow:




      2009-11-13 15:38:18,646 DEBUG [org.jboss.seam.contexts.FacesLifecycle] >>> Begin JSF request for /error-correction/file-search.seam
      2009-11-13 15:38:18,646 DEBUG [org.jboss.seam.core.ConversationPropagation] Found conversation id in request parameter: 1
      2009-11-13 15:38:18,646 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: 1
      2009-11-13 15:38:18,662 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: errorFileSearch
      2009-11-13 15:38:18,662 DEBUG [org.jboss.seam.Component] selected row: null
      2009-11-13 15:38:18,662 DEBUG [org.jboss.seam.core.Manager] Beginning nested conversation
      2009-11-13 15:38:18,662 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.ConversationIdGenerator
      2009-11-13 15:38:18,662 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.pageflow.pageflow
      2009-11-13 15:38:18,662 DEBUG [org.jboss.seam.exception.Exceptions] reading exception mappings from /WEB-INF/pages.xml
      2009-11-13 15:38:18,677 ERROR [org.jboss.seam.jsf.SeamPhaseListener] swallowing exception
      javax.el.ELException: java.lang.NullPointerException
           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:333)
           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
           at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
           at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
           at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:175)
           at org.jboss.seam.navigation.Pages.callAction(Pages.java:708)
           at org.jboss.seam.navigation.Pages.preRender(Pages.java:346)
           at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:562)
           at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:473)
           at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
           at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
           at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
           at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:19)
           at com.icesoft.faces.context.View$2$1.respond(View.java:48)
           at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:201)
           at com.icesoft.faces.context.View$2.serve(View.java:77)
           at com.icesoft.faces.context.View.servePage(View.java:149)
           at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
           at com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
           at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:149)
           at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
           at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
           at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
           at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
           at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
           at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.NullPointerException
           at org.jboss.seam.core.ConversationInterceptor.beginNavigation(ConversationInterceptor.java:243)
           at org.jboss.seam.core.ConversationInterceptor.beginConversation(ConversationInterceptor.java:235)
           at org.jboss.seam.core.ConversationInterceptor.beginConversationIfNecessary(ConversationInterceptor.java:166)
           at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:57)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95)
           at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.core.ConversationalInterceptor.aroundInvoke(ConversationalInterceptor.java:43)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
           at com.nexustelecom.mediation.errorcorrection.FileSearch_$$_javassist_4.testing(FileSearch_$$_javassist_4.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:597)
           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
           ... 42 more
      





      As you can see, before the exception is thrown, it tells me that the pageflow component is not found, and the NPE is thrown where the ConversationInterceptor is attempting




      Pageflow.instance().begin(pageflowName);





      Anyone any thoughts or ideas around this?  Am I missing a jar file or something thats required when using pageflows??


      Oh, versions used:
      Java 1.6
      Seam 2.1.1.GA


      Also, due to restrictions, this application is deployed under tomcat.


      Thanks,
      Osian