Reports Integration Bean -- Cookie Expires Unexpectedly

After successfully using the bean described in the Oracle Forms Services – Secure Web.Show_Document() calls to Oracle Reports white paper for a while, I've noticed a potential problem.
Suppose I do the following:
1. Start up my browser, log in to my Forms application and use it to run a report.
2. Stay logged in to my Forms application for more than about 30 minutes, but without running another report during that time.
3. Try run a report from my Forms application again.
In Step 1, the bean "works" -- my login information gets "automagically" passed to Reports.
In Step 3, the bean "doesn't work" -- I get the "Database User Authentication" page with the "REP-51018: Need database user authentication" error.
If I wait less than 30 minutes in Step 2, then the bean "works" in Step 3.
WRITE_LOGOUTPUT shows nothing out of the ordinary -- the cookie appears to be getting set correctly both times.
The output from Step 1 looks something like this:
FrmReportsInteg0: Debugging true
FrmReportsInteg0: Adding new userid string "TEST/TEST@MYDBHOST"
FrmReportsInteg0: Default cookie domain: .mydomain.com
FrmReportsInteg0: set RW_AUTH10g
FrmReportsInteg0: Arguments: encryptionKey=reports9i; Reports version=RW10g
FrmReportsInteg0: Cookie value for RW10g is: TEST/TEST@MYDBHOST;1196108541259:30
FrmReportsInteg0: Encoded cookie value is: <22-character encrypted string>+<9-character encrypted string>xROht/0qZoY<5-character encrypted string>
FrmReportsInteg0: Complete cookie string is: userid=<22-character encrypted string>+<9-character encrypted string>xROht/0qZoY<5-character encrypted string>
FrmReportsInteg0: Added domain ".mydomain.com" to cookie
FrmReportsInteg0: Generated Cookie String: userid=<22-character encrypted string>+<9-character encrypted string>xROht/0qZoY<5-character encrypted string>; domain=.mydomain.com; path=/
FrmReportsInteg0: IE Cookie Set
The output from Step 3 (after waiting more than 30 minutes) looks something like this:
FrmReportsInteg1: Debugging true
FrmReportsInteg1: Adding new userid string "TEST/TEST@MYDBHOST"
FrmReportsInteg1: Default cookie domain: .mydomain.com
FrmReportsInteg1: set RW_AUTH10g
FrmReportsInteg1: Arguments: encryptionKey=reports9i; Reports version=RW10g
FrmReportsInteg1: Cookie value for RW10g is: TEST/TEST@MYDBHOST;1196110640401:30
FrmReportsInteg1: Encoded cookie value is: <22-character encrypted string>+<9-character encrypted string>xBuit/wsY44<5-character encrypted string>
FrmReportsInteg1: Complete cookie string is: userid=<22-character encrypted string>+<9-character encrypted string>xBuit/wsY44<5-character encrypted string>
FrmReportsInteg1: Added domain ".mydomain.com" to cookie
FrmReportsInteg1: Generated Cookie String: userid=<22-character encrypted string>+<9-character encrypted string>xBuit/wsY44<5-character encrypted string>; domain=.mydomain.com; path=/
FrmReportsInteg1: IE Cookie Set
The "22-character encrypted strings", "9-character encrypted strings", and "5-character encrypted strings" are the same as each other.
I'm on IE 6 with JInitiator 1.3.1.17.
My code looks something like this:
SET_CUSTOM_PROPERTY
    'CONTROL_BLOCK.USERID_BEAN',
    1,
    'ADD_USERID',
    GET_APPLICATION_PROPERTY(USERNAME)||'/'||
        GET_APPLICATION_PROPERTY(PASSWORD)||'@'||
        GET_APPLICATION_PROPERTY(CONNECT_STRING)
