开发者

java.lang.IllegalStateException while closing popup form using OC4J 10.1.3.5 and ADF

We are using OC4J 10.1.3.5 and ADF. I have a popup form and when closing we got error below. I wonder what am I missing and how can I resolve it?

Jun 15, 2010 8:26:49 AM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
SEVERE: java.lang.IllegalStateException: popView(): No view has been pushed.
javax.faces.el.EvaluationException: java.lang.IllegalStateException: popView(): No view has been pushed.
        at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
        at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)
        at oracle.adf.view.face开发者_开发技巧s.component.UIXCommand.broadcast(UIXCommand.java:204)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)
        at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:327)
        at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:99)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
        at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
        at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:233)
        at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:202)
        at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:12


From the documentation:

IllegalStateException signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation.

There's no silver bullet to resolve these kinds of exceptions; you have to deal with it on a case by case basis, studying the API of whatever library you're using, and figuring out where the illegal state happens.

In this particular case, it looks like popView() is being called when the stack is empty. You may be missing a pushView, or miscalculating the number of pushes vs pops.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