Facing a strange issue

I am calling jasper reports.. from a button..
But what i observe is after clickign the button the code which exist in a different page fires twice..
Previously itused to fire only once now twice..what can be the reason for it. . am i doing something wrong
Some one please help me trouble shoot .Version apex 4 oracle db 11g xe.
Button is a template bassed button it is redirected to page 7
and in page 7 this code gets executed twice..
why should it get executed twice that is the mystrey  i am trying to solve..
begin
warn('firedsuprise');
intro_letterm(1,:p200_subscribe_no,'paul',:p200_magazine_no);
end;
create or replace
procedure intro_letterm (mprocno number,msubscribe_no number,muserid varchar2,mmagazine_no number) is
l_blob BLOB;
l_mime_type VARCHAR2 (100);
begin
warn('suprise');
--xlog ('PRC_GET_REPORT_TUNNEL', 'url (orig):' || 'http://localhost:84/JasperReportsIntegration/report?_repName=test_repFormat=pdf_dataSource=def1_outFilename=tes.txt_repLocale=de_DE,repEncoding=UTF-8');
xlib_jasperreports.set_report_url ('http://'||rserver()||'/JasperReportsIntegration/report');
update subscribers set intro_letter = 'Y' ,intro_date = sysdate where subscribe_no = msubscribe_No and magazine_no = mmagazine_no;
xlib_jasperreports.get_report
(p_rep_name => 'sintrochess',
p_rep_format => 'pdf',
p_data_source => 'chess',
p_rep_locale => 'de_DE',
p_rep_encoding => 'UTF-8',
p_additional_params =>'&Psubscribe_no='||msubscribe_no||'&Pmagazine_no='||mmagazine_no,
p_out_blob => l_blob,
p_out_mime_type => l_mime_type
OWA_UTIL.mime_header (ccontent_type => l_mime_type,
bclose_header => FALSE);
-- set content length
HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
OWA_UTIL.http_header_close;
-- download the file and display in browser
WPG_DOCLOAD.download_file (l_blob);
WPG_DOCLOAD.download_file (l_blob);
BLOB_LOADB (mid(),msubscribe_no,mprocno,'SINTROLETTERM','subintro'||msubscribe_no,l_mime_type,l_blob);
-- release resources
DBMS_LOB.freetemporary (l_blob);
-- stop rendering of APEX page
apex_application.g_unrecoverable_error := TRUE;
EXCEPTION
WHEN OTHERS
THEN
xlog ('PRC_GET_REPORT_TUNNEL', SQLERRM, 'ERROR');
RAISE;
END;
any one has any idea on this there is a button i click on it.. so as to generate a pdf file
It calls a page.. and the procedure is called from on load before header process
If i dont add the following plsql this code executes only once..
bUT THE Moment i add this code. the code gets executed twice..
begin
warn('firedsuprise');
intro_letterm(1,:p200_subscribe_no,'xyzl',:p200_magazine_no);
end;
The following had been added earlier ..Why should this happen
One more observation if i remove the jasper related code from intro letterm procedure then the code executes only one time..
any one has answer on this ??? Please let know
I didnt understand how the code is able to go reverse and execute 2 times.quite strange
Edited by: zycoz100 on Oct 15, 2012 11:20 PM
Edited by: zycoz100 on Oct 19, 2012 7:21 AM

any one any idea on this.. please shall be appreciated..
Thanks again,

Similar Messages

  • Strange issue with rights of account, used by SSIS (Foreach Loop Container does not return file names without Admin rights on server)

    Hello everyone.
    Faced very strange issue with account, which is used to run SSIS package.
    The specific package uses Foreach Loop Container to retrieve file names within the specified folder, and put them into Import file task.
    The package is set up to run under specific service account. This service account is given all permissions (Full control) to the folder where source files reside.
    So the issue is: SSIS package fails to execute this task (Foreach Loop Container and then Import), and shows that no files are found in the directory (although files ARE there).
    Once we're adding the service account into local Administrators group on the SQL Server, it works! Removing - does not work again. We cannot leave the service account as SQL server's admin as it's prohibited by our IT policies, and is just a bad practice.
    Any ideas, please? 
    MCP

    Here's the real log output:
    Date 16.04.2014 12:47:09
    Log Job History (RU-BW: Update)
    Step ID 1
    Server Server
    Job Name RU-BW: Update
    Step Name bw_import_cust_master_data
    Duration 00:00:02
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: service_account Microsoft (R) SQL Server Execute Package Utility  Version 10.50.4286.0 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  12:47:09  Error: 2014-04-16 12:47:11.45
        Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid characters.  End Error  Error:
    2014-04-16 12:47:11.47     Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid characters.  End
    Error  Error: 2014-04-16 12:47:11.48     Code: 0xC0202070     Source: bw_import_cust_master_data Connection manager "Input"     Description: The file name property is not valid. The file name is a device or contains invalid
    characters.  End Error  Error: 2014-04-16 12:47:11.48     Code: 0xC020207E     Source: Import file Flat File Source [1]     Description: The file name is not valid. The file name is a device or contains invalid characters.
     End Error  Error: 2014-04-16 12:47:11.48     Code: 0xC004701A     Source: Import file SSIS.Pipeline     Description: component "Flat File Source" (1) failed the pre-execute phase and returned error code 0xC020207E.
     End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  12:47:09  Finished: 12:47:11  Elapsed:  2.324 seconds.  The package execution failed.  The step failed.
    MCP

  • Strange issue in Report Builder

    Hi All,
    I am facing a strange issue in Report Builder.
    I am having a report which is currently in production. when i am opening that report and just saving it without making any changes, then also the size of the report is reducing from 238 to 204 kb.
    When i am executing this report in production then it is giving me the error "Invalid Body size"
    Please hlep me or else have to ask God to save me.
    Thanks
    Aryan

    Hi Hussien,
    I tried thart solution but it not worked. i put some debug statement in Before Parameter form, after Parameter form, before report triggers. When i am running that report i am getting the debug statement of Before and After Parameter triggers but it is failing somewhere in Before Report Trigger.
    I removed everything from Before Report Trigger and still the result is same "Invalid Body Size".
    Please Hussien give me a some pointer which stage is processed between After Parameter Form trigger and Before Report Trigger.
    Thanks
    Aryan

  • Strange Issue with Login into SDN

    Hi,
    I am facing a strange issue. If I click on the blog link [Blogs|http://www.sdn.sap.com/irj/scn/weblogs] without login in to SDN, I am able to see the blog page. But once I login to SDN and click on the same link the blog page is not displayed (even though the top header and the left side bars are displayed correctly).
    Am I the only one facing this. Could this be some setting with my browser? I am using IE6.

    I sometimes get this with IE6 - apparently the most popular browser in the corporate world.  I find that completely closing IE6 and then restarting - then login and then go to the blogs will resolve the problem.  As I understand it, IE6 is probably the worst version of the software that exists - it improves after that.  But at home I use firefox.
    matt

  • Strange Issue - JSP PageChanti

    Hi All,
    We are facing a strange issue in our application and we need some help from you in fixing this issue.
    Issue_
    When we are clicking on a button, the application is working fine.
    The specific action is executed and the respective page is displayed. But sometimes it is showing "Page can't be displayed".
    The application is working fine on local machines. But when we are testing on DEV and QA environments we are facing this situation. \
    We need your help to understand and fix the issue.
    Thanks and Regards,
    Chanti
    Edited by: chanti on Feb 12, 2008 4:05 AM

    Read the application server logs. Maybe you'll notice some useful exceptions and traces.

  • STRANGE Issue in submitting Concurrent Request - 11.5.10.2

    Hello Gurus,
    I am facing a weird issue in submitting an Oracle EBS report(.rdf file).
    Below is the problem description.
    [1] - When I submit the report, it goes into running mode.
    [2] - It stays in running mode forever.
    [3] - When we run the same report in non Production environments, report complete instantly.
    [4] - Even the same report runs perfectly well from report designer.
    [5] - All tuning considerations are well cleared. The same report is fetching data instantly everywhere in prod.
    [6] - The STRANGE thing that we have noticed that, when we submit the concurrent request, the ORACLE_PROCESS_ID in   FND_CONCURRENT_REQUEST does not get populated. It is NULL. For all other request, there is process ID.
    [7] - We even recreated Concurred program but still no luck.
    [8] - Bounced Database, Middle Tier but still no luck.
    [9] - Redefined a new conc mgr but still no luck.I believe #6 from above is a critical lead towards the problem. Having run out of all options, I am posting it here on the forum. All Tuning aspects are well taken care. It is rock solid and tuned to death. Without taking care of Tuning, I would not have posted this.
    Thanks,
    R
    Edited by: Rich V on Jul 21, 2010 12:20 PM

    Hussein,
    You must be a one man show here :) 34,295 POSTS!!!!!!!!!! WOOOOOOOOOW.
    Anyways, The link you have given, finally concludes with following
    Hi All,
    Got solution for this problem
    I have raised SR for this
    SR Analyst also told the same as (MCHARCHU)
    I have added SRW.USER_EXIT('FND SRWINIT'); in before report trigger
    and SRW.USER_EXIT('FND SRWEXIT'); in after report trigger
    and also a parameter P_CONC_REQUEST_ID in User PARAMETERS
    Thanks to all of you guys......
    Thanks,
    Bhanu Chander.In my report, All of above settings are already covered but still the issue is persistent.
    Thanks,
    R

  • Strange Issue in PSA Table

    Hi,
    I have deleted all the requests in PSA, but still when I check in SE11 tcode for the same PSA table, it is showing entries.
    This seems strange and I faced this situation for the first time.
    P.S. There are no requests in PSA currently.
    Thanks,
    Karan/

    Hi,
    Its not strange issue.You may deleted the latest request only.
    While deleting request at PSA, you need to click on display all request. it will shows all existing request at psa. later you can delete them all.
    in general at PSA it shows week older requests.
    Other wise, Use PSA table name and delete whole data by using SE14.
    Later you can check at SE11.
    Thanks

  • Strange issue - WD4A when called from EP returns wrong data

    Hi Experts,
    I am facing a very strange issue with WD4A. I have created one RFC. WD4A program calls this RFC. When I am executing the RFC using se37 it gives me 10 records. When I am executing the same RFC from WD4A program (Web Dynpro Application -- Right Click -
    test) the program is returning 10 records.
    I have created one iView in Portal. When I am calling the same program from portal, sometimes it returns 9 records and sometimes 10 records. I just refresh the iview and no of records getting displayed in screen changes.
    I have cheked the code many times. The code is perfectly fine.
    I have used clear and refresh command in the beginigng  of  RFC.
    What may be wrong? I have wasted my full dayfor resolving the issue. But I could not succeed.
    Is it due to some BASIS issue? Is it due to some server session issue?
    I have used business graphics in my application. Is it due to this? Whether IGS server and ECC contain different data?
    Please suggest
    Regards,
    Gary

    Hi Experts,
    The System configuration in the EP  is pointing to the right system and right client. I am using same setting for other Iviews. The other iViews are working fine.
    How we can apply break point in WDA. I beliveve I have to meet following requirement:
    1) Suppose EP user is 4755. The EP user 4755 is mapped to R/3 user 4755 and R/3 pernr 4755.
    2) Backend R/3 user 4755 should have se80
    3) Backend R/3 user should have debug access.
    The authorization will not provide such accesses for backend user 4755.
    Do we have any workaround?
    Please help.
    Regards,
    Gary

  • A really strange issue in Stratus

    Hi,
    I'm facing a very strange issue in Stratus. Let me explain:
    I have two mac machines (i.e. One is Mac and other is MacPro). Both are in the same network. When Mac connects with MacPro, audio, video, text conversation goes really well but when MacPro connects with Mac, I see audio, video but MacPro can't send text messages to Mac but Mac can send text messages to MaPro. It's really strange I know but I'm stuck in that issue. Please help me out.
    Thanks

    > Hi Roberto,
    > I tried by removing D:.
    > Nothing is happening.No Luck.
    > I have created two more directories in tempforXI as
    > sender and receiver and made necessary modifications
    > in comm channels like \tempforXI\sender...and placed
    > the file.
    >
    > regards
    > Raju
    Remember that the format you should use is:
    <share name>\<folder>
    and not
    \tempforXI\sender
    Where share name is in your case tempforXI.

  • AAA accounting strange issue

    hi guys , i m facing this strange problem kindly check the config below
    aaa new-model
    aaa authentication login default group tacacs+ local
    aaa authentication enable default group tacacs+ enable
    aaa accounting update periodic 1
    aaa accounting exec default start-stop group tacacs+
    aaa accounting commands 15 default start-stop group tacacs+
    aaa session-id common
    tacacs-server host x.x.x.x key abcdse
    ip tacacs source-interface fas 0/0
    now everything was working fine but a strange issue has been arrised, when i check the tacacs administration report it just shows me log upto 4 rows and no more !!! like see if i have done this configuration on router
    config t
    int lo 0
    ip add 20.0.0.1 255.0.0.0
    int lo 1
    ip add 30.0.0.1 255.0.0.0
    now when i check the accouting report ( administration report ) it just shows me the first 4 commands
    config t
    int lo 0
    ip add 20.0.0.1 255.0.0.0
    int lo 1
    thats it !!! why is this so ?? any 1 has any idea why is this happening
    thanks

    I would use the following:
    aaa accounting exec default start-stop group tacacs+
    aaa accounting commands 0 default start-stop group tacacs+
    aaa accounting commands 1 default start-stop group tacacs+
    aaa accounting commands 15 default start-stop group tacacs+
    aaa accounting network default start-stop group tacacs+
    aaa accounting connection default start-stop group tacacs+
    aaa accounting system default start-stop group tacacs+
    aaa accounting resource default start-stop group tacacs+
    aaa accounting resource default start-stop group tacacs+
    CCIE Security

  • Dfs strange issue(name spaces disappear randomly)

    Hi all,I am facing a very strange issue. I have 2 DFS one on site A and the other one on site B.Site A:contain: 2 DC (champ: contain all the FSMO roles +dnsrole; AND speed:DC+ dns +dfs) both are global catalog.Site B: 1 DC (neurexal: DC+dns ) ; Memora: Is the DFS server that having the issueThe one on Site A is working perfect , but the one on site B not very well.The issue appear only on the morning when users came to the site then after 3 hours everything work perfectly.
    Description of the issue: every morning some of the users cannot access the namespaces and when trying to re-map it I cannot .If I wait for a couple of seconds the namespaces appear then disappear randomly.Please find below some testing done on client and server.some testing done on Memora the Dfs server:Microsoft Windows [Version 6.3.9600](c) 2013 Microsoft...
    This topic first appeared in the Spiceworks Community

    Hi all,I am facing a very strange issue. I have 2 DFS one on site A and the other one on site B.Site A:contain: 2 DC (champ: contain all the FSMO roles +dnsrole; AND speed:DC+ dns +dfs) both are global catalog.Site B: 1 DC (neurexal: DC+dns ) ; Memora: Is the DFS server that having the issueThe one on Site A is working perfect , but the one on site B not very well.The issue appear only on the morning when users came to the site then after 3 hours everything work perfectly.
    Description of the issue: every morning some of the users cannot access the namespaces and when trying to re-map it I cannot .If I wait for a couple of seconds the namespaces appear then disappear randomly.Please find below some testing done on client and server.some testing done on Memora the Dfs server:Microsoft Windows [Version 6.3.9600](c) 2013 Microsoft...
    This topic first appeared in the Spiceworks Community

  • I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. Please help

    I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. I am accessing it via strong wireless connection and it works fine on other devices. Please help.

    zapgrap wrote:
    there is no information of locations.
    Then no information exists.  Use the Report a Problem button within the app to report it.

  • Strange issue with WEBI schedule Report

    Hi All,
    I have a strange issue with schedule WEBI reports, a schedule report runs for Hours , i reschedule it again by deleting the instance and the schedule report never got succeed even after running for hours.
    Any idea???
    regards

    Hi Manoj,
    1. Try to put some filters in the report and then run the report. if it takes less time, then probably your query is fetching very    large data.
    2. MDX query error may be the reason , this error come when a query runs endless, please try running the query 2-3 times, or when load on server is less.
    Hope this will help,
    Anamika.

  • Files transferred to external HD end up in trash - very strange issue

    Hi,
    I seem to be having a very strange issue, hopefully somebody can help or has seen this before.
    Hardware: MacBook Air, Western Digital Passport external HD, 250gb, formatted NTFS.
    Software: OSX 10.7 Lion, Paragon (allows me to write to an NTFS formatted HD)
    Issue Summary: I copy something to the external HD; I empty trash; the file I copied is deleted from the external HD. It doesn't happen every time.
    I do also seem to have a persistent folder in trash called "WD Sync Data" that won't go away unless I re-delete it as it's also in the root of the drive. Not sure if this is related somehow.
    Recently I copied 3 video files inside a folder to the HD, then disconnected the HD. When I reconnected it a while later and noticed that inside the "WD Sync Data" folder in trash were the 3 files I'd copied. I then looked inside the same folder on the root of the drive and the files were there, instead of inside the folder that I'd copied to the drive, which had vanished. If I hadn't noticed and had emptied the trash, those files would've been deleted.
    It's definitely happened more than once; last time I actually deleted the files from my computer after copying, then emptied trash, and they were gone from the external HD also.
    I've only found one person who seemed to be experiencing a similar problem back in 2010. It sounds similar though it could've been user error: http://www.mac-forums.com/forums/apple-notebooks/188224-weird-external-hard-driv e-trash-problem-help-please.html
    Has anyone experienced this or have any suggestions?

    Quick update: I ran a verify then a repair in Disk Utility as there were a couple of errors. Hopefully this has solved the issue, however it'd still be interesting to know if anyone's come across this before and what caused it?

  • Oracle Identity Manager 9.1.0.2 & WebLogic Strange Issue

    Hello,
    I am running OIM 9.1.0.2 (new installation) and WebLogic 10.3.3 in a clustered environment. I am having a strange issue where the resolution is eluding me.
    This install is running on Windows 2008 x64 Standard and using the x64 JRockit Java.
    What's happening is when I configure the managed server to run as a windows service, OIM isn't detected on the server. I can bring up xlWebApp but an unable to log into that or the Design Console. When launching the Diagnostic Dashboard it statest that OIM isn't installed.
    If I stop the service and log into WebLogic and start the managed server from within the Admin Console in WebLogic, everything works just fine.
    Any thoughts on how to troubleshoot this and ultimately resolve this? The service correct startes the managed server as I can watch it start up in the admin console but when it starts that way, OIM isn't detected. Very odd.
    Thanks,
    Andrew

    Oracle confirmed with us that it is certified for 10.3.3 though it may not be published yet.
    At any rate I figured out the problem today. The script I used to create the service was missing the JAVA_OPTIONS section from the xlStartManagedServer.cmd file. Once I added that and re-created the service, all is well.
    Thanks

