Whee the function return the value store in java

in c if i write this program
int add()
return 1;
main()
add();
if i run this program it give s error that lvalue required
but in java it works fine though the function return some value

in c if i write this program
int add()
return 1;
main()
add();
if i run this program it give s error that lvalue
requiredYou mean, if you try to run it as a C program it gave an error?
Then take your question to a "C" discussion forum. This is Java.
>
but in java it works fine though the function return some value
In Java this does NOT work fine.
It definitely does not compile! So you cannot run it.

Similar Messages

  • SAP Web Service error text : The database returned a value containing an error , type  CX_SY_OPEN_SQL_DB

    Hello Guru's,
    we are creating sales order in SAP from a quote created in .NET,  through Web Service created in SAP, and consumed in .NET.
    When ever a order is created in SAP for a given quote, SAP returns the sales order number to .NET.
    Orders are getting created as expected, but once in a while we are getting the following error from webservice :
    Web service processing error; more details in the web service error log on provider side (UTC timestamp 20140609173429; Transaction ID 4DFCEFE33301F1EBB5CE00155D0B4530)
    But the problem is order is getting created in SAP for the perticular quote for which we are getting the above error and this order number is not getting returned to .NET.
    Upon analysis in TCODE  SRT_UTIL for the above transaction ID, has the following details , which are hardly help full to resolve the error.
    ----TYPE                                  CX_SY_OPEN_SQL_DB
    ----ERROR_TEXT                   The database returned a value containing an error
    ----CX_SY_NO_HANDLER
    -----CLASSNAME                     CX_SY_OPEN_SQL_DB
    This Exception raised by Web Service application
    Could you please help in resolving this issue or alteast provide an approach for the same.
    Thank you,
    Suresh.

    Thank you Bhaskar,
    How can we clarify whether the error is from SAP or Web part.
    I have checked ST22, but there is not entry for the perticular  exception transaction ID
    My exception time stamp is
    -------------------START-------------6/9/2014 1:34:33 PM
    Error :Web service processing error; more details in the web service error log on provider side (UTC timestamp 20140609173429; Transaction ID 4DFCEFE33301F1EBB5CE00155D0B4530)
    -------------------END-------------6/9/2014 1:34:33 PM
    In al11, i found the following for the perticular exception time stamp
    **** Trace file opened at 20140609 133431 Eastern Daylight Time, by disp+work
    **** Versions SAP-REL 720,0,500 RFC-VER U 3 1442251 MT-SL
    XRFC> Begin of user trace
    XRFC> ---------------------------------------------------------------------
    XRFC>                                                                     <
    XRFC> TRACE SOAP RUNTIME - header                                         <
    XRFC>                                                                     <
    XRFC> ------------------------------------------------------------------  <
    XRFC> REQ_SIZE   : 2685                                                   <
    XRFC> RESP_SIZE  : 0                                                      <
    XRFC> PARENT_ID  : ROOT_CALL_ID                                           <
    XRFC> TRC_KEY    : 40FCEFE3BD6EF184B5CE00155D0B4530                       <
    XRFC> REQ_BASED  :                                                        <
    XRFC> SESSION_ID : 0003925540FCEFE3BD6EF17DB5CE00155D0B4530               <
    XRFC> TS_CALL    : 20140609173408.2880000                                 <
    XRFC> SY_UNAME   :                                            <
    XRFC> HOSTNAME   :                                              <
    XRFC> SY_SID     : PRD                                                    <
    XRFC> SY_MANDT   : 300                                                    <
    XRFC> SYS_NR     : 19                                                     <
    XRFC> APPLSERVER :                                      <
    XRFC> ISPRESCHED : X                                                      <
    XRFC> DURATION   : 21810                                                  <
    XRFC> NETHDRTIME : 21810                                                  <
    XRFC> CALL_STATE : 2                                                      <
    XRFC> ERRORTYPE  : APPLFAIL                                               <
    XRFC> ERRORAREA  : APPL                                                   <
    XRFC> CTXDP_TYPE : SOAP_RUNTIME                                           <
    XRFC> SYNC_ASYNC : S                                                      <
    XRFC> LOCATION   : P                                                      <
    XRFC> DIRECTION  : I                                                      <
    XRFC> REQ_ID     : 91C57815916E421CA9F3D652FFACE9C7                       <
    XRFC> RESP_ID    : 00155D0B45301EE3BBFF89A0267EB5CE                       <
    XRFC> MSG_STATE  : 114                                                    <
    XRFC> IF_NAME_I  : ZSD_CS_CREATE_SALESORDER_SERVI                         <
    XRFC> IF_NS_E    : urn:sap-com:document:sap:soap:functions:mc-style       <
    XRFC> IF_NAME_E  : ZSD_CS_CREATE_SALESORDER_SERVI                         <
    XRFC> ISSHORTCUT :                                                        <
    XRFC> TRC_PATT   : WSTEST                                                 <
    XRFC> TRC_SSID   : PRD_19                                                 <
    XRFC> TRC_USER   :                                           <
    XRFC> TRC_TS     : 20140609173409                                         <
    XRFC> TRC_COUNT  : 99                                                     <
    XRFC> TRC_EXT    :                                                        <
    XRFC> COMPLETE   : OK                                                     <
    XRFC> CALLEDPROG : ZSD_CS_CREATE_SALESORDER_SERVI                         <
    XRFC> SOAP_APPLI : urn:sap-com:soap:runtime:application:rfc:710           <
    XRFC> CONF_ID    : 00155D0B45301EE3AEFDAD78756555CE                       <
    XRFC> BIND_ID    : 00155D0B45301EE3AEFDAD787565B5CE                       <
    XRFC> OP_NAME    : ZsdCsCreateSalesorder                                  <
    XRFC> COMM_PATRN : Method:ZsdCsCreateSalesorder                           <
    XRFC> OP_NS      : urn:sap-com:document:sap:soap:functions:mc-style       <
    XRFC> REMADDRESS : 172.16.11.43                                           <
    XRFC> DT_OBJ     : ZSD_CS_CREATE_SALESORDER_SERVI                         <
    XRFC> MEMCONSUMP : 296291                                                 <
    XRFC> WSHOST     :                                                        <
    XRFC> WSPORT     :                                                        <
    XRFC> WSPROT     :                                                        <
    XRFC> WSCLIENT   :                                                        <
    XRFC> WSPATH     :                                                        <
    XRFC> PXYHOST    :                                                        <
    XRFC> PXYPORT    :                                                        <
    XRFC> USEDRFCDES :                                                        <
    XRFC> BONAME     :                                                        <
    XRFC> PROCCOMP   :                                                        <
    XRFC> DEPLOYUNIT :                                                        <
    XRFC> ------------------------------------------------------------------  <
    XRFC>                                                                     <
    XRFC> TRACE SOAP RUNTIME - trace records                                  <
    XRFC>                                                                     <
    XRFC> ------------------------------------------------------------------  <
    XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER      <
    XRFC> ->EXECUTE_PROCESSING Exception handling for IF "ZSD_CS_CREATE       <
    XRFC> _SALESORDER_SERVI" OP name "ZsdCsCreateSalesorder" MSG ID           <
    XRFC> "91C57815916E421CA9F3D652FFACE9C7" user "STULZWEBSERV"              <
    XRFC>                                                                     <
    XRFC>                                                                     <
    XRFC> E SOAP_RUNTIME 20140609173429.7240000 : CL_SOAP_RUNTIME_SERVER      <
    XRFC> ->EXECUTE_PROCESSING CX_SOAP_ROOT : An exception has occurred. |    <
    XRFC> program: CL_SOAP_RUNTIME_ROOT==========CP include: CL_SOAP          <
    XRFC> _RUNTIME_ROOT==========CM004 line: 120                              <
    XRFC>                                                                     <
    XRFC>                                                                     <
    XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER      <
    XRFC> ->EXECUTE_PROCESSING CX_SY_NO_HANDLER : An exception with the type  <
    XRFC> CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor    <
    XRFC> declared in a RAISING clause | program: SAPLSTXD include: LSTXDFDB  <
    XRFC> line: 200                                                           <
    XRFC>                                                                     <
    XRFC>                                                                     <
    XRFC> E SOAP_RUNTIME 20140609173429.7400000 : CL_SOAP_RUNTIME_SERVER      <
    XRFC> ->EXECUTE_PROCESSING CX_SY_OPEN_SQL_DB : The database returned a    <
    XRFC> value containing an error | program: SAPLSTXD include: LSTXDFDB     <
    XRFC> line: 227                                                           <
    XRFC>                                                                     <
    XRFC> ---------------------------------------------------------------------
    XRFC> End of user trace

  • TS4036 I tried to restore my iPad from the cloud backup but the iCloud returned the following message 'no backup available'? This after happened after I created the backup today and the same was confirmed at the Apple Store attendant

    I tried to restore my iPad from the cloud backup but the iCloud returned the following message 'no backup available'? This after happened after I created the backup today and the same was confirmed at the Apple Store attendant

    Check the console app to see if there are any error messages. I had one app showing an issue (Pet Hotel) the error was (truncated):
    ERROR: Restore message response: 102 rename error: File name too long (63) at path "/var/mobile/Library/SafeHarbor/com.pocketgems.tappethotel/Container/Documents/ savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHis tory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGa meHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/sa vedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHisto ry/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGame History/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/save dGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory /savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHi story/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedG ameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/s avedGameHistory/savedGameHistory/savedGameHistory/savedGameHistory/savedGameHist ory/savedGameHistory/1313349538-pocket_gems_crash_report.txt" (MBErrorDomain/102)
    I manually snyc'ed that particular app and then re-ran the restore and am now the proud owner of a working iphone. Not sure it is the same problem or app but looking in the console was the key!

  • Unable to activate DTP - The database returned a value containing an error

    Hi Experts,
    I want to upload a flat file from local PC to Infocube. I have created everything as expected.
    I have created the data source and it is displaying file contents when I do Preview.
    But when I try to Activate DTP it gives me following error:  -
    The database returned a value containing an error
    Message no. RS_EXCEPTION000
    Can somebody tell me if this is a basis error ? If yes then what corrective action have to be taken to resolve this.
    Thanks a lot.
    Best Regards,
    Chandan

    Hi PT,
    I did not have any routine in the transformation but on double clicking time characteristics (0CALMONTH and 0CALWEEK ) I saw that check box "Perform" was checked so I unchecked that and reactivated the Transformation once again.
    I deleted the DTP and recreated but the problem still persists.
    Any more inputs on this ??
    Best Regards,
    Chandan

  • PL/SQL: Function returned without value in authentication schemes

    Hi all,
    finally i did the authentication shemes based on my function and my own table ,thank you all for help :-) ,but now when i enter
    1-correct user name &wrong password <it is gonna work,the authentication workin fine >
    i am gonna get <Invalid Login Credentials> which is right in case of wrong login
    2-wrong user name &wrong password <it is not gonna work>
    3-wrong user name &correct password <it not gonna work>
    in case of not working i am getting the following error:
    ORA-06503: PL/SQL: Function returned without value
    Error ERR-10460 Unable to run authentication credential check function.
    any help to solve this issue so that it will display <Invalid Login Credentials>
    in all cases of invalid login
    thanks in advance ,
    Ahmed,

    scott,you efforts was useful and i beleive that the error that i am getting it is from the function that i have can you please take a look on :
    FUNCTION CHECK_USER
    ( P_USERNAME IN varchar2,
    P_PASSWORD IN varchar2)
    RETURN boolean
    IS
    BEGIN
    for c1 in (select user_name, password from vms2_employee_details where user_name = P_USERNAME)
    loop
    if P_PASSWORD = c1.password then
    return true;
    ------dbms_output.put_line('the return from the function is true');
    else
    return false;
    ----dbms_output.put_line('the return from the function is false');
    end if;
    end loop;
    EXCEPTION
    WHEN no_data_found THEN
    return false;
    when others then
    return false;
    ----dbms_output.put_line('the return from the function is false');
    END;
    and tell me what do you think ,
    thanks,
    ahmed

  • ORA-06503: PL/SQL: Function returned without value

    Hello
    Having a bit of a problem with piplined functions.
    Why does this work :
    SET SERVEROUTPUT ON
    DECLARE
    TYPE SARRAY IS TABLE OF VARCHAR2(4000);
    CURSOR CU IS SELECT * FROM DX_XML_ATTENDANCE WHERE STUD_ID = 107777 AND BASE_ID = 94;
    T_STUD NUMBER(10);
    T_BASE NUMBER(10);
    T_DATE DATE;
    T_MARKS VARCHAR2(1000);
    LEN_MARKS NUMBER;
    PDATE DATE;
    SDATE DATE;
    EDATE DATE;
    SLEN NUMBER;
    WEEKLEN NUMBER;
    INIPOS NUMBER;
    MARRAY VARCHAR2(1000);
    SUBARRAY SARRAY := SARRAY();
    SFILL VARCHAR2(14) := '--------------';
    EPOS NUMBER;
    MY_REC     DX_XML_ATTENDANCE%ROWTYPE;
    BEGIN
    SUBARRAY.EXTEND(17);
    DBMS_OUTPUT.ENABLE(100000000);
    --FOR MY_REC IN CU
    OPEN CU;
    LOOP
         FETCH CU INTO MY_REC;
         EXIT WHEN (CU%NOTFOUND);
    T_STUD := MY_REC.STUD_ID;
    T_BASE := MY_REC.BASE_ID;
    T_DATE := TO_DATE(MY_REC.START_DATE, 'DD/MM/YYYY');
    T_MARKS := MY_REC.MARKS;
    LEN_MARKS := LENGTH(T_MARKS);
    EPOS := LEN_MARKS / 2;
    SDATE := ROUND(TO_DATE(T_DATE), 'W') - 1;
    INIPOS := TO_NUMBER(TO_CHAR(T_DATE, 'D'));
    SLEN := INIPOS + 3;
    PDATE := SDATE;
    EDATE := SDATE + EPOS;
    MARRAY := SUBSTR(T_MARKS, 1, SLEN);
    WEEKLEN := LENGTH(MARRAY);
    IF WEEKLEN < 14 THEN
         MARRAY := SUBSTR(SFILL, 1, 14 - WEEKLEN) || MARRAY;
    END IF;
    SUBARRAY(1) := T_STUD;
    SUBARRAY(2) := T_BASE;
    SUBARRAY(3) := PDATE;
    FOR i IN 4 .. 17 LOOP
         SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE(SUBARRAY(1)||' '||SUBARRAY(2)||' '||SUBARRAY(3)||' '||SUBARRAY(4)||' '||
         SUBARRAY(5)||' '||SUBARRAY(6)||' '||SUBARRAY(7)||' '||SUBARRAY(8)||' '||SUBARRAY(9)||' '||
         SUBARRAY(10)||' '||SUBARRAY(11)||' '||SUBARRAY(12)||' '||SUBARRAY(13)||' '||SUBARRAY(14)||' '||
         SUBARRAY(15)||' '||SUBARRAY(16)||' '||SUBARRAY(17));
    WHILE PDATE < EDATE LOOP
         PDATE := PDATE + 7;
         MARRAY := SUBSTR(T_MARKS, SLEN + 1, 14);
         WEEKLEN := LENGTH(MARRAY);
         IF WEEKLEN < 14 THEN
              MARRAY := MARRAY || SUBSTR(SFILL, 1, 14 - WEEKLEN);
         END IF;
         FOR i IN 4 .. 17 LOOP
              SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
         END LOOP;
         SUBARRAY(3) := PDATE;
    DBMS_OUTPUT.PUT_LINE(SUBARRAY(1)||' '||SUBARRAY(2)||' '||SUBARRAY(3)||' '||SUBARRAY(4)||' '||
         SUBARRAY(5)||' '||SUBARRAY(6)||' '||SUBARRAY(7)||' '||SUBARRAY(8)||' '||SUBARRAY(9)||' '||
         SUBARRAY(10)||' '||SUBARRAY(11)||' '||SUBARRAY(12)||' '||SUBARRAY(13)||' '||SUBARRAY(14)||' '||
         SUBARRAY(15)||' '||SUBARRAY(16)||' '||SUBARRAY(17));
         PDATE := PDATE + 7;
         SLEN := SLEN + 14;
    END LOOP;
    END LOOP;
    END;
    and this does not :
    CREATE OR REPLACE PACKAGE BODY PARSE_ATTENDANCE AS
    FUNCTION ENUM_MARKS(SEL_SQL IN VARCHAR2)
    RETURN TMP_ATT_DATA_TBL PIPELINED
    IS
    V_SQL           VARCHAR(1000):= SEL_SQL;
    V_CURSOR      SYS_REFCURSOR;
    V_ROW          TMP_ATT_HOLDING:=TMP_ATT_HOLDING(NULL, NULL, NULL, NULL);
    T_STUD           NUMBER(10);
    T_BASE           NUMBER(10);
    T_DATE           DATE;
    T_MARKS      VARCHAR2(1000);
    LEN_MARKS      NUMBER;
    PDATE          DATE;
    SDATE          DATE;
    EDATE          DATE;
    SLEN           NUMBER;
    WEEKLEN      NUMBER;
    INIPOS           NUMBER;
    MARRAY           VARCHAR2(1000);
    SUBARRAY      SARRAY := SARRAY();
    SFILL           VARCHAR2(14) := '--------------';
    EPOS           NUMBER;
    BEGIN
    SUBARRAY.EXTEND(17);
    OPEN V_CURSOR FOR V_SQL;
    LOOP
         FETCH V_CURSOR INTO V_ROW.STUD_ID, V_ROW.BASE_ID, V_ROW.START_DATE, V_ROW.MARKS;
         EXIT WHEN V_CURSOR%NOTFOUND;
    T_STUD := V_ROW.STUD_ID;
    T_BASE := V_ROW.BASE_ID;
    T_DATE := TO_DATE(V_ROW.START_DATE, 'DD/MM/YYYY');
    T_MARKS := V_ROW.MARKS;
    LEN_MARKS := LENGTH(T_MARKS);
    EPOS := LEN_MARKS / 2;
    SDATE := ROUND(TO_DATE(T_DATE), 'W') - 1;
    INIPOS := TO_NUMBER(TO_CHAR(T_DATE, 'D'));
    SLEN := INIPOS + 3;
    PDATE := SDATE;
    EDATE := SDATE + EPOS;
    MARRAY := SUBSTR(T_MARKS, 1, SLEN);
    WEEKLEN := LENGTH(MARRAY);
    IF WEEKLEN < 14 THEN
         MARRAY := SUBSTR(SFILL, 1, 14 - WEEKLEN) || MARRAY;
    END IF;
    SUBARRAY(1) := T_STUD;
    SUBARRAY(2) := T_BASE;
    SUBARRAY(3) := PDATE;
    FOR i IN 4 .. 17 LOOP
         SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
    END LOOP;
    PIPE ROW(TMP_ATT_DATA_OBJ(SUBARRAY(1),SUBARRAY(2),SUBARRAY(3),SUBARRAY(4),
         SUBARRAY(5),SUBARRAY(6),SUBARRAY(7),SUBARRAY(8),SUBARRAY(9),
         SUBARRAY(10),SUBARRAY(11),SUBARRAY(12),SUBARRAY(13),SUBARRAY(14),
         SUBARRAY(15),SUBARRAY(16),SUBARRAY(17)));
    WHILE PDATE < EDATE LOOP
         PDATE := PDATE + 7;
         MARRAY := SUBSTR(T_MARKS, SLEN + 1, 14);
         WEEKLEN := LENGTH(MARRAY);
         IF WEEKLEN < 14 THEN
              MARRAY := MARRAY || SUBSTR(SFILL, 1, 14 - WEEKLEN);
         END IF;
         FOR i IN 4 .. 17 LOOP
              SUBARRAY(i) := SUBSTR(MARRAY, i - 3, 1);
         END LOOP;
         SUBARRAY(3) := PDATE;
         PIPE ROW(TMP_ATT_DATA_OBJ(SUBARRAY(1),SUBARRAY(2),SUBARRAY(3),SUBARRAY(4),
         SUBARRAY(5),SUBARRAY(6),SUBARRAY(7),SUBARRAY(8),SUBARRAY(9),
         SUBARRAY(10),SUBARRAY(11),SUBARRAY(12),SUBARRAY(13),SUBARRAY(14),
         SUBARRAY(15),SUBARRAY(16),SUBARRAY(17)));
         PDATE := PDATE + 7;
         SLEN := SLEN + 14;
    END LOOP;
    END LOOP;
    END ENUM_MARKS;
    END PARSE_ATTENDANCE;
    (This is then called like SELECT * FROM
    TABLE(
    PARSE_ATTENDANCE.ENUM_MARKS(
    'SELECT STUD_ID, BASE_ID, START_DATE, MARKS
    FROM DX_XML_ATTENDANCE WHERE STUD_ID = 107777
    AND BASE_ID = 94'))
    I get the same error, around this section near the bottom :
         PDATE := PDATE + 7;
         SLEN := SLEN + 14;
    Can any one help?

    Here is an example. you are missing an return statement.
    SQL> create or replace type varchar2_table is table of varchar2(10) ;
      2  /
    Type created.
    SQL> show errors
    No errors.
    SQL> create or replace function get_data return varchar2_table pipelined is
      2  begin
      3      pipe row(('Test')) ;
      4  end ;
      5  /
    Function created.
    SQL> show errors
    No errors.
    SQL> select * from table(get_data) ;
    ERROR:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "KKISHORE.GET_DATA", line 3
    no rows selected
    SQL> create or replace function get_data return varchar2_table pipelined is
      2  begin
      3      pipe row(('Test')) ;
    4 return ;
      5  end ;
      6  /
    Function created.
    SQL> show errors
    No errors.
    SQL> select * from table(get_data) ;
    COLUMN_VAL
    Test
    SQL>

  • ORA-06503: Function returned without value at WWV_FLOW_WEBSERVICES_API

    Hi, I use APEX_WEB_SERVICE.MAKE_REQUEST function to call web service however stuck with ORA-06503 exception. It would be nice to hear comment from someone who knows APEX_WEB_SERVICE from inside.
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "APEX_040000.WWV_FLOW_WEBSERVICES_API", line 125
    ORA-06512: at "NEC_VLD.NEC_DVS_WS", line 77
    The error occurs about 60% of my test case calls and always with the same parameter values. I thought something bad on web service side however I've tested it with the same parameter values on SoapUI tool and it works just fine. The parameter itself is fixed length varchar2 variable (e.g. 636BB6EFF19941420F00010000007B00000000000000).
    My environments
    APEX
    4.0.1 - no luck
    upgrade to 4.0.2 - no luck
    plain 4.0.2 install - no luck
    Databases
    10.0.2
    11.0.2
    Procedure to call web service:
    procedure getDocumentByID(
    p_xhdoc in varchar2) is
    l_envelope clob;
    l_resp_msg XMLType;
    begin
    l_envelope := '<?xml version="1.0" encoding="UTF-8"?>';
    l_envelope := l_envelope||'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sap="http://saperion.dvs.affecto.lt/">
    <soapenv:Header/>
    <soapenv:Body>
    <sap:getDocumentByID>
    <id>'||p_xhdoc||'</id>
    </sap:getDocumentByID>
    </soapenv:Body>
    </soapenv:Envelope>';
    l_resp_msg := apex_web_service.make_request(
    p_url => get_ref_value('DVS_DOC_WS_URL'),
    p_action => get_ref_value('DVS_DOC_WS_ACTION'),
    p_envelope => l_envelope,
    p_username => null,
    p_password => null);
    end;
    Regards,
    Tomas

    Never mind sorry! I've just tried granting APEX_040000 permissions for this particular Network ACL and now it works! Can I suggest that apex_web_service.make_request needs some better error handling however.
    Here's the fix...
    BEGIN
      DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(
          acl       => 'mywebservice.xml'
        , principal => 'APEX_040000'
        , is_grant  => TRUE
        , privilege => 'connect'
      DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(
          acl       => 'mywebservice.xml'
        , principal => 'APEX_040000'
        , is_grant  => TRUE
        , privilege => 'resolve'
      COMMIT;
    END;

  • Error: The listener returned the following Message: 500 Internal Server Error

    Hi,
    I'm currently having trouble building a JSP Portlet and registering it in Portal 902. I've followed all of the documentation and created the appropriate web.xml, provider.xml and _default.properties files as required.  When I deploy the page to my local OC4J server using http://localhost:port/myapplication/providers I receive the following message:
    Congratulations! You have successfully reached your Provider's Test Page.
    Checking for components:
    Portlets are: MyPortlet
    When I then try and deploy the portlet in our development portal environment using the Enterprise Manager interface, and then test using the same URL as above, I receive the same message as above.
    However, when I then try and register the provider through the Portal environment and try and "show" the portlet through a page within the portal, I receive the following error message:
    Error: The listener returned the following Message: 500 Internal Server Error
    I'm not sure why it would work with my local OC4J instance, and on the Portal server itself, but not as a portlet within a portal page in the main environment. I will add the application log, the provider.xml and the _default.properties files to extra postings after this first message.
    Any help would be much, much appreciated.
    Best Regards

    Here is the application log file after running the portlet:
    12/11/02 3:53 PM Started
    12/11/02 3:53 PM Started
    12/11/02 3:53 PM Started
    12/11/02 3:55 PM FavouritesPortlet: oracle.jsp.runtimev2.JspServlet: init
    12/11/02 3:55 PM FavouritesPortlet: 9.0.2.0.0 Started
    12/11/02 3:55 PM FavouritesPortlet: oracle.webdb.provider.v2.adapter.SOAPServlet: init
    12/11/02 3:55 PM FavouritesPortlet: NumberFormatException while initializing Logger. Defaulting LogLevel to 4
    12/11/02 3:55 PM FavouritesPortlet: ServletLogger - Logging level: 4
    12/11/02 3:55 PM FavouritesPortlet: [id=(null), instance=6872125_3_PREVIEW] CONFIGURATION: Invalid or null value for property - executionWarningTimeout = null - setting to default value of 20 seconds
    12/11/02 3:55 PM FavouritesPortlet: [id=(null), instance=6872125_3_PREVIEW] CONFIGURATION: Invalid or null value for property - executionKillTimeout = null - setting to default value of 80 seconds
    12/11/02 3:55 PM FavouritesPortlet: [id=(null), instance=6872125_3_PREVIEW] CONFIGURATION: Default container renderer not specified
    12/11/02 3:55 PM FavouritesPortlet: [id=(null), instance=6872125_3_PREVIEW] CONFIGURATION: defaulting container renderer to DefaultContainerRenderer
    12/11/02 3:55 PM FavouritesPortlet: Servlet error
    java.lang.NullPointerException
         at jsp.FavouritesPortlet._jspService(_FavouritesPortlet.java:86)
         at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at oracle.portal.provider.v2.render.http.ResourceRenderer.renderBody(Unknown Source)
         at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
         at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)

  • Rror: The listener returned the following Message: 503 Service Unavailable

    I have this PL/SQL item type based on a store proc... the stored proc returns the correct result but when I add this stored proc to the page the rest of the html portlets get the following errors on the header and body content what can be the reason.
    Error Message
    Error: The listener returned the following Message: 503 Service Unavailable

    I would check to see how many sessions you have running and what your session limit is. If the open sessions is near your session limit it maybe shutting portal down. Does this happen all the time or just randomly? If it's randomly, this may be your problem.

  • Error: The listener returned the following Message: 503 Service Unavailable

    I have navigation menu that I created using pl/sql and I am generated an href link from the store procedure the first time I click on the link I get the following error:
    Error: The listener returned the following Message: 503 Service Unavailable
    and then I click the back button on the browser and click it again the the page I want is return what may be causing it...

    I would check to see how many sessions you have running and what your session limit is. If the open sessions is near your session limit it maybe shutting portal down. Does this happen all the time or just randomly? If it's randomly, this may be your problem.

  • What does the function of the TLV 132 in LSP ?

    In ISIS protocol,what is the function of the TLV 132 in LSP? It seems like routers choose the latest active interface on the box,is it right ?

    Hello WL,
    the TLV 132 is present in hello packets but also on the LSP both L1 and L2 and contains the ip address(es) of the transmitting interface
    As explained in the previous post this TLV allows the receiving router(s) to perform a check of adjancency validity from the point of view of IPv4.
    Probably the TLV 132 is present in the LSP for two reasons:
    for completeness and for providing a fast check about the usage of the LSP.
    The LSP indeed is a list of TLVs so implementation can also be a little redundant here by putting all TLVs into the LSP.
    This also means that the LSP sent out each interface is different in TLV 132 field.
    You can see with sh isis database detail that each LSP contains a list of IP subnets and associated metric costs this can come from a list of TLV 132.
    TLV 128-132 are defined in RFC1195 for IP routing with IS-IS.
    IP Interface Address -- the IP address(es) of the interface
    corresponding to the SNPA over which this PDU is to be transmitted.
    x CODE - 132
    x LENGTH - total length of the value field (four octets per address).
    x VALUE -
    It is TLV 128 that provides metric info for IP.
    Hope to help
    Giuseppe

  • HT4864 I am getting a triangle with an exclamation point next to my inbox...it says: There may be a problem with the mail server or network. Verify the settings for account "MobileMe" or try again.  The server returned the error: Mail was unable to log in

    I can send but cannot recieve email
    This is the messege I am gewtting:
    There may be a problem with the mail server or network. Verify the settings for account “MobileMe” or try again.
    The server returned the error: Mail was unable to log in to the IMAP server “p02-imap.mail.me.com” using “Password” authentication. Verify that your account settings are correct.
    The server returned the error: Service temporarily unavailable

    Also if I go to system preferences accounts and re-enter the password it fixes the glitch sometimes.

  • VERY Disappointed-just upgraded from 12 to 13 and the functionality of the Organizer has completely changed

    I have been a long time user of Photoshop elements/Premier and I just loaded version 13 (from 12) and they have completely changed the functionality of the organizer!  OMG!!!!!  You can no longer move a picture easily in the albums and you MUST use one of the Adobe preset backgrounds for a slide show.  Really???  Generally I like the templates for certain uses but I am creating long movies of travels.  I do NOT want your backgrounds, but apparently I have no choice.  And I can no longer interface with Premier - then why did you sell them to me as a package?
    I am sure I can't get my money back because I did a direct download but I have uninstalled the program and gone back to version 12 - BUYER BEWARE if you have been using Premier with the organizer it will not work seamlessly.  Such a disappointment because a good and generally well functioning program has been butchered.  .

    I've just looked to buy iCab as people have suggested but reviews suggest it doesn't work reliably since IOS5.
    Frankly I feel cheated and I've been a historic fan since having an Apple IIci 20 years ago. A major plus point in iPad usability has gone. Funilly enough I was about to recommend 25 iPads as Safari was so useable and the users I had in mind having seen my iPad were keen. But I couldn't hand on heart recommend iPads now and after seeing how Apple drops key functionality and usability wouldn't trust this supplier. Guess I'm glad I didn't recommend them and then have this happen.
    And if I want tabs I'd have gone with Andriod for half the price.
    It wouldn't be so bad if I could reverse the upgrade.
    Anyone know how to cheat the system?

  • The function of the F keys at the top of my keyboard no longer work as they used to. How do I restore their old function?

    The function of the F keys at the top of my keyboard no longer work as they used to. The actions they do no longer correspond to the symbols that are printed on them. For example, the volume buttons no longer control volume and now change the display to full-screen instead, and the brightness buttons don't do anything at all.
    This started today and I'm finding it very irritating. I checked in System Preferences and didn't find any obvious way to turn most of them back to what they used to do.
    Help?

    In System Preferences > Keyboard uncheck Use all F1, F2, etc. keys as standard function keys.

  • Error: The listener returned the following Message: 500 Internal Server Err

    Hi all,
    I am using Oracle AS Portal and am getting the following error in home page (i.e page that has login button)
    Error: The listener returned the following Message: 500 Internal Server Error
    AND
    I have allready customized the portal page that comes after loggin in but not gettin interface to customize home page (i.e page that has login button)
    Any suggestions please.....
    Thanks in Advance

    Hi there,
    Please give it a check into the application.log of the Portal (as may point to to the right direction) and it would be useful to know the Portal version (5-digit).
    Cheers,
    Pedro.

Maybe you are looking for

  • What r the ways to reduce the load time of master data

    Hi The full load of the master data load IP is taking 18hr to 2 days loading on average 2516360 Records Is their any option to reduce load time as its causing data base lock and impacting transports(other than data selection) Thanks in advance Anuj

  • What is the oldest version of firefox that Mozilla officially supports at present?

    what is the oldest stable version of Firefox officially supported by Mozilla especially when it comes to javascript, css, html?

  • I've lost my verification mail, please send my verification mail one more time

    To signing up at https://addons.mozilla.org/en-US/firefox/users/register I've wrote an email address that wasn't exist, Then I owned the address. So I couldn't receive my verification message. Please resend my verification message. OR what should I d

  • Syncrosoft license program not working after migration

    I've just bought a new Macbook and installed some of my music software including Cubase which of course requires Syncrosoft' E-license with USB key.I downloaded the latest version of the E-license from Syncrosoft' website and everything worked fine.B

  • FreeMat

    I have a large amount of code that was written in FreeMat and am wondering what is the best way to deal with it, as I wish to integrate it into LabView. LabView would control the hardware, whilst FreeMat has some mathmatical scripts. What would be th