Can't access packaged object type in Java

I am getting the following error while accessing an oracle packaged object type. Can You please give me an advise..!!
java.sql.SQLException: invalid name pattern: XXGW_RMA_CREATION_PKG.XXGW_RMA_RECRegards

I am not asking how to search in google. If You know how to resolve my problem..then help me. I don't what this kind of answers.
This is my problem
Error in java.
java.sql.SQLException: invalid name pattern: XXGW_RMA_CREATION_PKG.XXGW_RMA_REC
This is my package
create or replace package xxgw_rma_creation_pkg
type xxgw_rma_rec is record (dealer_name varchar2(40), dealer_desc varchar2(300));
type xxgw_rma_line is table of xxgw_rma_rec; --(item_name varchar2(40), item_desc varchar2(300)) index by binary_integer;
xx_rma_rec  xxgw_rma_rec;
xx_rma_line xxgw_rma_line
procedure xxgw_rma_creation (p_rma_rec in xxgw_rma_rec ,p_rma_line in xxgw_rma_line,p_rma_no out varchar2);
create or replace package body xxgw_rma_creation_pkg
procedure xxgw_rma_creation (p_rma_rec in xxgw_rma_rec ,p_rma_line in xxgw_rma_line,p_rma_no out varchar2)
l_rma_rec xxgw_rma_rec := p_rma_rec;
l_rma_line xxgw_rma_line := p_rma_line;
dbms_output.put_line(l_rma_rec.dealer_name||'  '||l_rma_rec.dealer_desc);
for i in  l_rma_line.first..l_rma_line.last loop
dbms_output.put_line(l_rma_line(i).dealer_name||'  '||l_rma_line(i).dealer_desc);
end loop;
p_rma_no := '20';