SET_CUSTOM_PROPERTY('CONTROL_BLOCK.USERID_BEAN', 1, 'WRITE_USERID_COOKIE', '10G');
-- SYNCHRONIZE as specified in Metalink Note 279938.1.
SYNCHRONIZE;
WEB.SHOW_DOCUMENT(:PARAMETER.URL, '_blank');
EXIT_FORM(NO_VALIDATE);I call this code (including the EXIT_FORM) each time I run a report.
I'm not using SET_MAX_AGE. I assume the behavior I'm seeing is somehow related to the default expiry time of 30 minutes that the white paper mentions for SET_MAX_AGE.
Still, I am setting ADD_USERID and WRITE_USERID_COOKIE each time. I would expect (incorrectly?) that would "reset" the cookie and its expiry date. The entry for WRITE_USERID_COOKIE in Appendix A of the white paper seems to suggest this:
The WRITE_USERID_COOKIE property actually sets the cookie to the client browser. This property needs to be called whenever the user database connect information for a Reports changes or after the cookie has been invalidated by exceeding the time defined as max_age.
Why is WRITE_USERID_COOKIE not resetting the cookie and its expiry date? If it doesn't, what's the point of setting WRITE_USERID_COOKIE "after the cookie has been invalidated?"
Is that "just the way it works"? If so, can anyone suggest any workarounds?
Thanks.

Hi,
I recently implemented this functionality for our project and I can confirm your observations. I haven't had time to look into it yet, though. If you find a solution, then please post it to this forum.
BR,
Peter

