JPub Error User-defined type not found

I just have found about Jpub could help me with my problem, so i try it, but when i try to publish a package it gives me this error:
J2T-118, ERROR: User-defined type "ADMCAD.PKG_CONSULTA_BR_NOME.TAB_ELEITOR" was
not found in the database
This is the package:
create or replace package admcad.pkg_consulta_br_nome as
VT_NUM_INSCRICAO VARCHAR2(12);
VT_COD_SIT_ELEITOR NUMBER(2);
VT_NOM_ELEITOR VARCHAR2(70);
VT_DAT_NASC NUMBER(8);
VT_NUM_ZONA NUMBER(4);
VT_SGL_UF VARCHAR2(2);
-- tipo que sera retornado
TYPE REC_TAB_ELEITOR IS RECORD (
          NUM_INSCRICAO VT_NUM_INSCRICAO%TYPE,
          NOM_ELEITOR     VT_NOM_ELEITOR%TYPE,
          NOM_PAI     VT_NOM_ELEITOR%TYPE,
          NOM_MAE     VT_NOM_ELEITOR%TYPE,
          DAT_NASC     VT_DAT_NASC%TYPE,
          DAT_DOMIC_MUNIC     DATE,
          COD_SIT_ELEITOR     VT_COD_SIT_ELEITOR%TYPE,
          SGL_UF     VT_SGL_UF%TYPE,
          NUM_ZONA     VT_NUM_ZONA%TYPE);
TYPE tab_eleitor IS TABLE OF REC_TAB_ELEITOR INDEX BY BINARY_INTEGER;
TYPE cursor_consulta IS REF CURSOR;
SUBTYPE T_NUM_INSCRICAO is VT_NUM_INSCRICAO%TYPE;
SUBTYPE T_COD_SIT_ELEITOR is VT_COD_SIT_ELEITOR%TYPE;
SUBTYPE T_NOM_ELEITOR is VT_NOM_ELEITOR%TYPE;
SUBTYPE T_NOM_PAI is VT_NOM_ELEITOR%TYPE;
SUBTYPE T_NOM_MAE is VT_NOM_ELEITOR%TYPE;
SUBTYPE T_DAT_DOMIC_MUNIC is date;
SUBTYPE T_DAT_NASC is VT_DAT_NASC%TYPE;
SUBTYPE T_SGL_UF is VT_SGL_UF%TYPE;
SUBTYPE T_NUM_ZONA is VT_NUM_ZONA%TYPE;
TYPE rec_consulta IS RECORD (
num_inscricao T_NUM_INSCRICAO,
cod_sit_eleitor T_COD_SIT_ELEITOR,
nom_eleitor T_NOM_ELEITOR,
nom_pai T_NOM_PAI,
nom_mae T_NOM_MAE,
dat_domic_munic T_DAT_DOMIC_MUNIC,
dat_nasc T_DAT_NASC,
sgl_uf          T_SGL_UF,
num_zona          T_NUM_ZONA);
procedure prc_consulta (     d01_cod_fon_nome in varchar2,
          d01_cod_fon_mae in varchar2,
          d01_dat_nasc in number,
               d01_qtd_regs out number,
          vtab_eleitor in out tab_eleitor);
end pkg_consulta_br_nome;
This is the command line:
jpub -user=XXX/XXX@there -sql=admcad.pkg_consulta_br_nome
Am I wrong, or jpub was suppose to publish any type in the signature?
Please help.
Rafael Dittberner

Rafael,
I suggest you try asking in the Toplink discussion forum. You can find a link to it from this Web page:
http://www.oracle.com/technology/products/ias/toplink/index.html
Good Luck,
Avi.

