Problems in partial refresh

Hi everyone
In my jsp page(second page) ,I have 2 Radio buttons and I am getting some parameters from the previous jsp page(first page).
I have to refresh partially the second jsp page based on the click event of any radio buttons placed there.But when I refresh ,the parameters obtained from the first page becomes null.
I want to retain the parameters and hide some fileds(in second page) based on the Radio button selected.
Can anyone help me to solve this issue?
Thanks
-Jegan

send the parameters as hidden fields in the second jsp n forward it to the client
so that the fields of the old jsp could be retained along with
the vslues of the paramenter of the second jsp. no need of any refresh
or use cookies or sessions

Similar Messages

  • Problem doing partial refresh (pull) of HTML region

    In my application, I have a page where on the left I have a list of documents and, on the right, selected document in PDF format.
    The right region is defined as HTML:
    <object id="DataPDF" data="f?p=&APP_ID.:18:&APP_SESSION.:APPLICATION_PROCESS=odp_show_doc::::" type="application/pdf"></object>The function odp_show_doc gets PDF document from a web service and returns a PDF BLOB that fills the region.
    However, to refresh the region with valid document data, I have to resubmit the page each time the user selects a new document.
    To refresh the page partially (only the PDF region), I have tried to use Carl Backstrom's example (http://apex.oracle.com/pls/otn/f?p=11933:48) to pull the PDF content from another page, but to no avail.
    I have defined another page (2) with a region that does the job. When I go directly on that page, I see the PDF region filling. But when I try to pull the same page with the code
    var gReturn;
    var get=new htmldb_Get(null,html_GetElement('pFlowId').value,null, 2);
    get.addParam('P0_NUM_DOC_GED', numDocGed);
    gReturn = get.get(null,'<htmldb:BOX_BODY>','</htmldb:BOX_BODY>'); 
    alert(gReturn);I get the following error:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML2.0 EN">
    <html>
       <head>
          <title>404 Not Found</title>
       </head>
       <body>
          <h1>Not Found</h1>
          <p>The requested URL /pls/apex/wwv_flow.show was not found.</p>
       </body>
    <html>In this case, the odp_show_doc is never called (I have added some debug info in this ODP function).
    Has anyone an idea of what I am doing wrong and what correction should I do to make this pull work?
    Thank you.
    Igor

    Well... It seems to work directly on the machine, if I use the following URL when calling the application:
    http://localhost:8080/apex/f?p=120However, when I call the application from outside with the URL
    https://app-url/pls/apex/f?p=120, pulling the region based on on-demand-process results in:
    The requested URL /pls/apex/wwv_flow.show was not foundPulling an ordinary report is OK.
    Igor

  • JQuery problem after ADF partial refresh

    Hi,
    I am using JDeveloper 10.1.3, and am trying to spice things up a little with some jQuery. However some of this code does not work as I expect after a partial refresh. In a simple page for testing purposes I have:
    bq. &lt;afh:script text=" \\     $(document).ready(function() { \\         oldBackgroundColor = $('#outputText').css( 'background-color' ); \\         $('#outputText').css( 'background-color', 'red' ); \\         newBackgroundColor = $('#outputText').css( 'background-color' ); \\         alert('background color was ' + oldBackgroundColor + ', now ' + newBackgroundColor); \\     }); \\ "/&gt;
    and
    bq. &lt;af:outputText partialTriggers="button" id="outputText" value="some text whose background color changes"/&gt; \\ &lt;af:commandButton partialSubmit="true" immediate="true" id="button" text="partial submit button"/&gt;
    When the page is initally loaded, the background color of the text is changed to red, and the alert is displayed saying something like 'background color was transparent, now red' (browser dependent).
    When the button is pushed, the background reverts to transparent (as expected as it is being loaded again). The alert is also displayed with the same message (indicating the color has been changed), but the background on the screen does not change.
    Is this what anyone would expect, and should it be possible? My javascript knowledge is pretty basic so I haven't got very far looking through the code trying to figure it out. Any ideas would be much appreciated.
    I am using version 1.2.6 of jQuery from [http://docs.jquery.com/Downloading_jQuery]
    The full source of the jspx is:
    &lt;?xml version='1.0' encoding='windows-1252'?&gt;
    &lt;jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"&gt;
    &lt;jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/&gt;
    &lt;jsp:directive.page contentType="text/html;charset=windows-1252"/&gt;
    &lt;f:view&gt;
    &lt;afh:html&gt;
    &lt;afh:head title="List"&gt;
    &lt;meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/&gt;
    &lt;afh:script source="/javascript/jquery-1.2.6.js"/&gt;
    &lt;afh:script text="
    $(document).ready(function() {
    oldBackgroundColor = $('#outputText').css( 'background-color' );
    $('#outputText').css( 'background-color', 'red' );
    newBackgroundColor = $('#outputText').css( 'background-color' );
    alert('background color was ' + oldBackgroundColor + ', now ' + newBackgroundColor);
    "/&gt;
    &lt;/afh:head&gt;
    &lt;afh:body&gt;
    &lt;af:form&gt;
    &lt;af:outputText partialTriggers="button" id="outputText"
    value="some text whose background color changes"/&gt;
    &lt;af:commandButton partialSubmit="true" immediate="true" id="button"
    text="partial submit button"/&gt;
    &lt;/af:form&gt;
    &lt;/afh:body&gt;
    &lt;/afh:html&gt;
    &lt;/f:view&gt;
    &lt;/jsp:root&gt;

    I don't have 10g release in my computer right now.
    But I have tried the same in 11 + build of JDeveloper
    Done little changes and it worked
    below is the code
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" title="My Test JQuery Page">
    <af:resource type="javascript" source="/js/jquery-1.4.4.min.js"/>
    <af:resource type="javascript">
    $(document).ready(function () {
    $("#outputText").css("background-color", "red");
    function changeColor() {
    $("#outputText").css("background-color", "yellow");
    </af:resource>
    <af:form id="f1">
    <af:outputLabel id="outputText"
    value="some text whose background color changes"/>
    <af:commandButton id="button" partialSubmit="true"
    clientComponent="true" text="partial submit button">
    <af:clientListener method="changeColor" type="action"/>
    </af:commandButton>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • How to do a partial refresh of a form and report on the same page?

    Hi all,
    im trying to make a page where you have a report on top and when you click the link instead going to the form page, the form page is on the bottom of the report. lets say im trying to send an id from the report to the item below so that i could fetch the rest of the item. however when i pass,other items would still refer to this one as null.
    if im not mistaken this could be done with submit,but i want it to be partial refresh..
    i tried steps here but this only worked when the lower part is a also a report:
    https://forums.oracle.com/thread/2345863
    i also tried this,but this actually submits a page..
    Grassroots Oracle: Apex Tutorial - Form &amp; Report sharing the same page
    would it be possible to get a form and report in one page as partial refresh?
    Message was edited by: T101_cyberdyne

    If so, you need to create a dynamic action with a javascript action to set the id of the report row in the id form field, and a subsequent pl/sql action to fetch the record based on the id. You can use this record to set the other form field items.
    For the example in the above link the code looks as follows.
    the javascript action:
    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text()
    $s('P26_EMPNO',empno)
    the PL/SQL action:
    declare
    cursor c_emp is
    select * from emp
    where empno = :p26_EMPNO;
    BEGIN
    for r_emp in c_emp loop
      APEX_UTIL.SET_SESSION_STATE('P26_ENAME',r_emp.ename);
      APEX_UTIL.SET_SESSION_STATE('P26_JOB',r_emp.job);
      APEX_UTIL.SET_SESSION_STATE('P26_MGR',r_emp.mgr);
      APEX_UTIL.SET_SESSION_STATE('P26_HIREDATE',to_char(r_emp.hiredate,'dd-mon-yyyy'));
      APEX_UTIL.SET_SESSION_STATE('P26_SAL',r_emp.sal);
      APEX_UTIL.SET_SESSION_STATE('P26_COMM',r_emp.comm);
      APEX_UTIL.SET_SESSION_STATE('P26_DEPTNO',r_emp.deptno);
      APEX_UTIL.SET_SESSION_STATE('P26_ORDNO',r_emp.ordno);
    end loop;
    END;
    Hi Vincent,
    Yes! im looking for something similar. This looks interesting. I did look into apex_util.set_session_state yesterday but didnt know how to apply. perhaps i was doing it wrong.
    Question though, so basically first use the javascript to send the EMPNO from top report to the EMPNO in the form fields below.
    Then based on the EMPNO received in the form, do a loop to get the rest and put it into session. Correct?
    if i'm not mistaken i did something similar,but when i tried to set session for the rest,it refers to to the p26_EMPNO still as null..does the javascript sets the id of report to the id of the form or does it just send over?
    i'll try it out.
    Thanks.

  • Partial Refresh for Chart Region

    Hi all,
    I am using Application Express 4.0.1.00.03.
    I need to know whether partial refresh is available for Flash Charts or not?
    If yes how?
    Thanks in advance...
    Edited by: jyothi on Aug 17, 2011 9:06 PM

    Hi,
    There is undocumented JavaScript function apex_RefreshChart for refresh flash chart.
    Regards,
    Jari

  • Problem in fast refreshing nested materialized views

    Hi all,
    While developing an ODS(Operational Data Store) system, i've created base materialized views from production database to ODS database which would use fast refresh. Now, i need to create nested Materialized views on these base MViews which contains joins and aggregations which should refresh on FAST mechanism.
    But while doing so, got several problems though Nested materialized views can be built using Complete Mechanism. The reporting queries is important and we want it should not hit the production database, rather it should hit the ODS db. But we are failing to build the Nested Materialized views which works on FAST.
    I tried google, oracle docs but all in vain. i tried to do a simple testing which also failed. I would be grateful if anyone can help in in this regard. I'm attaching the test case experimented,
    SCOTT >CREATE MATERIALIZED VIEW LOG ON EMP
    2 WITH ROWID, SEQUENCE(EMPNO, ENAME, JOB,
    3 MGR, HIREDATE, SAL,
    4 COMM, DEPTNO)
    5 INCLUDING NEW VALUES;
    Materialized view log created.
    Elapsed: 00:00:00.03
    SCOTT >
    SCOTT >CREATE MATERIALIZED VIEW LOG ON DEPT
    2 WITH ROWID, SEQUENCE(DEPTNO, DNAME, LOC)
    3 INCLUDING NEW VALUES;
    Materialized view log created.
    Elapsed: 00:00:00.06
    SCOTT >
    SCOTT >CREATE MATERIALIZED VIEW MV_EMP
    2 NOCACHE
    3 ENABLE ROW MOVEMENT
    4 NOLOGGING
    5 NOCOMPRESS
    6 PARALLEL(DEGREE DEFAULT INSTANCES DEFAULT)
    7 BUILD IMMEDIATE
    8 REFRESH FAST ON DEMAND
    9 WITH ROWID
    10 ENABLE QUERY REWRITE
    11 AS
    12 SELECT * FROM EMP;
    Materialized view created.
    Elapsed: 00:00:00.21
    SCOTT >
    SCOTT >CREATE MATERIALIZED VIEW MV_DEPT
    2 NOCACHE
    3 ENABLE ROW MOVEMENT
    4 NOLOGGING
    5 NOCOMPRESS
    6 PARALLEL(DEGREE DEFAULT INSTANCES DEFAULT)
    7 BUILD IMMEDIATE
    8 REFRESH FAST ON DEMAND
    9 WITH ROWID
    10 ENABLE QUERY REWRITE
    11 AS
    12 SELECT * FROM DEPT;
    Materialized view created.
    Elapsed: 00:00:00.14
    SCOTT >CREATE MATERIALIZED VIEW LOG ON MV_EMP
    2 WITH ROWID, SEQUENCE(EMPNO, ENAME, JOB,
    3 MGR, HIREDATE, SAL,
    4 COMM, DEPTNO)
    5 INCLUDING NEW VALUES;
    Materialized view log created.
    Elapsed: 00:00:00.04
    SCOTT >
    SCOTT >CREATE MATERIALIZED VIEW LOG ON MV_DEPT
    2 WITH ROWID, SEQUENCE(DEPTNO, DNAME, LOC)
    3 INCLUDING NEW VALUES;
    Materialized view log created.
    Elapsed: 00:00:00.03
    SCOTT >
    SCOTT >CREATE MATERIALIZED VIEW MV_EMP_DEPT
    2 NOCACHE
    3 ENABLE ROW MOVEMENT
    4 NOLOGGING
    5 NOCOMPRESS
    6 PARALLEL(DEGREE DEFAULT INSTANCES DEFAULT)
    7 BUILD IMMEDIATE
    8 REFRESH FAST ON DEMAND
    9 WITH ROWID
    10 ENABLE QUERY REWRITE
    11 AS
    12 SELECT D.ROWID DEPT_ROWID, E.ROWID EMP_ROWID, E.ENAME, D.DNAME, D.LOC, E.JOB, E.SAL
    13 FROM MV_EMP E,
    14 MV_DEPT D
    15 WHERE E.DEPTNO=D.DEPTNO;
    FROM MV_EMP E,
    ERROR at line 13:
    ORA-12053: this is not a valid nested materialized view
    Elapsed: 00:00:00.17
    SCOTT >
    SCOTT >CREATE MATERIALIZED VIEW MV_EMP_DEPT
    2 NOCACHE
    3 ENABLE ROW MOVEMENT
    4 NOLOGGING
    5 NOCOMPRESS
    6 PARALLEL(DEGREE DEFAULT INSTANCES DEFAULT)
    7 BUILD IMMEDIATE
    8 REFRESH FORCE ON DEMAND
    9 WITH ROWID
    10 ENABLE QUERY REWRITE
    11 AS
    12 SELECT D.ROWID DEPT_ROWID, E.ROWID EMP_ROWID, E.ENAME, D.DNAME, D.LOC, E.JOB, E.SAL
    13 FROM MV_EMP E,
    14 MV_DEPT D
    15 WHERE E.DEPTNO=D.DEPTNO;
    Materialized view created.
    Elapsed: 00:00:00.25
    SCOTT >
    SCOTT >EXECUTE DBMS_MVIEW.REFRESH('MV_EMP','F');
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    SCOTT >EXECUTE DBMS_MVIEW.REFRESH('MV_DEPT','F');
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    SCOTT >EXECUTE DBMS_MVIEW.REFRESH('MV_EMP_DEPT','F');
    BEGIN DBMS_MVIEW.REFRESH('MV_EMP_DEPT','F'); END;
    ERROR at line 1:
    ORA-12004: REFRESH FAST cannot be used for materialized view "SCOTT"."MV_EMP_DEPT"
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2254
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2460
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2429
    ORA-06512: at line 1
    Elapsed: 00:00:00.11
    SCOTT >EXECUTE DBMS_MVIEW.REFRESH('MV_EMP_DEPT','C');
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.35
    SCOTT >

    Sorry,
    By mistake this got posted in the CERTIFICATION forum,
    you can view the same question in the following link:
    Problem in fast refreshing nested materialized views

  • NMac Pro 6core D500 problems with screen refresh: 10.9.3 warning!

    Avoid 10.9.3 on the Mac Pro 6 core, D500.
    Problem with screen refresh using Motion soon after updating OSX from Mac Pro late 2013 version of 10.9.2.
    I tried my Asus HDMI at all resolutions but to no avial. The screen juddered like it was Windows 95 without any GPU drivers.
    Apple's Tech Support had me use many key commands and finally we found out there was no issue with my hardware. Apple suggested a clean install before sending it back for repair. I was fortunate to have had made a backup in the Time Machine of my computer soon after installing all my apps. After restoring my computer is running 10.9.2 version made for the Mac Pros Late 2013. There are no more problems with screen redraw after using Motion.
    So, it is clear I cannot upgrade my Mac Pro to 10.9.3 while the issue with Motion's render engine messing with my screen refresh continues. Returning to 10.9.2 has made me realize 10.9.3 is slower and not as stable.
    I would suggest not upgrading unless you have a 4k monitor.

    Avoid 10.9.3 on the Mac Pro 6 core, D500.
    Problem with screen refresh using Motion soon after updating OSX from Mac Pro late 2013 version of 10.9.2.
    I tried my Asus HDMI at all resolutions but to no avial. The screen juddered like it was Windows 95 without any GPU drivers.
    Apple's Tech Support had me use many key commands and finally we found out there was no issue with my hardware. Apple suggested a clean install before sending it back for repair. I was fortunate to have had made a backup in the Time Machine of my computer soon after installing all my apps. After restoring my computer is running 10.9.2 version made for the Mac Pros Late 2013. There are no more problems with screen redraw after using Motion.
    So, it is clear I cannot upgrade my Mac Pro to 10.9.3 while the issue with Motion's render engine messing with my screen refresh continues. Returning to 10.9.2 has made me realize 10.9.3 is slower and not as stable.
    I would suggest not upgrading unless you have a 4k monitor.

  • Trigger "Partial Refresh" from custom javascript

    Hi All,
    I have a requirement where, I have two components
    One Output text which loads the text from a bean.
    One Button when clicked the "output text" above has to be refresehed.
    I understand that using partial trigger I can achive this. But the twist here is , The Button has to trigger some custom javascript for validation. If the validation is successfull only then the Output text must be refreshed.
    So I need to invoke the "Partial Refresh" from my custom javascript.
    Could some one throw some light on this, how we can achieve this.
    I am using JDev 11.1.1.3.

    You can try using the javascript ADF API http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12046/oracle/adf/view/js/base/AdfPage.html
    AdfPage has a method addPartialTarget(...) which should you the trick.
    Timo

  • Partial Refresh of a Page (Chart Refrech : parameter change)

    Hi,
    I have page with som reports and 1 chart.
    I would like to refresh only the chart (flash one) using a button ... So, It is OK for a simple query (the partial refresh process is working : the OTN example used). But when the query used for the chart are base in item (select *... from my_tab where cl=:P1_CHART_HIST), the refresh is not taking into consideration the parameter change (refresh needed after changed the value in the item P1_CHART_HIST...)...
    I hope that you see what I mean and do you have a solution for this ...
    Regards

    if you provide a name for the iframe, you can set the target in the href's..
    I would also provide it with an ID and Name, as you might want to do some fun JS stuff with it in the future.
    You can actually with JS change the content
    HTML way:
    a href="http://www.google.com" target="pdfIFrame"
    I would stick with the HTML-eidtion..
    The iframe should work as the older frames, eg. you have to set the name in the iframe too.
    Also I see there was missing a > in your iframe code.
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&P1_LINK." name="pdfIFrame">
    </iframe>
    Maybe you should also consider styling the iframe via. CSS. Use ID or Class on the Iframe to do so.
    Edited by: user9178158 on May 11, 2010 3:26 PM
    Edited by: user9178158 on May 11, 2010 3:27 PM

  • Partially refresh the sql report region by clicking the region selector tab

    Hi,
    In my page i have a region display selector tab. This region selector tab contain show all,booking,service,.. etc. when i click the booking tab,sql report region will appear. My intention is when i click the booking tab i want to refresh that region partially to display the record according to sql query in that region source of report region.
    how to do this?
    skud.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • Problems in SXI_CACHE Refresh

    Dear Experts,
    I am facing Cache refresh problems in PI 7.0 :
    1)  SXI_CACHE : Last Error During Cache refresh is showing LCR_GET_OWN_BUSINESS_SYSTEM - NO_BUSINESS_SYSTEM error. And also Start Delta Cache Refresh / Start Complete Cache refresh  are in deactive mode (Frozen).
    2) SLDCHECK : Log says " No Business System for ABC Client 100 ". where ABC=SID.
    My question is : Is this issue related to BASIS Team or PI Developer Team? Also please let me know if you have any solutions for the above mentioned issue. Thanks in Advance.
    SLDCHECK Log:
    SLD server access settings:
      host name:   ABCXIDEV
      port number: 50000
      user       : PIAPPLUSER
    Use transaction SLDAPICUST if you wish to maintain the SLD server access data
    Launching the SLD GUI in a separate browser window...
    => Verify in the browser GUI that the SLD is in a healthy running state!
    Calling function LCR_LIST_BUSINESS_SYSTEMS
    Retrieving data from the SLD server...
    Function call terminated sucessfully
    List of business systems maintained in the SLD:
      INTEGRATION_SERVER_MXD
      ERP_DEV_100
    Calling function LCR_GET_OWN_BUSINESS_SYSTEM
    Retrieving data from the SLD server...
    No corresponding business system found for system ABC client 100
    => Check and maintain the SLD content for the current client

    Hi Phanikumar,
    This problem is related to the Basis. PI Developer is not responsible for that.
    First of all make sure that you have generated the Business system Properly.
    Just go to RZ70. Enter the required information and generate the Business system.and check if you can see the Technical System corresponding to Your Application system in SLD.
    Just varify in SLDCHECK if you can see all the BS available in SLD.
    When Applcation system try to get its own business system it uses the report which fetches the data from table "lcrt_clntcache" which get automaticay filled when you create the corresponding BS.
    Just Check if you can see the entry in this table.
    If not then Run the report LCR_CLEAR_CACHE which will refersh the cache and again RUN SLDCHECK now table ""lcrt_clntcache" should get filled.
    if you still face the problem then you have to upgrade your Application server patch. Just Check SPS of your Application server. Just check SAP Note 1034276.
    Thanks,
    Sunil Singh

  • Problem with cache refresh entity bean / server node

    Hello,
    ive got a big problem and not found answer in sdn until now.
    Ive got a job that gets data from maxdb by sapjob - jco - session bean - entity bean - database.
    this job works daily. the data to work with is written directly to database from external.
    on first execute it works, but second etc not. i search for answer and i guess something:
    entity bean is cached (increase percormance?) with results of the select and do not know about new database entries when they are written directly to database. so second select says: there is no new data (but they are there).
    i only get this new data when i restart netweaver server node, then it works, but only for one time. then result is in cache and then i have to do same procedure before it goes (restart server).
    how can i get this data? is there any setting for force node to refresh cache? or any other settings to affect something like this?
    we have to go live with this in august.
    thx for help.
    Version: NW04, SP21

    thanks at first.
    OSS was the next step i consider, enforcedly.
    I hoped that there was a kind of timeout in visual admin or somewhere else where (for example) i can set a special time (seconds?) for refreshig the cache. Or i can set a flag for "do not cache entity beans".
    Someone else any idea?
    Nowadays on test system whe have made a task that starts windows every night so that netweaver also is "fresh". a kind of resolution but not the best and no resolution for the productiv system. or whe have to write a kind of batch job that only restarts server node once a day.
    New Info:
    I think cache was filled directly after restart.
    when we restart, then data are written, and then our application wanted to read them, they are also not seen.
    The data are only seen by bean when the restart takes place AFTER the data are written into db.
    So we change restart time to point after data are written. so we will test if this works, on monday we will see.
    Edited by: Torsten on Jul 11, 2008 11:27 AM

  • Problem with Reset/Refresh after Windows 8.1 upgrade

    When I try to do a Refresh or Reset on my Helix after it has been upgraded to 8.1, I receive a message to "Insert Media.  Some of the files are missing."  Does anyone know how to fix this?  

    I have same problem, there are some solutions on my thread you can check them out if you like.
    http://forums.lenovo.com/t5/ThinkPad-Edge-S-series/Unable-to-Reset-Refresh/td-p/1533410

  • Field mapping problem using EntityManager.refresh(...) and @SecondaryTable

    I am experiencing an exception indicating a missing mapping for a field. My problem is that I have a mapping! I suspect the problem has something to do with the fact the field in question is also the @PrimaryKeyJoinColumn. Am I doing something wrong or is this a bug in the refresh() method code since the find() method works with no problem? Thanks in advance.
    Code and log excerpts follow:
    Calling Code...
    TaxableDescription description = em.find( TaxableDescription.class, cusip );
    if (refreshEntity) {
    {color:#ff0000}em.refresh( description );{color}
    Entity Code..
    @Entity
    {color:#ff0000}@Table( name="f_ISSUE" )
    @SecondaryTable(
    name="f_COUPON_INFO",
    pkJoinColumns=@PrimaryKeyJoinColumn(
    referencedColumnName="issue_id", name="issue_id"
    ){color}
    @NamedQueries({
    @NamedQuery(
    name="TaxableDescription.findByCusip",
    query="SELECT d FROM TaxableDescription d WHERE d.cusip = :cusip"
    public class TaxableDescription
    extends Description implements Serializable
    private long issueID;
    private long fkIssueID;
    private String interestFrequencyCode;
    private Date nextCallDate;
    private double nextCallPrice;
    private Date parCallDate;
    private double parCallPrice;
    private boolean defaulted;
    private String variableCouponType;
    //@Id
    @Column( name="issue_id", table="f_ISSUE" )
    public long getIssueID() {
    return issueID;
    public void setIssueID( long issueID ) {
    this.issueID = issueID;
    @Override
    @Id
    @Column( name="CUSIP_nbr" )
    public String getCusip() {
    return super.getCusip();
    @Override
    public void setCusip(String cusip) {
    super.setCusip(cusip);
    @Override
    @Column( name="maturity", updatable=false, insertable=false )
    @Temporal(TemporalType.DATE)
    public Date getMaturity() {
    return super.getMaturity();
    @Override
    public void setMaturity(Date maturity) {
    super.setMaturity(maturity);
    {color:#ff0000} @Column( table="f_COUPON_INFO", name="issue_id", insertable=false, updatable=false )
    {color} public long getFkIssueID() {
    return fkIssueID;
    public void setFkIssueID( long fkIssueID ) {
    this.fkIssueID = fkIssueID;
    @Override
    @Column( table="f_COUPON_INFO", name="coupon", updatable=false, insertable=false )
    public double getCoupon() {
    return super.getCoupon();
    @Override
    public void setCoupon(double coupon) {
    super.setCoupon( coupon );
    @Column( table="f_COUPON_INFO", name="interest_frequency", updatable=false, insertable=false )
    public String getInterestFrequencyCode() {
    return interestFrequencyCode;
    public void setInterestFrequencyCode( String interestFrequencyCode ) {
    this.interestFrequencyCode = interestFrequencyCode;
    @Override
    @Column( table="f_COUPON_INFO", name="dated_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    public Date getDatedDate() {
    return super.getDatedDate();
    @Override
    public void setDatedDate(Date datedDate) {
    super.setDatedDate(datedDate);
    @Override
    @Column( table="f_COUPON_INFO", name="first_interest_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    public Date getFirstInterestDate() {
    return super.getFirstInterestDate();
    @Override
    public void setFirstInterestDate(Date firstInterestDate) {
    super.setFirstInterestDate(firstInterestDate);
    @Column( name="next_call_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    protected Date getNextCallDate() {
    return nextCallDate;
    protected void setNextCallDate( Date date ) {
    this.nextCallDate = date;
    @Column( name="next_call_rate", updatable=false, insertable=false )
    protected double getNextCallPrice() {
    return nextCallPrice;
    protected void setNextCallPrice( double value ) {
    this.nextCallPrice = value;
    @Column( name="par_call_date", updatable=false, insertable=false )
    @Temporal( TemporalType.DATE )
    protected Date getParCallDate() {
    return parCallDate;
    protected void setParCallDate( Date date ) {
    this.parCallDate = date;
    @Column( name="par_call_rate", updatable=false, insertable=false )
    protected double getParCallPrice() {
    return parCallPrice;
    protected void setParCallPrice( double value ) {
    this.parCallPrice = value;
    @Column( name="moodys_code", updatable=false, insertable=false )
    public Integer getIntegerMoodysCode() {
    return super.getMoodysCode();
    public void setIntegerMoodysCode(Integer moodysCode) {
    super.setMoodysCode( moodysCode != null ? moodysCode : 99 );
    @Column( name="s_p_code", updatable=false, insertable=false )
    public Integer getIntegerSpCode() {
    return super.getSpCode();
    public void setIntegerSpCode(Integer spCode) {
    super.setSpCode( spCode != null ? spCode : 99 );
    @Column( name="fitch_code", updatable=false, insertable=false )
    public Integer getIntegerFitchCode() {
    return super.getFitchCode();
    public void setIntegerFitchCode(Integer fitchCode) {
    super.setFitchCode( fitchCode != null ? fitchCode : 99 );
    @Override
    @Column( name="principal_amt", updatable=false, insertable=false )
    public double getPrincipalAmount() {
    return super.getPrincipalAmount();
    @Override
    public void setPrincipalAmount(double principalAmount) {
    super.setPrincipalAmount(principalAmount);
    @Transient
    public boolean getDefaulted() {
    return defaulted;
    @Transient
    public boolean isDefaulted() {
    return defaulted;
    public void setDefaulted( boolean defaulted ) {
    this.defaulted = defaulted;
    @Column( name="defaulted", updatable=false, insertable=false )
    public String getDefaultedFlag() {
    return defaulted ? "Y" : "N";
    public void setDefaultedFlag( String defaultedFlag ) {
    this.defaulted = "Y".equalsIgnoreCase( defaultedFlag );
    @Column( table="f_COUPON_INFO", name="coupon_change_indicator", updatable=false, insertable=false )
    public String getVariableCouponType() {
    return variableCouponType;
    public void setVariableCouponType( String variableCouponType ) {
    this.variableCouponType = variableCouponType;
    @OneToMany( targetEntity=com.bondtrac.entities.TaxableCouponStepEntity.class )
    @JoinTable(
    name="f_CHANGE_SCHEDULE",
    joinColumns=@JoinColumn( name="issue_id", referencedColumnName="issue_id" )
    public List getCouponSteps() {
    return super.getCouponStepSchedule();
    public void setCouponSteps( List couponSteps ) {
    super.setCouponStepSchedule( couponSteps );
    @PostLoad
    private void postLoad() {
    if ( interestFrequencyCode != null &&
    interestFrequencyCode.length() &gt; 0 )
    int intFreq = 2;
    try {
    intFreq = Integer.parseInt( interestFrequencyCode );
    catch ( Exception e ) {}
    if ( intFreq &lt;= 0 ) intFreq = 2;
    super.setInterestFrequency( intFreq );
    else {
    super.setInterestFrequency( 2 );
    if ( nextCallDate != null || parCallDate != null ) {
    CallSchedule _callSchedule = super.getCallSchedule();
    if ( _callSchedule == null ) {
    _callSchedule = new CallSchedule();
    super.setCallSchedule( _callSchedule );
    if ( nextCallDate != null ) {
    _callSchedule.addCall( nextCallDate, nextCallPrice );
    if ( parCallDate != null ) {
    _callSchedule.addCall( parCallDate, parCallPrice );
    @PrePersist
    @PreUpdate
    private void preUpdate() {
    switch ( super.getInterestFrequency() ) {
    case 2 : interestFrequencyCode = "2"; break;
    case 1 : interestFrequencyCode = "1"; break;
    case 4 : interestFrequencyCode = "4"; break;
    case 12 : interestFrequencyCode = "12"; break;
    case 99 : interestFrequencyCode = "99"; break;
    default : interestFrequencyCode = "2"; break;
    nextCallDate = null;
    nextCallPrice = 0.0;
    parCallDate = null;
    parCallPrice = 0.0;
    CallSchedule _callSchedule = super.getCallSchedule();
    if ( _callSchedule != null ) {
    Call call = _callSchedule.getNextCall();
    if ( call != null ) {
    nextCallDate = call.getDate();
    nextCallPrice = call.getAmount();
    call = _callSchedule.getNextParCall();
    if ( call != null ) {
    parCallDate = call.getDate();
    parCallPrice = call.getAmount();
    @Override
    public int hashCode() {
    return cusip != null ? cusip.hashCode() : 0;
    @Override
    public boolean equals( Object o ) {
    if ( !( o instanceof TaxableDescription ) ) return false;
    TaxableDescription otherDescription = (TaxableDescription)o;
    if ( cusip == otherDescription.cusip ) return true;
    if ( cusip != null ) return cusip.equals( otherDescription.cusip );
    return false;
    Server log entry...
    [#|2008-11-20T17:41:42.389-0600|WARNING|sun-appserver9.1|oracle.toplink.essentials.session.file:/opt/SUNWappserver/domains/domain1/applications/j2ee-apps/Bondtrac-EE/Bondtrac-EE-pu.jar-BondtracPU|_ThreadID=36;_ThreadName=p: thread-pool-1; w: 44;_RequestID=5b92f658-e52c-4b83-aafc-454a052fc30b;|
    Local Exception Stack:
    Exception [TOPLINK-45] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DescriptorException
    {color:#ff0000}Exception Description: Missing mapping for field [f_COUPON_INFO.issue_id].{color}
    Descriptor: RelationalDescriptor(com.bondtrac.entities.TaxableDescription --&gt; [DatabaseTable(f_ISSUE), DatabaseTable(f_COUPON_INFO)])
    at oracle.toplink.essentials.exceptions.DescriptorException.missingMappingForField(DescriptorException.java:901)
    at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.addPrimaryKeyForNonDefaultTable(ObjectBuilder.java:154)
    at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildRowForTranslation(ObjectBuilder.java:899)
    at oracle.toplink.essentials.queryframework.ReadObjectQuery.prepareForExecution(ReadObjectQuery.java:502)
    at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:622)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:692)
    at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:746)
    at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
    at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.refresh(EntityManagerImpl.java:389)
    at com.sun.enterprise.util.EntityManagerWrapper.refresh(EntityManagerWrapper.java:511)
    at com.bondtrac.ejb.DescriptionDAOBean.getDescription(DescriptionDAOBean.java:76)
    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 com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
    at $Proxy197.getDescription(Unknown Source)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.process(OfferingProcessorBean.java:1373)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.processOfferingEntity(OfferingProcessorBean.java:642)
    at com.bondtrac.offeringprocessor.OfferingProcessorBean.calculateOfferings(OfferingProcessorBean.java:926)
    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 com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:77)
    at $Proxy198.calculateOfferings(Unknown Source)
    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 com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:154)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1706)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1088)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:223)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:806)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:563)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2567)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    |#]

    What database are you using? My guess is that the database you are using returns field names in Uppercase. While the database may not be case sensitive, most databases will convert the field names to either all upper or lower case when returning the metadata - which associates the fields to the values. In this case, it is looking for a value for "issue_id" in the returned results, when I suspect that the database returned a value for "ISSUE_ID". Try having your column names match what the database will return and see if you still get problems.
    The other part to this problem is that it does not appear mapped correctly. The primarykeyJoincolumn isn't using primary key fields (CUSIP_nbr is specified as the id), and you have a join table also using the "issue_id" field, so it really should be the id. Either way, the Secondary table is specifying f_ISSUE.issue_id to be a foreign key to f_COUPON_INFO.issue_id, and so the getFkIssueID annotation should be marked insertable=true, updateable =true and the annotation on getIssueID marked insertable=false, updatable=false,since it is set through the f_COUPON_INFO.issue_id field. Fixing this will also likely resolve the issue - the error says it can't find a mapping for the f_COUPON_INFO.issue_id but from looking at the code, what I believe it means is that it can't find a writable mapping. Reading this over again, it looks very confusing but I dont know if I can explain it much better. The field f_COUPON_INFO needs to be writeable and set by the application because you have marked it as controlling the field in f_ISSUE. The field in f_ISSUE needs to be read only, because the value is set/controlled by the value in f_COUPON_INFO.
    Best Regards,
    Chris

  • Problems with partial selection in preview and other skim...

    I scan student work that is handwritten. I use preview to select a portion of that work and then I paste the portion of the image I have selected into pages or some other application. Since upgrading to Snow Leopard when I partially select an area in preview everything appears normal. But when I paste into another app it pastes the entire image, not the portion I have selected. I could really use your help on this...

    remaltzman wrote:
    I scan student work that is handwritten. I use preview to select a portion of that work and then I paste the portion of the image I have selected into pages or some other application. Since upgrading to Snow Leopard when I partially select an area in preview everything appears normal. But when I paste into another app it pastes the entire image, not the portion I have selected.
    I don't know if this is related to your problem, but you might find this TidBITs discussion thread useful:
    http://emperor.tidbits.com/TidBITS/Talk/2819

Maybe you are looking for

  • Link to an iTunes song?

    Is there a way to post a link from my blog to specific songs in iTunes...some times I want to be able to send people on my blog over to hear the sample of a song I'm blogging about, and who knows, maybe my reco's will lead to sale & make the stock go

  • Unable to see the downloaded files in the downloaded folder even though the files are present.

    I am able to download the files and the downloaded files are shown in the downloads section too. However, when I go to the "open containing folder" it is not present there:( I cant seem to find the files at all.

  • Some basic questions on File Adapter

    Hello all, I have some basic questions on XI and File Adapter and hope you can help me. Any answer is appreciated. 1. Can I use NFS transport protocol to poll a file from a machine in the network, which is not the XI? Or do I have to use FTP instead?

  • How to fix a Syntax Error?

    I have a problem with my MXML Application. I keep getting an error: 1084: Syntax error: expecting rightparen before rightbrace, But I don't know what that means. Here's my MXML, <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://

  • "returning into" result is null with insert operation (only in apex)

    I'm attempting to capture my primary key or the rowid identifying a particular row when inserted into a table (9.2.0.8) and placing it into an apex variable. I've not been successful using the following methodology. My plsql inserts my data into SM_O