Similar Messages

  • Reports Integration Issue with 1.0.2.1

    Hi All.
    I was able to get reports integration working in 1.0.2.0, but I get the following error in 1.0.2.1.
    : An unexpected error occurred: User-Defined Exception (WWC-43000)
    An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error: character to number conversion error (WWC-43000)
    It occurs in the wwv_media package.
    Any ideas???
    Thanks,
    Brad

    I am receiving the above error running ias 1.0.2.1.0 and portal 3.0.8.9.8. I have checked out BUG #1651687, however it does not suggest a patch, solution, or work-around. I had no results when searching on BUG #1674251. Any other insight on this issue?

  • Crystal Reporter Integration addon 2.0.07 slow down

    Hi Guru's,
    When i upgraded to Crystal Report Viewer Add On to version 2.0.07, I encountered slow down accessing Crystal Reports Administration and generation of report. We also encountered lots of error. Is there any new Crystal Reporter Integration addon version?
    Thanks....

    Hi..
    It might be of you have not installed Prerequisite .NET Framework 3.5 SP1 & Crystal Report Runtime Viewer.
    Regards,
    Bhavank

  • BW report integration in Portal/PC-UI based on a BP at runtime

    Hello,
    we have created a BW report "Customer Overview" and want this report to be called from the Account BSP iView (within the context): The selected Business Partner should be automatically transferred to the report, the BW report should receive the BP ID at runtime.
    There is the similar standard overview called "Fact Sheet", but we decided to not use it, but instead our own report. We are on CRM 4.0, Netweaver Portal (EP6.0), BW 3.5 and Business Package for mySAP CRM (not the Business Productivity Pack).
    We have tried to use the same method "factsheet" for linking to our BW web template using the button "Fact Sheet" in the Account BSP iView. We created therefor a new iView (based on com.sap.pct.crm.bwreport.BWContainer), filled the required parameter and placed it on our own fact sheet page. The resulting test URL of the new iView looks fine:
    http://[host]:[port]/sap/bw/BEx?cmd=ldoc&sap-language=EN
    &TEMPLATE_ID=TPCRM1001&FILTER_IOBJNM_1=0BPARTNER
    The object link from the 'Fact Sheet' button to our fact sheet page works, however the BP id is not passed or the BW template does not process it.
    How is the business partner ID transferred at runtime from Account BSP?
    What have to be done on the BW report in order to receive / require the parameter FILTER_IOBJNM_1 (i.e. BP ID) and display the overview for this particular customer?
    Further questions:
    Is this right way to achieve the display of BW data of a particular business partner?
    Is there another way to do this?
    Thanks for any information on how to integrate BW report that requires a BP ID in the portal...
    Regards,
    Erik

    Hi Gregor,
    thanks for your reference to your very good blog. I have read it and understood that I could write a model access class which build the URL including the correct account ID (i.e. object key) as filter value and then use this class to customize PCUI (i.e. tab or button).
    But from the Business Package documentation (p.132) I thought that I could use a "standard" method to achieve BW report integration which requires a business partner ID at runtime. I.e. using the BW Report Wrapper iView (com.sap.pct.crm.bwreport.BWContainer) without writing code. Is my understanding correct?
    So I tried to use the standard event ACC_FACT_SHEET and toolbar button FACTSHEET to navigate (object navigation) to my custom created page which included this BW Report Wrapper iView (custom).
    My problem is to understand how the event is transferring the object key (by clicking the button 'Fact Sheet') so the BW Wrapper iView can generate the correct URL including the correct parameter 'filter_value'.
    When I look into the Event definition of ACC_FACT_SHEET, I see that for 'Field->CRM Object ID' the value OBJECT_KEY is defined. However, the BW wrapper iView is not including the parameter 'filter_value'.
    Can anyone tell me if my understanding of the BW Report Wrapper iView is correct, and how it is possible to transfer the object_key of the selected account to it?
    Thanks and kind regards,
    Erik

  • SSRS 2012 report integrated with SharePoint 2013 issue :Report refreshing after some idle time

    we have SSRS 2012 report integrated with SharePoint 2013  , when we click on any toggle item after some idle time of 60 secs and try again to expand
    another toggle item then  complete report is getting refreshed and  if we are in child report it is redirecting to parent report. . we didn’t set any refreshing property at report level. I hope there will be some idle time setting at sharepoint site
    level.
    what we observed.
    1. there is no problem when we expand toggle items without any idle time.
    2. when we open the report and expand few toggles and keep idle for 60 seconds and try
    again to expand another toggle item then  complete report is getting refreshed (all toggle items are collapsing).
    3. If you keep idle for 60 minutes and if you didn’t do any action like expanding toggle
    items it is not refreshing.
    why it is happening and how to stop that complete refresh.
    Surendra Thota

    Hi Surendra,
    I have tested on my local environment and the issue can be caused by the session time out ,the time out of the report precessing, database timeout,DataSet query execution timeout and so on.
    I would like to confirm that the refresh you have mentioned is the page refresh or the report reloading?
    Please reference to the setting below to don't limit the timeout values if you got the report reloading:
    Point to a report in the library.
    Click the down arrow, and select Manage processing options.
    In Processing Time-out, select Do not time out report processing or
    Limit report processing in seconds if you want to override that value with no time-out or different time-out values.
    If you got the session timeout that refresh the page, please reference to the setting in below article:
    http://msdn.microsoft.com/en-us/library/gg492284.aspx#bkmk_session_settings_section
    Details information in the article below about the timeout setting for your reference:
    Set Processing Options (Reporting Services in SharePoint Integrated Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Problem report for finder: finder quit unexpectedly

    Last night I removed some viruses etc., from my computer that were making ads appear and also tabs opening when not wanted by random ads. I then installed virus protection, and also installed a software update. During those processes I restarted my computer a few times. The last time, finder wouldn't close down but in the end my macbook restarted and since then I have this message constantly popping up: problem report for finder - finder quit unexpectedly. I can't open up anything else and get a message saying when I try: check with developer to make sure safari (as an example) works with this version of OS X. You may need to reinstall the application.
    In ten the details part it states crashed thread 0 but it also mention application specific information:
    dyld: launch, loading dependant libraries, ignoring DYLD_*env vars
    and then:
    dyld error message:
    library not loaded:/ system/library/frameworks/videotoolbox.framework/versions/a/videotoolbox
    referenced from: /system/library/frameworks/qtkit.framework/versions/a/qtkit
    reason: image not found.
    Please please help. It's driving me nuts. I really need my computer. So much that Im even contemplating just buying a new one if nothing works :/

    FIrst, get rid of your "virus protection," which is either useless or worse than useless. Then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • Crystal Reports Integration Database Login error

    Hi guys,
    We have installed crystal reports integration on our customer's server and client PCs. They are using SAP 2007 A PL10. We created a report and the report works perfectly on the server and on another client pc. There is however 3 clent pcs (all of which use Windows XP) on which the report does not connect to the database when you try to run it. When we try and run the report on these PC we get a window asking for the database log-in information on which the server name etc is greyed out.
    The reports use a OLE DB connection.
    Anyone know how this can be solved?
    Thanks

    Hi,
    is client side SNC enabled on those client PCs ?
    Ingo

  • Problem with Print functionality in the BI reports integrated into portal

    Hi,
    We have some BI reports integrated into portal.and we have a Print button,which is a standard SAP functionality,doesnot work.When we click that print button it takes forever to load the page and print it.
    Please help me in resolving this issue and points will be rewarded for sure
    Bala

    Hi Edward,
    Can you clarify on your statement "You can run 3.x queries normally". I am currently declaring the bex web application string in the BW iview created in this format "infocube=0D_FI_C01&query=0D_FI_C01_Q001" and i am not defining the report template anywhere in the iview properties but still the standard template is displayed.
    Pls let me know how to run 3.x queries normally.
    Also i am trying to integrate only reports which are developed for BW 3.x format in BI system but still the data is not displayed.
    Pls let me know incase the SP level of both EP and BI portal are to be considered for this.
    EP 7 portal is on SP9 where as BI 7 is on sp12.
    Also i noticed the EP portal doesn't have BI Java Addon. will this matter for displaying reports in BW 3.x format.
    As you suggested workaround i tried to create a url iviews directly taking the links from the reports displayed in BI portal , i was able to preview the report but when i added those iview reports to role, the reports are constantly loading as it is trying to contact BI system. There are being loaded constantly with nothing displayed on screen.
    "http://sapbw:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=0D_PU_C01_Q011&VARIABLE_SCREEN=X&DUMMY=1"
    regards
    Bharat

  • Problem with Print button in the BI reports integrated in portal

    Hi,
    We have some BI reports integrated into portal.and we have a Print button,which is a standard SAP functionality,doesnot work.When we click that print button it takes forever to load the page and print it.
    Please help me in resolving this issue and points will be rewarded for sure
    Bala

    Solved myself.
    The answer lies in this link:
    http://help.sap.com/saphelp_nw70/helpdata/en/76/489d39d342de00e10000000a11402f/frameset.htm
    See the following two properties under Paging:
    Columns Scrolled for Each Step (BLOCK_COLUMNS_STEP_SIZE)
    Rows Scrolled for Each Step (BLOCK_ROWS_STEP_SIZE)
    The values of these two properties have to be changed in the Web Template you are using for your BI Reports.
    Regards,
    Ankur

  • Reports Integration with Jdeveloper

    Reports integration has been in and out of Jdeveloper over the last few versions.
    Is there a posted statement of direction on when and how integration will happen?
    (My hopes are up because the OTN product pages are now talking about Reports 10G)

    Hello Thomas,
    The Reports JDeveloper Extension are currently available only in the Oracle9i Developer Suite (Oracle9iDS) that contains:
    - Reports Builder 9.0.2
    - JDeveloper 9.0.2
    The Reports Extension will be also available with the Oracle Developer Suite 10g.
    Regards
    Tugdual

  • Web Util & Report integration to gather.

    Hello all
    I have configured webutil and report integration in Developer suite 9i.
    and it is working very fine.
    now I am upgrading it to 10g.
    I have configured web util and it is working fine.
    and now I am getting problem to integration for "reports" as follows.
    FRM-41213 Unable connect to the report server cyan.
    I have developed one form for testing the report integration with form.
    but when i am running this form with default configuration of formsweb.cfg then
    it is working fine as follows.
    http://chirag:8889/forms90/f90servlet?form=c:\temp\chirag&userid=cyan/cyan@cyan
    when i am running this form using web util configuration then i am getting
    the abouve error.
    http://chirag:8889/forms90/f90servlet?config=cyan
    but my application in Ds9i have used both webutil and report integration
    so i have to find out the same thing in DS 10g.
    Following are the code of report integration.
    DECLARE
         mreport_other varchar2(4000);
    BEGIN
         set_report_object_property('CYAN',REPORT_DESFORMAT,:CONTROL_BLK.REPORT_DESFORMAT);
         mreport_other := 'p_report_title="'||:control_blk.report_title||'" ';
         mreport_other := 'p_user_name="'||'CHIRAG'||'" '||mreport_other;
    DECLARE
         report_status     varchar2(30);
         rep_id                    REPORT_OBJECT;
         v_rep                         varchar2(100);
         mreport_file     varchar2(200) := 'C:\CYAN'||:control_blk.report_path;
    BEGIN
         rep_id := FIND_REPORT_OBJECT('cyan');
         SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_SERVER,'cyan');
         SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_FILENAME,mreport_file);
         SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_OTHER,mreport_other);
         v_rep := RUN_REPORT_OBJECT(rep_id);
         report_status := report_object_status(v_rep);
         if Report_Status = 'FINISHED' then
              WEB.SHOW_DOCUMENT('http://'||'chirag:8889'||'/reports/rwservlet/getjobid' || substr(v_rep, length('cyan') + 2, length(v_rep)) || '?server=' ||'cyan');
         end if;
    END;
    END;
    formsweb.cfg as follows
    [cyan]
    BaseHTML=c:\oracle\cyan\server\webutiljini.htm
    BaseHTMLJinitiator= c:\oracle\cyan\server\webutiljini.htm
    baseHTMLjpi=basejpi.htm
    BaseHTMLie=baseie.htm
    lookAndFeel=oracle
    envFile=C:\oracle\cyan\server\webutil.env
    webUtilArchive=/forms90/webutil/webutil.jar,/forms90/webutil/jacob.jar
    separateFrame=True
    pageTitle=Cyan Ltd
    form=C:\cyan\admin\security\forms\cyan_logon.fmx
    otherparams=cyan_home=c:\cyan
    userid=cyan/cyan@cyan
    width=800
    height=566
    buffer_records=NO
    debug_messages=NO
    array=YES
    query_only=NO
    quiet=NO
    RENDER=YES
    logo=webpage
    webutil.env as follows
    ORACLE_HOME=C:\oracle\OraDS10g
    FORMS90_PATH=C:\cyan\admin\global\forms;C:\cyan\payroll\forms;C:\oracle\cyan\forms
    CLASSPATH=c:\oracle\cyan\lib\webutil.jar;c:\oracle\OraDS10g\jlib\debugger.jar;
    c:\oracle\OraDS10g\jlib\ewt3.jar;c:\oracle\OraDS10g\jlib\share.jar;
    c:\oracle\OraDS10g\jlib\utj90.jar;c:\oracle\OraDS10g\jdk\jre\lib\rt.jar
    WEBUTIL_CONFIG=c:\oracle\cyan\server\webutil.cfg
    Please assist me to solve this problem
    from
    Chirag Patel
    Nairobi

    Hi,
    I remember that in 9i we had a problem that required both the Reports and the WebUtil java libraries to be in teh Forms classpath in the default.env. This however should have been fixed in Forms 10g.
    For what it is worth, can you try
    - In the registry variable "REPORTS_CLASSPATH", add the path of the jar file that will be used by webutil (webutil.jar basically)
    - In the default.env file, add the Reports jar (see REPORTS_CLASSPATH for values)files to the classpath of Forms
    Frank

  • BI reports integration in CRM 2007 UI

    Hi
    I have to integrate BI reports integration in CRM 2007 UI. Please tell me steps that are required to be performed for the same.
    Thanx & Regards
    Hitesh

    I'm assuming you are talking about BW template in which case you would require some BW training.
    A BW template is a web version of a BW query being run from within Business Analyser (Bex).
    This is not an area a typical CRm consultant would develop. A BW consultant is required.
    Cheers

  • Invoke reports with Beans

    Hi, every one:
    Can I invoke reports with Beans? How to do it?
    Which JARs must I use? Where can I find materials of it?
    Best regards.
    Leslie Chen

    HI Jorge,
    I'm afraid that out of the box you can only see reports in your default currency. However, if you would like to have mixed currencies in the same report you can try to manipulate the data based on the opty currency.
    To do this, add the opty currency field to the column layout. Then add any other column and use a 'Case'/'When' function for the currency that is NOT your default and have the function multiply/divide the revenue by a constant coefficient that is the exchange rate. Should look something like this:
    case when Opportunity."Opportunity Currency"='USD' then Opportunity."Closed Revenue"*(the exchange rate) else Opportunity."Closed Revenue" end

  • Reports integrated in Forms.

    I am using 10gAS
    Report integrated in forms are not working
    If i open the browser and give the below url, i get message "successfully run". The same in form is not working.
    Browser URL- is working
    'http://dbserver.cosd:7778/reports/rwservlet?server=rep_dbserver_frhome1&report=\\cserver\d-data\h_new\ssrsdq.rep&desformat=htmlcss&destype=file&userid=hsysrd/hsdfd@dbserver'
    Forms10g Code - not working
    DECLARE
    rep_url varchar2(3000);
    BEGIN
    rep_url:='http://dbserver.cosd:7778/reports/rwservlet?server=rep_dbserver_frhome1&report=\\cserver\d-data\h_new\ssrsdq.rep&desformat=htmlcss&destype=file&userid=hsysrd/hsdfd@dbserver' ;
    WEB.SHOW_DOCUMENT(rep_url,'_blank');
    END;
    What can be the problem ?.

    This is just a guess, but it could be that the double backslash \\ is escaped somehow.
    You should put your report in the directory that is indicated by the reports_path environment variable, and skip the path in the url.
    I see after posting that the double backslash \\ is also escaped in this forum ;-)
    Edited by: InoL on Dec 8, 2009 11:02 AM

  • How to set cookie expire time

    Hi I'm new to jsp,
    please tell anybody, how to set cookie expire time.
    I know about setMaxAge(); but my requirement is set the expire time until close the browser or logout.
    And one more thing is how to delete cookies while logout.
    Thanks in advance
    achchayya.

    Hey,
    I understand what you are trying to say. solution is simple dont set setMaxAge , just create cookie and use it. It will be valid till you close the browser.
    Regards,
    SRI