Similar Messages

  • Defined User Define Type not show data in sql-query

    hi.
    I am define new type as
    create type cust_address_ty as object
    (STREET VARCHAR2(25),
    CITY VARCHAR2(25),
    COUNTRY VARCHAR2(25));
    then insert data into new created table
    when we run sql select command for * from
    following error occured.
    SQL> select * from fml.cust;
    select * from fml.cust
    ERROR at line 1:
    ORA-01024: invalid datatype in OCI call
    what should i do for this.
    please help
    thanks
    Ali

    ORA-00904: "ADDRESS"."CITY": invalid identifierPlease read about [url http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96594/adobjbas.htm#454850]Object Types and References -> Name Resolution -> When Table Aliases are Required in the manual.

  • User-Defined Type does not display values in Table Data grid

    I have a User defined Type that is a collection of one character VARCHAR2 values. In the Table Data grid it does not display the character values. I know on all our other Oracle development applications these values display. Is this a bug or is there a snippet to display these values?

    Version: 1.0.0.15
    DB: 10.2.0
    Workstation OS: Windows XP

  • Dotfuscator CE error: External type not found System.Windows.Input.ICommand,PresentationCore

    Preemptive will not support CE so I am trying here...
    I have an application targeting the .NET Framework 4.0.  It builds and runs fine but I cannot get it to compile in Dotfuscator CE. I am stuck.
    Dotfuscator CE (v5.0.2500.0) with Visual Studio 2010 SP1.  Here is the Error:
    Resolving method references...
    External type not found System.Windows.Input.ICommand,PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    Build Error.
    The problem seems to originate from ICommand being moved from PresentationCore.dll (in NET 4.0) to System.dll (in NET 4.5).  Studio handles this and compiles fine as I am targeting NET 4.0 and the references all point to
    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\
    Dotfuscator CE however does not seem to handle it correctly and I am not sure how to correct the issue.  Any help would be greatly appreciated!!

    Hi Perter,
    Thanks for your response.
    External type not found System.Windows.Input.ICommand,PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
    Maybe it is related to the references in your project.
    Reference:
    The type 'System.Windows.Input.ICommand' exists in both 'PresentationCore.dll' and 'System.dll'
    Since it is not the VS General issue, I am moving your question to the moderator forum ("Where is the forum for..?").
    The owner of the forum will direct you to a right forum. Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Type not found error

    Hi, my problem is "OCI-22303: type not found".
    I have a package in a database, say, MY_PCKDG.aa_number
    Then I'm trying
    std::vector<int> var;
    var.push_back(12);
    setVector(stmt, index, var, "MY_PCKDG.AA_NUMBER"); //here it fails saying the type was not found
    How to find the type? I have tried the type name alone, both uppercase and non-uppercase, and <package name>.<type name>, both all uppercase and non-uppercase.. Any suggestions?
    --Andrew                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Fernando . Thanks for the response. I am getting this error when I am trying to create a risk. Attached is the snapshot of the error. I have tried stuff like deleting the cache, checked SICF to see if Web Dyn Pro is active etc

  • User Defined Types menuitem not appears in Server Explorer at Remote Server

    Hi,
    I'm working on oracle 10g,odp.net with 2.0. i created two types which are input and output parameters for a function. I installed odp.net (ORACLE DATA PROVIDER FOR .NET 11.1.0.6.20) and generated UDT custom class code. It's working in my system. But when i installed odp.net (ORACLE DATA PROVIDER FOR .NET 11.1.0.6.20) in my remote server, its not showing the UDT Custom Class Code Generation Wizard to create UDT Custom Class Code. I have installed oracle Client 10g,.Net Framework 2.0 and ODP.Net(11.1.0.6.20) in the server.
    In my Local system server explorer it's showing
    Tables
    Views
    Procedures
    Functions
    Packages
    Synonyms
    Sequences
    XML Databases
    Java Classes
    User-Defined Types
    In server explorer it's showing only
    Tables
    Views
    Synonyms
    Sequences
    Procedures
    Functions
    Packages
    Package Bodies
    Why its not showing User-Defined Types.
    Pls Help.
    Ideas are highly appreciated.
    Anil

    As you noticed, not all database objects are available in Server Explorer, and because of this they can't have scripts generated for them, nor can they be compared with Schema Compare.
    In a pinch, you should be able to use SQL Developer to do this.

  • User Tracker Error: Application error: URN_NOT_FOUND : urn "ogs_server_urn" : Not found !!.

    Hello
    I'm running Cisco LMS 3.2 on a Windows Server 2003 R2 SP2.
    Products installed:
    CiscoWorks Common Services 3.3.0
    Campus Manager 5.2.1
    CiscoView 6.1.9
    CiscoWorks Assistant 1.2.0
    Device Fault Manager 3.2.0
    Internetwork Performance Monitor 4.2.0
    Integration Utility 1.9.0
    LMS Portal 1.2.0
    Resource Manager Essentials 4.3.1
    Since some days I receive this error when I want to open the UserTracker-Results over the WebGUI:
    Application error: URN_NOT_FOUND : urn "ogs_server_urn" : Not found !!.
    When I try to acces the DB via CLI I get this error:
    orbProperties={org.omg.CORBA.ORBInitialPort=42342, org.omg.CORBA.ORBClass=org.ja
    corb.orb.ORB, org.omg.CORBA.ORBInitialHost=SERVERNAME, org.omg.CORBA.ORBSinglet
    onClass=org.jacorb.orb.ORBSingleton, jacorb.implname=CSEDSPersistentIOR, org.omg
    .PortableInterceptor.ORBInitializerClass.bidir_init=org.jacorb.orb.giop.BiDirCon
    nectionInitializer}
    _Orb=org.jacorb.orb.ORB@154864a
    log4j:ERROR No appenders could be found for category (com.cisco.nm.ani.clients.u
    tng.application.UTDataManager).
    log4j:ERROR Please initialize the log4j system properly.
    ERROR UTCLI: Error loading preferences. URN_NOT_FOUND : urn "ogs_server_urn" : N
    ot found !!
    Does anybody know how to resolve this issue? I couldn't find anything on the internet.
    Thanks
    Dominik

    Hi jclark
    I've attached a ZIP file which contains both files.
    Thank you for your help

  • Oracle 11g AQ : problem enqueue user-defined type with varchar2 attribute

    Hello.
    I have a problem enqueuing a user-defined type to the queue on Oracle 10g.
    I'm using jdbc driver (ojdbc5.jar, version 11.1.0.6.0) as they provide oracle.jdbc.aq package.
    The type is following:
    CREATE OR REPLACE TYPE FIXED_T5 AS OBJECT
    (id integer,
    label varchar2(100),
    code integer,
    today date
    )I have created a java class for this type with jpub utility supplied with oracle 11g client package:
    jpub -user=scott/tger -url=jdbc:oracle:thin:@host:sid-sql=FIXED_T5:ru.invito.FixedType -compile=falseIt generated FixedType.java and FixedTypeRef.java files. Don't understand why i need the latter (FixedTypeRef).
    Then in test app:
    package ru.invito;
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.sql.SQLException;
    import java.sql.Timestamp;
    import java.util.Date;
    import java.util.Properties;
    import java.util.UUID;
    import junit.framework.TestCase;
    import oracle.jdbc.aq.AQAgent;
    import oracle.jdbc.aq.AQEnqueueOptions;
    import oracle.jdbc.aq.AQFactory;
    import oracle.jdbc.aq.AQMessage;
    import oracle.jdbc.aq.AQMessageProperties;
    import oracle.jdbc.aq.AQEnqueueOptions.DeliveryMode;
    import oracle.jdbc.aq.AQEnqueueOptions.VisibilityOption;
    import oracle.jdbc.driver.OracleConnection;
    import oracle.jdbc.driver.OracleDriver;
    import oracle.sql.Datum;
    import oracle.sql.STRUCT;
    import oracle.sql.StructDescriptor;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    public class AqTest extends TestCase {
         protected Log logger = LogFactory.getLog(getClass());
         public void testEnqueue() throws Exception {
              OracleDriver dr = new OracleDriver();
              Properties prop = new Properties();
              prop.setProperty("user", Config.USERNAME);
              prop.setProperty("password", Config.PASSWORD);
              OracleConnection connection = (OracleConnection) dr.connect(Config.JDBC_URL, prop);
              assertNotNull(connection);
              connection.setAutoCommit(false);
              enqueueMessage(connection, "INVITO.FIXED_T5Q", null);
              connection.commit();
         private void enqueueMessage(OracleConnection conn, String queueName, AQAgent[] recipients) throws SQLException,
                   IOException {
              logger.debug("----------- Enqueue start ------------");
              AQMessageProperties props = makeProps(queueName);
              AQMessage mesg = AQFactory.createAQMessage(props);
              String msqText = String.format("Hello, %s!", queueName);
              FixedType data = createData(36, msqText);
              Datum d = data.toDatum(conn);
              STRUCT s = (STRUCT) d;
              debugStruct("s", s);
              String toIdStr = byteBufferToHexString(s.getDescriptor().getOracleTypeADT().getTOID(), 20);
              logger.debug("s.toIdStr: " + toIdStr);
              StructDescriptor sd = StructDescriptor.createDescriptor("INVITO.FIXED_T5", conn);
              logger.debug("sd.toXMLString(): " + sd.toXMLString());
              mesg.setPayload(s);
              AQEnqueueOptions opt = makeEnqueueOptions();
              logger.debug("sending............");
              // execute the actual enqueue operation:
              conn.enqueue(queueName, opt, mesg);
              debugMessageId(mesg);
              logger.debug("----------- Enqueue done ------------");
         private void debugMessageId(AQMessage mesg) throws SQLException {
              byte[] mesgId = mesg.getMessageId();
              if (mesgId == null) {
                   throw new IllegalStateException("message id is NULL");
              String mesgIdStr = byteBufferToHexString(mesgId, 20);
              logger.debug("Message ID from enqueue call: " + mesgIdStr);
          * @return
          * @throws SQLException
         private FixedType createData(int ID, String label) throws SQLException {
              FixedType data = new FixedType();
              data._struct.setNChar(1);// initializes the flag for 'label' field
              data.setId(ID);
              data.setLabel(label);
              data.setCode(1);
              Date today = new Date();
              data.setToday(new Timestamp(today.getTime()));
              return data;
          * @param string
          * @param s
          * @throws SQLException
         private void debugStruct(String string, STRUCT s) throws SQLException {
              logger.debug(s + ".debugString(): " + s.debugString());
              logger.debug(s + "s.dump(): " + s.dump());
          * @return
          * @throws SQLException
         private AQAgent makeAgent() throws SQLException {
              AQAgent ag = AQFactory.createAQAgent();
              ag.setName("AQ_TEST");
              String agentAddress = null;
              try {
                   agentAddress = InetAddress.getLocalHost().getHostAddress();
              catch (UnknownHostException e) {
                   logger.error("cannot resolve localhost ip address. will not set it as AQ Agent address");
                   agentAddress = "NA";
              ag.setAddress(agentAddress);
              return ag;
         private AQMessageProperties makeProps(String queueName) throws SQLException {
              final String EXCEPTION_Q_TEMPLATE = "AQ$_%sT_E";
              final int DEFAULT_DELAY = 0;
              final int DEFAULT_EXPIRATION = -1;
              final int DEFAULT_PRIORITY = 0;
              AQMessageProperties propeties = AQFactory.createAQMessageProperties();
              propeties.setCorrelation(UUID.randomUUID().toString());
              propeties.setDelay(DEFAULT_DELAY);
              propeties.setExceptionQueue(String.format(EXCEPTION_Q_TEMPLATE, queueName));
              propeties.setExpiration(DEFAULT_EXPIRATION);
              propeties.setPriority(DEFAULT_PRIORITY);
              // propeties.setRecipientList(null);//should not set
              propeties.setSender(makeAgent());
              return propeties;
          * @return
          * @throws SQLException
         private AQEnqueueOptions makeEnqueueOptions() throws SQLException {
              AQEnqueueOptions opt = new AQEnqueueOptions();
              opt.setRetrieveMessageId(true);
              // these are the default settings (if none specified)
              opt.setDeliveryMode(DeliveryMode.PERSISTENT);
              opt.setTransformation(null);
              opt.setVisibility(VisibilityOption.ON_COMMIT);
              return opt;
          * Form the AQ reference
          * @param buffer
          * @param maxNbOfBytes
          * @return
         private static final String byteBufferToHexString(byte[] buffer, int maxNbOfBytes) {
              if (buffer == null)
                   return null;
              int offset = 0;
              StringBuffer sb = new StringBuffer();
              while (offset < buffer.length && offset < maxNbOfBytes) {
                   String hexrep = Integer.toHexString((int) buffer[offset] & 0xFF);
                   if (hexrep.length() == 1)
                        hexrep = "0" + hexrep;
                   sb.append(hexrep);
                   offset++;
              String ret = sb.toString();
              return ret;
    }The output is following:
    [main] 2008-07-03 19:09:49,863 DEBUG [ru.invito.AqTest] - ----------- Enqueue start ------------
    [main] 2008-07-03 19:09:50,348 DEBUG [ru.invito.AqTest] - [email protected](): name = INVITO.FIXED_T5 length = 4 attribute[0] = 36 attribute[1] = Hell
    o, INVITO.FIXED_T5Q! attribute[2] = 1 attribute[3] = 2008-07-03 19:09:49.0
    [main] 2008-07-03 19:09:50,363 DEBUG [ru.invito.AqTest] - [email protected](): name = INVITO.FIXED_T5
    length = 4
    ID = 36
    LABEL = Hello, INVITO.FIXED_T5Q!
    CODE = 1
    TODAY = 2008-07-03 19:09:49.0
    [main] 2008-07-03 19:09:50,363 DEBUG [ru.invito.AqTest] - s.toIdStr: 507ccce5b6e9f572e040007f01007203
    [main] 2008-07-03 19:09:50,363 DEBUG [ru.invito.AqTest] - sd.toXMLString(): <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <StructDescriptor sqlName="INVITO.FIXED_T5" >
      <OracleTypeADT sqlName="INVITO.FIXED_T5"  typecode="0" tds_version="1"
               is_embedded="false" is_top_level="true" is_upt="false" finalType="true" subtype="false">
        <attributes>
          <attribute name="ID"  type="INTEGER" >
            <OracleType typecode="2" />
          </attribute>
          <attribute name="LABEL"  type="VARCHAR2" >
            <OracleType typecode="12" />
          </attribute>
          <attribute name="CODE"  type="INTEGER" >
            <OracleType typecode="2" />
          </attribute>
          <attribute name="TODAY"  type="DATE" >
            <OracleType typecode="0" />
          </attribute>
        </attributes>
      </OracleTypeADT>
    </StructDescriptor>
    [main] 2008-07-03 19:09:50,379 DEBUG [ru.invito.AqTest] - sending............
    [main] 2008-07-03 19:09:50,395 DEBUG [ru.invito.AqTest] - Message ID from enqueue call: 511ff143bd4fa536e040007f01003192
    [main] 2008-07-03 19:09:50,395 DEBUG [ru.invito.AqTest] - ----------- Enqueue done ------------But when dequeueing the 'label' attribute is lost:
    DECLARE
    dequeue_options     DBMS_AQ.dequeue_options_t;
    message_properties  DBMS_AQ.message_properties_t;
    message_handle      RAW(16);
    message             fixed_t5;
    BEGIN
      dequeue_options.navigation := DBMS_AQ.FIRST_MESSAGE;
      DBMS_AQ.DEQUEUE(
         queue_name          =>     'fixed_t5q',
         dequeue_options     =>     dequeue_options,
         message_properties  =>     message_properties,
         payload             =>     message,
         msgid               =>     message_handle);
      DBMS_OUTPUT.PUT_LINE('ID   : '||message.id);
      DBMS_OUTPUT.PUT_LINE('Label: '||message.label);
      DBMS_OUTPUT.PUT_LINE('Code : '||message.code);
      DBMS_OUTPUT.PUT_LINE('Today: '||message.today);
      COMMIT;
    END;
    ID   : 36
    Label:
    Code : 1
    Today: 03.07.08
    Could anyone tell me what is wrong with the setup/code?
    Why 'label' not saved in queue, though i saw it is not empty in STRUCT?

    Thank you for the reply!
    I have enqueued:
    [main] 2008-07-04 15:30:30,639 DEBUG [ru.invito.UserDefinedTypeAqTest$1] - [email protected](): name = INVITO.FIXED_T5
    length = 4
    ID = 41
    LABEL = Hello, INVITO.FIXED_T5Q!
    CODE = 1
    TODAY = 2008-07-04 15:30:30.0and in table (select * from FIXED_T5QT) the 'label' is blank:
    Q_NAME     FIXED_T5Q
    MSGID     51310809B5EA3728E040007F01000C79
    CORRID     b8f38fd3-4fa6-4e0f-85d1-2440d02d655e
    PRIORITY     0
    STATE     0
    DELAY     
    EXPIRATION     
    TIME_MANAGER_INFO     
    LOCAL_ORDER_NO     0
    CHAIN_NO     0
    CSCN     0
    DSCN     0
    ENQ_TIME     04.07.2008 15:28:44
    ENQ_UID     INVITO
    ENQ_TID                       4012
    DEQ_TIME     
    DEQ_UID     
    DEQ_TID     
    RETRY_COUNT     0
    EXCEPTION_QSCHEMA     AQ$_INVITO
    EXCEPTION_QUEUE     FIXED_T5QT_E
    STEP_NO     0
    RECIPIENT_KEY     0
    DEQUEUE_MSGID     
    SENDER_NAME     AQ_TEST
    SENDER_ADDRESS     10.1.1.137
    SENDER_PROTOCOL     
    USER_DATA.ID     41
    USER_DATA.LABEL     
    USER_DATA.CODE     1
    USER_DATA.TODAY     04.07.2008 15:30:30I must point to a strange thing: when the FixedType instance is created (via new operator) and then the setLabel("....") called as:
    FixedType data = new FixedType();
    // hack: proper initialization for 'label' field
    data._struct.setNChar(1);
    data.setId(ID);
    data.setLabel(label);
    data.setCode(1);
    Date today = new Date();
    data.setToday(new Timestamp(today.getTime()));
    Datum d = data.toDatum(connection);
    STRUCT s = (STRUCT) d;
    logger.debug(s + ".debugString(): " + s.debugString());
    logger.debug(s + ".dump(): " + s.dump());and if i comment line (data._struct.setNChar(1);) the debug messages for created STRUCT also shows empty value for label.
    But if i explicitly call data._struct.setNChar(1) then debug contains the label i defined in call to the setLabel method.

  • Selecting Columns with User Defined Types... in PHP

    I've looked all over google and this forum and can't find anything about this... here's what I've got:
    a User Defined Type:
    CREATE TYPE "ADDRESS" AS OBJECT (
    ADDRESS VARCHAR2(256),
    COUNTRY VARCHAR2(256),
    STATE VARCHAR2(256),
    SUBURB VARCHAR2(256),
    TOWNCITY VARCHAR2(256)
    and it is used in a column in one of my tables:
    CREATE TABLE "SUPPLIERS" (
    "ID" NUMBER,
    "USER_ID" NUMBER,
    "NAME" VARCHAR2(50),
    "ADDRESS" "ADDRESS"
    so that column "address" is of type "address". I am then able to insert a row using:
    INSERT INTO "SUPPLIERS" VALUES(1,1,'name',ADDRESS('address','country','state','suburb','town city'));
    and that all works as expected. I can select the data using iSqlPlus and get the result I expect;
    ADDRESS('address', 'country', 'state', 'suburb', 'town city')
    So here's the problem. I cannot reterieve the data as expected, using PHP. If I make a select statement on the table that excludes the ADDRESS column I get the results as expected. If the ADDRESS column is included I get an error when fetching the row:
    ORA-00932: inconsistent datatypes: expected CHAR got ADT
    I'm assuming this is because the the cell cannot be cast to a string. How can I select the row so that the ADDRESS column is returned as an object? Can I even? If I can't, I don't see the use of Object Data Types... :(
    I have found that I can select a field of the type using:
    SELECT t.ADDRESS.TOWNCITY FROM SUPPLIERS t;
    But this is not ideal, because the whole idea was that I could (potentially) change the format for, in my example, an address, and not need to alter my SQL statements.
    Any ideas??

    PHP OCI8 can currently only bind simple types. Here are two possible
    solutions.
    -- cj
    create or replace type mytype as object (myid number, mydata varchar2(20));
    show errors
    create or replace type mytabletype as table of mytype;
    show errors
    create or replace procedure mycreatedata1(outdata out mytabletype) as
    begin
      outdata := mytabletype();
      for i in 1..10 loop
        outdata.extend;
        outdata(i) := mytype(i, 'some name'||i);
      end loop;
    end;
    show errors
    -- Turn the data into a ref cursor (but PHP OCI8 doesn't use prefetching for ref cursors)
    create or replace procedure mywrapper1(rcemp out sys_refcursor) as
    data mytabletype;
    begin
      mycreatedata1(data);
      open rcemp for select * from table(cast(data as mytabletype));
    end mywrapper1;
    show errors
    -- Turn the data into two collections
    -- This might be faster than returning a ref cursor because you can
    -- use oci_bind_array_by_name() on each parameter.
    create or replace procedure mywrapper2(pempno out dbms_sql.NUMBER_table, pename out dbms_sql.VARCHAR2_table) as
    data mytabletype;
    begin
      mycreatedata1(data);
      select myid, mydata
      bulk collect into pempno, pename
      from table(cast(data as mytabletype));
    end mywrapper2;
    show errorsThen in PHP you could do:
    // Use a Ref Cursor
    $s = oci_parse($c, "begin mywrapper1(:myid); end;");
    $rc = oci_new_cursor($c);
    oci_bind_by_name($s, ':myid', $rc, -1, OCI_B_CURSOR);
    oci_execute($s);
    oci_execute($rc);
    oci_fetch_all($rc, $res);
    var_dump($res);
    // Use Collections
    $s = oci_parse($c, "begin mywrapper2(:myid, :mydata); end;");
    oci_bind_array_by_name($s, ":myid", $myid, 10, -1, SQLT_INT);
    oci_bind_array_by_name($s, ":mydata", $mydata, 10, 20, SQLT_CHR);
    oci_execute($s);
    var_dump($myid);
    var_dump($mydata);

  • ERROR: exception symbol "09732" not found in resource file

    I am trying to get a client to work with workflow services. I get 'ERROR: exception symbol "09732" not found in resource file' in the output when the method queryTasks is excecuted.
    Jdeveloper 10.1.3.4 and SOA Suite 10.1.3.3.0
    Any ideas?
    Eydun
    ------------------ program ---------------------
    package project1;
    //import com.oracle.services.bpel.task.Task;
    import java.util.ArrayList;
    import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
    import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
    import oracle.bpel.services.workflow.query.ITaskQueryService;
    import oracle.bpel.services.workflow.verification.IWorkflowContext;
    import java.util.List;
    import oracle.bpel.services.workflow.repos.Ordering;
    import oracle.bpel.services.workflow.repos.Predicate;
    import oracle.bpel.services.workflow.repos.TableConstants;
    import oracle.bpel.services.workflow.task.ITaskService;
    import oracle.bpel.services.workflow.task.model.Task;
    public class Class1 {
    public Class1() {
    public void TryTask() {
    try {
    //Create JAVA WorflowServiceClient
    IWorkflowServiceClient wfSvcClient =
    WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.WSIF_CLIENT);
    //Get the task query service
    ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
    //Login as jstein
    IWorkflowContext ctx = querySvc.authenticate("jstein",
    "welcome1",
    null, //Use default realm
    null);//Not logging in on behalf of another user
    //Set up list of columns to query
    List queryColumns = new ArrayList();
    queryColumns.add("TASKID");
    queryColumns.add("TASKNUMBER");
    queryColumns.add("TITLE");
    queryColumns.add("OUTCOME");
    //Create a predicate to query tasks that have a null outcome
    String outcome = null;
    Predicate predicate = new Predicate(TableConstants.WFTASK_OUTCOME_COLUMN,
    Predicate.OP_EQ,
    outcome);
    //Create an ordering to order tasks by task number
    Ordering ordering = new Ordering(TableConstants.WFTASK_TASKNUMBER_COLUMN
    ,true //Ascending order
    ,false //Nulls last
    //Query a list of tasks assigned to jstein
    List tasks = querySvc.queryTasks(ctx,
    queryColumns,
    null, //Do not query additional info
    ITaskQueryService.ASSIGNMENT_FILTER_MY,
    null, //No keywords
    null, //predicate, //Only tasks with no outome set
    ordering, //Order by ascending task number
    0, //Do not page the query result
    0);
    //Get the task service
    ITaskService taskSvc = wfSvcClient.getTaskService();
    //Loop over the tasks, outputting task information, and approving tasks
    for(int i = 0 ; i < tasks.size() ; i ++)
    Task task = (Task)tasks.get(i);
    int taskNumber = task.getSystemAttributes().getTaskNumber();
    String title = task.getTitle();
    String taskId = task.getSystemAttributes().getTaskId();
    //Set the outcome
    taskSvc.updateTaskOutcome(ctx,taskId,"APPROVED");
    System.out.println("Task #"+taskNumber+" ("+title+") is APPROVED");
    catch (Exception e)
    //Handle any exceptions raised here...
    System.out.println("Caught workflow exception: "+e.getMessage());
    public static void main(String[] args) {
    Class1 class1 = new Class1();
    class1.TryTask();
    ------------------- output ---------------------
    C:\java\jdk1.6.0_07\bin\javaw.exe -client -classpath C:\jdev11work\eej\mywork\Application3\Project1\classes;C:\oracle\jdev10134bpellibs\bpel\lib\bpm-infra.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel-common.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel-thirdparty.jar;C:\oracle\jdev10134bpellibs\j2ee\home\jazncore.jar;C:\oracle\jdev10134bpellibs\j2ee\home\oc4jclient.jar;C:\oracle\jdev10134bpellibs\lib\xml.jar;C:\oracle\jdev10134bpellibs\lib\xmlparserv2.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\config;C:\oracle\jdev10134bpellibs\webservices\lib\orasaaj.jar;C:\oracle\jdev10134bpellibs\webservices\lib\soap.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\lib\bpm-services.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\schema;C:\oracle\jdev10134bpellibs\bpel\lib\olite40.jar;C:\oracle\jdev10134bpellibs\jdbc\lib\ojdbc14.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel.jar;C:\oracle\jdev10134bpellibs\wsclient_extended.jar project1.Class1
    <::> WorkflowService:: TaskQueryService.authenticate(): called. user = jstein identityContext = null onBehalfOfUser = null
    <::> WorkflowService:: VerificationService.authenticateUser: attempting for user = jstein identityContext = null
    <ISConfiguration::load> Found Configuration=Configuration: realmName=jazn.com properties:{} has 1 providers:
    <ISConfiguration::load>      Provider: service=Identity providerType=JAZN providerName=XML Provider properties:{usersPropertiesFile=users-properties.xml}
    <ISConfiguration::load>      
    <ISConfiguration::validate> Validate configuration=Configuration: realmName=jazn.com properties:{} has 1 providers:
    <ISConfiguration::validate>      Provider: service=Identity providerType=JAZN providerName=XML Provider properties:{usersPropertiesFile=users-properties.xml}
    <ISConfiguration::validate>      
    <ISConfiguration::save> Save IdentityService configuration file into /C:/oracle/jdev10134bpellibs/bpel/system/services/config/is_config.xml
    <ServiceFactory::getService> Provider type is JAZN
    <ServiceFactory::getService> JAZN's ProviderType=XML
    <XMLIdentityService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLAuthenticationService::init> Load provider initialization complete
    <XMLAuthorizationService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLProvider::addUserToCache> User wfaulk is loaded ....
    <BPMUserImpl::<init>> Constacted user=sfitzger
    <XMLProvider::addUserToCache> User sfitzger is loaded ....
    <BPMUserImpl::<init>> Constacted user=jstein
    <XMLProvider::addUserToCache> User jstein is loaded ....
    <BPMUserImpl::<init>> Constacted user=istone
    <XMLProvider::addUserToCache> User istone is loaded ....
    <BPMUserImpl::<init>> Constacted user=jcooper
    <XMLProvider::addUserToCache> User jcooper is loaded ....
    <BPMUserImpl::<init>> Constacted user=mtwain
    <XMLProvider::addUserToCache> User mtwain is loaded ....
    <BPMUserImpl::<init>> Constacted user=jlondon
    <XMLProvider::addUserToCache> User jlondon is loaded ....
    <BPMUserImpl::<init>> Constacted user=ltolstoy
    <XMLProvider::addUserToCache> User ltolstoy is loaded ....
    <BPMUserImpl::<init>> Constacted user=fkafka
    <XMLProvider::addUserToCache> User fkafka is loaded ....
    <BPMUserImpl::<init>> Constacted user=szweig
    <XMLProvider::addUserToCache> User szweig is loaded ....
    <BPMUserImpl::<init>> Constacted user=mmitch
    <XMLProvider::addUserToCache> User mmitch is loaded ....
    <BPMUserImpl::<init>> Constacted user=jausten
    <XMLProvider::addUserToCache> User jausten is loaded ....
    <BPMUserImpl::<init>> Constacted user=achrist
    <XMLProvider::addUserToCache> User achrist is loaded ....
    <BPMUserImpl::<init>> Constacted user=rsteven
    <XMLProvider::addUserToCache> User rsteven is loaded ....
    <BPMUserImpl::<init>> Constacted user=cdoyle
    <XMLProvider::addUserToCache> User cdoyle is loaded ....
    <BPMUserImpl::<init>> Constacted user=wshake
    <XMLProvider::addUserToCache> User wshake is loaded ....
    <BPMUserImpl::<init>> Constacted user=guest
    <XMLProvider::addUserToCache> User guest is loaded ....
    <BPMUserImpl::<init>> Constacted user=bpeladmin
    <XMLProvider::addUserToCache> User bpeladmin is loaded ....
    <BPMUserImpl::<init>> Constacted user=default
    <XMLProvider::addUserToCache> User default is loaded ....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
    <XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role Supervisor is loaded .....
    <XMLProvider::addRoleToCache> Role California is loaded .....
    <XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
    <XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <XMLAuthorizationService::init> Load provider initialization complete
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService::authenticateUser():: begin
    <BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: begin
    <BPMServiceJAZNBase::getRealm> Realm=[Realm: jazn.com]
    <BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: end
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService:: call authenticate
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService:: user is authenticated!
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService::authenticateUser():: end
    <ServiceFactory::getService> Provider type is JAZN
    <ServiceFactory::getService> JAZN's ProviderType=XML
    <XMLIdentityService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLProvider::addUserToCache> User wfaulk is loaded ....
    <BPMUserImpl::<init>> Constacted user=sfitzger
    <XMLProvider::addUserToCache> User sfitzger is loaded ....
    <BPMUserImpl::<init>> Constacted user=jstein
    <XMLProvider::addUserToCache> User jstein is loaded ....
    <BPMUserImpl::<init>> Constacted user=istone
    <XMLProvider::addUserToCache> User istone is loaded ....
    <BPMUserImpl::<init>> Constacted user=jcooper
    <XMLProvider::addUserToCache> User jcooper is loaded ....
    <BPMUserImpl::<init>> Constacted user=mtwain
    <XMLProvider::addUserToCache> User mtwain is loaded ....
    <BPMUserImpl::<init>> Constacted user=jlondon
    <XMLProvider::addUserToCache> User jlondon is loaded ....
    <BPMUserImpl::<init>> Constacted user=ltolstoy
    <XMLProvider::addUserToCache> User ltolstoy is loaded ....
    <BPMUserImpl::<init>> Constacted user=fkafka
    <XMLProvider::addUserToCache> User fkafka is loaded ....
    <BPMUserImpl::<init>> Constacted user=szweig
    <XMLProvider::addUserToCache> User szweig is loaded ....
    <BPMUserImpl::<init>> Constacted user=mmitch
    <XMLProvider::addUserToCache> User mmitch is loaded ....
    <BPMUserImpl::<init>> Constacted user=jausten
    <XMLProvider::addUserToCache> User jausten is loaded ....
    <BPMUserImpl::<init>> Constacted user=achrist
    <XMLProvider::addUserToCache> User achrist is loaded ....
    <BPMUserImpl::<init>> Constacted user=rsteven
    <XMLProvider::addUserToCache> User rsteven is loaded ....
    <BPMUserImpl::<init>> Constacted user=cdoyle
    <XMLProvider::addUserToCache> User cdoyle is loaded ....
    <BPMUserImpl::<init>> Constacted user=wshake
    <XMLProvider::addUserToCache> User wshake is loaded ....
    <BPMUserImpl::<init>> Constacted user=guest
    <XMLProvider::addUserToCache> User guest is loaded ....
    <BPMUserImpl::<init>> Constacted user=bpeladmin
    <XMLProvider::addUserToCache> User bpeladmin is loaded ....
    <BPMUserImpl::<init>> Constacted user=default
    <XMLProvider::addUserToCache> User default is loaded ....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
    <XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role Supervisor is loaded .....
    <XMLProvider::addRoleToCache> Role California is loaded .....
    <XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
    <XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <XMLIdentityService::init> Load provider initialization complete
    <XMLAuthenticationService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLProvider::addUserToCache> User wfaulk is loaded ....
    <BPMUserImpl::<init>> Constacted user=sfitzger
    <XMLProvider::addUserToCache> User sfitzger is loaded ....
    <BPMUserImpl::<init>> Constacted user=jstein
    <XMLProvider::addUserToCache> User jstein is loaded ....
    <BPMUserImpl::<init>> Constacted user=istone
    <XMLProvider::addUserToCache> User istone is loaded ....
    <BPMUserImpl::<init>> Constacted user=jcooper
    <XMLProvider::addUserToCache> User jcooper is loaded ....
    <BPMUserImpl::<init>> Constacted user=mtwain
    <XMLProvider::addUserToCache> User mtwain is loaded ....
    <BPMUserImpl::<init>> Constacted user=jlondon
    <XMLProvider::addUserToCache> User jlondon is loaded ....
    <BPMUserImpl::<init>> Constacted user=ltolstoy
    <XMLProvider::addUserToCache> User ltolstoy is loaded ....
    <BPMUserImpl::<init>> Constacted user=fkafka
    <XMLProvider::addUserToCache> User fkafka is loaded ....
    <BPMUserImpl::<init>> Constacted user=szweig
    <XMLProvider::addUserToCache> User szweig is loaded ....
    <BPMUserImpl::<init>> Constacted user=mmitch
    <XMLProvider::addUserToCache> User mmitch is loaded ....
    <BPMUserImpl::<init>> Constacted user=jausten
    <XMLProvider::addUserToCache> User jausten is loaded ....
    <BPMUserImpl::<init>> Constacted user=achrist
    <XMLProvider::addUserToCache> User achrist is loaded ....
    <BPMUserImpl::<init>> Constacted user=rsteven
    <XMLProvider::addUserToCache> User rsteven is loaded ....
    <BPMUserImpl::<init>> Constacted user=cdoyle
    <XMLProvider::addUserToCache> User cdoyle is loaded ....
    <BPMUserImpl::<init>> Constacted user=wshake
    <XMLProvider::addUserToCache> User wshake is loaded ....
    <BPMUserImpl::<init>> Constacted user=guest
    <XMLProvider::addUserToCache> User guest is loaded ....
    <BPMUserImpl::<init>> Constacted user=bpeladmin
    <XMLProvider::addUserToCache> User bpeladmin is loaded ....
    <BPMUserImpl::<init>> Constacted user=default
    <XMLProvider::addUserToCache> User default is loaded ....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
    <XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role Supervisor is loaded .....
    <XMLProvider::addRoleToCache> Role California is loaded .....
    <XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
    <XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <XMLAuthenticationService::init> Load provider initialization complete
    <XMLAuthorizationService::init> Load provider initialization begin
    <AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <BPMUserImpl::<init>> Constacted user=cdickens
    <XMLProvider::addUserToCache> User cdickens is loaded ....
    <BPMUserImpl::<init>> Constacted user=wfaulk
    <XMLProvider::addUserToCache> User wfaulk is loaded ....
    <BPMUserImpl::<init>> Constacted user=sfitzger
    <XMLProvider::addUserToCache> User sfitzger is loaded ....
    <BPMUserImpl::<init>> Constacted user=jstein
    <XMLProvider::addUserToCache> User jstein is loaded ....
    <BPMUserImpl::<init>> Constacted user=istone
    <XMLProvider::addUserToCache> User istone is loaded ....
    <BPMUserImpl::<init>> Constacted user=jcooper
    <XMLProvider::addUserToCache> User jcooper is loaded ....
    <BPMUserImpl::<init>> Constacted user=mtwain
    <XMLProvider::addUserToCache> User mtwain is loaded ....
    <BPMUserImpl::<init>> Constacted user=jlondon
    <XMLProvider::addUserToCache> User jlondon is loaded ....
    <BPMUserImpl::<init>> Constacted user=ltolstoy
    <XMLProvider::addUserToCache> User ltolstoy is loaded ....
    <BPMUserImpl::<init>> Constacted user=fkafka
    <XMLProvider::addUserToCache> User fkafka is loaded ....
    <BPMUserImpl::<init>> Constacted user=szweig
    <XMLProvider::addUserToCache> User szweig is loaded ....
    <BPMUserImpl::<init>> Constacted user=mmitch
    <XMLProvider::addUserToCache> User mmitch is loaded ....
    <BPMUserImpl::<init>> Constacted user=jausten
    <XMLProvider::addUserToCache> User jausten is loaded ....
    <BPMUserImpl::<init>> Constacted user=achrist
    <XMLProvider::addUserToCache> User achrist is loaded ....
    <BPMUserImpl::<init>> Constacted user=rsteven
    <XMLProvider::addUserToCache> User rsteven is loaded ....
    <BPMUserImpl::<init>> Constacted user=cdoyle
    <XMLProvider::addUserToCache> User cdoyle is loaded ....
    <BPMUserImpl::<init>> Constacted user=wshake
    <XMLProvider::addUserToCache> User wshake is loaded ....
    <BPMUserImpl::<init>> Constacted user=guest
    <XMLProvider::addUserToCache> User guest is loaded ....
    <BPMUserImpl::<init>> Constacted user=bpeladmin
    <XMLProvider::addUserToCache> User bpeladmin is loaded ....
    <BPMUserImpl::<init>> Constacted user=default
    <XMLProvider::addUserToCache> User default is loaded ....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
    <XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
    <XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
    <XMLProvider::addRoleToCache> Role Supervisor is loaded .....
    <XMLProvider::addRoleToCache> Role California is loaded .....
    <XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
    <XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
    <AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
    <XMLAuthorizationService::init> Load provider initialization complete
    <BPMAuthorizationServiceImpl::lookupUser> BPMAuthorizationServiceImpl::lookupUser():: begin, userName=jstein
    <BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: begin
    <BPMServiceJAZNBase::getRealm> Realm=[Realm: jazn.com]
    <BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: end
    <BPMUserImpl::<init>> User=jstein was created
    <BPMAuthorizationServiceImpl::lookupUser> User is found, user=RealmUser: jstein
    <BPMIdentityImpl::getActions> BPMIdentityImpl::getActions()
    <BPMIdentityImpl::getAllGrantedRealmRoles> Identity has the following granted realmRoles=[RealmRole: BPMWorkflowReassign, RealmRole: BPMWorkflowSuspend, RealmRole: BPMAnalyst]
    <RoleProperties::load> Resource oracle/tip/pc/services/identity/role.properties is loaded, s_properties={BPMWorkflowSuspend=SUSPEND,RESUME, BPMWorkflowAdmin=ADMIN, BPMWorkflowReassign=REASSIGN, BPMPublic=VIEW_WORK_LIST,ACQUIRE,WITHDRAW,ESCALATE,ERROR,PUSH_BACK,RENEW,RELEASE,REQUEST_INFO,SUBMIT_INFO,CUSTOM,VIEW_TASK_HISTORY,VIEW_SUB_TASKS,UPDATE,ADHOC_ROUTE,OUTCOME_UPDATE_ROUTE, BPMSystemAdmin=, BPMWorkflowViewHistory=VIEW_TASK_HISTORY,VIEW_PROCESS_HISTORY, BPMAnalyst=VIEW_REPORTS}
    <BPMIdentityImpl::getActions> Identity has the following roles:[BPMWorkflowReassign, BPMWorkflowSuspend, BPMAnalyst]
    <BPMIdentityImpl::getActions> Role: BPMWorkflowReassign
    <BPMIdentityImpl::getActions> Actions: [OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE, REASSIGN]
    <BPMIdentityImpl::getActions> Role: BPMWorkflowSuspend
    <BPMIdentityImpl::getActions> Actions: [RESUME, OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, SUSPEND, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE]
    <BPMIdentityImpl::getActions> Role: BPMAnalyst
    <BPMIdentityImpl::getActions> Actions: [OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE, VIEW_REPORTS]
    <BPMIdentityImpl::getActions> Identity has the following actions:[RESUME, OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, SUSPEND, ACQUIRE, RENEW, ADHOC_ROUTE, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, VIEW_WORK_LIST, ERROR, ESCALATE, RELEASE, REASSIGN, VIEW_REPORTS]
    <BPMPrincipalImpl::getAttribute> Attribute=languagePreference is not set. Populate principal=jstein
    <::> WorkflowService:: VerificationService.authenticateUser: successful for user = jstein identityContext = null
    <::> WorkflowService:: TaskQueryService.authenticate(): completed. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ==
    <::> VerificationService.createWorkflowContext: Request NOT authenticated by WS-Security framework
    <BPMAuthorizationServiceImpl::lookupUser> BPMAuthorizationServiceImpl::lookupUser():: begin, userName=jstein
    <BPMUserImpl::<init>> User=jstein was created
    <BPMAuthorizationServiceImpl::lookupUser> User is found, user=RealmUser: jstein
    <BPMPrincipalImpl::getAttribute> Attribute=languagePreference is not set. Populate principal=jstein
    <::> WorkflowService:: TaskQueryService.queryTasks(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein displayColumns = TASKID, TASKNUMBER, TITLE, OUTCOME optionalInformation = assignmentFilter = My keywords = null predicate = null ordering = wfn.taskNumber ASC startRow = 0 endRow = 0
    <::> WorkflowService:: TaskQueryService.getCombinedPredicate(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein assignmentFilter = My keywords = null predicate = null
    <::> WorkflowService:: TaskQueryService.getAssignmentFilterPredicate(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein assignmentFilter = My
    <::> WorkflowService:: TaskQueryService.getAssignmentFilterPredicate(): completed. assignmentFilterPred = ((wfn.taskId=wfa.taskId AND wfa.isGroup =? AND ( wfa.assignee IN (?))) OR ( ( wfn.originalAssigneeUser IN (?)) AND wfn.taskId=wfa.taskId) AND wfn.isGroup =?) AND ( wfn.identityContext IS NULL )
    <::> WorkflowService:: TaskQueryService.getCombinedPredicate(): completed. combinedPredicate = ((wfn.taskId=wfa.taskId AND wfa.isGroup =? AND ( wfa.assignee IN (?))) OR ( ( wfn.originalAssigneeUser IN (?)) AND wfn.taskId=wfa.taskId) AND wfn.isGroup =?) AND ( wfn.identityContext IS NULL )
    ERROR: exception symbol "09732" not found in resource file.
    <::> ORABPEL-09732
    <::>
    <::>
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:231)
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.getInstance(PersistencyDriver.java:152)
    <::>      at oracle.bpel.services.workflow.query.impl.TaskQueryService.queryTasks(TaskQueryService.java:213)
    <::>      at oracle.bpel.services.workflow.query.impl.TaskQueryServiceWSIF.queryTasks(TaskQueryServiceWSIF.java:172)
    <::>      at oracle.bpel.services.workflow.query.client.TaskQueryServiceWSIFClient.queryTasks(TaskQueryServiceWSIFClient.java:66)
    <::>      at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.queryTasks(AbstractDOMTaskQueryServiceClient.java:180)
    <::>      at project1.Class1.TryTask(Class1.java:55)
    <::>      at project1.Class1.main(Class1.java:91)
    <::> Caused by: java.lang.NullPointerException
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.getDatasourceName(PersistencyDriver.java:177)
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.initNonTransactionDataSource(PersistencyDriver.java:198)
    <::>      at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:224)
    <::>      ... 7 more
    <2008-10-14 23:59:00,952> <ERROR> <oracle.bpel.services> <::>
    java.lang.NullPointerException
         at oracle.bpel.services.workflow.repos.PersistencyDriver.getDatasourceName(PersistencyDriver.java:177)
         at oracle.bpel.services.workflow.repos.PersistencyDriver.initNonTransactionDataSource(PersistencyDriver.java:198)
         at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:224)
         at oracle.bpel.services.workflow.repos.PersistencyDriver.getInstance(PersistencyDriver.java:152)
         at oracle.bpel.services.workflow.query.impl.TaskQueryService.queryTasks(TaskQueryService.java:213)
         at oracle.bpel.services.workflow.query.impl.TaskQueryServiceWSIF.queryTasks(TaskQueryServiceWSIF.java:172)
         at oracle.bpel.services.workflow.query.client.TaskQueryServiceWSIFClient.queryTasks(TaskQueryServiceWSIFClient.java:66)
         at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.queryTasks(AbstractDOMTaskQueryServiceClient.java:180)
         at project1.Class1.TryTask(Class1.java:55)
         at project1.Class1.main(Class1.java:91)
    Caught workflow exception:
    Process exited with exit code 0.

    Although the versions 10.1.3.4 and 10.1.3.3 are close and should be able to use 10.1.3.4 JDev for most 10.1.3.3 development, the human tasks is the one exception. 10.1.3.3 had a few bugs fixed therefore the jar file used in JDev 10.1.3.4 may not be compatible with 10.1.3.3.
    I would either use JDev 10.1.3.3 or upgrade SOA Suite to 10.1.3.4
    cheers
    James

  • Notification with user defined type results in PLS-00306: wrong number..

    I created a user defined type TLogMessage:
    CREATE OR REPLACE TYPE TLogMessage AS OBJECT
    module VARCHAR2(4000),
    severity NUMBER,
    message VARCHAR2(4000)
    I also created a multi-consumer queue using this type as payload.
    My callback procedure in the package PK_SYST_LOGMESSAGE is defined as follows:
         PROCEDURE DefaultLoggerCallback(
              context          RAW,
              reginfo          SYS.AQ$_REG_INFO,
              descr          SYS.AQ$_DESCRIPTOR,
              payload          RAW,
              payload1     NUMBER
    Finally, I registered the callback procedure as follows:
              DBMS_AQADM.ADD_SUBSCRIBER(
                   queue_name      => QUEUE_NAME,
                   subscriber      => SYS.AQ$_AGENT(
                                            name => 'default_logger',
                                            address => NULL,
                                            protocol => NULL
              DBMS_AQ.REGISTER(
                   SYS.AQ$_REG_INFO_LIST(
                        SYS.AQ$_REG_INFO(
                             name          => QUEUE_NAME || ':default_logger',
                             namespace     => DBMS_AQ.NAMESPACE_AQ,
                             callback     => 'plsql://MTDX.PK_SYST_LOGMESSAGE.DefaultLoggerCallback',
                             context          => HEXTORAW('FF')
                   1
    However, when I put a message in the queue using this procedure:
         PROCEDURE LogMessage(
              pModule          VARCHAR2,
              pSeverity     NUMBER,
              pMessage     VARCHAR2
         IS
              vMessage               TLogMessage;
              vEnqueueOptions          DBMS_AQ.ENQUEUE_OPTIONS_T;
              vMsgProperties          DBMS_AQ.MESSAGE_PROPERTIES_T;
              vMessageHandle          RAW(16);
         BEGIN
              vMessage := TLogMessage(module => pModule, severity => pSeverity, message => pMessage);
              vEnqueueOptions.visibility := DBMS_AQ.IMMEDIATE;
              vMsgProperties.correlation := pModule;
              vMsgProperties.priority := -pSeverity;
              -- Enqueue the message to all subscribers
              DBMS_AQ.ENQUEUE(
                   queue_name               => QUEUE_NAME,
                   enqueue_options          => vEnqueueOptions,
                   message_properties     => vMsgProperties,
                   payload                    => vMessage,
                   msgid                    => vMessageHandle
         EXCEPTION
              WHEN no_subscribers THEN
                   -- No subscribers on the queue; ignore
                   NULL;
         END;
    I can see the message in the queue, by querying the queue view. I can also see that Oracle tried to call my callback procedure, because in the trace file I see the following:
    *** 2009-02-13 08:52:25.000
    *** ACTION NAME:() 2009-02-13 08:52:24.984
    *** MODULE NAME:() 2009-02-13 08:52:24.984
    *** SERVICE NAME:(SYS$USERS) 2009-02-13 08:52:24.984
    *** SESSION ID:(609.3387) 2009-02-13 08:52:24.984
    Error in PLSQL notification of msgid:4F7962FEDD3B41FA8D9538F0B38FCDD1
    Queue :"MTDX"."LOGMESSAGE_QUEUE"
    Consumer Name :DEFAULT_LOGGER
    PLSQL function :MTDX.PK_SYST_LOGMESSAGE.DefaultLoggerCallback
    : Exception Occured, Error msg:
    ORA-00604: Fout opgetreden bij recursief SQL-niveau 2.
    ORA-06550: Regel 1, kolom 7:
    PLS-00306: Onjuist aantal of type argumenten in aanroep naar 'DEFAULTLOGGERCALLBACK'..
    ORA-06550: Regel 1, kolom 7:
    PL/SQL: Statement ignored.
    So.. how many parameters does Oracle expect, and of what type? Is there any way to find out? What is wrong with my code?

    Ok, found it... I had defined the last parameter of the callback procedure as 'payload1' (that is: 'payload-ONE') instead of 'payloadl' ('payload-ELL'). It all works like a charm now.
    What a way to waste two whole days!

  • ERROR: exception symbol "20001" not found in resource file.

    HI,
    I am trying to use the Java API to create and update Work Tasks. When I setup a situation where two users edit and update the same work task I get an exception as follows.
    07/03/02 09:58:51 ERROR: exception symbol "20001" not found in resource file.
    07/03/02 09:58:51 a042d39669c482aa:-6ee930c2:1110a6f1a2f:-7a06
    <2007-03-02 09:58:51,453> <ERROR> <oracle.bpel.services> <::>
    ORABPEL-20001
         at oracle.bpel.services.workflow.repos.driver.olite.OliteWFTask.lockTask(OliteWFTask.java:425)
         at oracle.bpel.services.workflow.repos.driver.olite.OliteWFTask.updateWFTask(OliteWFTask.java:259)
         at oracle.bpel.services.workflow.repos.driver.PersistencyService.updateWFTask(PersistencyService.java:434)
         at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation(TaskService.java:2958)
         at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation(TaskService.java:2805)
         at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation(TaskService.java:2780)
         at oracle.bpel.services.workflow.task.impl.TaskService.updateTask(TaskService.java:492)
         at oracle.bpel.services.workflow.task.ejb.TaskServiceBean.updateTask(TaskServiceBean.java:135)
    <<<snip>>>
    Digging away and doing a bit more debugging indicates that the exception is due to not being able to load a Resource file...
    07/03/02 09:58:51 Got Throwable : - java.lang.ExceptionInInitializerError, null
    07/03/02 09:58:51 java.lang.ExceptionInInitializerError
    07/03/02 09:58:51      at com.evermind.server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
    07/03/02 09:58:51      at com.evermind.server.rmi.RMICall.throwRecordedException(RMICall.java:125)
    07/03/02 09:58:51      at com.evermind.server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
    07/03/02 09:58:51      at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
    07/03/02 09:58:51      at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
    <<<snip>>>
    ...and...
    07/03/02 09:58:51 Caused by: java.util.MissingResourceException: Can't find bundle for base name com.collaxa.cube.i18n.exception_cube, locale en
    07/03/02 09:58:51      at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
    07/03/02 09:58:51      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:726)
    07/03/02 09:58:51      at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
    07/03/02 09:58:51      at com.collaxa.cube.CubeException.getResourceBundle(CubeException.java:142)
    07/03/02 09:58:51      at com.collaxa.cube.CubeException.<clinit>(CubeException.java:82)
    07/03/02 09:58:51      at java.lang.Class.forName0(Native Method)
    07/03/02 09:58:51      at java.lang.Class.forName(Class.java:242)
    07/03/02 09:58:51      at com.evermind.io.ClassLoaderObjectInputStream.resolveClass(ClassLoaderObjectInputStream.java:33)
    07/03/02 09:58:51      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
    07/03/02 09:58:51      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    07/03/02 09:58:51      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
    07/03/02 09:58:51      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    07/03/02 09:58:51      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    07/03/02 09:58:51      at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:856)
    Digging through the classes gives me a pretty good guess that the missing resource is in "orabpel.jar" which is on the classpath and in the class exception_cube_bpeltest.java.
    "exception.20001.severity", "10"
    "exception.20001.type", "error"
    "exception.20001.name", "Assertion execution error."
    "exception.20001.description", "A problem occurred while converting the assertion value \"{0}\" to a number at activity \"{1}\"."
    "exception.20001.fix", "Please change the value to be a number or do a string comparison."
    What I'm looking for is the nicely formatted exception to come back from Oracle so that I can wrap it up in our own exception handling and deal with the situation nicely. Instead of a java.lang.ExceptionInInitializerError - I think I'm supposed to be getting a proper "ORABPEL-20001" exception.
    I suspect it's got something to do with classpath. But I've checked that orabpel.jar is on the classpath.
    Please help :-)
    - Richard Perfect.

    I think it is a classloader related problem. I had the same situation when updating BPEL Tasks from a custom web application using REMOTE_CLIENT (RMI) method. I have no clue which classloader loads which class so I choosed a simple workaround: extracted the com.collaxa.cube.i18n folder and its contents from orabpel.jar into the oc4j container's applib directory. This way every classloader can find the resource files. (Do not copy the orabpel.jar into applib. It causes other classloader related dependency problems. Copy only the resource files.)

  • Problem calling stored procedure with user-defined type of input parameters

    Hi,
    I have to call a stored procedure with IN parameters, but these are user-defined types of input parameters.
    function fv_createnews (
    pit_groups in T_APPLICATION_USER_GROUPS,
    pit_documents in T_DOCUMENTS
    return varchar2;
    TYPE T_APPLICATION_USER_GROUPS IS
    TABLE OF varchar2(500)
    INDEX BY binary_integer;
    TYPE T_DOCUMENT IS record (
    name varchar2(256)
    ,url varchar2(1024)
    ,lang varchar2(30)
    ,foldername varchar2(150)
    TYPE T_DOCUMENTS IS
    TABLE OF T_DOCUMENT
    INDEX BY binary_integer;
    How can I do this using the TopLink 10.1.3 API.
    I already found following related posts, but I still can' t make it up:
    Using VARRAYs as parameters to a Stored Procedure
    Pass Object as In/Out Parameter in Stored Procedure
    Or do I have to create my own PreparedStatement for this special stored procedure call using Java and Toplink?

    As the related posts suggest, you will need to use direct JDBC code for this.
    Also I'm not sure JDBC supports the RECORD type, so you may need to wrap your stored functions with ones that either flatten the record out, or take OBJECT types.

  • Cannot SELECT into a user-defined type variable

    Hi All,
    Oracle 11.2 on Linux.
    See the steps below. I am not able to insert/select into a TYPE variable. I do not want to do a TABLE declaration in my PL/SQL block, but want to use a user defined type. Is it possible ?
    SQL> create or replace type sample_obj_rec as object
      2  (
      3     object_id    number,
      4     object_name  varchar2(32),
      5     object_type  varchar2(32)
      6  );
      7  /
    Type created.
    SQL> create or replace type sample_obj_tab as table of sample_obj_rec ;
      2  /
    Type created.
    -- ------------   CASE 1 ---------------------
    SQL> declare
      2      v_tab   sample_obj_tab := sample_obj_tab() ;
      3  begin
      4      select object_id, object_name, object_type
      5      bulk   collect into v_tab
      6      from   dba_objects
      7      where  rownum < 11 ;
      8  end ;
      9  /
        from   dba_objects
    ERROR at line 6:
    ORA-06550: line 6, column 5:
    PL/SQL: ORA-00947: not enough values
    ORA-06550: line 4, column 5:
    PL/SQL: SQL Statement ignored
    -- ------------   CASE 2 ---------------------
    SQL> declare
      2      v_rec   sample_obj_rec;
      3  begin
      4      select object_id, object_name, object_type
      5      into   v_rec
      6      from   dba_objects
      7      where  rownum = 1;
      8  end ;
      9  /
        from   dba_objects
    ERROR at line 6:
    ORA-06550: line 6, column 5:
    PL/SQL: ORA-00947: not enough values
    ORA-06550: line 4, column 5:
    PL/SQL: SQL Statement ignoredWhat is the issue with both the above cases? what am I missing here?
    Thanks in advance.

    One small detail in the SELECT.
    SQL> create or replace type sample_obj_rec as object
      2  (object_id    number,
      3   object_name  varchar2(32),
      4   object_type  varchar2(32));
      5  /
    Type created.
    SQL>
    SQL> create or replace type sample_obj_tab as table of sample_obj_rec ;
      2  /
    Type created.
    SQL>
    SQL> declare
      2     v_tab   sample_obj_tab := sample_obj_tab() ;
      3  begin
      4     select sample_obj_rec(object_id, object_name, object_type)
      5     bulk   collect into v_tab
      6     from   dba_objects
      7     where  rownum < 11 ;
      8  end ;
      9  /
    PL/SQL procedure successfully completed.
    SQL>

  • Confused: Returning Simple User Defined Type (non-built-in)

    Hi, hope you can straighten out a confused newbie! This is probably laughingly simple if you know how...
    I just want my weblogic workshop web service to return an ordinary record-style object to my static client. I'm not sure what to do, I've already tried a few approaches...
    If I use two services deployed on Weblogic Server everything works great. Weblogic server must handle the seriali/deseriali - zation for you.
    So I tried to use the java proxy downloaded from the test page, but it doesn't contain all the classes needed.
    I read the Weblogic help files which said to use autotype, which compiles but gives class cast exceptions running. I tried both automatic and manual with same error. Trying to import to Workshop gave me a "no handler defined error".
    And I bought a book from Amazon about J2EE and Weblogic but it does not include a section on user defined types!
    Am I supposed to use XMLBeans or something??? Please help!
    Regards, Ry.

    > but the requirement is not allowing me to do either with ref cursor or with
    returning clause. Because, in .Net development area , we are restricted for
    using Returning clause.
    The following is a Bad Idea (tm) where PL/SQL is used to "return data" to the caller, be that via PL/SQL record types or collection types..Net   ---[calls]-------> PL/SQL
    PL/SQL ---[calls]-------> SQL
    PL/SQL <--[data]--------- SQL
    PL/SQL [buffers] data
    .Net   <--[buffer data]-- PL/SQLWhy?
    Because PL/SQL is a poor choice for a buffer as the db cache buffer used by the SQL engine is a very advance and sophisticated cache and core to the Oracle RDBMS.
    Ain't no way you can do that better in PL/SQL than SQL.
    What is the typical client-server approach in Oracle?.Net   ---[calls]-------> PL/SQL
    PL/SQL [constructs ref cursor]
    .Net   <--[ref cursor]-- PL/SQL
    .Net   --[fetches]----> SQL [using ref cursor]A ref cursor is a pointer the "compiled and executable SQL program" in Oracle that PL/SQL constructed for .Net in this case. Each FETCH call using the ref cursor pointer, executes the cursor "program" and returns the next row (or set of rows when using bulk processing) to the client.

Maybe you are looking for

  • Pick Slip report gives 'No Data Found' output

    Hi All, Problem Statement: Iam unable to generate Pick release report, the shipping lines status is "ready to release" and we have a available quantity for the shipment. Step1 : Create a Order. Step2 : Save and Book the Order. Step3 : Pick Release th

  • Is Ovi Suite slow or what?

    Ovi Suite v. 3.0.0.290 I updated the program and it took like an hour.  When I launch the program from my desktop, it takes like 5 minutes before it's fully loaded.  It's generally very slow performing any function in the suite.  Is this a common exp

  • List box is not scrolling to the last item

    Hello all, I am developing a Windows Phone 8 application, in that I am using List box to display the data. I have requirement like once the page is launched user should navigate to the last item of the list box. For this requirement used scroolintovi

  • IPhoto 6.0.5 wont start

    Lately I upgrade iPhoto 6.0.x from iLife 06 to iPhoto 6.0.5. with some difficulties: I always get message saying <iPhoto_6.0.5 cannot be installed on this computer. An eligible iPhoto application could not be found in /Applications>. Finally , Don't

  • Ignoring constraints with SQL*Loader & triggers

    When I load a table with SQL*Loader that has foreign key constraints and a before insert trigger, my foreign key constraints are ignored. The end result is a detail table that contains invalid rows (where some column values do not exist in the master