JSF: partial page rendering is causing memory leak leading to outofmemory

JDeveloper 10.1.3.2.0
JDK: 1.6.0_06
Operating System: Windows XP.
I test my application for memory leaks. For that purpose, I use jconsole to monitor java heap space. I have an edit page that has two dependent list components. One displays all countries and the other displays cities of the selected country.
I noticed java heap space keeps growing as I change country from country list.
I run garbage collection and memory usage does not go down. If I keep changing the province for 5 minutes, then I hit a java heap space outofmemory exception.
To narrow down the problem, I removed the second city component and the problem still exists.
To narrow it down further, I removed autosubmit attribute from the country component and then memory usage stopped increasing as I change country.
country/city partial page rendering is just an example. I am able to reproduce the same problem on every page where i use partial page rendering. My conclusion is PPR is causing memory leak or at least the autosubmit attribute.
This is really bad. Anyone out there experienced same issue. Any help/advice is highly appreciated !!
Thanks
<af:panelLabelAndMessage
inlineStyle="font-weight:bold;"
label="Country:"
tip=" "
showRequired="true"
for="CountryId">
<af:selectOneChoice id="CountryId"
               valuePassThru="true"
               value="#{bindings.CountryId.inputValue}"
               autoSubmit="true"
               inlineStyle="width:221px"
               simple="true">
     <af:forEach var="item"
          items="#{bindings.CountriesListIterator.allRowsInRange}">
     <af:selectItem value="#{item.countryId}"
               label="#{item.countryName}"/>
     </af:forEach>
</af:selectOneChoice>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage
inlineStyle="font-weight:bold;"
label="City:"
tip=" "
showRequired="true"
for="CityId">
<af:selectOneChoice id="CityId"
               valuePassThru="true"
               value="#{bindings.CityId.inputValue}"
               partialTriggers="CountryId"
               autoSubmit="true"
               inlineStyle="width:221px"
               unselectedLabel="--Select City--"
               simple="true">
     <f:selectItems value="#{backing_CountryCityBean.citiesSelectItems}"/>
</af:selectOneChoice>
</af:panelLabelAndMessage>

Samsam,
I haven't seen this problem myself, no.
To clarify - are you seeing this behaviour when running your app in JDeveloper, or when running in an application server? If in JDeveloper, a copuple of suggestions:
* (may not matter, but...) It's not supported to run JDev 10g with JDK 6
* have you tried the [url http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk11.html]memory profiler
Best,
John