Maybe you are looking for

  • Excise Number range problem

    i want to maintain the same excise number range for both EXPORT / Domestic, how to do it . Other things is while posting for the excise in SEZ case i am getting error=== ERROR in allocating excise invoice number interval not found number objetc J_1IE

  • I can't install ilife after a lion reinstall ??

    i recently purchased a macbook pro with retina display around a week ago and i just did a clean reinstall of os x lion yesterday and my ilife apps (imovie, iphoto and garageband) disappeared. so logically i went to the mac app store to redownload the

  • Select Data from BSIS table taking too long

    Hi I have to develop a report to give the  details of Extended Withholding Tax (EWT)  for a list of Expenses GL. Each expense GL is  linked to another Gl which is the EWT Tax GL Account. This is maintained in a Ztable. I havae wirtten the following c

  • I can't find a way to block cookies from the Bank of America website. Is there a way to still do this?

    Previously, when accessing the Bank of America Online Banking website I could keep them from placing cookies on my machine. Following your online instructions I can only deal with history. How can I block cookies with the current version of Firefox r

  • Compatibility Of Netweaver IDE 7.0 with Netweaver CE 7.2 (NWDI)

    Hi All, My question to this forum is that whether Netweaver IDE 7.0 is compatible with NWDI Netweaver CE 7.2. Any reply is welcome. Sharib Tasneem