ResponseComplete + lifecycle problem

hi all,
i have deployed a jsf app that has commandButton linked to
<h:commandButton actionListener="#{reportForm.renderListener}" value="#{example_messages['button_report']}" />a backing bean action that streams out a PDF and then calls responseComplete.
FacesContext context = FacesContext.getCurrentInstance(); 
                    HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
byte[] bytes = JasperRunManager.runReportToPdf(  jasperReportFile.getFile(),parameters, dataSource.getConnection()     );
response.setContentType( "application/pdf" );
response.setContentLength(bytes.length);
response.setHeader( "Content-disposition", "attachment;filename=DepreciationSummaryReport.pdf");
OutputStream out = response.getOutputStream();
out.write( bytes );
context.responseComplete();                                   Everything works fine when the button is clicked #1 and the pdf is downloaded. However the newly refreshed page does not behavior when the same button is clicked #2. It takes another click #3 before the action fires agains. The phaseTracker idenitfies the following phases invoked on click #2.
INFO: AFTER INVOKE_APPLICATION(5)
15:34:44,370 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RESTORE_VIEW(1)
15:34:44,370 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RESTORE_VIEW(1)
15:34:44,370 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RESTORE_VIEW(1)
15:34:44,385 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RESTORE_VIEW(1)
15:34:44,385 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RESTORE_VIEW(1)
15:34:44,385 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RESTORE_VIEW(1)
15:34:44,385 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RENDER_RESPONSE(6)
15:34:44,385 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RENDER_RESPONSE(6)
15:34:44,385 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker beforePhase
INFO: BEFORE RENDER_RESPONSE(6)
15:34:44,417 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE(6)
15:34:44,417 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE(6)
15:34:44,417 INFO  [STDOUT] 27/10/2005 15:34:44 org.exadel.jsf.PhaseTracker afterPhase
INFO: AFTER RENDER_RESPONSE(6)The application phase is not being invoked.
Any ideas?
-lp

Hi All.
I have what I suspect to be the same problem
Page 1 contains a an adf table based on a VO as well as a select list with some hardcoded values.
Page 2 contains my navigation link to page 1 as well as an adf table based on VO, radio select and some command buttons.
Which I click on the navigation link I am presented with the same error. The navigation case is set to redirect = True
The VOs are based on SQL Queries not attributes are set to not updateable
Are there any special properties I should be setting on the the select list on page 1 to enable the navigation to work correctly?
Should it matter or not whether Page 1 has been visited before?
Is it the select list which is likely to be causing the problem or something elese e.g. ADF Table?
We are using Jdev 10.1.3.3 on windows
Regards
Kris

