Dbx check -access report wua when call vsnprintf

I don't undertand WHY I would get this "Write to unallocated (wua)" error? I tried purify, purify does NOT report this error.
#include <stdio.h>
#include <stdarg.h>
int write(char* buffer,const char* format, ...)
va_list vlist;
va_start(vlist,format);
printf("Buffer Address at %x\n", &buffer[0]);
int size = vsnprintf(&buffer[0], 2, format, vlist);
va_end(vlist);
return 0;
int main()
char* buffer = new char[2]; *// if I use char buffer[2] instead of new char[2], I won’t get this error report!*
printf("Buffer Address at %x\n", buffer);
write(buffer,"%s\n", "xujian");
return 0;
CC -g -o test test.cpp
-bash-3.00$ dbx ./test
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc
Reading test
Reading ld.so.1
Reading libCstd.so.1
Reading libCrun.so.1
Reading libm.so.2
Reading libc.so.1
(dbx) check -access
access checking - ON
(dbx) run
Running: test
(process id 21660)
RTC: Enabling Error Checking...
RTC: Running program...
Reading disasm.so
Buffer Address at 80672a8
Buffer Address at 80672a8
Write to unallocated (wua):
Attempting to write 1 byte at address 0x80672aa
which is just past heap block of size 2 bytes at 0x80672a8
This block was allocated from:
*[1] operator new() at 0xecd06887*
*[2] operator new[]() at 0xecd05bdd*
*[3] main() at line 23 in "test.cpp"*
stopped in write at line 15 in file "test.cpp"
*15 int size = vsnprintf(&buffer[0], 2, format, vlist);*
(dbx)
Edited by: jianxu1 on Jan 19, 2010 1:49 AM

