Scripting: Collection object members are null?

We are trying to validate the contents of a collection, and are having difficulty accessing individual members.
We have tried both using the iterator
Iterator iterator = collection.iterator();
while (iterator.hasNext()) {
Object element = iterator.next();
throw doc.createApplicationException("test",element);
And the .get() method of the collection variable that is supplied.
int i;
for (i=0;i<=collection.size();i++) {
  throw doc.createApplicationException("test",collection.get(i));
collection.size() shows that we have 2 members in the collection, but looping through them appears to return null objects.

We are simply writing a collection validation script in the E-sourcing web interface, which use Beanshell. No tool per se.
I tried this syntax and I still get an error on the line
fieldX = member.get(fieldX);
internal Error: null variable value
The complete code is
iterTest = collection.iterator();
for(member : iterTest){
  fieldX = member.get(fieldX);
  System.out.println("FieldX: " + fieldX);
collection.size is 2, so I know there's something in there.

Similar Messages

  • Delegates, and Object properties are null

    -----------------------------
    CGRect frame = CGRectMake( 0, 0, 100, 100 );
    _svContainer = [ [ UIScrollView alloc ] initWithFrame:frame ];
    _svContainer.pagingEnabled = YES;
    _svContainer.scrollEnabled = YES;
    _svContainer.showsHorizontalScrollIndicator = NO;
    _svContainer.showsVerticalScrollIndicator = NO;
    _svContainer.delegate = self;
    i have this code in my viewDidLoad function in my view controller. the scrollview gets set up properly and everything displays fine. I'm setting the delegate of the scrollview to the view controller. and get the following warning: "Class 'MyViewController' does not implement the 'UIScrollViewDelegate' protocol". However, i have a function to capture when the scrollview is scrolling which does get fired:
    -( void ) scrollViewDidScroll:( UIScrollView * )scrollView
    NSLog( @"SingleIssueViewController :: scrollViewDidScroll:" );
    NSLog( @" offset:%@", scrollView );
    NSLog( @" prop:%@", scrollView.frame );
    the variable scrollView is good, but frame prints out "(null)". I've tried accessing other properties, like .contentOffset, to which the app crashes without any sort of error message in the console.
    what could be causing this?
    Message was edited by: mrkos66
    Message was edited by: mrkos66

    Declare in your header file that your VC adopts the UIScrollViewDelegate protocol and the warning will go away.
    You cannot print out C structures as Objective-C objects using the %@ format specifier. You need to print the various primitive components of the CGRect using the appropriate specifier (generally %f, %g etc. can be used for float values).

  • Huge number of garbage collected objects

    We're running a system here with the java heap set to 256mb and have noticed
    that now and then, garbage collection takes a horribly long time to complete
    (in the order of minutes, rather than fractions of a minute!). Something
    like 3 million objects are being freed when the server is heavily loaded.
    Has anyone else experienced this behaviour? Has anyone tested weblogic with
    JProfiler/OptimizeIt and found any troublesome spots where many objects are
    created? One potential place where this can be happening is in the servlet
    logging. Since there is a timestamp that is a formatted date, my guess is
    that a new Date object is being created, which is very expensive and hence
    might cause many more objects that need to be garbage collected. Can any
    weblogic engineers confirm/deny this?

    Use vmstat to determine if you're swapping. sar would work too.
    Swapping is definitely dictated by the OS, but an inordinate amount of
    swapping activity just means you get to tune the hardware rather along
    with the application.
    Jason
    Original Message <<<<<<<<<<<<<<<<<<On 2/21/00, 12:45:26 PM, "Hani Suleiman"
    <[email protected]> wrote regarding Re: Huge number of
    garbage collected objects:
    Here are the results from running top on that machine:
    Memory: 512M real, 14M free, 553M swap in use, 2908M swap free
    PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
    3035 root 50 59 0 504M 334M sleep 308:42 5.13% java
    How to make sure I'm not swapping? I thought that kind of thing was dictated
    by the OS...
    Rob Woollen <[email protected]> wrote in message
    news:[email protected]..
    If GC takes on the order of minutes to run then I suspect that you
    are
    paging. How much physical memory do you have on the machine? Make sure
    that
    you are not swapping.
    -- Rob
    Hani Suleiman wrote:
    We're running a system here with the java heap set to 256mb and have
    noticed
    that now and then, garbage collection takes a horribly long time tocomplete
    (in the order of minutes, rather than fractions of a minute!).
    Something
    like 3 million objects are being freed when the server is heavilyloaded.
    Has anyone else experienced this behaviour? Has anyone tested weblogicwith
    JProfiler/OptimizeIt and found any troublesome spots where many
    objects
    are
    created? One potential place where this can be happening is in theservlet
    logging. Since there is a timestamp that is a formatted date, my guessis
    that a new Date object is being created, which is very expensive andhence
    might cause many more objects that need to be garbage collected. Can
    any
    weblogic engineers confirm/deny this?

  • "Your script uses objects from a non-existent collection"

    I have a multiple page form with a barcode on each form.  I created a separate collection for each barcode.  The auto generated code looks fine and has the correct collection created, however I still get the error, Paper Forms Barcode error "Your script uses objects from a non-existent collection".
    I'm not sure what is wrong and I don't know how to fix it.  Anyone else run into this?

    You will need to create a shared folder in Dropbox, then populate that with what ever folders you need to organize the files. It appears the DropBox app,will not handle this, but you can do, it by logging in to you account via Safari. Once the folders are created, they will show up in the app. Likewise with designating the folders as shared. Anyone you wish to share with will need a Dropbox account. (using the public folder will not work since links out it are for files only, not folders. An odd restriction, but it is what it is).
    IF you have copies of the files on a PC, you will find that will be the easiest place to upload them from. If they are only in iBooks on the iPad, you will need to synch and use the file management function to copy them off. not sure if you can synch them back over to DropCopy within iTunes (never tried it).
    DEpending on your needs, a couple of apps to look into are iCab Mobile (a browser), and GoodReader (doc viewing and management app). Both integrate well with DropBox.

  • Why does Livecycle Designer need to lock scripting on objects with children that are fragments??

    Can someone tell me why Livecycle need to lock scripting on objects with children that are fragments??
    I mean, just because I have a fragment (which you can't edit the script for), why does Livecycle need me to NOT edit say the initialise event on the Main form.
    Yes, I can remove my fragments, edit and reinsert.  Also if the event already has a script, I can edit the xml.  But neither of these are terribly convenient.
    Couldn't there be a better way?

    The purpose of the fragment is to create re-usable or standard components. In most cases the fragment is not created by the same person designing the form and they do not want the from designer to modify any part of the fragment (it is a separate XDP file). There may be code in that fragment that relies on the structure that exists. If you have the rights you can always edit the fragment and when your PDF is created the changes will be picked up.
    If you want to be able to modify the fragment while it is in Design mode sounds to me like you want to add a component to the object library. This will allow you to have a reusable piece of a form that you can modify on a form by form basis. To do this simply build the piece that you want. Lasso the entire form and drag it onto the Custom library. When you release it a dialog will pop up allowing you to name your component. Now on any form design you can drag your new component onto the canvas and all methods/properties and code will come with that component (allowing you to modify it for that form as you see fit).
    Note that you can create your own libraries to hold your components if you see fit. Also if you put your libraries on a shared drive, you can share components between Designers.
    Paul

  • Scripts of objects in a schema.

    Hi
    I am working on a problem which is:
    To generate the scripts of objects in a schema, with separate object types in different folders, with separate files for each object.
    For instance if I have a schema called HR then the scripts for all the tables in this schema should be in a predefined folder called TABLES and within this folder the individual scripts for tables tab1.sql , tab2.sql.. and so on. I need to do this for all objects in the given schema. This I need to do from sql*plus and not from any GUI.
    For this I am able to figure out some basic steps required. Below is the sample for same
    DECLARE
    V_SCRIPT VARCHAR2(4000);
    CURSOR C1 IS
      SELECT OBJECT_TYPE,OBJECT_NAME,OWNER
      FROM ALL_OBJECTS WHERE OWNER ='HR' ;
    BEGIN
      FOR I IN C1 LOOP
          with scripts as (select dbms_metadata.get_ddl(I.OBJECT_TYPE,I.OBJECT_NAME,I.OWNER) txt from dual)
          select replace(txt,'"') ||'/' script_text INTO V_SCRIPT from scripts;
          DBMS_OUTPUT.PUT_LINE(V_SCRIPT);
      END LOOP;
    END;
    {code}
    Here in the script I can identify few problems like:
    1. The DBMS_OUTPUT.PUT_LINE will work till the buffer level and after that will give an error message. Is there any way to eliminate this?
    2. How can I spool the files in the middle of pl/sql code.
    These scripts are to be created on a windows system in some location like *c:\scripts\tables\..*,*c:\scripts\indexes\..* and so on.
    The database version should be:
    {code}
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    "CORE     10.2.0.3.0     Production"
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    {code}
    Also I came to know of utl_file package, can I use this for the same.
    please provide your expert guidance for the problem.
    Thanks
    Ansh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Two thoughts:
    First: The Oracle database does not have folders. What product are you working in?
    Second: Cursor loops such as the one you've written have been obsolete in Oracle for more than 12 years: Why are you writing one now?
    Look up BULK COLLECT and FORALL at http://tahiti.oracle.com

  • Instantation Policy for Collection Object.

    Dear all,
    We hit the problem related to the collection object. We have extended the java's collection object, i.e. List, Set and Map, to hold some extra tranisent attributes and tried to recover them with event handler (i.e. postMerge, postClone, postBuild, postRefresh) during the object loading process. We also do not allow those extra attributes to be changed once they are set to not null by throwing exception.
    The interesting thing is that, we found the exception was thrown from postMerge/postClone event handler. It seems that TopLink were trying to reuse those cached collections in the memory once TopLink believed they would not be used anymore. Is my guess correct or not? And is there any "preBulid" event for "Collection" class, so that we can initialize the collection by ourself ?
    Thanks and regards,
    William

    William,
    I do all my extra wiring for custom collections in the get method for the elements. I use indirection, and just use the isinstantiated method to determine when it is getting created, and add some listeners for example.
    Hope that helps.
    Craig

  • Flash player/swf flv files behind members area not showing up

    Hi-
    I am having problems with my swf and flv files. I have tried both going through adobe and JW players. My specific problem is this: I am posting to a non-mobile me server and these flash files are going behind a ccbill members area that you can only get to by signing in as a member through a paying website using ccbill. I saw Bob's post on the 11th and tried deleting the extra / I saw in my html files as well.. but that did not work. The pages come up without the flv or swv files. Have tried both. Shows up fine in iweb but when published it's not there. No error messages. Not even a blank box. It's just not there.
    Any advice? Been to Old Toad, Roddy McKay, iwebunlimited (Jason) and iwebfaq (Cédric), apple forums iweb sites. Cannot find anything specific to members area so any advice would be very helpful!
    my struggles below... have tried both .swf and .flv files in both
    adobe version
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0, 0" width="640" height="496" align="middle"> <param name="movie" value="http://dewielikes4u2c.com/Members/PokerFace_med.swf"> <param name="allowScriptAccess" value="always"> <embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="640" height="496" align="middle"
    src="http://dewielikes4u2c.com/Members/PokerFace_med.swf" allowScriptAccess="always"></embed>
    </object>
    JW player version
    <script type="text/javascript" src="http://www.dewielikes4u2c.com/swfobject.js"></script>
    This text will be replaced
    <script type="text/javascript">
    var so = new SWFObject('http://www.dewielikes4u2c.com/Members/player.swf','mpl','610','480', '9');
    so.addParam('allowscriptaccess','always');
    so.addParam('allowfullscreen','true');
    so.addParam('flashvars','&file=http://www.dewielikes4u2c.com/Members/PokerFace_m ed.swf&dock=false&autostart=true&repeat=always');
    so.write('player');
    </script>
    thanks, Lisa

    Just so you know the Terms of Use for MobileMe accounts states the following:
    "*Limitations on Use*
    You agree to use the Service only for purposes as permitted by these TOS and any applicable law, regulation, or generally accepted practice in the applicable jurisdiction. The Service is designed for personal individual use and is not intended to be used for commercial business purposes, including, but not limited to, transacting online sales or software distribution via an e-commerce site. "
    The above is there to protect Apple in case of the server goes down or otherwise interrupts access to the sites and you lose income because of it.
    MobileMe is not the best server to use for a commercial site. It's very slow and erratic in its performance. A commercial server, full service login type of password protection, i.e. each user has their own password and user name instead of one for everyone, etc., would be much more efficient and faster loading. Just some food for thought.
    Besides, what type of card deck has 5 aces?
    OT

  • Unable to map Collection Objects in BPM11g

    Hi,
    I am polling DB for triggering an instance in the process it is creating a Feildcollection object under
    Business Catalog -> types -> FeildCollection.
    when i am trying to map the object i need to map to another collection object itself.
    In the process I am not able to map the elements of it.
    Any help is greatly appreciated!!

    I think you have understood my question partially,
    When i go for transformation option, I am not given the option of other objects other than a collection again.
    Like for example In my project if I have three objects one made of DB adapter another of File adapter and the last one pointing to the .xsd(BasicObject) to which these two collections are pointing to.
    Script activity -> Implementation -> Use Transformation... Edit -> In the transformation output tab If i go for create option. In the Sources drop down I am given with only two options one with File Adapter collection object and another with DB adapter collection object. If i map it to a collection object again i will not be take out individual elements. According to me i need to map it to the root "Basic Object" only then i get the access to individual elements.
    My problem is even if i go for transformation option I am not able to map to individual elements from collection object.
    Regards

  • Values from a jsp page are null in Action Class

    hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values      received are null.
    Here is a part of code:
    the jsp file: letter.jsp
    <form target="_self" action="/Test/editLetter.do" name="letterTF">
    <table>
    <tbody>
    <tr>
    <th>
    No of objects
    </th>
    <th>
    Weight
    </th>
    <th>
    Description
    </th>
    </tr>
    <tr>
    <td>
    Package
    <input name="package" id="package" type="checkbox">
    </td>
    <td>
    <input name="package_No" type="text" value="<%=currentBean.getPackageNo() %>"> <%-- from session...have to edit some date from a data base--%>
    </td>
    <td>
    <input name="package_weight" type="text" value="<%=currentBean.geWeight()%>">
    </td>
    <td>
    <input name="description" type="text" value="<%=currentBean.Description()%>"
    </td>
    </tr>
    <tr>
    ..................................................... <%-- It's a big form --%>
    </tr>
    <tr>
    <input type="submit" name="send" value="Send">
    </tr>
    </tbody>
    </table>
    </form>
    struts-config.xml:
    <form-bean
              name="letterTF"
              type="Test.LetterForm">
    </form-bean>
    <action path="/editLetter"
                   type="Test.LetterAction"
                   name="scrisoareTF"
                   input="/letter.jsp"
                   scope="request"
                   validate="false">
                   <forward name="success" path="/index_orders.jsp"/>
    </action>
    The ActionForm class:
    public class LetterForm extends ActionForm{
    private String package;
         private String package_No;
         private String package_weight;
         public void setPackage(String package){
    this.package = package
    public String getPackage(){
    return package;
    The action class:
    public class LetterAction extends Action{
    public ActionForward execute(     
                   ActionMapping mapping,
                   ActionForm form,
                   HttpServletRequest request,
                   HttpServletResponse response)
         throws Exception{
    String package;
    String package_No;
    String package_weight;
    LetterForm letterTF = (LetterForm) form;
    package = letterTF.getPackage();
    package_No = letterTF.getPackageNo()
    package_weight = letterTF.getPackageWeight();
    System.out.println("Package: "+package);//it will print Package: null
    System.out.println("Weight: "+weight);//it will print Weight: null
    System.out.println("Description "+description) //it will print Description: null
    As I observed its not making the set methods from LetterForm.java
    I am dealing with this bug for a couple of days an i didn't managed to break it. If anyone has an idea would he be so kind to share it with me.
    Thanks in advanced,
    David

    Basically your form beans are the place holders or containers for your jsp attributes. It has to be mapped in such a way that when the form is submitted the user entered values get populated on to your form bean.
    For Eg:
    JSP
    <html:form action="accountSearchResults.do">
    <html:text property="myName" size="15"/>
    //USE ONLY STRUTS TAGS IN JSP's. U CAN REFER TO
    //http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html
    //THE PROPERTY NAME "myName" SHOULD BE DEFINED IN
    //YOUR FORMBEAN WITH getMyName AND setMyName
    //METHODS DEFINED
    </html:form>
    struts-config.xml
    <form-beans>
         <form-bean name="addEditAccount" type="org.apache.struts.validator.LazyValidatorForm">
              <form-property name="myName" type="java.lang.String">
              </form-property>
         </form-bean>
    </form-beans>
    <action-mappings>
         <action path="/accountSearchResults" type="com.zzz.AccountSearchResultAction" name="addEditAccount" scope="request">
              <forward name="success" path="NextPage.jsp">
              </forward>
         </action>
    </action-mappings>
    Action Class
    Since we have defined the form bean as a lazyvalidator instance you can use:
    PropertyUtils.copyProperties(targetBean, form);to fetch the values entered by the user. Try to use struts tags in your jsp's and map the properties to your form bean variables. Hope that helps.
    SirG

  • Values from a jsp page are null in an Action class

    hi, i am working on an application...i have a jsp page with several inputs (type=text) and when a submit the form to to my action class all values received are null.
    Here is a part of code:
    the jsp file: letter.jsp
    <form target="_self" action="/Test/editLetter.do" name="letterTF">
    <table>
    <tbody>
    <tr>
    <th>
    No of objects
    </th>
    <th>
    Weight
    </th>
    <th>
    Description
    </th>
    </tr>
    <tr>
    <td>
    Package
    <input name="package" id="package" type="checkbox">
    </td>
    <td>
    <input name="package_No" type="text" value="<%=currentBean.getPackageNo() %>"> <%-- from session...have to edit some date from a data base--%>
    </td>
    <td>
    <input name="package_weight" type="text" value="<%=currentBean.geWeight()%>">
    </td>
    <td>
    <input name="description" type="text" value="<%=currentBean.Description()%>"
    </td></tr>
    <tr>
    ..................................................... <%-- It's a big form --%>
    </tr>
    <tr>
    <input type="submit" name="send" value="Send">
    </tr>
    </tbody>
    </table>
    </form>
    struts-config.xml:
    <form-bean
    name="letterTF"
    type="Test.LetterForm">
    </form-bean>
    <action path="/editLetter"
    type="Test.LetterAction"
    name="scrisoareTF"
    input="/letter.jsp"
    scope="request"
    validate="false">
    <forward name="success" path="/index_orders.jsp"/>
    </action>
    The ActionForm class:
    public class LetterForm extends ActionForm{
    private String package;
    private String package_No;
    private String package_weight;
    public void setPackage(String package){
    this.package = package
    public String getPackage(){
    return package;
    The action class:
    public class LetterAction extends Action{
    public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception{
    String package;
    String package_No;
    String package_weight;
    LetterForm letterTF = (LetterForm) form;
    package = letterTF.getPackage();
    package_No = letterTF.getPackageNo()
    package_weight = letterTF.getPackageWeight();
    System.out.println("Package: "+package);//it will print Package: null
    System.out.println("Weight: "+weight);//it will print Weight: null
    System.out.println("Description "+description) //it will print Description: null
    As I observed its not making the set methods from LetterForm.java
    I am dealing with this bug for a couple of days an i didn't managed to break it. If anyone has an idea or a solution would he be so kind to share it with me
    Thanks in advance,
    David

    Basically your form beans are the place holders or containers for your jsp attributes. It has to be mapped in such a way that when the form is submitted the user entered values get populated on to your form bean.
    For Eg:
    JSP
    <html:form action="accountSearchResults.do">
    <html:text property="myName" size="15"/>
    //USE ONLY STRUTS TAGS IN JSP's. U CAN REFER TO
    //http://struts.apache.org/1.x/struts-taglib/tlddoc/index.html
    //THE PROPERTY NAME "myName" SHOULD BE DEFINED IN
    //YOUR FORMBEAN WITH getMyName AND setMyName
    //METHODS DEFINED
    </html:form>
    struts-config.xml
    <form-beans>
         <form-bean name="addEditAccount" type="org.apache.struts.validator.LazyValidatorForm">
              <form-property name="myName" type="java.lang.String">
              </form-property>
         </form-bean>
    </form-beans>
    <action-mappings>
         <action path="/accountSearchResults" type="com.zzz.AccountSearchResultAction" name="addEditAccount" scope="request">
              <forward name="success" path="NextPage.jsp">
              </forward>
         </action>
    </action-mappings>
    Action Class
    Since we have defined the form bean as a lazyvalidator instance you can use:
    PropertyUtils.copyProperties(targetBean, form);to fetch the values entered by the user. Try to use struts tags in your jsp's and map the properties to your form bean variables. Hope that helps.
    SirG

  • Query on using Collection object in Multithreading

    All,
    I have a query on multithreading, I have a collection object-eg. HashMap which needs to be shared
    among threads, I my have 3 options
    1st option is to synchronize the method which does some manipulation on the collection object,
    2nd option is to hold a lock on that object like
    synchronized(object){
    //do some work
    3rd option - to make use of class ConcurrentHashMap available in java.util.concurrent package; which claims to be
    Thread safe but also says the following in the API - They do not throw ConcurrentModificationException. However,
    iterators are designed to be used by only one thread at a time
    My queston is - how do I choose between these 3?
    I know the decison needs to be taken by keeping performance issue in mind and also the number of times the values in HashMap will be updated by the threads. Can some one explain to me when/under what circumstances do I use options 1 || 2 || 3

    My application has actually gone live now - after doing some load/performance testing
    and comming to the conclusion that performance is satisfactory [I am designing a SMS gateway
    that receives/buffers/stores/sends SMS]
    Initially I used Hashmap and a LinkedList to store objects in memory and I had a mixture
    of places where some times I made the entire method that modifies the LinkedList & hashmap
    synchronized and some places where I held a lock on the object alone (I wasnt too sure which to use where)
    Then upon movin to 1.5 I rechanged the the data structure to use ConcurrentLinkedQueue & ConcurrenthashMap.
    But i have places where I still hold synchronized locks over those objects (which i think is unnecessary and removing the locks may improve the performance)
    So can i come to the conclusion that classes in java.util.concurrent are all threadsafe and we can stop holding locks on the objects and let java take care of itself [or should I still hold a lock when doing structural modification] [though the APi states that a oncurrentmodificationexception will not be thrown & iterators are designed to be used by only one thread at a time]

  • Declare and initialize a varray of collection Object and pass it as OUT Par

    Hi ,
    How to declare and initialize a varray of collection Object and pass it as OUT Parameter to a procedure.
    Following is the Object and VARRAY Type 's I have created and trying to pass the EmployeeList varray type variable as an OUT parameter to my stored procedure, but it is not working. I tried different possibilities of declaring and initializing the varray type variable but it did not work. Any help would be appreciated.
    CREATE TYPE Employee IS Object
              employeeId     Number,
              employeeName VARCHAR2(31),
              employeeType     VARCHAR2(20),
    CREATE TYPE EmployeeList IS VARRAY(100) OF Employee;
    /* Procedure execution block */
    declare
    employees EmployeeList;
    begin
    EXECUTE displayEmployeeDetails(100, employees);
    end;
    Thanks in advance,
    Raghu.

    but it is not workingWhat's the definition of not working?
    Error messages are always helpful.
    SQL> CREATE OR REPLACE TYPE Employee IS Object
      2  (
      3  employeeId Number,
      4  employeeName VARCHAR2(31),
      5  employeeType VARCHAR2(30)
      6  );
      7  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE TYPE EmployeeList IS VARRAY(100) OF Employee;
      2  /
    Type created.
    SQL> CREATE OR REPLACE PROCEDURE getEmployeeDetails (
      2    o_employees OUT employeelist
      3  )
      4  AS
      5  BEGIN
      6   o_employees := employeelist();
      7   o_employees.EXTEND;
      8   o_employees(1) := employee(1,'Penry','Mild Mannered Janitor');
      9  END;
    10  /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2   employees employeelist;
      3  begin
      4   getemployeedetails(employees);
      5   for i in 1 .. employees.count
      6   loop
      7    dbms_output.put_line(employees(i).employeeid||' '||
      8                         employees(i).employeename||' '||
      9                         employees(i).employeetype);
    10   end loop;
    11  end;
    12  /
    1 Penry Mild Mannered Janitor
    PL/SQL procedure successfully completed.
    SQL>

  • Problems persisting the collection object in Web dynpro context

    Hello,
    I am trying to bind a Instance of hashtable (java.util.Hashtable) in the context.
    I instantiate a hashtable and bind it to the context for the first time, when i fetch it, it returns null. Is it possible to store a collection object in the context ??
    I am a newbie with Web dynpro - java. Sorry if it is a repeated question.
    Awaiting the suggestions.
    Thanks in advance,
    Harish
    Edited by: Harish Medehal on Dec 19, 2007 1:58 PM

    Hi Harish,
                  Welcome to SDN.  Yes, it is  possible to bind a collection object in the context.
    wdContext.node<DataNode>().bind(COLLECTION);
    regards,
    Siva

  • Script error "object required" when log off

    I have created a new user and assigned the "Everyone" role to it. I log in to the portal using this new user. Then I press logoff. Then I press OK. Now I get the script error below:
    line:91
    char:8
    Error: Object required
    code:0
    URL: http://.....
    any idea why I get this error?
    note: I don't get a logoff error when I use the administrator or other user IDs.

    Hi,
    you are using a customized masthead. InSP14 SAP changed some Javascript and therefor, the "object" your are colling in your logoff() function is missing. You'll have to comment out this JS call in your masthead. Check the IE error message explanation, it will show you the line where the error occurs.
    I've already posted the solution in this forum, but unfortunately, I'm not able to find my previous post
    br,
    Tobias

Maybe you are looking for

  • Firefox opens up an explorer window when I download a file

    Recently, Firefox started opening up an Explorer window every time I download a file. It's Better Explorer, actually, since I use that to replace the Microsoft version. The folder that opens is the target destination. So it creates multiple tabs, but

  • How to limit the amount of disk space Time Machine will use?

    On Yosemite, how do you limit the amount of disk space Time Machine will use? I'm using a Seagate Goflex Home 2tb drive connected to my router as a Time Machine backup drive.  I use this for three things 1)Time Machine 2) an occasional backup of  win

  • ATI HD 5700 dual screen flicker

         You will see this with boot camp Windows 7 ultimate 64 bit, however when opening a windows media video a slight line/flicker appears then goes away 2 seconds later. I followed every clue and so far have eliminated video card, adapter, wire, and

  • How do I take still Photos from Videos on iphoto11

    How do I take still Photos from Videos on iphoto 11

  • Can I update iPhoto 8.1.2 directly to 9.5.1?

    I was finally able to reinstall iPhoto on my iMac. However, I'm running Maverick and my iPhoto version is 8.1.2 - can I upgrade directly to 9.5.1 from the Apple store?  I've been trying to download various updates to iPhoto but am unable to do so. I