Srw package throwing PRAGMA exception_init(SPECIFY_PROTOCOL, -20002)

I've added srw.ADD_PARAMETER ( plRepParam, 'server_protocol', 'HTTP/1.1' ); to no avail. Any ideas?

Twas muppetry on my part, I had missed http:// from my gateway param setting.

Similar Messages

  • PRAGMA EXCEPTION_INIT (bulk_errors, -24381);

    PRAGMA EXCEPTION_INIT (bulk_errors, -24381);
    Can u plz explain me what is use of this statement if I declare like this. And also tell me use of the PRAGMA

    In PL/SQL, sometimes it becomes necessary to raise a predefined Oracle error
    as an exception. Depending on the error number, there are some predefined
    EXCEPTIONs that can be raised. These EXCEPTIONs are defined in package
    STANDARD and are globally available. Other errors do not have predefined
    EXCEPTIONs declared. In order to associate a predefined error number to an
    EXCEPTION, use the PRAGMA EXCEPTION_INIT. When using PRAGMA EXCEPTION_INIT,
    remember that all Oracle error numbers with exception of 1403 and 100 are
    negative.
    Once the EXCEPTION has been aliased, the EXCEPTION can then be raised.

  • Using SRW package to send a report via email

    Hi,
    Please can someone please help me resolve this issue I have been facing in using the srw package
    I have configured a report server and was trying to use the srw package to send a report out to our customers when there is an update on a particular table.
    I have succesfully use this same procedure to generate the same report to an output file and it was ok but anytime I try to generate the report as a mail and send to a DESNAME, i get mail server unavailable.
    Below is the procedure i try to execute:
    procedure testrep(new_name in varchar2) as
    myPlist SRW_PARAMLIST;
    myIdent SRW.Job_Ident;
    BEGIN
         myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
    srw.add_parameter(myPlist,'GATEWAY','http://technorth4:7780/reports/rwservlet');
    srw.add_parameter(myPlist,'SERVER','rep_technorth4');
    srw.add_parameter(myPlist,'REPORT','c:\gens\name.rdf');
    srw.add_parameter(myPlist,'USERID','gens/[email protected]');
    srw.add_parameter(myPlist,'AUTHID','orcladmin/password1@orcl');
    srw.add_parameter(myPlist,'DESTYPE','MAIL');
    srw.add_parameter(myPlist,'DESFORMAT','PDF');
    srw.add_parameter(myPlist,'FROM','[email protected]');
    srw.add_parameter(myPlist,'DESNAME','[email protected]');
    srw.add_parameter(myPlist,'T1',new_name);
    myIdent := srw.run_report(myPlist);
    END;
    when i now start debugging i got this error:
    SQL> set serveroutput on
    SQL> exec srw.start_debugging
    * WELCOME TO EVENT-BASED-REPORTING API *
    * API-Version : 9i *
    * (C) Oracle Corporation, 2000 - 2002 *
    * Debugging turned ON **************************
    PL/SQL procedure successfully completed.
    SQL> exec testrep('TOPE');
    *** Length of Paramlist : 1
    OK : Parameter added : GATEWAY=http://technorth4:7780/reports/rwservlet
    *** Length of Paramlist : 2
    OK : Parameter added : SERVER=rep_technorth4
    *** Length of Paramlist : 3
    OK : Parameter added : REPORT=c:\gens\name.rdf
    *** Length of Paramlist : 4
    OK : Parameter added : USERID=gens/[email protected]
    *** Length of Paramlist : 5
    OK : Parameter added : AUTHID=orcladmin/password1@orcl
    *** Length of Paramlist : 6
    OK : Parameter added : DESTYPE=MAIL
    *** Length of Paramlist : 7
    OK : Parameter added : DESFORMAT=PDF
    *** Length of Paramlist : 8
    OK : Parameter added : [email protected]
    *** Length of Paramlist : 9
    OK : Parameter added : [email protected]
    *** Length of Paramlist : 10
    OK : Parameter added : T1=TOPE
    Starting run_report: building url
    *** Building URL (RUN_REPORT)
    OK : URL built :
    http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5Cg
    ens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpassw
    ord1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&D
    *** Submitting HTTP Request
    *** using URL
    :http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5C
    gens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpass
    word1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&DES
    OK : Request submitted - Return stream : <?xml version = '1.0' encoding =
    'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <error code="50138"
    component="REP" message="Mail server is not available"/>
    </serverQueues>
    OK : Request submitted - Length of stream : 182
    *** XML-Parsed - Following Structure discovered :
    *** Checking elements!
    serverQueues ()
    *** Checking attributes!
    error
    *** Checking attributes!
    __code = 50138
    __component = REP
    __message = Mail server is not available
    *** Finished Parsing XML
    Getting value for element: job
    Getting value for element: error
    *** Requesting value for Attribute error.component [REP]
    Getting value for element: error
    *** Requesting value for Attribute error.code [50138]
    Getting value for element: error
    *** Requesting value for Attribute error.message [Mail server is not available]
    REP-50138:Mail server is not available
    BEGIN testrep('TOPE'); END;
    ERROR at line 1:
    ORA-20999:
    ORA-06512: at "GENS.SRW", line 284
    ORA-06512: at "GENS.SRW", line 815
    ORA-06512: at "GENS.TESTREP", line 17
    ORA-06512: at line 1
    Please can someone help me with this. I can connect to the mail server using the telnet mailservername port,i get a 220 message with ***** .
    I have updated d report configuration file with the mailserver name, and d proxyinfo.xml too.I put it to bypass proxy for d mail server address and also inlclude the proxy ip and port.
    Kindly assist me as it is urgent.
    Thank you.

    You are in the wrong forum. Please try the Reports.<br><br>
    Regards,
    Rob.

  • SRW Package in Reports 2.5

    I am having trouble running SRW.RUN_REPORT from batch mode in PL/SQL. First of all, I'm having trouble locating the SRW package that is standard in Reports 2.5, in order to to create the package. Do I need to locate the Version 2.5 disk and try a reinstall? Or is it as simple as creating a Public Synonym?
    The PL/SQL code is: SRW.RUN_REPORT (module=mname batch=yes....
    The Error is: "module" must be declared.
    This tells me that the SRW package is not known. Else it would not ask me to make a declaration of the keyword "module". Big Thanks to anyone who can help.

    What are the default location for log files,trace for forms server and reports server in weblogic.That depends on which Reports Server you are using (Standalone or Inprocess). Here are the locations for both:
    Standalone*
    $ORACLE_INSTANCE/diagnostics/logs/ReportsServerComponent/<Name of Report Server>/
    In-Process*
    $DOMAIN_HOME/servers/WLS_REPORTS/logs/reports/
    Craig...

  • How attend error in forms menu like pragma exception_init ?

    hello,
    I have problem with error in my menu. I created menu and I put code to my buttons in menu:for example execute_trigger('test');
    I have some forms and if I am in another forms and call my button with execute_trigger('test');
    I get error FRM-40700: No such trigger: test
    Its ok because I have trigger in another block. But how to attend this error. I put pragma execption_init but not work
    declare
    text exception;
    pragme exception_init(text,-40700);
    begin
    execute_trigger('test');
    exception
    when text then
    message('its work');
    end;
    I create code like this in menu;
    execute_trigger('test');
    if form_failure then
    message('its work');
    end if;
    end;
    and this work but I get error FRM-40700: No such trigger: test and next message is 'its work'. How to turn off message from forms?? or like this message make like pragma...
    regards

    thanks for reply.
    trigger exist but in another block.
    I check system.message-level
    thanks
    I find another solution
    I put procedure which verificate current_block and current_form and then call execute_trigger(). It's work
    Edited by: user515960 on 2010-07-18 02:43

  • ERROR:SRW Packages to call report from PL/SQL.

    Hi,
    I am facing the following problem while calling a report from PL/SQL Block.
    This is my code
    SRW.Start_Debugging;
         MYPLIST :=SRW_PARAMLIST(SRW_PARAMETER('',''));
         SRW.ADD_PARAMETER(myPlist,'GATEWAY'     ,'http:..............');
         SRW.ADD_PARAMETER(myPlist,'USERID'      ,'CGIA_AUTO/AUTO_DEV@ipaddress/ORCL');
         SRW.ADD_PARAMETER(myPlist,'SERVER'      ,'rep_cgian');
         SRW.ADD_PARAMETER(myPlist,'REPORT'     ,'PGIRCGIC047.rdf');
         SRW.ADD_PARAMETER(myPlist,'DESTYPE'     ,'file');
         SRW.ADD_PARAMETER(myPlist,'DESFORMAT'     ,'pdf');
         SRW.ADD_PARAMETER(myPlist,'DESNAME'     ,'\\ipaddress\CGIA_FormPrint\WatchFolder\OTHERS\'||Z.CS_REMARKS_BL||'_'||Z.CS_CHQ_NO||'_'||M_SEQ_NO||'-'||Z.CS_FLEX_07||'-'||Z.CS_FLEX_08||'.pdf');
         SRW.ADD_PARAMETER(myPlist,'PARAMFORM'     ,'NO');
         SRW.ADD_PARAMETER(myPlist,'P_1'     ,Z.CS_BANK_CODE);
         SRW.ADD_PARAMETER(myPlist,'P_2'     ,Z.CS_BAD_ACNT_NO);
         SRW.ADD_PARAMETER(myPlist,'P_3'     ,Z.CS_CHQ_BOOK_ID);
         SRW.ADD_PARAMETER(myPlist,'P_4'     ,Z.CS_CHQ_NO);
         SRW.ADD_PARAMETER(myPlist,'P_5'     ,Z.CS_CHQ_NO);
         MYIDENT:=SRW.RUN_REPORT(MYPLIST);
    MYSTATUS := SRW.REPORT_STATUS(MYIDENT);
         SRW.STOP_DEBUGGING;
    *** Length of Paramlist : 1
    OK : Parameter added : GATEWAY=http://...
    *** Length of Paramlist : 2
    OK : Parameter added : USERID=CGIA_AUTO/AUTO_DEV@ipaddress/ORCL
    *** Length of Paramlist : 3
    OK : Parameter added : SERVER=rep_cgian
    *** Length of Paramlist : 4
    OK : Parameter added : REPORT=PGIRCGIC047.rdf
    *** Length of Paramlist : 5
    OK : Parameter added : DESTYPE=file
    *** Length of Paramlist : 6
    OK : Parameter added : DESFORMAT=pdf
    *** Length of Paramlist : 7
    OK : Parameter added :
    DESNAME=\\ipaddress\CGIA_FormPrint\WatchFolder\OTHERS\CUST000115_102024_16--.pd
    f
    *** Length of Paramlist : 8
    OK : Parameter added : PARAMFORM=NO
    *** Length of Paramlist : 9
    OK : Parameter added : P_1=SDNB
    *** Length of Paramlist : 10
    OK : Parameter added : P_2=7000674257
    *** Length of Paramlist : 11
    OK : Parameter added : P_3=7000
    *** Length of Paramlist : 12
    OK : Parameter added : P_4=102024
    *** Length of Paramlist : 13
    OK : Parameter added : P_5=102024
    Starting run_report: building url
    *** Building URL (RUN_REPORT)
    OK : URL built :
    http://ipaddress/reports/rwservlet?&USERID=CGIA_AUTO%2FAUTO_DEV%40ipaddress%2FORCL&SERVER=rep_cgian&REPORT=PGIRCGIC047.rdf&DESTYPE=file&DESFORMAT=
    pdf&DESNAME=%5C%5Cipaddress%5CCGIA_FormPrint%5CWatchFolder%5COTHERS%5CCUST00
    *** Submitting HTTP Request
    *** using URL
    :http://ipaddress/reports/rwservlet?&USERID=CGIA_AUTO%2FAUTO_DEV%ORCL&SERVER=rep_cgian&REPORT=PGIRCGIC047.rdf&DESTYPE=file&DESFORMAT
    =pdf&DESNAME=%5C%5Cipaddress%5CCGIA_FormPrint%5CWatchFolder%5COTHERS%5CCUST0001
    OK : Request submitted - Return stream : <?xml version = '1.0' encoding =
    'ISO-8859-1' standalone = 'yes'?>
    <serverQueues>
    <error code="503"
    component="REP" message="You did not specify the name of a
    report."/>
    </serverQueues>
    Here in this case even though i specify the report id in the parameter,debugger message says that 'You did not specify the name'.
    The same code is working in some other server and giving the pdf output.
    Thanks in advance for any clarification.

    Hello Chirag,
    If you want to invoke and run a report from your PL/SQL code in the database, you can do so by installing and using the SRW package supplied with Reports. This package allows you to run parametrized report jobs on a specified Reports Server from your PL/SQL program and track the job status. Please take a look at the documentation for this package in the Publishing Reports manual on OTN at: http://download-west.oracle.com/docs/html/A92102_01/toc.htm.
    On the other hand, if you just need to invoke the Reports Builder program from your PL/SQL routine, you would need to use the default builtin for calling external applications from PL/SQL.
    Thanks,
    The Oracle Reports Team.

  • Priority of pragma exception_init..

    Hi All,
    Suppose I am using pragma exception_init for NO_DATA_FOUND error,
    and the variable I am using is "test_excp" in my stored procedure, in the exception section if I am using both the user defined exception and the system defined exception (i.e. when test_excp then and when NO_DATA_FOUND then ) then which exception will the engine pick?
    This is not a business requirement but its a doubt on my part.
    Please help me understanding this concept..
    Thanks in advance!!
    Bits

    Confused yet?
    Note that there is also a -100 no data found error in Oracle but it appears to be treated as an entirely separate exception (albeit with the same message), e.g.
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> DECLARE
      2     e_no_data_found EXCEPTION;
      3     PRAGMA EXCEPTION_INIT (e_no_data_found, -100);
      4  BEGIN
      5     RAISE e_no_data_found;
      6  EXCEPTION
      7     WHEN NO_DATA_FOUND THEN
      8        RAISE_APPLICATION_ERROR (-20000, 'encountered NO_DATA_FOUND exception.', TRUE);
      9     WHEN e_no_data_found THEN
    10        RAISE_APPLICATION_ERROR (-20000, 'encountered e_no_data_found exception.', TRUE);
    11  END;
    12  /
    DECLARE
    ERROR at line 1:
    ORA-20000: encountered e_no_data_found exception.
    ORA-06512: at line 10
    ORA-00100: no data found
    SQL>

  • Using SRW Package - Help

    Hello All,
    I've designed web based reports having a web layout. The user usually navigates from one report to another by way of ">
    <th <rw:id id="HFMONTH131" breakLevel="RGMONTH1313" asArray="yes"/> class="OraRowHeader" style="font-weight: normal" ><rw:field id="FMONTH131" src="MONTH" breakLevel="RGMONTH1313" breakValue=" " formatTrigger="STYLE1"> F_MONTH </rw:field></th></a>
    I'm aware of reports being opened,errors captured,messages displed & programs aborted using the various srw packages when called from inside a program unit.
    Is there a way to call a program unit when the user clicks on a particular field which is supposed to be a link to another report instead of the above mentioned hyperlink method. Like for instance we have a formatTrigger for calling a program unit written for manipulating the format of the output.
    Regards,
    Arun.V

    Hello,
    Web Layout only exists in Reports versions >= 9.0.2. In these versions, the object "Button" no more exists.
    When the output is displayed, the reports execution is terminated, so it is not possible to call a program unit when the user click on a field.
    In the Reports Online Help:
    Note: The ability to create a button in the Paper Layout view is no longer supported in Oracle Reports 10g. Use hyperlinks instead. If you open an existing report that contains buttons, the buttons will be converted into text items.
    Regards

  • Pragma Exception_INIT- Doubt

    Hi All
    Why we are using Pragma Exception_INIT what is the purpose ?
    Declare    
          e_MissingNull EXCEPTION;
         PRAGMA EXCEPTION_INIT(e_MissingNull, -1400);
    BEGIN
         INSERT INTO Employees (employee_id) VALUES (NULL);
    EXCEPTION
         WHEN e_MissingNull then
            DBMS_OUTPUT.put_line('ORA-1400 occurred');
    END;when i give the above code i get
    PL/SQL procedure successfully completed. ORA-1400 occurred
    The same code when i try to give error message is ORA-1500 occurred
    I get
    ORA-01400: cannot insert NULL into ("XXI"."EMPLOYEES"."EMPLOYEE_ID")
    ORA-06512: at line 6
    why it happens?
    And when i use try to get the error messgae to display Not valid instead of Zero_divide
    Declare   
           I Number;
          e_sample EXCEPTION;
         PRAGMA EXCEPTION_INIT(e_sample, -5737);
    BEGIN
         select 1/0 Into I From Dual ; -- I know Zero_Divide Error i thought the changing this error in my style
    EXCEPTION
         WHEN e_smple then
            DBMS_OUTPUT.put_line('ORA-5737 Not valid');
    END;But the Result is
    ORA-01476: divisor is equal to zero
    Please let me know the purpose of and usage for Pragma Exception_INIT
    Thank in advance
    Suresh

    You must to issue:
    SET SERVEROUTPUT ONto tell SQL*PLus to display DBMS_OUTPUT buffer:
    SQL> Declare    
      2        e_MissingNull EXCEPTION;
      3       PRAGMA EXCEPTION_INIT(e_MissingNull, -1400);
      4  BEGIN
      5       INSERT INTO Employees (employee_id) VALUES (NULL);
      6  EXCEPTION
      7       WHEN e_MissingNull then
      8          DBMS_OUTPUT.put_line('ORA-1400 occurred');
      9  END;
    10  /
    PL/SQL procedure successfully completed.
    SQL> SET SERVEROUTPUT ON
    SQL> Declare    
      2        e_MissingNull EXCEPTION;
      3       PRAGMA EXCEPTION_INIT(e_MissingNull, -1400);
      4  BEGIN
      5       INSERT INTO Employees (employee_id) VALUES (NULL);
      6  EXCEPTION
      7       WHEN e_MissingNull then
      8          DBMS_OUTPUT.put_line('ORA-1400 occurred');
      9  END;
    10  /
    ORA-1400 occurred
    PL/SQL procedure successfully completed.
    SQL> Now about zero_divide. You are initializing exception e_sample with -5737, while zero_divide is -1476:
    SQL> Declare
      2         I Number;
      3        e_sample EXCEPTION;
      4       PRAGMA EXCEPTION_INIT(e_sample, -1476);
      5  BEGIN
      6       select 1/0 Into I From Dual ; -- I know Zero_Divide Error i thought the changing this error in my style
      7  EXCEPTION
      8       WHEN e_sample then
      9          DBMS_OUTPUT.put_line('ORA-5737 Not valid');
    10  END;
    11  /
    ORA-5737 Not valid
    PL/SQL procedure successfully completed.
    SQL> SY.

  • SRW Package in reports

    hi
    i am working on Oracle forms and reports 11g on weblogic. I have used SRW.MESSAGE to display run time message,but it is not showing anything.Is SRW package is not there in reports services 11g.
    If not,there is any alternative is there to display message
    Edited by: 957551 on May 9, 2013 4:01 AM

    What are the default location for log files,trace for forms server and reports server in weblogic.That depends on which Reports Server you are using (Standalone or Inprocess). Here are the locations for both:
    Standalone*
    $ORACLE_INSTANCE/diagnostics/logs/ReportsServerComponent/<Name of Report Server>/
    In-Process*
    $DOMAIN_HOME/servers/WLS_REPORTS/logs/reports/
    Craig...

  • Srw package: Catching REP- errors

    IN SRW package by Philipp Weckerle there's lines that look like those:
    r_staRec.JobIdent.JobID := GetValueFromXML(p_XMLDocument, 'job', 'id');
    if ((r_staRec.JobIdent.JobID is null) or (r_staRec.JobIdent.JobID = ''))
    then -- got error
    r_errStr := GetValueFromXML(p_XMLDocument, 'error', 'component') || '-' ||
    GetValueFromXML(p_XMLDocument, 'error', 'code') || ':' ||
    GetValueFromXML(p_XMLDocument, 'error', 'message');
    print_debug_message(r_errStr);
    raise REQUEST_FAILED;
    else -- no error
    I.e. if report fails, I can't get the particular error number. Although it is extracted from XML reply (p_XMLDocument, 'error', 'code'), it is used only to print dubug message and discarded.
    The questuins are:
    1. Is there any newer version of the package in which that issue was fixed?
    2. If no, are we allowed to modify the package ourselves to fulfil our tasks?

    Your not seeing the built in package for some reason.
    Maybe they are missing on your Linux machine.
    Reinstall reports there? Examing your environment variables?
    Is that rwrun.jar anywhere?

  • Oracle report 10g srw package.

    hi,
    i want to know about srw package in that srw.do_sql where it should be placed?

    you can check for SRW.DO_SQL built-in procedure in Reports online help.

  • Date formate of Status_Record.QueuedAt and other date fields in SRW package

    Hi,
    Is the date format of the Status_Record fiields in SRW package are controlled by any DB parameter ?
    B'cos it differs between databases for me.

    The SRW package calls the Reports server. This, in turn, gives the result back in XML format. The DB package parses the XML. The date format is taken from this XML result. So, the setting is somewhere on the Reports server, but I don't know where. There are so many property files.
    You see the same date format in the servlet: http://<host>:<port>/reports/rwservlet/getserverinfo? E.g.
    Start Time           Oct 28, 2008 8:40:24 AM
    Check this in your case.

  • SRW Package

    Hi All,
    In order to run Report from pl/sql someone in the forum,
    had suggested to install the SRW package,
    please anyone help in find the code for install in the pl/sql
    Thanks and Regards
    Raj

    You have to run a few scripts, like srwapiins.sql, which are found in <9iAS home>\reports\admin\sql
    See:
    http://download-west.oracle.com/docs/html/A92102_01/pbr_evnt.htm#1005558

  • SRW package with Forms11g

    Hi,
    Is it possible that SRW package doesn't work with Oracle Forms 11g Release 1?
    For exemple, when I compile a library with "srw.do_sql" comande, the Forms 11g compiler told me that this function is not defined.
    What is wrong?

    SRW package is a reports package I believe ..
    I couldn't see this even in Forms 10g . But I have seen this in Reports ..
    Do you think it was in Forms also ..

Maybe you are looking for

  • Flashing Question Mark Folder on Start-up

    I recently starting having administration issues with my Mac Mini. I went to update to OS 10.5.7 and when the administrator box came up asking for my password, my name was missing. After putting in the correct information, was unable to update, but r

  • Web interface displays via Portal using Mozilla or Firefox

    We have several web interfaces (BW-BPS) and have created iViews on our Portal (EPP 6.0). These iViews properly execute in IE 6.0. However, when we execute the BPS iViews using Mozilla or Firefox we see significant display discrepancies. For example,

  • Error: method invokemethod Class not found

    To execute vo we have added the following code in my page class files. 1.Vo created name as "MyViewObj" 2.Add code under the AM class as mentioned public void setEmployeeData(){ OAViewObject vo = getMyViewObj(); vo.executeQuery(); 3.Call Method under

  • Burning photos onto dvd, loses the original date and time of photo

    I'm trying to burn some photos onto dvd, but it marks all the files 'created date' and 'modified date' as today, rather than keeping the original date and time that the picture was taken. Is there a way around this?

  • Thinkpad X300 with windows xp sp2 gets blue screen after standby.

    We have a Thinkpad X300 (with windows xp sp2) gets blue screen after standby. I mean after you close the lid then open it. Anyone has see this kind of behave before? Thanks,