Maybe you are looking for

  • How do remove commitment value in the PO ? any SAP note avl?

    Hi, Project (WBS)releated service PO (Account assignment category P and Item category D), in which SES,GR,IR have been completed for entire Project services for the year 2005,PO history also updatd for SES, GR,IR in the 2005 only.But Now system is sh

  • External Hard Drives and Time Machine

    I have all my music stored on an external hard drive. The drive shows up on Time Machine Preferences as a "Do Not Back Up" and the minus button is grey so I don't seem to be able to take it off the list and back it up on Time Machine. Any suggestions

  • Reports attachement pdf printing after report printing

    Oracle : 9.2.0.6 forms 6.0.8 reports os : linux : I have a peculear requirement for the inhouse application. I generate a standard Purchase order report with normal requirements using d2k reports. This report is being printed as soon as the transacti

  • Re: Validation Against A Schema With DOM

    I tried to redeploy a properly working application using Schema not DTD. It worked perfectly before but after redeployment, I got this an error complaining of missing "AbstractDOMParser". I downloaded this jar "xercesImpl.jar" which contain "Abstract

  • Failed Event Queue

    Does anyone know what is involved in writing a custom event handler that will process messages of the WLI_FAILEDEVENT Queue? I tried writing an MDB that would listen to that queue, however I believe a listener for that queue alread exists. Thanks