jianxu1 wrote:
Thanks, MaximKartashev~, Yes, I am on x86.
BTW, I noticed that bcheck(dbx check -access) is much much slower than purify~~ -:(Yes, Purify does not impact performance anywhere near as much as bcheck does.
Also, the behavior you're seeing seems consistent with trying to write the seven bytes of the string "xujian" into a two-byte buffer allocated from the heap. If you make that string more than 8 characters long, you should see Purify start to complain, too.
That's because malloc() (which the new operator uses), per the man page, "returns a pointer to a block of at least size bytes suitably aligned for any use." That phrase "suitably aligned for any use" effectively means that malloc()'d memory comes in 8-byte chunks. So even though you're asking for two bytes, you're getting a pointer to an eight-byte chunk. Ask for 9, and you'll get 16.
Your "char buffer[2];" variant doesn't get any errors from bcheck because bcheck doesn't do any run-time checking of automatic or stack variables. Purify should. I am somewhat surprised Purify doesn't give you an "array bounds write" (ABW) error on the "char buffer[2];" variant of your test case. Perhaps Purify has problems handling varargs and automatic variables. You may want to file a bug on Purify for that. FWIW, if you declare "char buffer[2]" and then try something like
char buffer[ 2 ];
strcpy( buffer, "ThisIsALongString" );Purify should give you an ABW for that.

Similar Messages

  • HTML links from Full Check Accessibility report do not open the corresponding PDF links

    I regularly generate full Check accessibility reports for the PDF user guides I create in MSWord. However, when I click the links in the HTML file/report generated, they are supposed to link/highlight the corresponding errors in the PDf file. Instead, I get an error message that "There was an error opening this document. Bad parameters."
    How can I get the links to work so I know which section in my PDF has the error (inaccessible items).
    Thanks

    I understand you are creating HTML reports and then using them to find errors/view the PDFs. 
    Is this a new problem or  have you always had problems with the links?  If it's a new problem, what has changed on your system?
    Can you view other PDFs in your browser? 
    Have you moved any of the files since you created the report -- as you may know the HTML report references a specific lcoation on your hard drive and if you moved the PDF after creating the report, it may not be able to find the file.

  • Is it possible to call diff  report queries when called from form

    hello all
    I want to know if it is possible to call different report queries when called from oracle 9i form .
    i tried to use he
    SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
    option and actualy called the report name
    but it dint seem to work !!!
    also is it possible to chng the title of the browser at runtime

    Sandeep,
    this property is used with passing Record Groups as data parameters from Forms.
    Passing the query name indicates that the values contained in the record group substitutes the result of the named query. This may work in client/server Reports, but it definitively doesn't work on teh Web because you can't pass a Record Group as a data parameter in this environment.
    Te problem with changing a Reports query is that you must meet the same number of columns and column types as they exist in the Report. I didn't spend much time with XML based runtime customization in Reports. I think that you can change the Reports query through this feature. In Forms you would create the XML file using text_io and the merge it with an existing Reports. I never did this before. So it could be that all I am saying does not work in the end. Before following this idea, you may better ask in teh Reports forum on OTN if it is possible to use the runtime customization feature to modify the Reports query.
    Fran

  • Dbx check -access

    When trying to run a simple program that connects to our database, we get errors when turning on memory access checking in dbx. This simple program:
    exec sql include sqlca;
    int main(int argc, char *argv[])
    exec sql begin declare section;
    char pwd[] = "user/pass@database";
    exec sql end declare section;
    exec sql connect :pwd;
    return 0;
    compiles and runs just fine, even in the debugger. But when access checking is turned on (check -access), read from unallocated memory errors are reported in various places in libclntsh.so. If we suppress these errors, then it ultimately causes a seg fault. Turning on memory usage checking (check -memuse) operates without issue. We could really benefit from being able to turn on memory access checking, but it seems that our libclntsh.so has some problems.
    We are running Oracle 11.2 on Solaris 5.10.
    Edited by: 808333 on Nov 8, 2010 9:51 AM

    Thanks for the response! Here's the info. The SEGV happens once I rerun the program after entering the following command: (dbx) suppress rua in libclntsh.so.11.1
    1) Sparc
    2) 32-bit
    3)
    libclntsh.so.11.1 => /opt/oracle/oracle_11.2_client_32bit/lib//libclntsh.so.11.1
    libc.so.1 => /usr/lib/libc.so.1
    libnnz11.so => /opt/oracle/oracle_11.2_client_32bit/lib//libnnz11.so
    libkstat.so.1 => /usr/lib/libkstat.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libresolv.so.2 => /usr/lib/libresolv.so.2
    libgen.so.1 => /usr/lib/libgen.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    librt.so.1 => /usr/lib/librt.so.1
    libaio.so.1 => /usr/lib/libaio.so.1
    libm.so.2 => /usr/lib/libm.so.2
    libmp.so.2 => /usr/lib/libmp.so.2
    libmd.so.1 => /usr/lib/libmd.so.1
    libscf.so.1 => /usr/lib/libscf.so.1
    libdoor.so.1 => /usr/lib/libdoor.so.1
    libuutil.so.1 => /usr/lib/libuutil.so.1
    /platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1
    /lib/libm/libm_hwcap1.so.2
    4)
    [1] 0xc1d23e94(0x5de80, 0x53fc, 0xe93317a0, 0x1000, 0x0, 0x0), at 0xc1d23e94
    [2] kgeade(0x5de80, 0x653c8, 0xe92ab2f8, 0x53fc, 0x1, 0xffbfc9c8), at 0xe7fc65e8
    [3] kgeric1(0x5de80, 0x0, 0x42cc, 0x1044, 0x5dfa8, 0x12fdd58), at 0xe7fc3bd0
    [4] kgherror(0x5de80, 0x646a0, 0x42cc, 0x0, 0x19e8, 0xe91983f0), at 0xe7f81404
    [5] kghini(0x5de80, 0x646a0, 0x1028, 0x102f, 0x50, 0x8000), at 0xe7f84ad8
    [6] kpuinit0(0xffbfd93c, 0x400, 0x5de80, 0x646a0, 0xe90993f0, 0x4), at 0xe752fef4
    [7] kpuinit(0xffbfd93c, 0x0, 0x0, 0x0, 0x0, 0xe7531f50), at 0xe752eea0
    [8] OCIEnvInit(0xffbfd93c, 0x0, 0x0, 0x0, 0x1fe4ab4, 0x1508), at 0xe7367c48
    [9] sqgctx(0xe90820c0, 0xffbfd9a4, 0xffbfdad4, 0x1, 0x0, 0xe9082104), at 0xe729f53c
    [10] sqgrct(0x0, 0x5091, 0xffbfdad4, 0x122, 0x0, 0xe93226d4), at 0xe729f3e4
    [11] sqlcmex(0x50, 0xffbfda68, 0xe90820e4, 0x10ecc, 0xe93226d4, 0x10ece), at 0xe729adac
    [12] sqlcxt(0x63, 0x210dc, 0xffbfdad4, 0x10ecc, 0x5091, 0x0), at 0xe729b2fc
    [13] main(argc = , argv = ) (optimized), at 0x10e9c
    5)
    0x00010e9c: main+0x0124: call sqlcxt [PLT] ! 0x20fa0
    0x00010ea0: main+0x0128: clr %o0
    0x00010ea4: main+0x012c: ret
    0x00010ea8: main+0x0130: restore %g0, 0, %o0
    0x00010eac: _init             :          save     %sp, -96, %sp
    0x00010eb0: _init+0x0004:          ta        %icc,0x00000006
    0x00010eb4: _init+0x0008:          ret
    0x00010eb8: _init+0x000c:          restore
    0x00010ebc: _fini            :          save      %sp, -96, %sp
    0x00010ec0: _fini+0x0004:          ret
    Edited by: brandon on Nov 9, 2010 2:10 PM

  • Hide UserID, Password, and Report Path when call Report from Report

    Hi,
    I have been able to call Report from Report using the hyperlink.
    I put these code in my Field on the Report caller.
    function F_3FormatTrigger return boolean is
      temp varchar2(2000);
    begin
      temp := 'http://<computer_name>:8889/reports/rwservlet?';
      temp := temp || 'server=repsrv' || '&' ||
                         'report=C:\MyReport\rep_detail.jsp' || '&' ||
                         'userid=scott/tiger@orcl' || '&' ||
                         'desformat=htmlcss' || '&' ||
                         'destype=cache' || '&' ||
                         'P_1=' || :ItemID || '&' ||
                         'P_2=' || :ItemName;
      SRW.Set_Hyperlink(temp);
      return (TRUE);
    end;The hyperlink showed, and I can see the rep_detail.jsp showed in the same browser after I clicked the hyperlink.
    The problem is, the hyperlink has to include the reports path and also userid and password.
    If I did not put the userid and password, it will showed in another browse that
    "The report has uncompiled PL/SQL"
    How can I hide those userid, password, and the reports path?
    BTW, Is there anyway to show the report callee in different page (precisely, open another IE) from the report caller?
    Any help would be grateful.
    Many thanks,
    Buntoro

    Hi,
    Thanks for the answers.
    Yet, I am still doubt about using cgicmd.dat.
    I have looked around in this forum saying that it is not secure to use cgicmd.dat. Because all report request does not use authentication (the client can directly open report without login).
    In Form, I can use the On-Logon to do the Oracle Form login (to do logon to the database), and then I use my own custom user login to restrict the menu for each user.
    I do this since I want to restrict the user,
    i.e user A can only view the sales form as well as sales report,
    user B can only view the purchasing form as well as purchasing report.
    Well, I am not so fond about the SSO itself.
    It comes to my mind, since I don't have to re-login (to the database) each time I call another form (login database is only once at the first Form, On-Logon). It also goes to when calling the report caller.
    What is RAD?
    How can we use it?
    Is OID = Oracle Internet Directory?
    If true, maybe, I won't use it since I don't understand about it also.
    Why we don't have to specify the userid and password when Form calls Report1 (using Run_Report_Object and Web.Show_Document())?
    But we have to specify the userid and password when Report1 calls Report2.
    Any help is appreciated.
    Many thanks,
    Buntoro

  • Crystal report hangs when calling oracle package

    hi i have a oracle package that calls a proceadure, if i test this package in PLSQL developer it compiles and i get sensible results
    this package has been designed using a ref type cursor to be called from crystal reports. it primary objective when the report is run, is to use File util to output data to an xml file.
    when i run this from crystal reports it locks crystal reports up, and dosent output a file.
    any ideas why crystal is hanging?
    crystal DB call
    {CALL  Enhanced_Pharos_Report.run_report
    (NVL({?a_channel_id},0),{?b_on_date})}
    package
    create or replace package UKTV_PHAROS_EXPORT_RPT
    -- Author : WARDLJ01
    -- Created : 03/04/2006 12:25:03
    -- Purpose : export xml for pharos voiceovers
    -- Public type declarations
    AS
    TYPE result_set_type IS REF CURSOR;
    PROCEDURE run_report
    (main_cursor IN OUT result_set_type,
    V_CHANNEL_ID NUMBER,
    V_ONDATE      DATE);
    end ;--UKTV_PHAROS_EXPORT_RPT;
    package body
    create or replace package body UKTV_PHAROS_EXPORT_RPT AS
    PROCEDURE run_report
    (main_cursor IN OUT result_set_type,
    V_CHANNEL_ID NUMBER,
    V_ONDATE      DATE)
    is
    BEGIN
    OPEN main_cursor FOR
    -- Passess the parameters back to the cursor - which passes them back to the Crystal Report output
    SELECT V_CHANNEL_ID, V_ONDATE from DUAL;
    -- This is a procedure that calls FILE_UTL to export the data.
    UKTV_PHAROS_Export(V_CHANNEL_ID, V_ONDATE);
    END;
    end;
    Proceadure
    create or replace procedure uktv_own.UKTV_Pharos_Export(V_CHANNEL_ID number, V_ONDATE date) is
    l_output utl_file.file_type;
    p_filename varchar2(30);
    V_DETAIL_id varchar2(100);
    V_MEDIA_ID varchar2(150);
    V_REQUIRED varchar2(50);
    V_SCRIPT varchar2(4000);
    V_DEL_DATE varchar2(100);
    V_FULLMEDIA_ID varchar2(500);
    V_START_TIME varchar2(100);
    V_DURATION varchar2(100);
    V_DATE varchar2(100);
    V_CHANNEL varchar2(40);
    V_LOGO_NAME varchar2(250);
    Cursor VO_CURSOR
    IS
    select event_voiceover.detail_id, vo_media_id, vo_required, vo_script, vo_del_date, full_media_id,
    event.start_time, event.duration, event.on_date, event.channel_id, logo.logo_name
    from event_voiceover,
    onair.event, onair.event_technical_data,
    onair.logo
    where event_voiceover.detail_id = event.detail_id
    and event_technical_data.event_technical_data_id = event.event_technical_data_id
    and event_technical_data.content_id = logo.logo_id and
    event.channel_id = V_CHANNEL_ID and
    vo_required = 500004580 and
    event.on_date = V_ONDATE;
    begin
    p_filename :='voice_overs.xml';
    l_output := utl_file.fopen ('PHAROS_DIR', p_filename, 'w' );
    OPEN VO_CURSOR;
    utl_file.put ( l_output,'<Voice_Overs>');
    Loop
    FETCH VO_CURSOR INTO V_DETAIL_id, V_MEDIA_ID, V_REQUIRED,V_SCRIPT, V_DEL_DATE, V_FULLMEDIA_ID, V_START_TIME, V_DURATION, V_DATE, V_CHANNEL, V_LOGO_NAME;
    EXIT WHEN VO_CURSOR%NOTFOUND
    OR VO_CURSOR%ROWCOUNT = 10000;
    utl_file.put( l_output, '<DETAIL_ID>');
    utl_file.put( l_output, V_DETAIL_ID);
    utl_file.put( l_output, '</DETAIL_ID>');
    utl_file.put( l_output, '<MEDIA_ID>');
    utl_file.put( l_output, V_MEDIA_ID);
    utl_file.put( l_output, '</MEDIA_ID>');
    utl_file.put( l_output, '<REQUIRED>');
    utl_file.put( l_output, V_REQUIRED);
    utl_file.put( l_output, '</REQUIRED>');
    utl_file.put( l_output, '<SCRIPT>');
    utl_file.put( l_output, V_SCRIPT);
    utl_file.put( l_output, '</SCRIPT>');
    utl_file.put( l_output, '<DEL_DATE>');
    utl_file.put( l_output, V_DEL_DATE);
    utl_file.put( l_output, '</DEL_DATE>');
    utl_file.put( l_output, '<FULLMEDIA_ID>');
    utl_file.put( l_output, V_FULLMEDIA_ID);
    utl_file.put( l_output, '</FULLMEDIA_ID>');
    utl_file.put( l_output, '<START_TIME>');
    utl_file.put( l_output, V_START_TIME);
    utl_file.put( l_output, '</START_TIME>');
    utl_file.put( l_output, '<DURATION>');
    utl_file.put( l_output, V_DURATION);
    utl_file.put( l_output, '</DURATION>');
    utl_file.put( l_output, '<ONDATE>');
    utl_file.put( l_output, V_DATE);
    utl_file.put( l_output, '</ONDATE>');
    utl_file.put( l_output, '<CHANNEL_ID>');
    utl_file.put( l_output, V_CHANNEL);
    utl_file.put( l_output, '</CHANNEL_ID>');
    utl_file.put( l_output, '<LOGO_NAME>');
    utl_file.put( l_output, V_LOGO_NAME);
    utl_file.put( l_output, '</LOGO_NAME>');
    utl_file.new_line ( l_output);
    end loop;
    utl_file.put ( l_output,'</Voice_Overs>');
    utl_file.fclose(l_output);
    end UKTV_Pharos_Export;

    Hi yes the package uses fileutil to output a file,
    the report user has permission over the file util output directory.
    I have previously used this method to generate rpt, and other output files in parelell.
    thanks
    james

  • Target JSP report fails when called with a key defined in cgicmd.dat

    Hi,
    When I am calling the parameter form report as (on my local pc):
    http://rnbhatta-us:8888/reports/pf_sumsptype.jsp?gsi
    It works fine. Here 'gsi' is the KEY that has the userid/passwd@connect_string that I have defined in the cmgcgi.dat file on my local pc.
    Now the report pf_sumsptype.jsp makes a call in a similar manner to the target report with the same 'gsi' key as in the code :
    <form name="form1" method="post" action="/reports/summary_sptype.jsp?gsi">
    The call to the target report 'summary_sptype.jsp' fails. It works if I replace 'gsi' in the above line with the userid and connect info.
    Is there any other way to hide the database connect info?
    Thanks,
    Ritendra.

    I'm not sure why this should fail, but you could try changing the method above from post to get.
    -Manish

  • Report problem when called from menu

    Hi
    Im calling a report from the menu item. in the items pl/sql i have the following code
    DECLARE
    Report_Id REPORT_OBJECT;
    Report_Job_Id VARCHAR2(20);
    Report_Status VARCHAR2(80);
    Report_Svr VARCHAR2(20);
    BEGIN
    Report_Svr := 'testserver';
    Report_Id := FIND_REPORT_OBJECT('LOT_AVERAGE_REPORT');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_FILENAME, 'lot_average_report');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_SERVER, Report_Svr);
    Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    WHILE Report_Status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    END LOOP;
    IF Report_Status = 'FINISHED' then
    WEB.SHOW_DOCUMENT('http://<machine>:<port>/reports/rwservlet/getjobid' || substr(Report_Job_Id, length(Report_Svr) + 2, length(Report_Job_Id)) || '?server=' || Report_Svr);
    END IF;
    END;
    it is working fine till i set the properties of report objects and it is failing when RUN_REPORT_OBJECT(Report_Id); is getting executed.
    the error is like frm-10259: invalid null argument to pacaged procedure or function
    Kindly helpme to come out of this...
    Thanks in advance
    Sundar

    Sundar,
    you just need a report (*.rdf) file that serves as a placeholder for the reports object in the forms module. You can either take one of your reports, one of the sample reports or create a simple dummy report by yourselves.
    Create a simple report using reports developer (e.g. "select sysdate as dummy_date from dual" as the report query). Save it as "dummy.rdf" in your reports directory (where your existing reports are stored).
    Now open the form that uses your menu. In the Reports node of your forms module, add a report, select "Use existing report file" and browse to the "dummy.rdf" file previously created.
    Open the property palette for that report and remove the path information of the "Filename" property, so that it reads "dummy.rdf".
    Edit the "Name" property so that it reads "MY_DUMMY_REPORT".
    Compile and save the form.
    Now use the PL/SQL code mentioned above in your menu and see if it works.
    Hope this helps
    Gerald Krieger

  • How to Check the report is Finished while calling a report from Forms 6i

    Dear All,
    I am Calling a report from oracle forms 6i, after runing report in " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"
    I need to copy the pdf to store it in another place once the report is generated.
    My Problem is : that i want ot Check first the report has generated after " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);" is executed ? How to check the report is generated ot not?
    As i tried to use the below procedure after "Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"" but his does not work... nothing happens
    {code}
    PROCEDURE FPC_COPY_REPORT (p_report_name varchar2) IS
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(20);
         lv_id varchar2(1000);
    BEGIN
    repid := find_report_object('AMTP_995.RDF');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
         if rep_status = 'FINISHED' then
         message('Report Completed'); message('Report Completed');
         else
              message('Error when running report.');           message('Error when running report.');
         end if;
    END;
    {code}
    Any Help

    actually My code is this:
    declare
         ln_alert          number;
         pl_id               ParamList;
         lv_report_name varchar2(10000);
         lv_path  varchar2 (100) := 'C:\';
         lv_shared_path  varchar2(1000);
         lv_copy_file varchar2(10000);
      cursor cr_dir_path IS
      select v_dir_path
      from md_directory
      where v_dir_code ='SHR';
      lv_file_name varchar2(1000);
    BEGIN
      open cr_dir_path;
      fetch cr_dir_path into lv_shared_path;
      close cr_dir_path;
    lv_report_name :=  lv_path||:fn_cntl.nb_ref_no||'_M08600000_'||to_char(sysdate,'YYYYMMDD-HHmmss')||'.pdf';
      if ffn_check_fields  THEN
         pl_id := Get_Parameter_List('LAI');
             IF NOT Id_Null(pl_id) THEN
                 Destroy_Parameter_List( pl_id );
              END IF;             
              pl_id := Create_Parameter_List('LAI');
           if :fn_cntl.nb_report_name ='MMAT_REPORT'
                then
                     if :fn_cntl.nb_report_desc ='EXPORT'
                          then
                         Add_Parameter(pl_id, 'PARAMFORM',TEXT_PARAMETER, 'NO');
             Add_Parameter(pl_id, 'DESTYPE',  TEXT_PARAMETER,'File');
            Add_Parameter(pl_id, 'DESNAME',  TEXT_PARAMETER, lv_report_name);
            Add_Parameter(pl_id, 'DESFORMAT',TEXT_PARAMETER,'PDF');
            Add_Parameter(pl_id, 'p_mat_no',TEXT_PARAMETER, :fn_cntl.nb_mat_no);   
            Add_Parameter(pl_id, 'p_ref_no',     TEXT_PARAMETER, :fn_cntl.nb_ref_no);
            Add_Parameter(pl_id, 'p_verified_by',TEXT_PARAMETER, user);
                     Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);
          DECLARE     
               repid REPORT_OBJECT;     v_rep VARCHAR2(100);     rep_status varchar2(20);BEGIN
                         /* REP_OBJ= REPORT OBJECT CREATED UNDER REPORT NODE AT FORM */
             repid := find_report_object('MMAT_REPORT');      v_rep := RUN_REPORT_OBJECT(repid);
                        rep_status := REPORT_OBJECT_STATUS(v_rep);          
          if rep_status = 'FINISHED' then
              message('Report Completed');          message('Report Completed');
             --copy_report_object_output(v_rep,'c:\local.pdf');
             -- host('netscape c:\tlocal.pdf');     
         else          message('Error when running report.');
                                          message('Error when running report.');     
         end if;
                 END;
         end if;
      end if;
           if :fn_cntl.nb_report_desc ='EXPORT'
                then
                  error_handler('This report will be Storde in ' ||lv_report_name||' and '||lv_shared_path|| ' Location',3);
                     lv_copy_file :='copy '||' "'||lv_report_name||'" "'||lv_shared_path||'"';
                     host(lv_copy_file,no_screen);
                  error_handler('Report Has been Generated Sucessfully.',3);
           end if;
        end if;
    END;I will try first the another solution you have replied perviously... and will let you no the results... thanks a lot...

  • Error when call a interactive form from a report.

    Hi everybody!
    When i use report SAPBC480_DEMO to call form BC480_FINAL, i have the error ADS: Request start time:.......
    I don't know how to fix that error. Can anybody help me?
    Thank!

    Hi Duo,
    i was facing similar problems. It could be solved by installing the Reader Right Credentials. If you want to use a pdf with editable fields (no read-only document) you have to install the RRC. Check this url
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/56/f2c94a069f44a785b85748e11f82a0/content.htm]
    and notes 736902 ,  1016404.
    if you start stack trace as mentioned in note 1016404 you will be able to get through.
    Regards,
    Ashish Shah

  • Error Report when calling Java thru C

    Currently we have encountered some issues with our C code calling java module in NT- Itanium 64bit machine. We get the following error message (we don't get this on the 32 bit):
    Another exception has been detected while we were handling last error.
    Dumping information about last error:
    ERROR REPORT FILE = (N/A)
    PC = 0x0000000077f69684
    SIGNAL = -1073741819
    FUNCTION NAME = (N/A)
    OFFSET = 0xFFFFFFFF
    LIBRARY NAME = (N/A)
    Please check ERROR REPORT FILE for further information, if there is any.
    Good bye.
    Has anybody seen this and has any suggestions? using JDK 1.4
    Thanks

    I was thinking JVM should the classpath when it is invoked. But obviously it is not and we need to assign the classpath ourselves when invoking from native side. Thanks for pointing that out. For other people's benefit the following is the code piece I for initializing JVM.
    char* str1;
              char* str2;
              char* classpath;
              str1 = "-Djava.class.path=";
              str2 = std::getenv("CLASSPATH");
              classpath = (char*)malloc(strlen(str1) + strlen(str2) + 1);
              strcpy(classpath, str1);
              strcat(classpath, str2);
              if (str2 == NULL)     {
                   printf("CLASSPATH environment variable is not defined.");
                   exit(1);
              m_VmArgs.version = JNI_VERSION_1_4;
              m_options[0].optionString= classpath;
              m_VmArgs.options = m_options;
              m_VmArgs.nOptions = 1;
              m_VmArgs.ignoreUnrecognized = JNI_TRUE;
              JNI_GetDefaultJavaVMInitArgs(&m_VmArgs);
              /* Create the Java VM */
              m_Res = JNI_CreateJavaVM(&m_Jvm, (void**)&m_Env, &m_VmArgs);
              if (m_Res < 0) {
                   printf("Can't create JVM\n");
                   exit(1);
    thanks,
    chancellor

  • ORA-6502/6512 when trying to access report attributes

    Hello:
    Getting page failure when trying to access report attributes tab on report region.
    Apache logs says:
    [Fri Mar  5 05:39:41 2010] [error] [client 192.168.111.6] [ecid: 1267785581:150.
    150.1.38:25452:0:36567,0] mod_plsql: /pls/apex/f HTTP-404 ORA-06502: PL/SQL: num
    eric or value error: character string buffer too small\nORA-06512: at "FLOWS_030
    100.F", line 279\nORA-06512: at line 22\n
    [Fri Mar  5 05:41:01 2010] [error] [client 192.168.111.6] [ecid: 1267785660:150.
    150.1.38:25567:0:36585,0] mod_plsql: /pls/apex/f HTTP-404 ORA-06502: PL/SQL: num
    eric or value error: character string buffer too small\nORA-06512: at "FLOWS_030
    100.F", line 279\nORA-06512: at line 22\n
    Any ideas?
    Thanks

    Hi,
    Could you please try the following test:
    This error message appears because the Connection Server is down or disabled. To start or enable the server perform the following steps:
    1. Go to Start > Programs > BusinessObjects XI > BusinessObjects Enterprise > Central Configuration Manager.
    2. Verify the Connection Server is started with a status of running.
    3. Highlight the Connection Server and click the 'Start' button if the server is stopped.
    4. Click the 'Enable/Disable Servers' button, log on, and verify there is a green up arrow next to the Connection Server.
    5. Click the check box for the Connection Server and 'OK' if there is no green up arrow to enable the server.
    Regards,
    Deepti Bajpai

  • No Parameter form when calling report from Forms 6i webpage

    I have my Forms 6i fmx files and Reports rep files runnung off of HP Unix
    within the same directory and yet when I call the report with RUN_PRODUCT,
    I don't get the Parameter Form popup. I left it as default at first, and then I even tried using ADD_PARAMETER(pl_id,'PARAMFORM',TEXT_PARAMETER,'HTML') to my parameter pl_id in my RUN_PRODUCT call. Can anyone tell me why I don't get a Parameter form?

    Actually if you are on the Web then you don't have much control over the format the parameter form is in, so specifying it as HTML doesn't help.
    Try paramform=yes when calling teh Report and this "temporarily" should help. The problem that you run into the is that there is nothing happening when you click the parameter form submit button. The reason is that when using Run_Product you are talking to a static HTML file generated into teh Reports temp directory with no services assigned to it.
    Check the Whitepaper under http://otn.oracle.com/products/reports/pdf/277282.pdf for the options that you have.
    Frank

  • Report runs OK through concurrent program, but not when called through URL

    We have a custom 6i report developed that works successfully 100% of the time when run through a concurrent program.
    We are now attempting to integrate this into an OAF application. To do this, we build the necessary call to the reports server by reading different profile options, etc and come up with a URL like this:
    http://ebsd777.xxxxx.com:8000/dev60cgi/rwcgi60?d777_APPS+report=XXMFG_ESPEC_REPORT.rdf+P_SPEC_ID=43+DESFORMAT=PDF
    This report works 90% of the time when called like this, but the other 10%, we get the following error:
    "Error: The requested URL was not found, or cannot be served at this time.
    Incorrect usage."
    Trying to find what the differences are between the reports that work and those that don't - found that reports which fail seem to extend out further to the right than the reports that do work. But, these reports still fit on standard letter paper in landscape format - as we can verify through the concurrent program call.
    Is there some sort of report server setting or parameter which we can change to get this to work when called through the reports server URL?
    Any thoughts would be appreciated!
    Thanks,
    Craig

    Hi,
    Please post the application release along with the database version and OS.
    But when i call the same program through the pl/sql executable of another concurrent program , it does not print the pdf output by defaultHow do you call the program? What is the value of the number of copies profile option?
    Please see if these docs help.
    Note: 757901.1 - How To Restrict The Number Of Copies To 1?
    Note: 729117.1 - How To Specify the Number of Copies to Print by Report?
    Thanks,
    Hussein

  • Browser performance issue when Calling BI Publisher report from OBIEE dashb

    Hi Techies,
    We installed OBIEE 10.1.3.3 on SunOS 5.9 unix box.This is PROD env.We are calling BIPublisher report from OBIEE dashboard by clicking the BIP reports link on OBIEE dashboard.After clikcing the link BIPublisher report is opening in another browser window.But is it taking time.
    Plz tell me how can we reduce the time taken to open BIPublisher report window when we cilck on the report name in OBIEE dashboard
    Thanks,

    Suresh
    There is no out of the box method to get the EBS report to OBIEE. You could look into moving the EBS report to a mountable web server directory after it completes and then show it in OBIEE via a link or html object. You will need to rename the report of course, every time you run it its going to change names.
    In an after report trigger you could call a small java class to move and rename the file for you.
    Alternatively, recreate the report in the standalone version. Be aware that you are going to have to set orgs yourself, BIP is not aware of orgs outside of EBS
    Tim

Maybe you are looking for

  • PO release strategies with Contract

    Hi, implementing a PO release strategy (SAP-MM module)I need to consider the case in which a PO is assigned to a Contract. If so, different release strategies should be selected according to the PO value. Possible cases: S0-strategy 0: Contract does

  • Cannot adjust brightness on win 8.1 x64(i have a WEIRD solution)

    macbook pro 13' with retina display win 8.1 x64 i cannot adjust the screen brightness i turned off "adjust my screen brightness automatically". i reinstalled boot camp. i reinstalled the drivers of intel video card(5100). the above solutions help not

  • SNMP traps from BPEL

    Hi I have a requirement to send SNMP traps from BPEL. I am using FMW11.1.1.3 over weblogic. I was going through some documentation where i could see that SNMP traps can be created from the Weblogic Server console. Can some one help me on how to gener

  • How to create Report in master and detail

    I have two table 1. order1 2. order2 table order1 fields:- SRNO, PPNO,SUBPP table order2 fields:- SRNO, SFILE, INVOICE table order1 I created in tabular and table order2 like form. order1 has 4 record and order2 has 1 record like ORDER1:- srno, ppno,

  • Installation Error: Exit Value 204

    Hi, I am getting this error while going for the basic installation of webcenter. It appears during the framework installation. Error --> Process (index=1,uid=1900284854,pid=3380) failed to start a managed process after the maximum retry limit Log: E: