Byte declaration error

Hi experts,
can u solve my problem while creating an application for email interactive forms i am getting the error for the following code
byte[] pdfSource = bo.toByteArray();
newEmailNodeElement.setPdfsource(pdfSource);
element is not applicable for the arguments(byte[]).....
can anybody help me in that.....
thanks,
viswa

I don't know if you can applicate this concept in your code, but instead you use a binary type, try to use a Resource type in your attribute pdfSource.
There is a link that use Resource object here:
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71]
Regards
Marcos

Similar Messages

  • Declaration error in calendar

    after i downloaded the calendar fmb and olb and pll i attached the library and dragged everything and when i compile the form it gives me declaration error in something called navigator , picklist and wizard the errors r:1) identifier "wizard.wizard_begin" must be declared 2)navigator.get_tree_name must be declared 3)navigator.display_tree must be declared 4)navigator.get_tree_element_value must be declared 5)wizard.wizard_show must be declared 6)refresh_trees must be declared 7)navigator.to_index must be declared
    8)navigator.get_tree_element_depth must be declared
    9)navigator.get_tree_element_parent must be declared
    10)pick_list.list_in must be declared 11)pick_list.list_out must be declared 12)pick_list.get_picklist_element_count must be declared 13)pick_list.get_picklist_selection must be declared 14)wizard.wizard_show must be declared 15)wizard.wizard_finish must be declared

    i use forms 10g the calendar pll and plx and olb after i dragged every thing and attached the pll i found error that some code using itemsit tells me that they r not declared

  • DBMS_PIPE : NOT DECLARED ERROR 발생 시

    제품 : PL/SQL
    작성날짜 : 1996-10-30
    DBMS_PIPE NOT DECLARED ERROR 발생 시
    ====================================
    발생원인 1)
    DBMS_PIPE는 oracle install시에 $ORACLE_HOME/rdbms/admin/catproc.sql을
    실행함으로써 생성되도록 되어 있는 stored package이다.
    다른 stored package(DBMS_OUTPUT....)등은 생성직후 sys를 owner로한
    stored package에 대해 public synonym을 생성한 후 바로 이 synonym에
    대해 public에게 execute previlege가 grant되지만 DBMS_PIPE는 생성만
    되도록 되어 있기 때문에 사용하고자 하는 user에게 별도의 grant작업이
    필요하다.
    -> 확인사항 및 해결 방법
    1) sqldba에서
    select * from dba_objects where object_name = 'DBMS_PIPE';
    를 수행하여 DBMS_PIPE에 관한 자료가 sys가 owner인 package
    spec,package body,synonym만 나타나야 한다.
    2) sqldba에서
    grant execute on DBMS_PIPE to user_name;
    을 실행하여 해당 user에게 grant한다.
    발생원인 2)
    DBMS_PIPE는 sys가 owner이어야 한다.
    user의 실수로 system이나 다른 별도의 user로 connect하여 catproc.sql을
    실행한 경우에 발생한다.
    -> 확인사항 및 해결방법
    1) sqldba에서
    select * from dba_objects where object_name = 'DBMS_PIPE';
    를 수행하여 DBMS_PIPE에 관한 자료가 sys나 public이 아닌 다른
    user가 owner로 되어 있는 DBMS_PIPE object를 drop시킨다.
    2) sqldba에서
    grant execute on DBMS_PIPE to user_name;
    을 실행하여 해당 user에게 grant한다.

    Your comments are inappropriate.
    First of all, documentation links outside Oracle might not contain the correct documentation, as Oracle fixes documentation bugs silently.
    Secondly, you should not post links to desupported release. You seem to have assumed the 8.1.5 solution still applies to newer releases, which is correct in this case but not necessarily in all cases.
    Finally in the time you took to flame Saubhik you could have helped someone else out.
    Sybrand Bakker
    Senior Oracle DBA

  • WEBUTIL_FILE.Get File Separator must be declared error in oracle 10g

    hi,
    when i compile the forms with attached webutil.pll , i got the error "WEBUTIL_FILE.Get File Separator must be declared error in oracle 10g".but i have compiled the webutil.pll its fine.Please tell me th solution.
    Thanks,
    Maran

    hi
    hmmmm the latest version of webutil.pll you downloaded from where? forms version 10.1.2... comes with the latest version of .pll.
    what is the webutil version?
    sarah

  • LabView gives "Invalid Declaration" errors

    Hello there, I am trying to compile a "stm32f10x" project using old generic template project found on the forums (for example, here) and I have gotten around some errors.
    however I am experiencing an error when compiling which says:
    C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\include\os\rtx\LVDefs_plat.h(98): error:  #256: invalid redeclaration of type name "int8" (declared at line 157 of "C:\Program Files\National Instruments\LabVIEW 2010\CCodeGen\analysis\development\include\fundtypes.h")
    Target not created
    Status: Build failed.
    I have tried commenting out the lines which declares the int8 variable, however by commenting one out it gives more errors  (as the type is used within the file)
    I am using
    -Windows 7
    -National Instruments LabView 2010
    -Keil uVision 4.14
    -J-tag/J-link device
    -STM32F103RB chip
    Any help would be appreciated. thanks

    hey there, i did try some of the things mentioned in the thread, however it was still not working
    and I have tried commenting the declaration in both files, but each gave erros, however just now i have removed "stm32f10x_tim1" from the targetconfig file and the program seems to not come up with that error. however a new error has appeared that says:
    [2:18:33 PM] Status: Error
    linking...
    .\Obj\LabVIEW.axf: Error: L6406E: No space in execution regions with .ANY selector matching stm32f10x.o(HEAP).
    .\Obj\LabVIEW.axf: Error: L6407E: Sections of aggregate size 0x8000 bytes could not fit into .ANY selector(s).
    Target not created
    Status: Build failed.

  • SP2-0552: Bind variable not declared error. Any help please?

    Hi Experts,
    I have a question regarding the error that I am getting: SP2-0552: Bind variable "V_COUNT_TOT_BAL" not declared.
    I have 'out' parameters declared in my procedure and executing the same from sql script as shown below:
    set ver off
    set serverout on
    set linesize 8000
    Declare
    Variable v_count_dtl_bal NUMBER(10);
    Variable v_updat_dtl_bal NUMBER(10);
    Variable v_count_tot_bal NUMBER(10);
    Begin
    execute load_abc.insert_abc_bal(:v_count_dtl_bal,:v_updat_dtl_bal,:v_count_tot_bal);
    End;
    exit;
    So, when this sql script runs it given me the above error. However, all the result looks good and there's no problem with the data or anything else that might be impacted. I suspect this error stems from the code in the sql script above.
    Any idea what am I doing wrong?
    Thanks in advance for any inputs.

    Thanks Frank. I still receive the same error if I follow your example or any of the ones explained above. This is what I am getting and still an error underneath:
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
              VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
              NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
              BINARY_FLOAT | BINARY_DOUBLE ] ]
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
              VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
              NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
              BINARY_FLOAT | BINARY_DOUBLE ] ]
    Usage: VAR[IABLE] [ <variable> [ NUMBER | CHAR | CHAR (n [CHAR|BYTE]) |
              VARCHAR2 (n CHAR) | NCHAR | NCHAR (n) |
              NVARCHAR2 (n) | CLOB | NCLOB | REFCURSOR |
              BINARY_FLOAT | BINARY_DOUBLE ] ]
    SP2-0552: Bind variable "V_COUNT_TOT_BAL" not declared.

  • XML SQL Utility - declaration error

    Hi,
    I'm trying to use the XSU API in a Java server page and am getting an error with the <?xml version='1.0'> declaration tag. The parser seems to think it is not well-formed. Here is what I am doing: Using JSP, I query my database and use XSU to return the results as an XML string. I'm working on an Oracle personal edition version 8.1.7 on an Windows 2000 machine. When I had the Microsoft XML Parser version 2.5 installed, XSU would work and it would print out the XML document tree view. The document was well-formed, according to IE5.5. However, I wanted to use an XSLT stylesheet that would print out the xml results in an HTML table. The MS XML Parser 2.5 had to be upgraded to version 3.0 in replace mode, in order for the XSLT stylesheets to work. When I upgraded, the stylesheets worked, but then for all the JSP pages that were utilizing the XML SQL Utility, when I tried to view the page in IE5.5, I would get the declaration tag error I mentioned above.
    Any suggestions on how I can get the JSPs to work with XSU (without having to revert back to the older MS parser)? Is there another parser that I can use? I'm working with the Apache web server that Oracle personal edition installs.
    Thanks,
    SY

    The XML Declaration needs to be:
    <?xml version="1.0"?>
    and it must be the very first bytes of the file. There must not be any whitespace before the <?xml version="1.0"?> in what the JSP returns to the browser.
    This extra whitespace is frequently the cause of the problem in JSP cases that I've seen.

  • Procedure must be declared error

    I am trying to create an anonymous block that will invoke both the packaged procedure and function in the package to test, using basket id 12.
    Package
    CREATE OR REPLACE PACKAGE order_info_pkg IS
    FUNCTION C 
       (p_basket IN NUMBER)
       RETURN VARCHAR2;
    PROCEDURE basket_info_pp
      (p_basket IN NUMBER,
       p_shop OUT NUMBER,
       p_date OUT DATE);
    END;
    CREATE OR REPLACE PACKAGE BODY order_info_pkg IS
    FUNCTION SHIP_NAME_PF 
       (p_basket IN NUMBER)
       RETURN VARCHAR2
      IS
       lv_name_txt VARCHAR2(25);
    BEGIN
      SELECT shipfirstname||' '||shiplastname
       INTO lv_name_txt
       FROM bb_basket
       WHERE idBasket = p_basket;
      RETURN lv_name_txt;
    EXCEPTION
       WHEN NO_DATA_FOUND THEN
         DBMS_OUTPUT.PUT_LINE('Invalid basket id');
    END ship_name_pf;
    PROCEDURE basket_info_pp
      (p_basket IN NUMBER,
       p_shop OUT NUMBER,
       p_date OUT DATE)
      IS
    BEGIN
       SELECT idshopper, dtordered
        INTO p_shop, p_date
        FROM bb_basket
        WHERE idbasket = p_basket;
    EXCEPTION
       WHEN NO_DATA_FOUND THEN
         DBMS_OUTPUT.PUT_LINE('Invalid basket id');
    END basket_info_pp;
    END;
    /Anonymous black:
    VARIABLE G_IDSHOPPER NUMBER;
    VARIABLE G_DATE VARCHAR2(20);
    DECLARE
      LV_TEXT     VARCHAR2(50);
      LV_IDSHOPPER     NUMBER;
      LV_DATE     DATE;
    BEGIN
      LV_TEXT := ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
      DBMS_OUTPUT.PUT_LINE(LV_TEXT);
    End;
    /Getting:
    ERROR at line 6:
    ORA-06550: line 6, column 14:
    PLS-00201: identifier 'BASKET_INFO_PP' must be declared
    ORA-06550: line 6, column 3:
    PL/SQL: Statement ignored
    Can anyone assist?
    I have also tried this statement to test and could not get it even close to working.
    VARIABLE G_SHOP NUMBER;
    VARIABLE G_DATE DATE;
    VARIABLE G_NAME VARCHAR2(30);
    DECLARE
      LV_ORDERNAME VARCHAR2(30);
    BEGIN
    SELECT TO_CHAR(DTORDERED)
      INTO :G_DATE
       FROM BB_BASKET
        WHERE IDBASKET = P_BASKET;
    SELECT ORDER_INFO_PKG.BASKET_INFO_PP(12, :G_SHOP, :G_DATE)
      INTO LV_ORDERNAME
       FROM BB_BASKET
        WHERE  IDBASKET = P_BASKET;
    DBMS_OUTPUT.PUT_LINE(LV_ORDERNAME, :G_SHOP, :G_DATE);
    END;
    /ERROR at line 7:
    ORA-06550: line 7, column 22:
    PL/SQL: ORA-00904: "P_BASKET": invalid identifier
    ORA-06550: line 4, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 8, column 23:
    PL/SQL: ORA-00904: : invalid identifier
    ORA-06550: line 8, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 12, column 1:
    PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
    ORA-06550: line 12, column 1:
    PL/SQL: Statement ignored
    Edited by: user13842802 on Aug 6, 2012 5:53 PM

    Thanks for your response.
    SQL> DECLARE
      2    LV_TEXT VARCHAR2(50);
      3    LV_IDSHOPPER NUMBER;
      4    LV_DATE DATE;
      5  BEGIN
      6    ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
      7    LV_TEXT := order_info_pkg.C( 12 );
      8    DBMS_OUTPUT.PUT_LINE(LV_TEXT);
      9  End;
    10  /
      LV_TEXT := order_info_pkg.C( 12 );
    ERROR at line 7:
    ORA-06550: line 7, column 29:
    PLS-00302: component 'C' must be declared
    ORA-06550: line 7, column 3:
    PL/SQL: Statement ignoredIf i change line 7, to list it out:
    SQL> DECLARE
      2    LV_TEXT VARCHAR2(50);
      3    LV_IDSHOPPER NUMBER;
      4    LV_DATE DATE;
      5  BEGIN
      6    ORDER_INFO_PKG.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
      7    LV_TEXT := order_info_pkg.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
      8    DBMS_OUTPUT.PUT_LINE(LV_TEXT);
      9  End;
    10  /
      LV_TEXT := order_info_pkg.BASKET_INFO_PP(12, LV_IDSHOPPER, LV_DATE);
    ERROR at line 7:
    ORA-06550: line 7, column 14:
    PLS-00222: no function with name 'BASKET_INFO_PP' exists in this scope
    ORA-06550: line 7, column 3:
    PL/SQL: Statement ignoredIf I leave just the 12 value in, I get error:
    ERROR at line 7:
    ORA-06550: line 7, column 14:
    PLS-00306: wrong number or types of arguments in call to 'BASKET_INFO_PP'
    ORA-06550: line 7, column 3:
    PL/SQL: Statement ignored

  • Package declaration error

    I have an error calling a function from within my package.
    user_01 has a package called tautilities, that contains 2 functions.
    user_01 can use the functions no probs.
    user_01 then grants execute on tautilities to user_02
    user_02 executes the function getting the error
    PLS-00201: identifier 'TAUTILITIES.GET_DISTANCE' must be declared.
    What am I missing here? The functions are defined in the package definition?
    thanks
    null

    I think you should invoke it like user_01.tautilities.get_distance. Or create a public synonym for tautilities, so that you won't be needing the schema qualifier.

  • Data declaration error in adobe form

    hi,
    i m just remake a smartform into adobeform.but while doing so it's giving me error regarding data declaration.
    I had declare some of internal table as type of defiened type but at code initialzation it giving it's not a internal table.
    global data
    it_abc type ty_abc,
    types :
    types: begin of ty_abc,
               ab(8) type c,
               bc(4) type c,
              end of abc.
    when i m creating a internal table in code initialization it's giving me that already declared.
    code initialization.
    data : it_abc type table of ty_abc.
    Plz help me out.
    Regards
    Ricky

    Hi Maheshwari,
    After the declaration of the TYPES Structure, you need to declare the Internal Table. As follows
    TYPES
    types: begin of ty_abc,
              ab(8) type c,
              bc(4) type c,
              end of abc,
              tt_abc type standard table of ty_abc initial size 0.
    And in Global Declaration you use the newly created Internal Table (which is created using the Types Statement). And in Code Initialization you can use the Global Declaration internal table.
    Regards
    Pradeep Goli

  • How to resolve multiple declaration error in libraries

    Hi All,
    I have one C Application, it links to two libraries. There is one variable with same name defined in two different libraries. These two libraries are third party libraries and i don't have access to their source code.
    Compiler gives multiple declaration of same variable error.
    Please let me know how to resolve this error.
    Thanks in Advance.
    Regards,
    Vasu

    Please, show your compilation line as well as error that you get.
    Are these static or shared libraries?
    Are we talking about Solaris here?
    regards,
    Fedor.

  • Components must be declared error

    Hi all,
    I am facing problem in defining parameters in DT.
    I have made 2 parameters named var1 and var 2 in DT correspondingly in XDO and Package also.
    but when i am Viewing the Data in my report i get,Error like :
    The report cannot be rendered because of an error, please contact the administrator.
    Error Detail
    ORA-06550: line 2, column 17:
    PLS-00302: component 'VAR1' must be declared
    ORA-06550: line 2, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 3, column 17:
    PLS-00302: component 'VAR2' must be declared
    ORA-06550: line 3, column 1:
    PL/SQL: Statement ignored
    Following is my DT and Package spec and body.
    Data Template:
    <dataTemplate DataSourceRef="new_dsn" name="report" description="report" defaultPackage="PK_REPORT_NEW">
         <parameters>
              <parameter name="VAR1" dataType="character" defaultValue=""/>
              <parameter name="VAR2" dataType="character" defaultValue=""/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
    select PK_REPORT_NEW.FUNC_REPORT('10','20') from dual
    </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="report" source="Q1">
                   <element name="name" value="name"/>
                   <element name="designation" value="design"/>
                   <element name="salary" value="salary"/>
              </group>
         </dataStructure>
    </dataTemplate>
    Package Specification :
    CREATE OR REPLACE PACKAGE "PK_REPORT_NEW" AS
    FUNCTION FUNC_REPORT( var1 varchar2,var2 varchar2) RETURN CV_TYPES.GENTYPE;
    END;
    Package Body:
    CREATE OR REPLACE PACKAGE BODY "PK_REPORT_NEW" AS
    function FUNC_REPORT( var1 varchar2,var2 varchar2)
    return cv_types.gentype as
    CURSNAME CV_TYPES.GENTYPE;
    BEGIN
    BEGIN
    OPEN CURSNAME FOR
    SELECT name,var1,
    var2,
    FROM global_tab
    END;
    RETURN cursname;
    end FUNC_REPORT;
    END;
    Please help, its Urgent.Thanks in advance
    With regards,

    Use of a higher version of the expdp utility than the target database is know to result in this error.
    See Oracle support document: PLS-00302-SET_NO_OUTLINES must be declared When Using 10.2 Export Utility #339062.1
    Otherwise the target database Oracle version, utility version, and platform information is probably necessary to find the issue.
    HTH -- Mark D Powell --

  • Varray of Objects "Bind variable not declared" error.. I don't want a bind variable.

    Hello.
    This program is supposed to pull values from a table using a loop, and in the loop, put the values in objects in a varray.  I'm new to objects and am stumped trying to get this program to run.  When I attempt to run it in SQL*Plus  I get the following feedback:
    Type created.
    Type body created
    SP2-0552: Bind variable "MY_VARRAY_EMP1" not declared.
    I don't think I even need a bind variable.  Any feedback would be appreciated.  Here's the program:
    -- Enable screen I/O
    SET SERVEROUTPUT ON SIZE 1000000
    SET VERIFY OFF
    -- begin object spec
    CREATE OR REPLACE TYPE employee3 AS OBJECT
      ename CHAR (20 char),
      empno NUMBER (4),
      sal NUMBER (10),
      MEMBER FUNCTION get_ename RETURN CHAR, MEMBER PROCEDURE set_ename (SELF IN OUT NOCOPY employee3),
      MEMBER FUNCTION get_empno RETURN NUMBER, MEMBER PROCEDURE set_empno (SELF IN OUT NOCOPY employee3),
      MEMBER FUNCTION get_sal RETURN NUMBER, MEMBER PROCEDURE set_sal (SELF IN OUT NOCOPY employee3)
    -- begin object body
    CREATE OR REPLACE TYPE BODY employee3 AS
      -- gets
      MEMBER FUNCTION get_ename RETURN CHAR IS
      BEGIN
      RETURN self.ename;
      END;
      MEMBER FUNCTION get_empno RETURN NUMBER IS
      BEGIN
      RETURN self.empno;
      END;
      MEMBER FUNCTION get_sal RETURN NUMBER IS
      BEGIN
      RETURN self.ename;
      END;
      -- sets
      MEMBER PROCEDURE set_ename(SELF IN OUT employee3) IS
      BEGIN
      self.ename := ename;
      END;
      MEMBER PROCEDURE set_empno(SELF IN OUT employee3) IS
      BEGIN
      self.empno := empno;
      END;
      MEMBER PROCEDURE set_sal(SELF IN OUT employee3) IS
      BEGIN
      self.sal := sal;
      END;
    END;
    DECLARE
      TYPE emp_varray IS VARRAY(10) OF EMPLOYEE3;
      my_varray_emp1 EMP_VARRAY;
      -- List of EMPNO's in order of appearance in EMP table (for cross-referencing, single-line retrieval)
      TYPE MYCREF_VARRAY IS VARRAY(10) OF NUMBER(4);
      varray_mycref MYCREF_VARRAY := MYCREF_VARRAY(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
      this_object EMPLOYEE3;
      -- make a variable to store one empno
      thisno NUMBER(4);
      -- make a counter
      counter INT;
      -- query variables for the set calls
      q_ename CHAR(20 CHAR);
      q_empno NUMBER(4);
      q_sal NUMBER(10);
      my_result INT;
    BEGIN
      --my_varray_emp1 := EMP_VARRAY(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
      -- Put the first 10 EMPNO's in my cref array
      SELECT empno BULK COLLECT INTO varray_mycref FROM emp WHERE ROWNUM < 11;
      -- Use a loop to retrieve the first 10 objects in the "emp" table and put them in the varray of objects
      q_ename := NULL;
      q_empno := NULL;
      q_sal := NULL;
      my_result := NULL;
      this_object := NULL;
      counter := 1;
      FOR counter IN 1..10 LOOP
      thisno := varray_mycref(counter);
      this_object := my_varray_emp1(counter);
      SELECT ename INTO q_ename FROM emp WHERE empno = thisno;
      my_result := this_object.set_ename(q_ename, NULL);
      SELECT empno INTO q_empno FROM emp WHERE empno = thisno;
      my_result := this_object.set_empno(q_empno, NULL);
      SELECT sal INTO q_sal FROM emp WHERE empno = thisno;
      my_result := this_object.set_sal(q_sal, NULL);
      END LOOP;
      -- Use another loop to display the information in the reverse order.
      FOR counter in REVERSE 1..10 LOOP
      this_object =: my_varray_emp1(counter);
      dbms_output.put_line((this_object.get_ename()) || CHR(9) || (this_object.get_empno()) || CHR(9) || (this_object.get_sal()));
      END LOOP;
    END;

    Cleaning up your code for errors and eliminating unnecessary complexity...
    Add a user-defined constructor which takes all attributes and calls the "setter" procedures in one trip:
    -- Enable screen I/O
    set SERVEROUTPUT on size 1000000
    set VERIFY off
    -- begin object spec
    create or replace type employee3 as object
      ename CHAR (20 char),
      empno NUMBER (4),
      sal NUMBER (10),
    constructor function employee3(
        self    in out nocopy    employee3,
        aEname    in        char,
        aEmpNo    in        integer,
        aSal    in        number
      return self as result,
      member function get_ename return CHAR, member procedure set_ename (SELF in out nocopy employee3, ename in char),
      member function get_empno return NUMBER, member procedure set_empno (SELF in out nocopy employee3, empno in integer),
      member function get_sal return NUMBER, member procedure set_sal (SELF in out nocopy employee3, sal in integer)
    -- begin object body
    create or replace type body employee3 as
      constructor function employee3(
        self    in out nocopy    employee3,
        aEname    in        char,
        aEmpNo    in        integer,
        aSal    in        number
      return self as result
      is
      begin
        self.set_ename(aEname);
        self.set_empno(aEmpNo);
        self.set_sal(aSal);
        return;
      end;
      -- gets
      member function get_ename return CHAR is
      begin
      return self.ename;
      end;
      member function get_empno return NUMBER is
      begin
      return self.empno;
      end;
      member function get_sal return NUMBER is
      begin
      return self.sal;
      end;
      -- sets
      member procedure set_ename(SELF in out employee3, ename in char) is
      begin
      self.ename := ename;
      end;
      member procedure set_empno(SELF in out employee3, empno in integer) is
      begin
      self.empno := empno;
      end;
      member procedure set_sal(SELF in out employee3, sal in integer) is
      begin
      self.sal := sal;
      end;
    end;
    (Since I don't have EMP handy at the moment, create a simple view instead)
    create or replace view emp
    as
    select    'EMP' || to_char(level) ename
    ,    level + 100 empno
    ,    DBMS_RANDOM.VALUE(25000,75000) sal
    from    DUAL
    connect by
        level <= 20
    Get rid of your loop and individual SELECTs, and replace it with a single SELECT BULK COLLECT INTO...
    declare
      type emp_varray is varray(10) of EMPLOYEE3;
      my_varray_emp1 EMP_VARRAY;
      this_object EMPLOYEE3;
    begin
      -- No need for a loop. Use SELECT BULK COLLECT INTO, together with a user-defined constructor call (since the
      -- user-defined constructor overrides the default constructor we need to call it using named-parameter notation):
      select    new employee3(
                aEname    => e.ename,
                aEmpNo    => e.empno,
                aSal    => e.sal
      bulk collect into
            my_varray_emp1
      from        emp e
      where        rownum <= 10;
      -- Use another loop to display the information in the reverse order.
      for counter in reverse 1..10 loop
      this_object := my_varray_emp1(counter);
      dbms_output.put_line((this_object.get_ename()) || chr(9) || to_char(this_object.get_empno()) || chr(9) || to_char(this_object.get_sal()));
      end loop;
    end;
    EMP10        
    110    60110
    EMP9         
    109    67485
    EMP8         
    108    58242
    EMP7         
    107    47597
    EMP6         
    106    58995
    EMP5         
    105    49098
    EMP4         
    104    47406
    EMP3         
    103    67574
    EMP2         
    102    59663
    EMP1         
    101    52929
    PL/SQL procedure successfully completed.
    Gerard

  • Table not declared error even though I'm able to view it in database

    Hi,
    I'm trying to compile a form with the following code in a when button pressed trigger.I get the error that Trust_tab should be declared even though I am able to view the contents in sql plus. Why is it?
    REGISTER_BLK.TRUST_CODE:=:GLOBAL.TRUSTCODE;
    declare
    m number;
    begin
    if CHECKBOX_CHECKED('REGISTER_BLK.CHK_BETWEEN_DATES') =true and (:REGISTER_BLK.date_from is null or :REGISTER_BLK.date_to is null )THEN
    if :REGISTER_BLK.date_from is null then
    m:=show_alert('alert61');
    -- message('Please Enter Date');
    previous_item;
    go_item('register_blk.date_from');
    raise form_trigger_failure;
    elsif :REGISTER_BLK.date_to is null then
    -- message('Please Enter Date');
    m:=show_alert('alert61');
    previous_item;
    go_item('register_blk.date_to');
    raise form_trigger_failure;
    end if;
    else
    DECLARE
    n number;
    PL_ID PARAMLIST;
    CONDITION VARCHAR2(500);
    CHANGED_MODE_TYPE VARCHAR2(20);
    MODECODE NUMBER;
    TRUSTNAME VARCHAR2(60);
    TNAME VARCHAR2(60);
    TRUST_CODE VARCHAR2(1);
    MODE_TYPE VARCHAR2(15);
    DATE_FROM DATE;
    DATE_TO DATE;
    CONDITION1 VARCHAR2(200);
    MAXDATE DATE;
    BEGIN
    IF NOT Id_Null(get_parameter_list('ABC')) THEN
    Destroy_Parameter_List('ABC');
    END IF;
    PL_ID:=create_parameter_list('ABC');
    IF
    CHECKBOX_CHECKED('REGISTER_BLK.CHK_BETWEEN_DATES')= TRUE
    --THEN
    and :REGISTER_BLK.date_to is not null
    and :REGISTER_BLK.date_from is not null then
    DATE_FROM:=:REGISTER_BLK.DATE_FROM;
    DATE_TO :=:REGISTER_BLK.DATE_TO;
    SELECT TRUST_NAME INTO TRUSTNAME FROM TRUST_TAB
    WHERE TRUST_CODE=:REGISTER_BLK.TRUST_CODE;
    :REGISTER_BLK.TNAME:=TRUSTNAME;
    CONDITION:= ' HAVING DV.TRUST_CODE = '|| :REGISTER_BLK.TRUST_CODE ||
    ' AND MAX(MAXDATE) >= ' ||''''||TO_CHAR(:REGISTER_BLK.DATE_FROM,'DD-MON-YY')||'''' ||
    ' AND MAX(MAXDATE) <= ' ||''''||TO_CHAR(:REGISTER_BLK.DATE_TO,'DD-MON-YY')||'''';
    -- MESSAGE(CONDITION);
    Add_parameter('ABC','paramform',TEXT_parameter,'no');
    Add_parameter('ABC','P_CODE',TEXT_PARAMETER,:REGISTER_BLK.TRUST_CODE);
    Add_parameter('ABC','P_datefrom',TEXT_PARAMETER,:REGISTER_BLK.DATE_FROM);
    Add_parameter('ABC','P_dateto',TEXT_PARAMETER,DATE_TO);
    --Add_parameter('ABC','WHERE_CLAUSE',TEXT_PARAMETER,CONDITION);
    --Add_parameter('ABC','HAVING_CLAUSE',TEXT_PARAMETER,CONDITION1);
    Run_Product(REPORTS,'new_rec2.rdf',ASYNCHRONOUS,RUNTIME,
    FILESYSTEM,PL_ID,NULL);
    ELSIF
    CHECKBOX_CHECKED('REGISTER_BLK.CHK_BETWEEN_DATES') = FALSE
    --THEN
    or :REGISTER_BLK.date_to is null
    or :REGISTER_BLK.date_from is null then
    n:=show_alert('alert62');
    previous_item;
    go_item('REGISTER_BLK.CHK_BETWEEN_DATES');
    --raise form_trigger_failure;
    -- MESSAGE('Select atleast One Option for Generation of Report');
    -- MESSAGE('Select atleast One Option for Generation of Report');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    END;
    end if;

    Guess you are connected with wrong schema..
    have you test with another test button ,simply just count the record into local
    vraible with sql in another test button??
    DECLARE
      cnt    NUMBER;
    BEGIN
    SELECT COUTN(*) INTO cnt
      FROM  trust_tab;
    message(cnt);
    END;If the same prob persist check yours connectivity from where you are connected.
    Khurram

  • "caching-descriptor" must be declared error when using ejbc on WLS6.0 with EJB 1.1

    I'm compiling with ejbc an entity bean .jar. Using WLS 6.0. In the ejb-jar.xml,
    I've set version to EJB 1.1. I've made sure the weblogic-ejb-jar.xml has the caching-descriptor
    element defined (used to work with WLS 5.1).
    Thanks.
    Sayid
    Error is : org.xml.sax.SAXParseException: Element type "caching-descriptor" must
    be declare d. at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java
    :1008) at weblogic.apache.xerces.validators.common.XMLValidator.reportRecoverab
    leXMLError(XMLValidator.java:1236) at weblogic.apache.xerces.validators.common.XMLValidator.validateElement
    AndAttributes(XMLValidator.java:2673) at weblogic.apache.xerces.validators.common.XMLValidator.callStartElemen
    t(XMLValidator.java:818) at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher
    .dispatch(XMLDocumentScanner.java:1222) at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu
    mentScanner.java:380) at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
    at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:128 ) at
    weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb JarLoader_WLS600.java:455)
    at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:9 3) at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4 7) at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:3
    8) at weblogic.ejbc20.runBody(ejbc20.java:665) at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20) --------------- nested within: ------------------
    weblogic.xml.process.XMLParsingException: Element type "caching-descriptor" must
    be declared. - with nested exception: [org.xml.sax.SAXParseException: Element
    type "caching-descriptor" must be declar ed.] Line: 8 Column: 27 at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:132
    ) at weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS600.process(WebLogicEjb JarLoader_WLS600.java:455)
    at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:9 3) at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4 7) at weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:3
    8) at weblogic.ejbc20.runBody(ejbc20.java:665) at weblogic.utils.compiler.Tool.run(Tool.java:81)
    at weblogic.ejbc.main(ejbc.java:20) ERROR: weblogic.xml.process.XMLParsingException:
    Element type "caching-descripto r" must be declared. - with nested exception:
    [org.xml.sax.SAXParseException: Element type "caching-descriptor" must be declar
    ed.] Line: 8 Column: 27

    but a bean's deployment descriptor lies in the
    meta-inf folder, right?Sorry, my mistake. I was thinking of WAR files while writing. Thanks for pointing out.
    Regards,
    $ Carol.

Maybe you are looking for

  • Sharing iPhoto '11 library among users

    2 users on our mac, we were usingiPhoto 09 & shared same library without problem.  Both could addpictures & save changes.  Upgraded to '11 & now only one usercan add photos & save, other user can only see library, can'tsave changes.  How do we fix th

  • Tiger 4.11 to snow leopard 10.6? help what to do before installing new software?

    hello, first time i have asked a question on here so please go easy with me, basically i have tiger 4.11 and want to upgrade my software to the snow leopard 10.6 so i can use my iphone 4. my friend has kindly given me the software to upgrade with inc

  • How to create a three line table by pages?

    I need to write my paper which need the three line table to describe.i used to use the word to do this,but i want to know how to create it by pages?

  • Syntax help

    hi friends i need the syntax help for the below sentence F = (10 - (round(10 - j) - j)^2) this is giving error in editor pls help to resolve this thanks in advance with regards s.janagar

  • 3" dent on cover

    My new MacBook Pro has a 3" dent on the top, next to the Apple logo, where something fell on it. Nothing is affected except the appearance of the unit. Is there an easy way to remove the screen so I can hammer the case out? Any suggestions? Or is it