Announcement Announcement Module
Collapse
No announcement yet.
Webflow 2.2 + JSF 2.1 Not working Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Webflow 2.2 + JSF 2.1 Not working

    We are trying to upgrade our software stack to JSF 2.1, Webflow 2.2 and Richfaces 4 on Glassfish 3.1.

    But we are facing some problems. When we try to refresh a webflow page (by pressing the refresh button in the browser) with a JSF view we get the following exception:

    java.lang.NullPointerException
    at com.sun.faces.application.resource.ResourceImpl.re adExternal(ResourceImpl.java:415)
    at java.io.ObjectInputStream.readExternalData(ObjectI nputStream.java:1791)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1750)
    .............
    .............
    at org.springframework.webflow.engine.impl.FlowExecut ionImpl.readExternal(FlowExecutionImpl.java:305)
    at java.io.ObjectInputStream.readExternalData(ObjectI nputStream.java:1791)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1750)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1328)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:350)
    at org.springframework.webflow.execution.repository.s napshot.SerializedFlowExecutionSnapshot.deserializ e(SerializedFlowExecutionSnapshot.java:194)
    at org.springframework.webflow.execution.repository.s napshot.SerializedFlowExecutionSnapshot.unmarshal( SerializedFlowExecutionSnapshot.java:99)
    at org.springframework.webflow.execution.repository.s napshot.SerializedFlowExecutionSnapshotFactory.res toreExecution(SerializedFlowExecutionSnapshotFacto ry.java:80)
    at org.springframework.webflow.execution.repository.s napshot.AbstractSnapshottingFlowExecutionRepositor y.restoreFlowExecution(AbstractSnapshottingFlowExe cutionRepository.java:89)
    at org.springframework.webflow.execution.repository.i mpl.DefaultFlowExecutionRepository.getFlowExecutio n(DefaultFlowExecutionRepository.java:112)
    at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:168)
    at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:183)
    at org.springframework.webflow.mvc.servlet.FlowContro ller.handleRequest(FlowController.java:174)
    at org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:48)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:788)
    at org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:717)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:644)
    at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:549)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:735)

    We think the problem is that the ResourceImpl.readExternal method expects a FacesContext in FacesContext.getCurrentInstance(). While Webflow did not Initialize a FacesContext yet.

    Is this a known problem and how can we fix this problem?

    If there is more information required we will gladly provide it.

  • #2
    Hi, I just updated the issue since I came across the same problem and found a way to reproduce this exception. Could s.o. please reopen this issue?

    Comment

    Working...
    X