Similar Messages

  • Lifecycle problem between navigations???

    When I wan to go one page(Page1) to another(Page2) with navigation via a button action( for example with name " go to Page2") , the below error is comming before the button action, why? and what is the cause of this?
    Jun 18, 2007 5:39:09 PM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
    SEVERE: Index: 1, Size: 1
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
         at java.util.ArrayList.RangeCheck(ArrayList.java:546)
         at java.util.ArrayList.get(ArrayList.java:321)
         at oracle.adf.view.faces.component.StampState.restoreChildStampState(StampState.java:119)
         at oracle.adf.view.faces.component.UIXTable.restoreStampState(UIXTable.java:428)
         at oracle.adf.view.faces.component.UIXCollection._restoreStampState(UIXCollection.java:1069)
         at oracle.adf.view.faces.component.UIXCollection.postRowDataChange(UIXCollection.java:695)
         at oracle.adf.view.faces.component.UIXCollection.setRowIndex(UIXCollection.java:380)
         at oracle.adf.view.faces.component.UIXTable._processStamps(UIXTable.java:499)
         at oracle.adf.view.faces.component.UIXTable.processFacetsAndChildren(UIXTable.java:379)
         at oracle.adf.view.faces.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:142)
         at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
         at oracle.adf.view.faces.component.UIXCollection.processDecodes(UIXCollection.java:137)
         at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
         at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
         at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
         at javax.faces.component.UIForm.processDecodes(UIForm.java:164)
         at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
         at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
         at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
         at oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
         at oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
         at oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:900)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:326)
         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:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Hi All.
    I have what I suspect to be the same problem
    Page 1 contains a an adf table based on a VO as well as a select list with some hardcoded values.
    Page 2 contains my navigation link to page 1 as well as an adf table based on VO, radio select and some command buttons.
    Which I click on the navigation link I am presented with the same error. The navigation case is set to redirect = True
    The VOs are based on SQL Queries not attributes are set to not updateable
    Are there any special properties I should be setting on the the select list on page 1 to enable the navigation to work correctly?
    Should it matter or not whether Page 1 has been visited before?
    Is it the select list which is likely to be causing the problem or something elese e.g. ADF Table?
    We are using Jdev 10.1.3.3 on windows
    Regards
    Kris

  • ADF 10.1.2: Lifecycle problem?

    I'm trying to set a whereClause param on my viewobject just before I show it in a JSP. To do this I have created a custom method in my applicationmodule that does setting the where clause on the viewobject and an execute query. This method is published in my datacontrol so I have dropped it on my DataPage. This is shown in the struts config as follows:
    <action path="/result" className="oracle.adf.controller.struts.actions.DataActionMapping" type="com.travelfinder.view.ResultAction" name="DataForm" parameter="/result.jsp">
    <set-property property="modelReference" value="resultUIModel"/>
    <set-property property="methodName" value="resultUIModel.setHotelWhereClause"/>
    <set-property property="resultLocation" value="${requestScope.methodResult}"/>
    <set-property property="numParams" value="1"/>
    <set-property property="paramNames[0]" value="3"/>
    </action>
    But when I run the program I'm getting the following stack trace:
    05/06/06 16:04:45 java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    05/06/06 16:04:45      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
    05/06/06 16:04:45      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
    05/06/06 16:04:45      at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1552)
    05/06/06 16:04:45      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2896)
    05/06/06 16:04:45      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2942)
    05/06/06 16:04:45      at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:691)
    05/06/06 16:04:45      at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:547)
    05/06/06 16:04:45      at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3422)
    05/06/06 16:04:45      at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:663)
    05/06/06 16:04:45      at oracle.jbo.server.ViewRowSetImpl.refreshCollection(ViewRowSetImpl.java:749)
    05/06/06 16:04:45      at oracle.jbo.server.ViewObjectImpl.refreshCollection(ViewObjectImpl.java:5412)
    05/06/06 16:04:45      at oracle.jbo.common.ws.WSRowSetImpl.doWork(WSRowSetImpl.java:647)
    05/06/06 16:04:45      at oracle.jbo.common.ws.WSViewObjectImpl.doWork(WSViewObjectImpl.java:454)
    05/06/06 16:04:45      at oracle.jbo.common.ws.WSApplicationModuleImpl.doWork(WSApplicationModuleImpl.java:751)
    05/06/06 16:04:45      at oracle.jbo.server.ApplicationModuleImpl.syncWorkingSet(ApplicationModuleImpl.java:1770)
    05/06/06 16:04:45      at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.syncWorkingSet(AbstractRemoteApplicationModuleImpl.java:1750)
    05/06/06 16:04:45      at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgRequest(AbstractRemoteApplicationModuleImpl.java:3798)
    05/06/06 16:04:45      at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processSvcMsgEntries(AbstractRemoteApplicationModuleImpl.java:4129)
    05/06/06 16:04:45      at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.readServiceMessage(AbstractRemoteApplicationModuleImpl.java:3389)
    05/06/06 16:04:45      at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.processMessage(AbstractRemoteApplicationModuleImpl.java:1859)
    05/06/06 16:04:45      at oracle.jbo.server.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:7336)
    05/06/06 16:04:45      at oracle.jbo.server.remote.AbstractRemoteApplicationModuleImpl.sync(AbstractRemoteApplicationModuleImpl.java:1825)
    05/06/06 16:04:45      at oracle.jbo.server.remote.colo.ServerApplicationModuleImpl.doMessage(ServerApplicationModuleImpl.java:263)
    05/06/06 16:04:45      at oracle.jbo.common.colo.ColoApplicationModuleImpl.doMessage(ColoApplicationModuleImpl.java:103)
    05/06/06 16:04:45      at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:6375)
    05/06/06 16:04:45      at oracle.jbo.client.remote.PooledRequestHandler.doMessage(PooledRequestHandler.java:130)
    05/06/06 16:04:45      at oracle.jbo.client.remote.ApplicationModuleImpl.doMessage(ApplicationModuleImpl.java:6375)
    05/06/06 16:04:45      at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1100)
    05/06/06 16:04:45      at oracle.jbo.client.remote.ApplicationModuleImpl.sendServiceMessage(ApplicationModuleImpl.java:1114)
    05/06/06 16:04:45      at oracle.jbo.client.remote.ApplicationModuleImpl.sendWorkingSetRequests(ApplicationModuleImpl.java:3497)
    05/06/06 16:04:45      at oracle.jbo.common.ws.WSApplicationModuleImpl.sendRequests(WSApplicationModuleImpl.java:1119)
    05/06/06 16:04:45      at oracle.jbo.common.ws.WSApplicationModuleImpl.sync(WSApplicationModuleImpl.java:1034)
    05/06/06 16:04:45      at oracle.adf.model.bc4j.DCJboDataControl.syncWithForceOption(DCJboDataControl.java:1124)
    05/06/06 16:04:45      at oracle.adf.model.bc4j.DCJboDataControl.syncIfNeeded(DCJboDataControl.java:1129)
    05/06/06 16:04:45      at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:1571)
    05/06/06 16:04:45      at oracle.adf.controller.lifecycle.PageLifecycle.prepareModel(PageLifecycle.java:205)
    05/06/06 16:04:45      at oracle.adf.controller.struts.actions.StrutsPageLifecycle.prepareModel(StrutsPageLifecycle.java:70)
    05/06/06 16:04:45      at oracle.adf.controller.struts.actions.DataAction.prepareModel(DataAction.java:295)
    05/06/06 16:04:45      at com.travelfinder.fwk.controller.TravelFinderDataForwardAction.prepareModel(TravelFinderDataForwardAction.java:103)
    05/06/06 16:04:45      at com.travelfinder.view.ResultAction.prepareModel(ResultAction.java:51)
    05/06/06 16:04:45      at oracle.adf.controller.struts.actions.DataAction.prepareModel(DataAction.java:486)
    05/06/06 16:04:45      at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:105)
    05/06/06 16:04:45      at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
    05/06/06 16:04:45      at com.travelfinder.fwk.controller.TravelFinderDataForwardAction.handleLifecycle(TravelFinderDataForwardAction.java:220)
    05/06/06 16:04:45      at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
    05/06/06 16:04:45      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    05/06/06 16:04:45      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    05/06/06 16:04:45      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    05/06/06 16:04:45      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
    05/06/06 16:04:45      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    05/06/06 16:04:45      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    05/06/06 16:04:45      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    05/06/06 16:04:45      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/06/06 16:04:45      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
    05/06/06 16:04:45      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    05/06/06 16:04:45      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
    05/06/06 16:04:45      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
    05/06/06 16:04:45      at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
    05/06/06 16:04:45      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
    05/06/06 16:04:45      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
    05/06/06 16:04:45      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
    05/06/06 16:04:45      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    05/06/06 16:04:45      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    05/06/06 16:04:45      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    05/06/06 16:04:45      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/06/06 16:04:45      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    05/06/06 16:04:45      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
    05/06/06 16:04:45      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
    05/06/06 16:04:45      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    05/06/06 16:04:45      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    05/06/06 16:04:45      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    05/06/06 16:04:45      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    05/06/06 16:04:45      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    05/06/06 16:04:45      at java.lang.Thread.run(Thread.java:534)
    oracle.jbo.InvalidOperException: JBO-25045: Attempt to synchronize iterator implicitly detected from row set iterator HotelView1.
         at oracle.jbo.client.remote.ApplicationModuleImpl.checkForBatch(ApplicationModuleImpl.java:788)
         at oracle.jbo.client.remote.ApplicationModuleImpl.isRangeAt(ApplicationModuleImpl.java:3655)
         at oracle.jbo.client.remote.RowSetIteratorImpl.isRangeAtTop(RowSetIteratorImpl.java:1041)
         at oracle.jbo.client.remote.RowSetIteratorImpl.first(RowSetIteratorImpl.java:848)
         at oracle.jbo.client.remote.RowSetImpl.first(RowSetImpl.java:899)
         at oracle.jbo.client.remote.ViewUsageImpl.first(ViewUsageImpl.java:827)
         at oracle.jbo.common.ws.WSRowSetIteratorBase.first(WSRowSetIteratorBase.java:328)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:638)
         at oracle.adf.model.binding.DCBindingContainer.refreshControl(DCBindingContainer.java:1596)
         at oracle.adf.controller.lifecycle.PageLifecycle.prepareModel(PageLifecycle.java:205)
         at oracle.adf.controller.struts.actions.StrutsPageLifecycle.prepareModel(StrutsPageLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.prepareModel(DataAction.java:295)
         at com.travelfinder.fwk.controller.TravelFinderDataForwardAction.prepareModel(TravelFinderDataForwardAction.java:103)
         at com.travelfinder.view.ResultAction.prepareModel(ResultAction.java:51)
         at oracle.adf.controller.struts.actions.DataAction.prepareModel(DataAction.java:486)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at com.travelfinder.fwk.controller.TravelFinderDataForwardAction.handleLifecycle(TravelFinderDataForwardAction.java:220)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Can someone help me here what I did wrong??

    As was said before - if you don't set the bind variables BEFORE calling super.prepareModel() then the bind variables won't be bound and you will get the error as shown above.
    You need to initialise the model
    protected void prepareModel(DataActionContext ctx) throws Exception {
    initializeModelForPage(ctx);
    super.prepareModel(ctx);
    initializeBindingsForPage(ctx);
    Then do something like the code below in a base action class that extends DataForwardAction
    protected void initializeModelForPage(DataActionContext ctx)
    HttpServletRequest req = ctx.getHttpServletRequest();
    ApplicantsModule am = (ApplicantsModule)ctx.getBindingContext()
    .findDataControl("ApplicantsModuleDataControl").getDataProvider();
    am.prepareForApplicantCount( "FRE", "REG");
    Then I have this in my application module class which actually binds the stuff.
    public void prepareForApplicantCount(String dept, String status)
    if (isNullOrEmpty(dept) )
    getApplicantCounts().setMaxFetchSize(0);
    else
    getApplicantCounts().setMaxFetchSize(-1);
    getApplicantCounts().setWhereClauseParams( new Object[] {dept, dept, status });
    getApplicantCounts().executeQuery();
    LOG.info( getApplicantCounts().getQuery() );
    }

  • Problem Refreshing Dynamic Region

    Hi ,
    I am facing problems in refreshing the dynamic region. Here is the usecase :
    One JSPX page : TestDynamicTaskflow.jspx
    First Taskflow : LinksTF -> Has one page with 3 command Buttons and one dynamic region.
    On click of 1st and second command button link tf-1 should be displayed and for third command button  tf2.
    Second Taskflow : tf-1    -> Taskflow has one jsff page with a inputText field ( required = true )
    Third taskflow : tf-2  -> Taskflow has one  jsff page with a inputText field ( required = true )
    Problem : Click 1st command button and tf1 is loaded. Now enter some value in inputText and click commandButton2 ... tf-1 is loaded but inputText retains the entered value... This is what is issue .

    Hi,
    the task flow is reloaded as you should be able to tell when setting a print message to be invoked in the task flow initializer. I assume the problem is with the text component not resetting its value. So its a JSF lifecycle problem, not a region issue. Have the command link switching the task flow, issuing
    oracle.adf.view.rich.util.ResetUtils.reset(regionId_in_here);
    Frank

  • Url extern in new window

    hello
    I set the url in backing bean with this code:
    FacesContext faces = FacesContext.getCurrentInstance();
    ExternalContext context =faces.getExternalContext();
    HttpSession session = (HttpSession)context.getSession(false);
    context.redirect(miurl);
    faces.responseComplete();
    the problem is that i want open the url in a new window pop-up.
    The url isn´t a page for my app, is url extern for example google.com
    Thank and sorry for my poor english

    Hi,
    if want to open the page with a simple link, you can do something like that:
    <af:goLink text="goLink 1" targetFrame="_blank"
    destination="http://google.com"/>
    Claus

  • Hi i am trying to download a .xls file from server but i cant

    I am using Tomcat 5.0, Where i am trying to download a .xls file.. which was uploaded by me.. when i try to download the file using line.. the content of the jsp file is there in the .xls file, i cant get the original .xls file
    here my code.. i am request this page by a button click...
    browser ask me to save download.jsp file....
    how to download a .xls file from the server... the file was uploaded by me to a folder temp
    <%@ page
    contentType="application/vnd.msexcel; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    %>
    <jsp:include page="http://localhost:9999/temp/B.xls"/>

    Help me please, I have this:
    File ficheroXLS = new File(strPathXLS);
    FacesContext ctx = FacesContext.getCurrentInstance();
    if (!ctx.getResponseComplete()) {
    String fileName = ficheroXLS.getName();
    String contentType = "application/vnd.msexcel";
    HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse();
    response.setContentType(contentType);
    response.setHeader("Content-Disposition", "attachment;filename=\"" + fileName + "\"");
    ServletOutputStream out = response.getOutputStream();
    out.write({color:#ff0000}ficheroXLS.toString().getBytes(){color});
    out.flush();
    out.close();
    ctx.responseComplete();
    My
    problem is marked with red color, I have a file. XLS and I want to
    download it, but to put what this red just showed me the PATH ...
    How can I do to make the contents of this file?
    What type of object must be the xlsReport?
    thanks greetings

  • OutputStream Losing session Data

    i have a jsf adf 11 project where i have a jspx page with two graphs.
    and i have a button where clients make a download the graph image.
    FacesContext fctx = FacesContext.getCurrentInstance();
    HttpServletResponse response = (HttpServletResponse) fctx
    .getExternalContext().getResponse();
    response.reset();
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Refresh", "1");
    response.setContentType("application/png");
    response.setHeader("Content-disposition", "attachment; filename=teste.png");
    try {           
    OutputStream outputStream = response.getOutputStream();
    graphSexo.getImageView().exportToPNG(outputStream);
    outputStream.flush();
    } catch (Exception e) {
    e.printStackTrace();
    fctx.responseComplete();
    My problem is after download prompt displays to the client, i lose all data from the page !
    I need to reder this page again to another download of this image !
    can anyone help me!?
    sorry about my english !!!

    I think you are using IE6 plus SP1. If yes try uninstall SP1 and you should be able to run an application as expected. I just had experienced "lost session" on WebSphere 4(WS4) with IE6+SP1 so I tested IE6+SP1(with varity of configuration setting) with WS on all SP of WS -> still lost the session. But testing IE6+SP1 on another application servers, I just tried couple of them but it all work fine. I finally test IE6 without SP1 -> the session is worked fine with the same application that didn't work on IE6+SP1.
    Guess it is the conflict between WS and IE6+SP1
    hope this helps.

  • Custom method return value will not pass to form

    I have created a custom method in my application module that returns a integer value. I am trying to use this value to fetch a row to populate a form. I cannot seem to get the value returned to populate the methodAction binding for the form.
    I have no problem displaying the returned value and have no problem populating the form if I hard code a value into the methodAction binding.
    I am trying to determine if this is a timing issue on page load, or some other issue with the returned integer.

    Hi,
    sounds like a lifecycle problem because the method call and execution of the VO iterator happen in the same phase. You can try setting the refresh conditions of the method to prepareModel and the iterator to prepareRender, but I doubt that this will solve the issue.
    What is the usecase ? And can the integer be handled within the AM to restrict the query (e.g. to set a ViewCriteria or bind variable)
    Frank

  • Problem with lifecycle

    Hi,
    I'm having some problems understanding the JSF lifecycle.
    I create a very simple page, with just one textfield:
    <h:inputText binding="#{test.testField1}" id="testField1" onchange="this.form.submit();"
    value="#{test.sampleText}" valueChangeListener="#{test.testField1_processValueChange}"/>
    I have a ValueChangeListener, and an onchange action. The TextField is bound to the sampleText property of my Bean.
    THe question is: when is that value updated? It seems that it is never the case.
    In the constructor of the bean, I set the default value of sampleText to:
    sampleText = "hello world";
    Then, in the ValueChangeListener, I do the following:
    System.out.println("Old value: " + vce.getOldValue());
    System.out.println("New value: " + vce.getNewValue());
    System.out.println("Value : " + sampleText);
    The problem is that whatever I type in the textfield, OldValue is always 'hello world', NewValue is the new value I typed, and sampleText is always 'hello world'
    What I expected to have was:
    Old Value: hello world
    New Value: newValue1
    Old Value: newValue1
    New Value: newValue2
    and so on...
    What's wrong with my stuff? Why is the sampleText never updated? How should I proceed to perform a one-time initialization, and get the property updated everytime I make a change?
    Thanks
    Jean-Noel Colin

    What I would like is an input field and a datatable
    Inputfield is a date and datatable contains all rows from a database that match the given date.
    So what I would like is when I change the input field, automatically, the datatable is updated.
    Since datatable comes from a rowset, I need to do setObject() with the new value, and execute the rowset again.
    That's what I would like, but it does not work. How can I get the new value to update my datatable?
    Cheers,

  • Problem with JSF lifecycle

    1> Create a index.html page which loads menu.jsp in frame 1 and search.jsp in frame 2
    2> menu.jsp --- define target as frame 2. Insert a command button, the action event of which re-loads search.jsp in frame 2
    3> search.jsp ---- insert one input text box.
    4> Start server and execute index.html on the server
    5> Click on command button in menu.jsp, it loads search.jsp in frame 2...ok...no problem....
    6> Keep on clicking the command link....after X number of clicks the menu.jsp gets loaded into frame 2.
    7> Click again and the cycle starts again...again after X number of clicks the menu.jsp gets loaded into frame 2.
    I have found that whenever the menu.jsp gets loaded in frame 2, the "Apply Request Values" phase and subsequent phases till the "Invoke Application" phase is not called.....Basically the menu.jsp page is not posted. In my case the X always turned out to be 18. I am testing on Websphere 5.1.2.
    Is this is bug in JSF lifecycle implementation OR a Webshere issue ?
    Appreciate any help in this regard.

    Thanks.
    Does anyone know if there is a patch available for WAS 5.1.2 to fix this problem ? OR is there any other solution because our company will not move to RAD 6 in the near future...Thks

  • Problem with Adobe LifeCycle Designer and NWDS

    Hi,
    I have a Problem using the LifeCycle Designer in NWDS. The LifeCycle Designer is installed but every time I am trying to start it from the NWDS there is an error  - Could not find the required product. Install SAP Interactive Forms - Adobe LiveCycle Designer...... .
    Does anybody have an idea?
    Thanks!
    best regards

    Hi,
    I had the same issue.
    the versions were these:-
    ALCD->8.1
    NWDS->7.0.114
    whenever I was trying to edit the interactive form the same error was thrown.
    So I removed the Adobe LiveCycle Designer 8.1 from my machine.
    Installed Adobe LiveCycle Designer 7.1 in place.
    Now it is working fine.
    Don't know the exact reasons why it was not working, but still keeping a copy of the 7.1 in your machine will help.
    Regards,
    AJ

  • Lifecycle Designer Opening Problems

    I use Acrobat 8 with the Lifecycle Designer, but i can only start the designer within an opened Acrobat window with the "New Formula" dialogue.
    When i open the designer with his own shortcut, it starts and shows the work space for 1 second and then it closes and starts an normal Acrobat window.
    Reinstalling of Acrobat 8 doesn´t help. I've tried it several times.
    This isn´t an really bad problem but it is annoying.
    Does anybody know how can i solve it, an start the designer directly?

    I´ve found the solution for this problem in the bug-forum in here
    It is written here
    http://www.adobeforums.com/cgi-bin/webx/.3bc2d802/4

  • LifeCycle pdf Form Created - email button problem, windows rights

    I am currently struggling to roll out a form that allows users to email their data back to a recipient.  I have over come the common issues about the type of email button and enabling extended features.  The problem I have falls down to Windows User Rights, if I am an administrator on the computer I can email the form without problems.  But logged in as a normal user the button does nothing, no error, no indication.
    The user are using adobe reader 9.3.
    Thanks in advanced.

    You might want to check the virus scan software and ensure that it will allow programmatic access to the mail client on the machine. We use McCaffee and here is the screen shot that shows the restrcition.

  • Problems activating an adobe forms object / lifecycle designer

    Hi everybody,
    our developers are getting more and more problems when they try to activate an adobe forms object in SAP.
    When they click on the activate icon, SAP freezes – and after 3-4 minutes of waiting, SAP displays, that e.g. 105.570 bytes were transferred, but the document remains inactive.
    So by now they need about 5 attempts before it finally gets activated…this is very time consuming and frustrating.
    Does anybody know a solution to this problem?
    Any ideas?
    Thanks in advance
    Regards
    Martin

    Hi everybody,
    our developers are getting more and more problems when they try to activate an adobe forms object in SAP.
    When they click on the activate icon, SAP freezes – and after 3-4 minutes of waiting, SAP displays, that e.g. 105.570 bytes were transferred, but the document remains inactive.
    So by now they need about 5 attempts before it finally gets activated…this is very time consuming and frustrating.
    Does anybody know a solution to this problem?
    Any ideas?
    Thanks in advance
    Regards
    Martin

  • Problem with Adobe Lifecycle Designer 8.0

    I am trying to use the email submit button in Lifecycle Designer 8.0 and I do not have the Control option in the field tab. Does anyone know how to have the control type selection appear in the field tab?

    Hi,
    I had the same issue.
    the versions were these:-
    ALCD->8.1
    NWDS->7.0.114
    whenever I was trying to edit the interactive form the same error was thrown.
    So I removed the Adobe LiveCycle Designer 8.1 from my machine.
    Installed Adobe LiveCycle Designer 7.1 in place.
    Now it is working fine.
    Don't know the exact reasons why it was not working, but still keeping a copy of the 7.1 in your machine will help.
    Regards,
    AJ

Maybe you are looking for