Similar Messages

  • ADF UIX Partial page rendering

    Hi
    I am facing a mysterious problem with partial page rendering in ADF UIX.
    My page contains a <header> H1 and inside this there are two headers(H2 and H3).
    The partial page rendering is in the header H2 and is working fine.
    When i remove the below header H3 the partial page rendering ceases to work and get stuck.
    Pasting the full code below. Please suggest.
    <?xml version="1.0" encoding="windows-1252"?>
    <!-- $Header: registration.uix 115.4.51.4 2009/12/14 13:10:05 kcthirum noship $ -->
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:myTemplate="http://xmlns.oracle.com/xhub"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j"
    xmlns:data="http://xmlns.oracle.com/cabo/marlin" expressionLanguage="el">
    <!--This UIX page is used as a tutorial page for new developers, which is why it has a lot of comments-->
    <!--This section describes the ApplicationModule used by this page, and any View Objects that are used to display UI components or are used in any of the event handlers-->
    <bc4j:registryDef>
    <!-- XhubRegAM is the application module used by the entire Registration flow. defFullName is just the class. configName is the Configuration, which always has the pattern <AM name>Local -->
    <bc4j:rootAppModuleDef name="XhubRegAM"
    defFullName="oracle.apps.snw.tpadmin.server.XhubRegAM"
    configName="XhubRegAMLocal" releaseMode="stateful">
    <bc4j:viewObjectDef name="TpProfilesRegVO" rangeSize="1" autoCreate="false"/>
    <bc4j:viewObjectDef name="UsersRegVO" rangeSize="1" autoCreate="false"/>
    <!--IdentifierDomainsView drives the dropdown list of Identifier Types-->
    <bc4j:viewObjectDef name="IdentifierDomainsView" rangeSize="20"/>
    <!--XhubTerritoriesTlView drives the dropdown list of Countries-->
    <bc4j:viewObjectDef name="XhubTerritoriesTlView" rangeSize="300"/>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <!--We import the template file xhub.uit, which has code to display the tabs, subtabs, global buttons, etc., appropriately-->
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="xhubtpadmin.uit"/>
    </templates>
    <content>
    <!--in this section we define all of the methods and ResourceBundle classes that we want to reference as data sources in our page-->
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!--We use the TextProvider class to display ANY text to the user. All text is controlled in the database and cached on the middle tier. This allows for translation and for customization of text-->
    <data name="textSource">
    <bundle class="oracle.apps.snw.uicommon.TextProvider"/>
    </data>
    <!--This method provides information about the hub-->
    <data name="adminInfo">
    <method class="oracle.apps.snw.tpadmin.webui.AdminInfo"
    method="getAdminInfo"/>
    </data>
    </provider>
    <contents>
    <document>
    <!--This section defines the html metadata, usually just the page title-->
    <metaContainer>
    <head title="${textSource.REGISTRATION}"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <!--This next tag indicates that everything inside of it should be encapsulated in the "rootChild" node of the template page-->
    <myTemplate:xhubTpAdminPageLayout selectedTab="1">
    <contents>
    <!-- this will contain any validation errors after form submission -->
    <messageBox automatic="true"/>
    <!--The form tag is necessary for any kind of form handling. This particular form performs some javascript validation before submitting-->
    <form name="reg" method="POST">
    <contents>
    <!--The javascript that is executed on form submission-->
    <!-- we cannot implicitly determine that events will be triggered because submit buttons are outside the form scope, so add the placeholder explicitly -->
    <formParameter name="event"/>
    <!-- define the bc4j scope of all child elements-->
    <bc4j:rootAppModuleScope name="XhubRegAM">
    <contents>
    <!-- a top-level header -->
    <header text="${textSource.REGISTRATION}">
    <contents>
    <!-- always used OraInstructionText, not <tip>, for explanation messages-->
    <styledText styleClass="OraInstructionText"
    text="${textSource.REG_PAGE_EXPLAIN}"/>
    <!-- a second-level header -->
    <header text="${textSource.REG_COMPANY_INFO}">
    <contents>
    <stackLayout>
    <contents>
    <!-- the labeledFieldLayout is the correct layout for vertically-stacked labeled fields-->
    <labeledFieldLayout id="TpPartialDetails" width="80%"
    labelWidth="40%">
    <contents>
    <messageChoice name="OracleAppsCustFlag"
    prompt="Oracle Apps Customer"
    required="yes" statePreserved="true"
    selectedValue="${ui:defaulting(uix.pageProp.OracleAppsCustFlag, 'select')}">
    <primaryClientAction>
    <firePartialAction event="buyorsup"
    targets="TpPartialDetails"
    formSubmitted="true"
    unvalidated="true"/>
    </primaryClientAction>
    <contents>
    <option text="-select-" value=""/>
    <option text="${textSource.YES}" value="Y"/>
    <option text="${textSource.NO}" value="N"/>
    </contents>
    </messageChoice>
    <messageTextInput prompt="${textSource.ORACLE_CSI_Q}"
    name="OracleCsi"
    text="${uix.pageProp.OracleCsi}"
    rendered="${ui:defaulting(uix.pageProp.OracleCsiRender, 'false')}"/>
    <messageTextInput prompt="${textSource.YOUR_TP_NAME}"
    name="TpName"
    tip="${textSource.YOUR_TP_NAME_TIP}"
    required="no"
    text="${uix.pageProp.TpName}"
    rendered="${ui:defaulting(uix.pageProp.TradeswithTPRender, 'false')}"/>
    <messageTextInput prompt="${textSource.YOUR_TP_ALIAS}"
    name="TpAlias"
    tip="${textSource.YOUR_TP_ALIAS_TIP}"
    required="no"
    text="${uix.pageProp.TpAlias}"
    rendered="${ui:defaulting(uix.pageProp.TradeswithTPAliasRender, 'false')}"/>
    </contents>
    </labeledFieldLayout>
    </contents>
    </stackLayout>
    </contents>
    </header>
    <!--level-2 header-->
    <header text="${textSource.TP_DEFAULT_CONTACT_INFO}">
    <contents>
    <labeledFieldLayout width="80%" labelWidth="40%">
    <contents>
    <!--all of these fields default to the corresponding ctrl:page value if the user has entered a value. These values are set up in the register() handler-->
    <messageTextInput prompt="${textSource.PASSWORD_PROMPT}"
    name="Password" id="Password"
    required="yes" secret="true"
    maximumLength="32"
    text="${uix.pageProp.Password}"/>
    <messageTextInput prompt="${textSource.PASSWORD_CONFIRM_PROMPT}"
    name="PasswordConfirm"
    id="PasswordConfirm" required="yes"
    secret="true" maximumLength="32"
    text="${uix.pageProp.PasswordConfirm}"/>
    </contents>
    </labeledFieldLayout>
    </contents>
    </header>
    </contents>
    </header>
    </contents>
    </bc4j:rootAppModuleScope>
    <spacer height="10"/>
    <!--message indicating how we indicate required fields-->
    <inlineMessage required="yes"
    prompt="${textSource.REQUIRED_FIELD}"/>
    </contents>
    </form>
    </contents>
    <!--the contents of this tag will appear below the page-->
    </myTemplate:xhubTpAdminPageLayout>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <!--event handlers-->
    <handlers>
    <!--This event is called by pressing the submit button-->
    <event name="continue">
    <bc4j:findRootAppModule name="XhubRegAM">
    <method class="oracle.apps.snw.tpadmin.webui.RegistrationHandlers"
    method="register"/>
    </bc4j:findRootAppModule>
    </event>
    <!--This event is called by pressing the Cancel button-->
    <event name="cancel">
    <!-- finding the ApplicationModule causes it to be checked out from the ApplicationPool. It is released after rendering completes. -->
    <bc4j:findRootAppModule name="XhubRegAM">
    <!-- rollback the current transaction -->
    <bc4j:rollback/>
    <!-- forward to the summary page -->
    <go name="main"/>
    </bc4j:findRootAppModule>
    </event>
    <!--the * event is called whenever the page is accessed and no other event is called-->
    <event name="buyorsup">
    <bc4j:findRootAppModule name="XhubRegAM">
    <!--This method sets the context of the page, namely the scope of the country dropdown view object-->
    <method class="oracle.apps.snw.tpadmin.webui.RegistrationHandlers"
    method="isBuyerorSupplier"/>
    </bc4j:findRootAppModule>
    </event>
    <event name="*">
    <bc4j:findRootAppModule name="XhubRegAM">
    <!--This method sets the context of the page, namely the scope of the country dropdown view object-->
    <method class="oracle.apps.snw.tpadmin.webui.RegistrationHandlers"
    method="setContext"/>
    </bc4j:findRootAppModule>
    </event>
    </handlers>
    </page>
    Please suggest if you know of any documentation on ADF UIX partial page rendering.
    ADF UIX has very little documentation online and finding it hard to debug this issue.
    It ll be of great help.
    Thanks
    Kamal

    Hi Jason,
    As of EA9, all rendered components support a partialTriggers attribute. This attribute takes a list of master component IDs. If any of the master components are updated via a partial event, the dependent component will be rerendered in the partial update.
    If you are on an earlier release, you should upgrade.
    Thanks,
    Jeanne

  • ADF Faces : simultaneous partial page rendering

    hi
    I'm wondering what I can expect from "simultaneous partial page rendering".
    I would like to have some af:selectOneChoice components on a page, with next to them some related information about the selected value.
    This example application, created using JDeveloper 10.1.3.3.0, does this using partial page rendering (check README.txt):
    http://verveja.footsteps.be/~verveja/files/oracle/SimultaneousPPRApp-v0.01.zip
    It as a pprPage.jspx with these components ...
              <af:panelPage title="pprPage">
                <af:panelHorizontal>
                  <af:commandButton text="some button"/>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="requestCounter.value = #{requestCounter.value}"/>
                </af:panelHorizontal>
                <af:panelHorizontal>
                  <af:selectOneChoice label="selectOneChoice A"
                                      id="selectOneChoiceA" autoSubmit="true"
                                      binding="#{backing_PPRPage.selectOneChoiceA}"
                                      valueChangeListener="#{backing_PPRPage.onChangeSelectOneChoiceA}">
                    <af:selectItem label="null value label"
                                   value="#{null}"/>
                    <af:selectItem label="first choice label"
                                   value="first-choice-value"/>
                    <af:selectItem label="second choice label"
                                   value="second-choice-value"/>
                    <af:selectItem label="third choice label"
                                   value="third-choice-value"/>
                  </af:selectOneChoice>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="#{backing_PPRPage.selectOneChoiceARelatedValue}"
                                 partialTriggers="selectOneChoiceA"/>
                </af:panelHorizontal>
                <af:panelHorizontal>
                  <af:selectOneChoice label="selectOneChoice B"
                                      id="selectOneChoiceB" autoSubmit="true"
                                      binding="#{backing_PPRPage.selectOneChoiceB}"
                                      valueChangeListener="#{backing_PPRPage.onChangeSelectOneChoiceB}">
                    <af:selectItem label="null value label"
                                   value="#{null}"/>
                    <af:selectItem label="fourth choice label"
                                   value="fourth-choice-value"/>
                    <af:selectItem label="fifth choice label"
                                   value="fifth-choice-value"/>
                    <af:selectItem label="sixth choice label"
                                   value="sixth-choice-value"/>
                  </af:selectOneChoice>
                  <af:objectSpacer width="10" height="10"/>
                  <af:outputText value="#{backing_PPRPage.selectOneChoiceBRelatedValue}"
                                 partialTriggers="selectOneChoiceB"/>
                </af:panelHorizontal>
                <af:outputText value="userAgentHelper.info = #{userAgentHelper.info}"/>
              </af:panelPage>... and has a backing bean like this ...
    public class PPRPage
         public String getSelectOneChoiceBRelatedValue()
              return "some " + fSelectOneChoiceB.getValue() + " related value"
                   + ", requestCounter.value = " + ELHelper.get("#{requestCounter.value}");
         public String getSelectOneChoiceARelatedValue()
              return "some " + fSelectOneChoiceA.getValue() + " related value"
                   + ", requestCounter.value = " + ELHelper.get("#{requestCounter.value}");
         public void onChangeSelectOneChoiceA(ValueChangeEvent pValueChangeEvent)
              // simulating a slow operation/response
              try
                   Thread.sleep(2000);
              catch (InterruptedException ex)
                   ; // ignore;
         public void onChangeSelectOneChoiceB(ValueChangeEvent pValueChangeEvent)
              // nothing here to slow things down
    }It is important to note that changing the value for the "selectOneChoice A" dropbox has some time consuming operation to perform (possibly calculating/querying the related information to show next to it).
    Using IE 6 ("userAgentHelper.info = ... MSIE 6.0 ..."), this behaves like this:
    (ie-1) Run pprPage.jspx in JDeveloper, which results in a page that shows this:
    selectOneChoice A [null value label] some null related value, ...
    selectOneChoice B [null value label] some null related value, ...(ie-2) Select "first choice label" from the "selectOneChoice A" dropbox and immediatly after that select "fourth choice label" from the "selectOneChoice B" dropbox, which results in a page that shows this:
    selectOneChoice A [first choice label] some first-choice-value related value, ...
    selectOneChoice B [fourth choice label] some null related value, ...(ie-3) Select "second choice label" from the "selectOneChoice A" dropbox, which results in a page that shows this:
    selectOneChoice A [second choice label] some second-choice-value related value, ...
    selectOneChoice B [fourth choice label] some fourth-choice-value related value, ...Using Firefox 2.0 ("userAgentHelper.info = ... Firefox/2.0.0.12"), this behaves like this:
    (ff-1) Do the same as in step (ie-1), which has the same result as step (ie-1).
    (ff-2) Do the same as in step (ie-2), which results in a page that shows this:
    selectOneChoice A [first choice label] some first-choice-value related value, ...
    selectOneChoice B [fourth choice label] some fourth-choice-value related value, ...
    questions:
    (q1) Why does the related information, for the selected "fourth choice label", not show up in step (ie-2) (as it does in step (ff-2))?
    (q2) Why does the related information, for the selected "fourth choice label", show up in step (ie-3) while the value was only/already changed in step (ie-2)?
    (q3) Does some general approach exist to prevent "simultaneous partial page rendering" behaviour as described in (q1) and (q2)?
    many thanks
    Jan Vervecken

    repost
    --

  • ADF Faces : partial page rendering in f:subview

    hi
    Please consider this blog post, "ADF Faces: How-to issue a PPR event from a f:subview and how-to PPR of subviews" :
    http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-how-to-issue-a-ppr-event-from-a-fsubview-and-how-to-ppr-of-subviews/
    In this post, Frank Nimphius writes : "... PPR from a containing page to the subview - unfortunately - only works for the whole subview, which means that the included page is getting refreshed. Because the f:subview component does not support PR, you need to work with a wrapping ADF Faces container, like af:panelGroup ...".
    But, it looks like such partial page rendering in a subview can be done without a specific "wrapping ADF Faces container" like this ...
            <h:form id="firstPPRPageFormID">
              <af:panelPage title="firstPPRPage">
                <af:panelHeader text="components on firstPPRPage">
                  <af:panelForm>
                    <af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
                      <af:outputText value="#{dateUtil.currentDateAsString}"
                                     partialTriggers="firstSubviewID:firstSubviewCButton"/>
                    </af:panelLabelAndMessage>
                    <af:panelLabelAndMessage label="dateUtil.currentDateAsString">
                      <af:outputText value="#{dateUtil.currentDateAsString}"/>
                    </af:panelLabelAndMessage>
                    <f:facet name="footer">
                      <af:commandButton text="firstPPRPage button"
                                        id="firstPPRPageCButton"
                                        partialSubmit="true"/>
                    </f:facet>
                  </af:panelForm>
                </af:panelHeader>
                <f:subview id="firstSubviewID">
                  <jsp:include page="/firstSubview.jspx" flush="true"/>
                </f:subview>
              </af:panelPage>
            </h:form>... and where firstSubview.jspx contains something like this ...
      <af:panelHeader text="components on firstSubview">
        <af:panelForm>
          <af:panelLabelAndMessage label="dateUtil.currentDateAsString, with partial trigger">
            <af:outputText value="#{dateUtil.currentDateAsString}"
                           partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
          </af:panelLabelAndMessage>
          <af:panelLabelAndMessage label="dateUtil.currentDateAsString">
            <af:outputText value="#{dateUtil.currentDateAsString}"/>
          </af:panelLabelAndMessage>
          <f:facet name="footer">
            <af:commandButton text="firstSubview button" id="firstSubviewCButton"
                              partialSubmit="true"/>
          </f:facet>
        </af:panelForm>
      </af:panelHeader>Note the value ":firstPPRPageFormID:firstPPRPageCButton" for the partialTriggers attribute.
    see http://verveja.footsteps.be/~verveja/files/oracle/PartialPageRenderingInSubview-v0.01.zip (check README.txt)
    questions:
    (1) Why exactly does this approach seem to work?
    (2) Because of question (1), what could be potential issues with this approach?
    regards
    Jan Vervecken

    Jan,
    good job ! I actually never thought of reversing what I said about PPR'ing a component from a subview.
    Actually
    partialTriggers=":firstPPRPageFormID:firstPPRPageCButton"/>
    works because the leading ":" makes ADF Faces to start the component search from the root container. Note that if you use af:form instead of h:form, the trigger is
    partialTriggers=":firstPPRPageCButton"/>
    I'll update my blog
    Frank

  • Global error page - compatible with partial page rendering

    My global error page doesn't show in some isolated cases. Could this be because of partial page rendering? What changes might be needed to have it work in all cases?
    I have created a global error page and set it in the web.xml with:
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>pages/htmlErrorPage.html</location>
    </error-page>
    This displays the htmlErrorPage when errors occur in nearly all my tested cases. However, when the test error is created inside one page redraw I find that the application dies without ever displaying my error page. On the console I get an error message that starts with:
    Jun 13, 2008 12:54:11 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
    SEVERE: Error during partial-page rendering
    javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.softrek.adf.view.managed.JFreeChartPlotter'.. class com.softrek.adf.view.managed.JFreeChartPlotter : java.lang.NullPointerException
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    But my error page doesn' t show up. I've used the identical test error in most other parts of my application and it shows - so other than the partial page rendering going on, I can't see why this case would be different.
    Is there any known bug (or feature) about the use of an error page during partial page rendering?
    Any ideas will be welcome.

    I'm unclear on how I would get the error to redirect.
    I've changed my web.xml to go to a servlet of my creation, set up the mapping and all.
    It works fine for exceptions generated in a backing bean normally.
    When the exception occurs as part of partial page rendering the error servlet is not called and the user's session dies.
    This is being done in JDeveloper 10.1.3.3
    The new web.xml contains:
    <error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/servlet/errorAction</location>
    </error-page>
    Which is working for errors generated under most circumstances but not when they are inside my partial page change.
    How do I get errors to go to my error page when the error occurred during PPR?
    PS. Using the PartialPageUtils.isPartialRequest() method generated a recursive error in my error servlet. This looks like the known limitation for Faces error handling.

  • Can we implement partial page rendering on item style Flex??

    Hi All,
    In an xml,
    I have item style 'Flex' for expense account.
    Requirement is :
    In the same page i have other LOV which brings the data based on one of the segments of that expense account.
    So any changes in one of the segments for the expesne account need to be stored and LOV query should be modified accrodingly..
    So trying with following possibilties
    1) Use partial page rendering for expense account
    2) Split the page into two so that first expense account is displayed and any modifications to it are handled in controller and use LOV Mappings to update the query.
    So can partial page rendering can be implemented for Item style "Flex".
    Can anyone please provide the inputs to handle this scenario and best possible solution?
    Issue is very hot right now.. Quick help needed..

    Hi
    No u can not use PPR for flex items although u can create context flexfield .
    thanx
    Pratap

  • Partial Page Rendering - newbie question

    I am a newbie to ADF and I am in the process of trying out the tutorial "Developing Ajax-Based User Interfaces with ADF Faces Rich Client Components" http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_56/jdtut_11r2_56.html
    I have a question regarding Step 4. I am not very sure where to post this question, if this is not the correct forum, pardon me.
    Under "Step 4: Implementing Partial Page Rendering" there is this following comment
    In order to have a refresh of the Product Details when you select another row in the Product table, we need to set the Partial Rendering behavior. To do so, perform the following steps:
    Similarly On Step 3, sub step 26 states "Finally, double-click on any of the rows in the product table. Notice that the Product Details pane does not reflect the change in the selected product. To implement this synchronization, we need to add partial page rendering functionality."
    Question: even before I tried any of the changes mentioned in step 4, I am finding that the product details pane does show information related to the product selected on the panel collection (in other words it is displaying the master detail information automatically). What am I missing here? As per the training document it is supposed to work only after implementing changes mentioned in step 4. Can one of you kindly point out if this is a mistake in documentation or if I have misunderstood the statement?
    Thanks
    A Sreedhar

    Frank,
    Thank you very much for the quick turnaround; I appreciate it.
    Yes, I am using what seems to be the latest version of JDev (11.1.2.3.0); and yes the ChangeEventPolicy for the iterator is set to "ppr". Thank you for pointing that out.
    Does that mean ppr is standard for most components (when I say components, I mean adf tables, button's etc), don't we need to add any special events to get that to work?
    I just wanted to see, what will it due if the ChangeEventPolicy for the iterator is set to "None"; made the change saved it, there were two iterators I changed the "ChangeEventPolicy" on both to none; saved it and ran the page. It worked same as before; I was expecting it will not load the corresponding data at the child level, but it did. can you kindly point out what is wrong.
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="root" RangeSize="25" DataControl="StoreProducts" id="StoreProductsIterator"
    ChangeEventPolicy="none"/>
    <accessorIterator MasterBinding="StoreProductsIterator" Binds="products" RangeSize="25" DataControl="StoreProducts"
    BeanClass="tutorial.model.Product" id="productsIterator" ChangeEventPolicy="none"/>
    </executables>
    Thanks
    Aravind S

  • Partial page rendering making the transaction very slow

    Hello,
    I have partial page rendering enabled to 3 radio buttons in a page. Whenever i click a radio button, its taking around 15 to 20 seconds to finish the transaction and select the radio button. Not sure how to make it react faster. Any advice?
    Thank You
    --KK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi KK ,
    Is it slow every time you click on radio button and its happening intermittently ?
    Regards ,
    Keerthi

  • Can Java program cause memory leak?

    Can Java program cause memory leak or memory crash? I don't mean any memory overflow related exceptions. I mean something like core dump in UNIX or error reports in Windows XP.
    If it can really happen, in what circumstances? I raise such a question because our J2EE based system had really caused memory leak in Windows XP systems, but so far we still fail to troubleshoot the problem.

    Your code may leak memory. There are many, many, many reasons this could be. All of them represent bugs in your code.
    You should get a profiler to identify the problem spots of your code.
    You spoke of a memory crash as well. The VM may crash with some bug in the VM, or a bug in native code but that is not relevent to your problem. A memory leak is a problem in your code.

  • Partial page rendering not working in ie9

    Hello guys, i have one fusion web application and got menu navigation using partial page rendering. The problem is, the ppr is working fine in firefox, chrome, ie8 and ie7 but not working in ie9. Is it i need to update jdeveloper patch or something?
    My ppr setting
    put below code in web.xml
    <context-param>
    <param-name>oracle.adf.view.rich.pprNavigation.OPTIONS</param-name>
    <param-value>on</param-value>
    </context-param>
    for the menu just enable partial submit
    partialSubmit="true"

    Oh sorry, currently i am using jdeveloper version 11.1.1.5.0. Actually it is not shown any error, when i click the command link as example below, in ie9, nothing happens still displaying same page (my main page).
    my sample menu
    *<af:commandLink partialSubmit="true" action="page1" text="Page 1" id="cl2"/>*
    *<af:commandLink partialSubmit="true" action="page2" text="Page 2" id="cl3"/>*
    in task flow, action page1 will open page1.jspx and page2 will open page2.jspx

  • Subtab partial page rendering question

    Hi,
    I have a subtablayout bean with two adv table regions. The subtab links in the subtabbar bean are set to partial action. When I run the application for the first time, the subtab one is shown and clicking on the second tab, the VO tied to the second adv table is fired but I see only one row in it.
    When I click to go back to the first tab and then back to the second tab again I see all the records of second VO now.
    I change the action type from fire partial action to fire action for the second tab link. After this, I see all the records displayed the first time I navigate to second tab.
    What should I do to see all the records in the second tab the first time I navigate to it while keeping the partial page rendering mode.
    Thank you,
    Arun

    Thank you for your time Srinath.
    I used getCurrentRowIndex on the VO tied to the second tab and it returns -1 for the first time as well as subsequent navigations to the second tab.
    The table navigation shows "1-10 ..Next" (my setting is to show 10 records at a time in the advance table). It is not showing the 200-201 range.
    "getRowCount(..) would explicitly re-execute the query. This answers why you see the whole set of rows when you have this in the SOP. "
    I am not sure what you mean here..could you please explain. I understand 'getRowCount would re-execute the query' part. But the normal behavior for the advance table should have been to show the first 10 records since the VO has already been executed once.

  • Can i use partial page rendering with BC4J?

    Hi!
    I can't use partial page rendering when i use table for bc4j...
    Why is it?
    Viktor

    Why do you say that? It seems to work fine for me...

  • Calling SetLocalTime in C# causes Memory Leak (WEC7)

    Hello,
    I use SetLocalTime() in C#. Everything works well if I start explorer.exe and my application. But if I don't start explorer.exe at system start. SetLocalTime() causes memory leak in my application. I call the function frequently every hour.
    public static bool SetzeLokalZeit(SYSTEMDATETIME lpSystemTime)
    #if DEADLOCKDETECT
    using (DdMonitor.Lock(MyTimeLock, "MyTimeLock#1"))
    #else
    lock (MyTimeLock)
    #endif
    bool ret = false; // no Success
    try
    GLB.LogFile.MyWrite("SetLocalTime");
    SYSTEMDATETIME loc = new SYSTEMDATETIME();
    loc.wYear = lpSystemTime.wYear;
    loc.wMonth = lpSystemTime.wMonth;
    loc.wDayOfWeek = lpSystemTime.wDayOfWeek;
    loc.wDay = lpSystemTime.wDay;
    loc.wHour = lpSystemTime.wHour;
    loc.wMinute = lpSystemTime.wMinute;
    loc.wSecond = lpSystemTime.wSecond;
    loc.wMilliseconds = lpSystemTime.wMilliseconds;
    ret = SetLocalTime(ref loc);
    if (!ret) // no Success
    int err = Marshal.GetLastWin32Error();
    if (err > 0)
    GLB.LogFile.MyWrite("ERROR CODE:" + err.ToString());
    else ret = true;
    catch (Exception ex)
    GLB.LogFile.MyWrite("000023 Exception" + ex.Message);
    finally
    GLB.LogFile.MyWrite("SetLocalTime Ende");
    return ret;
    Has someone an idea what's the problem?
    Best regards,
    Andreas

    Hello,
    Here the answers to the questions:
    1. Does the SetLocalTime function succeed?
    Calling SetLocalTime doesn't cause an exception an the local time is set correctly.
    2. Do you still get the memory leak if you remove all other calls?
    Yes. I have removed any other code, but I also get the memory leak.
    3. Does the memory leak also occur when you do this from native code?
    I have not tried it yet. But I will still make it...
    [DllImport("coredll.dll")]
    private static extern void GetLocalTime(ref SYSTEMDATETIME lpSystemTime);
    [DllImport("coredll.dll", SetLastError = true)]
    private static extern bool SetLocalTime(ref SYSTEMDATETIME lpSystemTime);
    [StructLayout(LayoutKind.Sequential)]
    public struct SYSTEMDATETIME
    public ushort wYear;
    public ushort wMonth;
    public ushort wDayOfWeek;
    public ushort wDay;
    public ushort wHour;
    public ushort wMinute;
    public ushort wSecond;
    public ushort wMilliseconds;
    public static bool Pub_SetLocalTime(SYSTEMDATETIME lpSystemTime)
    lock (MyTimeLock)
    bool ret = false; // no Success
    try
    loc_set.wYear = lpSystemTime.wYear;
    loc_set.wMonth = lpSystemTime.wMonth;
    loc_set.wDayOfWeek = lpSystemTime.wDayOfWeek;
    loc_set.wDay = lpSystemTime.wDay;
    loc_set.wHour = lpSystemTime.wHour;
    loc_set.wMinute = lpSystemTime.wMinute;
    loc_set.wSecond = lpSystemTime.wSecond;
    loc_set.wMilliseconds = lpSystemTime.wMilliseconds;
    ret = SetLocalTime(ref loc_set);
    if (!ret) // no Success
    int err = Marshal.GetLastWin32Error();
    if (err > 0)
    MessageBox.Show("Win32 Error:", err.ToString());
    else ret = true;
    catch (Exception ex)
    MessageBox.Show("SetLocalTime,Exception:", ex.ToString());
    finally
    return ret;
    Best regards,
    Andreas

  • OAF disable lov partial page rendering

    hi
        i want to disable partial page rendering in one page program,like profile 'FND:disable Partial page rendering' function.
    please help me.

        Hi there ,
       Are you trying to disable the PPR for custom page or its a Oracle standard page ?
      Regards ,
      Keerthi

  • Does call to ptsname() cause memory leak?

    Purify signalled that the call to ptsname() is a memory leak. ptsname() returns a char* and
    apparently is doing this on the heap even though the man page says it is a static data area. My
    question is whether we need to do a free() on the return from ptsname()?

    I believe that there was a memory leak problem with DataSocket 3.0 which came with LabVIEW 5.1. Try upgrading DataSocket to 4.0.
    http://digital.ni.com/softlib.nsf/web%2Fall%20software?OpenView&Start=1&Count=500&Expand=6#6
    If that does not work, the problem may not have been resolved until LabVIEW 6. Also, if you happened to be using the French version of LabVIEW, contact tech support, there was a specific problem there which does have a work around.

Maybe you are looking for