Similar Messages

  • After 30min of having FF open when I close a tab a msg pops up -Javascript application "Unable to clean current element: TypeError: can't access dead object"

    After around 30min of having FF open when I close a tab a message pops up:
    Javascript application
    Unable to clean current element: TypeError: can't access dead object
    It randomly stops showing the message for periods of about 30 min.

    hello MichaelStevens, this is very likely caused by one of your addons (maybe one which is performing a certain action every 30mins).
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Transport of a package object type DEVC

    when I create a transport task manually with package (object type DEVC) in SE10, does it
    a) only transport the package definition again
    b) transport the package and all the objects in it?
    Thanks in advance for your help!

    When you transport the package it transports the package and all the objects in it.

  • TypeError: can't access dead object

    I upgraded to Firefox 15. Since then i get this error - TypeError: can't access dead object
    I am unable to use Firefox anymore as when I open it, this message appears and I can't use the browser. Closing the dialog box or clicking ok only causes it to immediately reopen.
    Is there a fix for this or can I revert back to the previous version of Firefox and if so, how and where?

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.

  • How to access Business object type attribute from a method/function modul ?

    i have created a business object type object along with attributes and methods. Now inside the method i want to access the attributes. inside the method i am writing:
    data a type XXX.
    a = me->attribute
    this is creating a compilation error.
    Now the method is defined as a function module in some package, so can anyone inform me how to access object attributes from the function module ?
    pointes are awarded

    thanks for your answer, but this too did not work, "=>" is for static attributes and the attributes i have are not static. Moreover, i tried it but it gave the same error :
    the abap error was when i was checking the code is :
    the type me=>documenttype is unknown
    as you know in SWO1 i created an object and when i create a method you link it to a function module and this is where you have the implementation of the method, so from this method how can i access the attributes on the main object that i created in SWO1

  • Reflection problem: can not access a member of class java.lang.IllegalAcces

    package org.struts.ets.utility;
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.lang.reflect.InvocationTargetException;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import org.struts.bean.FieldTrouble;
    import org.struts.bean.GenericDAOBean;
    public class DynamicObjectCreation
         public static void main(String... args)
              FieldTrouble ft = new FieldTrouble();
                   Class<?> c = ft.getClass();
                   //Class<?> c = FieldTrouble.class;
                   /*Class<?> c = null;
                        c = Class.forName("org.struts.bean.FieldTrouble");
                   } catch (ClassNotFoundException e)
                   Field f = c.getDeclaredField("var1");
                   //f.setInt(ft, 42); // IllegalArgumentException
                   f.set(ft, new String("A"));
                   // production code should handle these exceptions more gracefully
              } catch (NoSuchFieldException x)
              } catch (IllegalAccessException x)
    }// If I put in any other package than the current package I am running this code from. I get the following error:
    java.lang.IllegalAccessException: Class org.struts.ets.utility.DynamicObjectCreation can not access a member of class org.struts.bean.FieldTrouble with modifiers ""
         at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
         at java.lang.reflect.Field.doSecurityCheck(Unknown Source)
         at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
         at java.lang.reflect.Field.set(Unknown Source)
         at org.struts.ets.utility.DynamicObjectCreation.main(
    I tried all possible ways of creating class as:
    Class<?> c = ft.getClass(); OR
    Class<?> c = FieldTrouble.class; OR
                   /*Class<?> c = null;
                        c = Class.forName("org.struts.bean.FieldTrouble");
                   } catch (ClassNotFoundException e)
    Edited by: ..-__Kris__-.. on Feb 21, 2008 10:26 AM
    Edited by: ..-__Kris__-.. on Feb 21, 2008 10:26 AM

    Any hidden performance or memory issue here?
    Let us consider an object:
    public class SomeObject
         private String fieldA;
         private String fieldB;
         private String fieldC;
         private String fieldD;
         private String fieldE;
         //... say 50 declared fields....
         public SomeObject()
         public SomeObject(String fieldA, String fieldB)
              this.fieldA = fieldA;
              this.fieldB = fieldB;
    // getters and setters..     
    }When I create an object using the constructor with only two fields initialized such as the following code above, and look at what is happening to other fields as shown in the code below, I see that they are also AVAILABLE, now this is important, but they are set to null. What I wanted to know was, if I created an object with many fields, as many as 50 (getDeclaredFields = 50), and used a constructor with only two input fields to initialize an object, I still have 48 other fields available but set as NULL's. When I create more than 100,000 of these objects in a list and send to a .jsp page, I am unable to understand if this has more memory load than when you use a list of another object which has actually has only two declared fields in it. Each of this new object will have only two declared fields, when I say getDeclaredFields() it would return 2.
    This is where I am unable to figure out if this has anything to do with performance or memory, rather, what is the difference between the many possible ways you can initialize an object when there are too many fields which you probably won't use? Either create a new constructor with only two input arguments OR a generic constructor with all fields as input arguments but all those fields which you won't use assigned NULL's OR create another new object with only two declared fields
    SomeObject someObj = new SomeObject("abcd","cdef");
              Field[] fields = someObj.getClass().getDeclaredFields();
              System.out.println("Number of available fields: " + fields.length);
              for(int i = 0 ; i < fields.length ; i++)
                        System.out.println("Field " + i + ", with value: " + fields[i].get(someObj));
                   } catch (IllegalArgumentException e)
                   } catch (IllegalAccessException e)
              }Edited by: ..-__Kris__-.. on Mar 23, 2008 5:04 PM
    Edited by: ..-__Kris__-.. on Mar 23, 2008 5:05 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to return Values from Oracle Object Type to Java Class Object

    i have created an Oracle Object Types in the Database. Then i created Java classes with "jpub" of these types. Here is an example of the type.
    vorname VARCHAR2(30),
    nachname VARCHAR2(30),
    geburtstag DATE,
    CONSTRUCTOR FUNCTION person_type(p_vorname VARCHAR2,
    p_nachname VARCHAR2,
    p_geburtstag DATE) RETURN SELF AS RESULT,
    MEMBER PROCEDURE load_object(p_id NUMBER),
    MEMBER PROCEDURE save_object,
    MEMBER PROCEDURE insert_object,
    MEMBER PROCEDURE update_object,
    MEMBER PROCEDURE delete_object
    MEMBER PROCEDURE load_object(p_id NUMBER) IS
    SELECT, p.vorname, p.nachname, p.geburtstag
    INTO SELF.ID, SELF.vorname, self.nachname, SELF.geburtstag
    FROM person p
    WHERE = p_id;
    My problem is, that if i use the member function "load_object" from my java app it doesnt return the selected values to the java class and i dont know why. I use the java class like this:
    PersonObjectType p = new PersonObjectType();
    There is a reocrd in the database with id = 4 and the function will execute successful. But if i try to use "p.getVorname()" i always get "NULL". Can someone tell me how to do that?
    Thanks a lot.
    Edited by: NTbc on 13.07.2010 15:36
    Edited by: NTbc on 13.07.2010 15:36

    CallableStatement =
    a person_type;
    ? := a;
    And register as an out parameter.
    Edited by: michael76 on 14.07.2010 05:01

  • SSIS 2012 - Parent/Child Package "Object" Type Variables

    How do I pass Variables of Object type from Parent to Child packages?
    I am using the SSIS 2012 project deployment model.

    You can do it as outlined in
    When you need an object it is typically a recordset, then just pass the results, or execute the query in a package.
    Arthur My Blog

  • Trying to pass Oracle array/object type to Java

    I have a Java class with two inner classes that are loaded into Oracle:
    public class PDFJ
        public static class TextObject
            public String font_name;
            public int font_size;
            public String font_style;
            public String text_string;
        public static class ColumnObject
            public int left_pos;
            public int right_pos;
            public int top_pos;
            public int bottom_pos;
            public int leading;
            public TextObject[] column_texts;
    }I have object types in Oracle as such that bind to the Java classes:
    USING SQLData(
      "FONT_NAME" VARCHAR2(25) EXTERNAL NAME 'font_name',
      "FONT_STYLE" VARCHAR2(1) EXTERNAL NAME 'font_style',
      "TEXT_STRING" VARCHAR2(4000) EXTERNAL NAME 'text_string'
    EXTERNAL NAME 'PDFJ$ColumnObject'
    USING SQLData(
    /I successfully (as far as I know) build a PDFJ_COLUMN_ARRAY object in a PL/SQL procedure. The PDFJ_COLUMN_ARRAY contains PDFJ_COLUMN objects; each of those objects contains a PDFJ_TEXT_ARRAY of PDFJ_TEXT objects (Example: pdf_column_array(i).pdf_text_array(i).text_string := 'something';). In this procedure, I pass this PDFJ_COLUMN_ARRAY as a parameter to a Java function. I assume the Java function parameter is supposed to be a oracle.sql.ARRAY object.
    I cannot figure out how to decompose this generic ARRAY object into a ColumnObject[] array. I also tried Googling and searching the forums, but I can't figure out matching search criteria. I was wondering if anyone here knows anything about passing user-defined Oracle type objects to a Java function and retrieving the user-defined Java class equivalents that they are supposedly mapped to--especially a user-defined array type of user-defined object types containing another user-defined array type of user-defined object types.

    Ok. I will try asking on the JDBC forum. So, don't
    flame me for cross-posting. :PWe won't, if over there you just post basically a
    link to this one.
    sigh Guess what, he did it the flame-deserving way. It's crossposted at:
    <flame level="mild">Never ceases to amaze me how people don't think that posting a duplicate rather than a simple link isn't wasteful, as people could end up answering in both of them, not seeing each other's answers</flame>

  • How can I obtain an object-type variable in Forms 6i?

    i create an object-type in oracle 8i database like this:
    i create a variable of this object-type in a stored procedure in Oracle 8i:
    v_Number OBJ_TYPE_NUMBER(10);
    and then call it's method:
    it work's!
    But when I try to compile a previous variable declaration
    (v_Number OBJ_TYPE_NUMBER;) in Oracle Forms 6i I see only an error message.
    So my question is How can I declare and use an object-type variable in Forms 6i?

    the release after Forms 6i is Forms9i. Forms9i does have the PLSQL engine of Oracle database which means that it should knwo how to handle object types in PLSQL.

  • Can we access PI tables from WebDynpro Java via PI 7.1?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.

    Hi Neha,
    You can access PI tables from Webdynpro Java application using RFC or Webservices. Create RFC or Webservices which will fetch data from the PI tables.Create the required JCO's and the Webdynpro java application which uses the Adaptive RFC model or Adaptive Webservice Model to connect to the ECC system.
    I found a document that speaks about fetching data from SXMB_MONI Standard Table
    Hope this is useful.
    Seema Rane.

  • JMS: can I access SAP messages from extenal Java

    - Can I access SAP Messages from an external (non-SAP) java program?
    - Do I use JNDI or can I call using a jar file from my java invocation?
    - Do I have to define a queue (or does SAP JMS have queues)
    - What port do I use?

    Hi John,
    > - Can I access SAP Messages from an external
    > (non-SAP) java program?
    Yes, you can use the JMS provider on the Web AS from a standalone java program.
    > - Do I use JNDI or can I call using a jar file from
    > my java invocation?
    You connect your remote java client to the server by getting an InitialContext. The you lookup the JMS resources (such as Topic- or Queue ConnectionFactory, etc.) from the JNDI. You can have a look at <a href="">this</a> page for more info.
    > - Do I have to define a queue (or does SAP JMS have
    > queues)
    The JMS Provider on the Web AS provides default connection factories that you can use to create a topic ot queue. The lookup strings you have to use are
    for topics and
    for queues.
    > - What port do I use?
    You use the P4 port (50004 by default for instance number 00) when obtaining the InitialContext with this code:
    java.util.Properties properties = new Properties();
    // set the properties of the connection
    properties.put("Context.INITIAL_CONTEXT_FACTORY", "");
    properties.put(Context.PROVIDER_URL, "<Server_Host>:<p4_port>");
    properties.put("Context.SECURITY_PRINCIPAL", "Administrator");
    properties.put("Context SECURITY_CREDENTIALS", "admin_password");
    // start initial context with the properties specified
    InitialContext context = new InitialContext(properties);
    Hope that helps!

  • In CC01, why can I not add object types

    Greetings experts.
    We need to add an object type to the list which shows on CC01(2 etc) .  The New Entries button is greyed out.  Can anyone point me to the reason, or what I need to do to make it active?

    Define a profile in OS59. In the profile under Object type profile (detail) section, click on new entries & select the object types from the list as per your need & then save as a custom profile.
    Use this profile on the initial screen of CC01 & then go to Object Types, you should find the object types which you need.

  • Referencing package table type from Java

    In my package spec, I have a table type defined. I just want to refer this from Java program in order to pass ARRAY object to a procedure inside the package. But I keep getting an errory saying "Invalid name pattern".
    But If I declare the type outside of the package, it works fine. Can anyone help me on this?
    Poornachandran R

    create or replace package msproot.spear$util as
    -- UUID table type
    type varchar32_t is table of varchar2(32) index by binary_integer;
    * Function name: getUUID
    * Desc: Retreive a unique id.
    * IN: maxNumOfUUID - integer, the quentity of UUID to generate, optional default 1.
    * OUT: UUID - an array of 32 characters string of UUID
    function getUUID(maxNumOfUUID number :=1 ) return varchar32_t;
    end spear$util;
    create or replace package body msproot.spear$util as
    -- get uuid - retun more the one UUID
    function getUUID(maxNumOfUUID number) return varchar32_t is
    uuidArr varchar32_t;
    -- generate the array of uuid up to maxNumOfUUID
    for i in 1..maxNumOfUUID loop
    select sys_guid into uuidArr(i) from dual;
    end loop;
    return (uuidArr);
    end getUUID;
    end spear$util;
    private String[] retrieveUuid(int maxNumOfUUID) throws Exception
    String[] arr = null;
    try {
    // generate a free spear ids array from the database
    // Use a PL/SQL block to open the stored procedure
    OracleCallableStatement ocstmt =
    (OracleCallableStatement) conn
    .prepareCall("begin ? := spear$util.getUUID(?); end;");
    // index-by table element type
    int elemSqlType = OracleTypes.CHAR;
    // index-by table element length in case the element type
    // is CHAR, VARCHAR or RAW. This value is ignored for other
    // types
    int elemMaxLen = 32;
    // register the return parameter
    ocstmt.registerIndexTableOutParameter(1, maxNumOfUUID, elemSqlType,
    // register the number of UUIDes to generate
    ocstmt.setInt(2, maxNumOfUUID);
    // run the stored procedure
    // access the value using JDBC default mapping
    arr = (String[]) ocstmt.getPlsqlIndexTable(1);
    // close the cursor
    } catch (SQLException x) {
    System.out.println(errorMessage + x.toString());
    throw new Exception(errorMessage + x.getMessage());
    return arr;

  • Access to Attribute Type via Java API

    I'm writing an aplication in Java to access out OLAP schema and display certain DIMENSION/LEVEL and ATTRIBUTE values. This is working out really well but I'm hitting one issue at the moment which has me stumped.
    When I display a Dimension value in a table I want to default the attribute we display to a sensible display value. In AWM there is a field "Attribute Type" which offers drop down selections for "User", .... "Member Short Description", "Member Long Description"...
    See the General Tab under Attributes for a particular Attribute. Looking at the Help text for the "Member Long Description" I see the following.
    "Long descriptive names typically used by Oracle Business Intelligence tools for displaying dimension members in selection lists, crosstabs, and graphs." Looks perfect for what I want. My Dataware house architect already has an Attribute for each hirearchy
    marked with this property so in theory I should be able to look for the Attribute in the Dimension with this property and bingo I have my default display Atttribute!
    The problem is I seem to be able to find api's to access every aspect of the MdmAttribute object except this particular property.
    Here is a snippet from the OLAP api sample code augmented with some println's of my own:
    if (mdmAttr.getName().equals(name)) {
         System.out.println("Attribute : " + mdmAttr.getID());
         System.out.println(" name : " + mdmAttr.getName());
         System.out.println(" desc : " + mdmAttr.getDescription());
         System.out.println(" s desc: " + mdmAttr.getShortDescription());
         System.out.println(" type : " + mdmAttr.getType());      
         System.out.println(" type id: " + mdmAttr.getType().getID());
    return mdmAttr;
    None of the avaiable APIs of MdmAttribute seem to fit the bill.
    The question is ... is there an API somewhere I can call on the MdmAttribute object or an associated object that will give me back the "Attribute Type" as listed in this dropdown. Note that getType returns DataType!String which denotes the fundemental type of the Attribute (int, String etc) rather than this abstract Attribute Type property we need. Not listed here is the getDataType() api which also returns DataType!String and seems to be equivalent to the getType api.

    One small clarification if its not already obvious. We are using the OLAP Java api's directly ... not via BI Beans.

Maybe you are looking for

  • IM movement type

    Hi Experts, I am getting a error while creating a TO from PCN in LU04. This error is coming because both source data (mat,plant,stloc,stock cat ) and destination data (mat,plant,stloc,stock cat ) are same. I checked and i found that this pcn is being

  • How can I add a new domain to portal by writing a program

    I have been studied portal for a while but I still dont know how to solve this problem. Actually, I need to provide an api for my partner's program which is running on the iplanet application server. Therefore I tried to write a servlet which would i

  • Acrobat 8 Pro - Font substitution?!

    I am currently running Adobe Acrobat 8 Professional (I think it's 8.1.6), and have noticed that anytime I convert a document created with Word 2003 which contains any text in my default font of Times New Roman, for some reason, Acrobat is converting

  • ORA-00205: error in identifying control file while startup database

    Dear Experts, we are using Oracle 10g on RHEL5.4 64Bit ecc 6.0 with eph 4 i have moved all my sap data files along with Temp file. when i startup my database getting error. SQL> startup mount ORACLE instance started. Total System Global Area 53566259

  • Timing of Loading AR AP GL Balances

    Hi .....please help and give me some guidance. When should we load the AR, AP & AA balances into SAP...Should we do it after the legacy system closes or we can do it at the go live date 12/31/2007 and load delta transactions from then till the final