Vector.get() vs. Vector.elementAt()?

The API docs say they're identical. As I understand, the get() method is from the List interface. Is elementAt() from Vectors prior to 1.2?
Curious...

When in doubt, go to the source code...
public synchronized Object elementAt(int index) {
     if (index >= elementCount) {
     throw new ArrayIndexOutOfBoundsException(index + " >= " + elementCount);
     /* Since try/catch is free, except when the exception is thrown,
     put in this extra try/catch to catch negative indexes and
     display a more informative error message. This might not
     be appropriate, especially if we have a decent debugging
     environment - JP. */
     try {
     return elementData[index];
     } catch (ArrayIndexOutOfBoundsException e) {
     throw new ArrayIndexOutOfBoundsException(index + " < 0");
public synchronized Object get(int index) {
     if (index >= elementCount)
     throw new ArrayIndexOutOfBoundsException(index);
     return elementData[index];
Looks like elementAt() is a little better, if you happen to have problems with the method call...
Hope this helps

Similar Messages

  • Front-End Service Starup Error: Store procedure to GET progress vector failed.

    Hi,
    We have a two front end servers in our Lync deployment and I'm getting an interesting error message on one of the servers when the "Lync Server Front-End Service" is starting up. All the services on that server will eventually start but I'm pretty
    sure it's affecting users in some way.
    Here is the error message in the Event Viewer:
    Log Name:      Lync Server
    Source:        LS User Services
    Date:          2013-09-17 8:00:32 AM
    Event ID:      32194
    Task Category: (1006)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      BGC-VAN-LYNC2.domain.ca
    Description:
    Store procedure to GET progress vector failed.
    Execution Error: 0x00000000(ERROR_SUCCESS).
    Native Error: 8144.
    Error Details: [# [Microsoft][SQL Server Native Client 11.0][SQL Server]Procedure or function SyncReplicationGetProgressVector has too many arguments specified. #].
    Cause: This may indicate a problem with connectivity to local database or some unknown product issue.
    Resolution:
    Ensure that connectivity to local database is proper. If the error persists, please contact product support with server traces.
    Event Xml:
    <Event xmlns=>
      <System>
        <Provider Name="LS User Services" />
        <EventID Qualifiers="50158">32194</EventID>
        <Level>2</Level>
        <Task>1006</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-09-17T15:00:32.000000000Z" />
        <EventRecordID>16971</EventRecordID>
        <Channel>Lync Server</Channel>
        <Computer>BGC-VAN-LYNC2.domain.ca</Computer>
        <Security />
      </System>
      <EventData>
        <Data>0x00000000(ERROR_SUCCESS)</Data>
        <Data>8144</Data>
        <Data>[# [Microsoft][SQL Server Native Client 11.0][SQL Server]Procedure or function SyncReplicationGetProgressVector has too many arguments specified. #]</Data>
      </EventData>
    </Event>
    The error happens 15 times every minute, following with this event:
    Name:      Lync Server
    Source:        LS User Services
    Date:          2013-09-17 8:23:46 AM
    Event ID:      32189
    Task Category: (1006)
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Description:
    The following Fabric service for routing groups have been closed:
    {F515134C-71B7-52FD-B0C3-6A9DB39CF750}
    {8A5D6B36-2A01-53DB-BC4E-3286C05E0836}
    {B35AAFC9-F6BF-5FFE-8C31-4AA5C36B2065}
    {69223418-78DC-5066-81A8-78E05914EC7B}
    {80414C96-1137-5DDC-8387-C3EA7A54B078}
    {641E6ABD-B862-55A1-B1B1-C83BC92D2F85}
    {1EA68EA4-77F7-5CFC-B781-0093CBC18403}
    {2FDE333D-FF7F-5D6A-B85B-93ADC1EAC12A}
    {A43BBA3A-8963-51C4-BD7A-19E1EC3DDFDB}
    {D3F4532F-61C8-5072-9B3B-3E2CCF15442F}
    {4449243E-5E96-56AC-AB6B-C5E785543542}
    {58B30261-65B6-5F6A-BC50-60F85782D052}
    {DB4B76B0-2510-5BF8-A7B1-8B37BD3AA7B9}
    {917CC217-966B-56AC-A912-97BA64BA13EB}
    Anyone knows what this is about and how to resolve this?
    Thanks,
    VH.

    Hi,
    Please try to reset registrar state:
    http://tsoorad.blogspot.in/2013/04/lync-2013-ee-pool-wont-start.html
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Kent Huang
    TechNet Community Support

  • The get() of Vector class, is it thread safe??

    Hi all:
    the get() of Vector class, is it thread safe?? I looked into the API, but no info is available, so any help is appreciated

    You just have to look out when you perform two or more methods on the Vector in sucession. Then it's better to lock on the vector itself. If you for instance access the vector to query whether the size is greater than zero and immediately remove an item while another thread is removing elements from the same vector, you might get a dirty read and call get() on the vector while there are no elements left.

  • Vector.get(0) Array Index out of bounds - Please Help

    Hi,
    I have a method, where i am accesing vector.get(0)
    and since it is a multi threaded application, somtimes i am getting
    Array Index out of bounds exception.
    I want to confirm that if i make that particular method synchronized, is it going to
    solve my problem.
    Please help me, since i am not able to reproduce the error very often, i want to make sure this will work.
    zraoz.

    It's a bit of both. The code you posted fails if two
    threads execute at the same time. He needs the
    synchronization, and the size check.Only if he is removes elements somewhere else. If not the code is safe.
    My guess is that he is trying to get the first element before it has been added.

  • Getting a vector halftone from grey vector elements

    I'll omit the long background --- suffice it to say I did this once and need to do it again, but can't recall the toolchain / workflow I used.
    I _think_ it was Macromedia FreeHand 8, and that I used a plug-in w/in that program, but I can't recall (perhaps someone else could remember what tool I might have used?) --- anyone have a suggestion other than rendering the drawing as a half-toned bitmap and then tracing it? Or re-drawing the image on top of such a bitmap?
    William

    There are several methods. You could do a research for the term "vector halftone" on Google. There was an article on bittbox.com some time ago.
    They mentioned some web based services and the plugin Scriptographer
    Several solutions have also been discussed in this forum - search for posts by JET
    And then there's the plugin Phantasm CS that can also convert your raster or vector art into vector halftone dots.

  • Cannot find a Vector within a Vector

    Yo. Another noob askin about elements within a Vector.
    I'm working on a OOP project in BlueJ. First time doing so, so my code is still kinda procedural (with many listeners in the same document, etc etc)
    I'm creating a simulation of a 7-a-side football game. I have stored the players of each team into a vector (e.g Vector 'Chelsea' would contain 7 player objects).
    I've only created three teams for simplicity, and stored these three Vectors into another Vector called 'teams'.
    (the whole purpose of storing them in vectors btw, is so I don't have to pass many different player objects as arguments -
    i can just send the vector, and extract them within the Listener classes)
    I'm now in the new class (Start_game) and i've passed the vector to the class.
    When I use the statement:
                     if (teams.contains(Arsenal))
                                  +some code+
                     }I get the error message: cannot find variable 'Arsenal', when I try to compile the program.
    Here's the code for the first class:
    * Write a description of class MainWindow here.
    * @author (your name)
    * @version (a version number or a date)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.util.Vector;
    import javax.swing.BoxLayout;
    public class Choose_player
        String t_chosen1;
        String t_chosen2;
        TextArea playerinfo1;
        TextArea playerinfo2;
        Vector teams = new Vector();
    //    Vector Arsenal = new Vector(4); // this will store Player objects with "Arsenal" in their team variable
        Vector Arsenal = new Vector(4);
            Player Adebayor = new Striker();
            Player Walcott = new Striker();
            Player Fabregas = new Midfielder();
            Player Denilson = new Midfielder();
            Player Gallas = new Defender();
            Player Eboue = new Defender();
            Player Lehmann = new Goalkeeper();       
    //    Arsenal.insertElementAt(Adebayor, 0);
    //    <Player>Arsenal</Player>.addElement(<Player>Adebayor);
        // learn collections - BIG TYME - refer to java site (url is in txt file)
        Vector Chelsea = new Vector(4); // this vector will store the Player objects whose team variable
                                        // contains the String "Chelsea"
            Player Drogba = new Striker();
            Player Anelka = new Striker();
            Player Lampard = new Midfielder();
            Player Phillips = new Midfielder();
            Player ACole = new Defender();
            Player Terry = new Defender();
            Player Cech = new Goalkeeper();
    //        int w = Chelsea.Size();
        Vector ManU = new Vector(4);    // this vector will store the Player objects whose team variable
                                        // contains the String "ManU"
            Player Rooney = new Striker();
            Player Tevez = new Striker();
            Player Giggs = new Midfielder();
            Player Ronaldo = new Midfielder();
            Player Ferdinand = new Defender();
            Player Brown = new Defender();
            Player Sar = new Goalkeeper();
        public void mainfalse(String t1, String t2)
            this.t_chosen1 = t1;
            this.t_chosen2 = t2;
            Frame m_frame = new mainframe("Select Captain", t_chosen1, t_chosen2, teams);
            m_frame.setSize(1200, 700);
            m_frame.setVisible(true);
        class mainframe extends Frame
            Vector teams;
            public mainframe(String title, String t_chosen1, String t_chosen2, Vector teams)
                super(title);
                this.teams = teams;
                setLayout(new FlowLayout());
    //            setLayout(new GridLayout());
    //            setLayout(new CardLayout());
    //            setLayout(new RelativeLayout());
    //            setLayout(new BoxLayout(m_frame, - FINISH EDITING BoxLayout statement
    // -------- ADD PLAYERS TO VECTOR -------- //           
                Arsenal.addElement(Adebayor);
                Arsenal.addElement(Walcott);
                Arsenal.addElement(Fabregas);
                Arsenal.addElement(Denilson);           
                Arsenal.addElement(Gallas);
                Arsenal.addElement(Eboue);           
                Arsenal.addElement(Lehmann);           
                Chelsea.addElement(Drogba);
                Chelsea.addElement(Anelka);           
                Chelsea.addElement(Lampard);
                Chelsea.addElement(Phillips);           
                Chelsea.addElement(ACole);
                Chelsea.addElement(Terry);           
                Chelsea.addElement(Cech);
                ManU.addElement(Rooney);
                ManU.addElement(Tevez);           
                ManU.addElement(Giggs);
                ManU.addElement(Ronaldo);           
                ManU.addElement(Ferdinand);
                ManU.addElement(Brown);           
                ManU.addElement(Sar);
                teams.addElement(Arsenal);
                teams.addElement(Chelsea);
                teams.addElement(ManU);
    // --------------- FIRST TEAM - CAPTAIN SELECTION ----------------      
                java.awt.List playerList1 = new java.awt.List(5);
                // CREATES A BOX WITH A LIST OF TEAMS (it can view 5 before needing a scroll bar)
                // (full specification needed when declaring -
                // java confused with List in 'awt', and list in 'util'.
                if (t_chosen1.equals("Arsenal"))
                    playerList1.add("Adebayor");
                    playerList1.add("Walcott");
                    playerList1.add("Fabregas");
                    playerList1.add("Denilson");
                    playerList1.add("Gallas");
                    playerList1.add("Eboue");
                    playerList1.add("Lehmann");
                } // if the chosen team is Arsenal, display chosen teams to be Arsenal players
                else if (t_chosen1.equals("Chelsea"))
                    playerList1.add("Lampard");
                    playerList1.add("Drogba");
                    playerList1.add("Anelka");
                    playerList1.add("Wright-Phillips");
                    playerList1.add("Cole");
                    playerList1.add("Terry");
                    playerList1.add("Cech");
                } // if the chosen team is Chelsea, display chosen teams to be Chelsea players
                else if (t_chosen1.equals("Manchester United"))
                    playerList1.add("Ronaldo");
                    playerList1.add("Rooney");
                    playerList1.add("Tevez");
                    playerList1.add("Giggs");
                    playerList1.add("Ferdinand");
                    playerList1.add("Brown");
                    playerList1.add("Sar");
                } // ditto
                add(playerList1);
                playerList1.addItemListener(new p_list_Listener1(playerList1));
                // add itemListener to 'playerList' object
                // - pass playerList object to listener to use getSelected() method
                playerinfo1 = new TextArea(10, 38);
                add(playerinfo1);
    // --------------- SECOND TEAM - CAPTAIN SELECTION ---------------- - same as above, for team2
                java.awt.List playerList2 = new java.awt.List(5); // CREATES A BOX WITH A LIST OF TEAMS (it can view 5 before needing a scroll bar)
    // add "Adebayor" as a selectable Captain for the Arsenal team
                if (t_chosen2.equals("Arsenal"))
                    playerList2.add("Adebayor");
                    playerList2.add("Walcott");
                    playerList2.add("Fabregas");
                    playerList2.add("Denilson");
                    playerList2.add("Gallas");
                    playerList2.add("Eboue");
                    playerList2.add("Lehmann");
                // add "Lampard" as a selectable Captain for the Chelsea team           
                else if (t_chosen2.equals("Chelsea"))
                    playerList2.add("Lampard");
                    playerList2.add("Drogba");
                    playerList2.add("Anelka");
                    playerList2.add("Wright-Phillips");
                    playerList2.add("Cole");
                    playerList2.add("Terry");
                    playerList2.add("Cech");
                // add "Christiano Ronaldo" as a selectable Captain for the Manchester United team           
                else if (t_chosen2.equals("Manchester United"))
                    playerList2.add("Ronaldo");
                    playerList2.add("Rooney");
                    playerList2.add("Tevez");
                    playerList2.add("Giggs");
                    playerList2.add("Ferdinand");
                    playerList2.add("Brown");
                    playerList2.add("Sar");
                add(playerList2);
                playerList2.addItemListener(new p_list_Listener2(playerList2));
                playerinfo2 = new TextArea(10, 38);
                add(playerinfo2);
    // ------ CHOICE MENU & TEXTFIELD - CHOOSE PLAYER TO SHOW ATTRIBUTES IN TEXTFIELD - TEAM 1 ---------
                Choice p_choice1 = new Choice();
                // new dropdown menu - choosing which player's info to display
                p_choice1.add("-- Choose player to display info --");
                if (t_chosen1.equals("Arsenal"))
                    p_choice1.add("Emmanuel Adebayor"); //Striker
                    p_choice1.add("Theo Walcott"); //Striker
                    p_choice1.add("Cesc Fabregas"); //Mid
                    p_choice1.add("Denilson"); //Mid
                    p_choice1.add("William Gallas");//Def
                    p_choice1.add("Emmanuel Ebou�");//Def
                    p_choice1.add("Jens Lehmann");//Keeper
                else if (t_chosen1.equals("Chelsea"))
                    p_choice1.add("Didier Drogba");//Striker
                    p_choice1.add("Nikolas Anelka");//Str
                    p_choice1.add("Frank Lampard");//Mid
                    p_choice1.add("Shaun Wright-Phillips");//Mid
                    p_choice1.add("Ashley Cole");//Def
                    p_choice1.add("John Terry");//Def
                    p_choice1.add("Petr Cech");//Keeper
                else if (t_chosen1.equals("Manchester United"))
                    p_choice1.add("Wayne Rooney");//Str
                    p_choice1.add("Carlos T�vez");//Str
                    p_choice1.add("Ryan Giggs");//Mid
                    p_choice1.add("Christiano Ronaldo");//Mid
                    p_choice1.add("Rio Ferdinand");//Def
                    p_choice1.add("Wes Brown");//Def
                    p_choice1.add("Edwin van der Sar");//Keeper
                add(p_choice1);
                TextField nameField1 = new TextField("", 30);
                add(new Label("Name"));
                add(nameField1);
                TextField ageField1 = new TextField("", 30);
                add(new Label("Age"));
                add(ageField1);
                TextField teamField1 = new TextField("", 30);
                add(new Label("Team"));
                add(teamField1);
                TextField speedField1 = new TextField("", 30);
                add(new Label("Speed"));
                add(speedField1);
                TextField defenceField1 = new TextField("", 30);
                add(new Label("Defence"));
                add(defenceField1);
                TextField accuracyField1 = new TextField("", 30);
                add(new Label("Accuracy"));
                add(accuracyField1);
                TextField positionField1 = new TextField("", 30);
                add(new Label("Position"));
                add(positionField1);
                Vector fields1 = new Vector(8, 2); // PASS TO CHOICE LISTENER
                fields1.add(nameField1);
                fields1.add(ageField1);
                fields1.add(teamField1);
                fields1.add(speedField1);
                fields1.add(defenceField1);
                fields1.add(accuracyField1);
                fields1.add(positionField1);
                p_choice1.addItemListener(new ChoiceListener(fields1, teams, p_choice1, t_chosen1));
                // pass the teams vector to variable, to:
                // 1) create players
                // 2) call methods to show their different attributes in each field
    // ------- CHOICE MENU & TEXTFIELD - CHOOSE PLAYER TO SHOW ATTRIBUTES IN TEXTFIELD - TEAM 2 ---------           
                Choice p_choice2 = new Choice();
                p_choice2.add("-- Choose player to display info --");
                if (t_chosen2.equals("Arsenal"))
                    p_choice2.add("Emmanuel Adebayor"); //Striker
                    p_choice2.add("Theo Walcott"); //Striker
                    p_choice2.add("Cesc Fabregas"); //Mid
                    p_choice2.add("Denilson"); //Mid
                    p_choice2.add("William Gallas");//Def
                    p_choice2.add("Emmanuel Ebou�");//Def
                    p_choice2.add("Jens Lehmann");//Keeper           
                else if (t_chosen2.equals("Chelsea"))
                    p_choice2.add("Didier Drogba");//Striker
                    p_choice2.add("Nikolas Anelka");//Str
                    p_choice2.add("Frank Lampard");//Mid
                    p_choice2.add("Shaun Wright-Phillips");//Mid
                    p_choice2.add("Ashley Cole");//Def
                    p_choice2.add("John Terry");//Def
                    p_choice2.add("Petr Cech");//Keeper
                else if (t_chosen2.equals("Manchester United"))
                    p_choice2.add("Wayne Rooney");//Str
                    p_choice2.add("Carlos T�vez");//Str
                    p_choice2.add("Ryan Giggs");//Mid
                    p_choice2.add("Christiano Ronaldo");//Mid
                    p_choice2.add("Rio Ferdinand");//Def
                    p_choice2.add("Wes Brown");//Def
                    p_choice2.add("Edwin van der Sar");//Keeper
                add(p_choice2);
                TextField nameField2 = new TextField("", 30);
    //            nameField1.setText("Here, you store the name");
                add(new Label("Name"));
                add(nameField2);
                TextField ageField2 = new TextField("", 30);
                add(new Label("Age"));
                add(ageField2);
                TextField teamField2 = new TextField("", 30);
                add(new Label("Team"));
                add(teamField2);
                TextField speedField2 = new TextField("", 30);
                add(new Label("Speed"));
                add(speedField2);
                TextField defenceField2 = new TextField("", 30);
                add(new Label("Defence"));
                add(defenceField2);
                TextField accuracyField2 = new TextField("", 30);
                add(new Label("Accuracy"));
                add(accuracyField2);
                TextField positionField2 = new TextField("", 30);
                add(new Label("Position"));
                add(positionField2);
                Vector fields2 = new Vector(8, 2); // PASS TO CHOICE LISTENER
                fields2.add(nameField2);
                fields2.add(ageField2);
                fields2.add(teamField2);
                fields2.add(speedField2);
                fields2.add(defenceField2);
                fields2.add(accuracyField2);
                fields2.add(positionField2);
                p_choice2.addItemListener(new ChoiceListener(fields2, teams, p_choice2, t_chosen2));
                // pass the teams vector to variable, to:
                // 1) create players
                // 2) call methods to show their different attributes in each field
    // --------------- add START GAME button ----------------           
                Button c = new Button("Start Game");
                add(c);
                c.addActionListener(new startgameListener(teams));
    // --------------- WINDOW CLOSER LISTENER ----------------
                addWindowListener(new WindowCloser()); // no object relation - you are adding a listener to the FRAME
    // --------------------- p_list_listener1 - listener for playerList1 ------------------
        class p_list_Listener1 implements ItemListener
            java.awt.List playerslist;
            public p_list_Listener1(java.awt.List playerslist)
                this.playerslist = playerslist;
            public void itemStateChanged(ItemEvent evt)
                String sth = playerslist.getSelectedItem();
    // ----------- PLAYER BIO'S ------------ //
    // ---- ARSENAL:
                String adebayorBio = "Emmanuel Adebayor (born 26 February 1984 in Lom�) is \na Togolese " +
                                    "football player of Nigerian descent who \ncurrently plays for Arsenal.";
                String walcottBio = "Theo James Walcott (born 16 March 1989 in \nStanmore, London) is an " +
                                    "English footballer of Caribbean \ndescent renowned for his pace, who " +
                                    "currently plays for \nArsenal, having signed there from Southampton on" +
                                    " 20 January 2006.";
                String fabregasBio = "Francesc Cesc F�bregas Soler (born 4 May 1987 in Arenys \nde Mar, " +
                                    "Catalonia, Spain) is a Spanish footballer \nwho plays as a central " +
                                    "midfielder for Arsenal in the \nEnglish Premier League and for the" +
                                    " Spanish national team.";
                String denilsonBio = "Den�lson Pereira Neves, known as Den�lson (born on \nFebruary 16, 1988 " +
                                    "in S�o Paulo, Brazil) is a Brazilian \nfootballer who usually plays as" +
                                    " a midfielder. He plays for English \nside Arsenal and is currently the" +
                                    " captain of \nthe Brazil under-20 national team.";
                String gallasBio =  "William Gallas, (born 17 August 1977 in Asni�res-sur-Seine), \nis a French" +
                                    " international footballer of Guadeloupian \ndescent who currently plays for " +
                                    "and captains \nArsenal in the English Premier League.";                   
                String eboueBio = "Emmanuel Ebou� (born June 4, 1983 in Abidjan, C�te d'Ivoire) \nis an Ivorian " +
                                  "football player who currently plays for \nArsenal.";
                String lehmannBio = "Jens Lehmann (German, born November 10, 1969 in Essen) is an award-winning German football goalkeeper who plays for Arsenal and for the German national team. He was voted Best European Goalkeeper twice in his career, and he has been selected for three World Cup squads.";
    // ---- CHELSEA:        
                String lampardBio = "Frank James Lampard, Jr. (born 20 June 1978) is an \nEnglish football " +
                                    "player currently at Chelsea and \npreviously with West Ham United and Swansea City.";
                String drogbaBio = "Didier Yves Drogba T�bily (born March 11, 1978 in Abidjan, C�te d'Ivoire) is a footballer from C�te d'Ivoire who currently plays for Chelsea in the English Premier League.";                   
                String anelkaBio = "Nicolas Anelka (born March 14, 1979 in Versailles, France) is a French footballer who plays in the forward position.";
                String phillipsBio = "Shaun Cameron Wright-Phillips (born 25 October 1981 in Greenwich, London) is an English football player of Jamaican and Grenadian descent.";
                String coleBio = "Ashley Cole (born 20 December 1980, Stepney, London) is an English footballer of Barbadian descent. Cole plays left back for Chelsea and for the England national team.";
                String terryBio = "John George Terry (born December 7, 1980 in Barking, London) is an English professional footballer. Terry plays as a centre back and is the captain of Chelsea in the English Premier League and officially for the England national football team.";
                String cechBio = "Petr Cech (born 20 May 1982 in Plze?, Czechoslovakia, now Czech Republic) is a Czech international football goalkeeper who is currently contracted to English Premier League football club Chelsea F.C., for whom he has played since July 2004.";
    // ---- MANU:
                String ronaldoBio = "Cristiano Ronaldo dos Santos Aveiro, OIH (pronounced \n[k?i??ti?nu ?u?na?du])," +
                                    "(born 5 February 1985 in Funchal, \nMadeira), better known as Cristiano Ronaldo, is a " +
                                    "\nPortuguese professional footballer. He plays both for \nthe English Premier League club " +
                                    "Manchester United and \nthe Portuguese national team."; 
                String rooneyBio = "Wayne Mark Rooney (born 24 October 1985 in Liverpool, Merseyside) is an English footballer who currently plays for the English Premier League club Manchester United and the England national team.";
                String tevezBio = "Carlos Alberto T�vez (born on 5 February 1984 in Ciudadela, Buenos Aires) is an Argentine footballer who currently plays for Premier League club Manchester United. He was described by Diego Maradona as the 'Argentine prophet for the 21st century.'";
                String giggsBio = "Ryan Joseph Giggs OBE[1] (born Ryan Joseph Wilson on 29 November 1973 in Ely, Cardiff) is a Welsh footballer currently playing for Manchester United in the English Premiership, and formerly for the Welsh national team prior to his retirement from international football on 2 June 2007.";
                String ferdinandBio = "Rio Gavin Ferdinand (born 7 November 1978 in Peckham, London) is an English footballer of mixed St Lucian,and Anglo-Irish descent. He plays at centre-back for Manchester United in the Premier League and at the international level for the England national football team.";
                String brownBio = "Wes 'Baked Bean' Michael Brown (born 13 October 1979 in Longsight, Manchester) is an English football player who plays as a defender for Manchester United.";
                String sarBio = "Edwin van der Sar (born 29 October 1970 in Voorhout) is a Dutch professional footballer who plays as a goalkeeper. He is captain of the Dutch national team and plays club football for Manchester United in the English Premier League.";
    // --------- TEAM BIO'S DONE!!!!!! ---------- //           
                try
                    if (sth.equals("Adebayor")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(adebayorBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Walcott")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(walcottBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Fabregas")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(fabregasBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Denilson")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(denilsonBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Gallas")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(gallasBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Eboue")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(eboueBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Lehmann")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(lehmannBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
    // if CHELSEA TEAMS               
                    else if (sth.equals("Lampard"))  // if the user selects "Chelsea", show Chelsea's Bio
                        playerinfo1.setText("" + lampardBio);
                        playerinfo1.setEditable(false);                        
                        //t_chosen = sth;               
                    else if (sth.equals("Drogba")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(drogbaBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Anelka")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(anelkaBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Wright-Phillips")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(phillipsBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Cole")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(coleBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Terry")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(terryBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Cech")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(cechBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
    // if MANU teams
                    else if (sth.equals("Ronaldo")) // .... and so on and so forth
                        playerinfo1.setText("" + ronaldoBio);
                        playerinfo1.setEditable(false);
                    else if (sth.equals("Rooney")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(rooneyBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Tevez")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(tevezBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Giggs")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(giggsBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Ferdinand")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(ferdinandBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Brown")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(brownBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                    else if (sth.equals("Sar")) // if the user selects "Arsenal", show Arsenal's Bio
                        playerinfo1.setText(sarBio);
                        playerinfo1.setEditable(false);
                        //t_chosen = sth;
                catch (NullPointerException e)
                // if sth equals 'null', catch the exception and continue the program
        } // end class
    // --------------- p_list_Listener2 - listener for playerList2 ------------------
        class p_list_Listener2 implements ItemListener
            java.awt.List playerslist;
            public p_list_Listener2(java.awt.List playerslist)
                this.playerslist = playerslist;
            public void itemStateChanged(ItemEvent evt)
                String sth = playerslist.getSelectedItem();
    // ----------- PLAYER BIO'S ------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

    Ok. Here's my code at last. It comprises of three classes, each creating three different frames:
    Class 1:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Vector;
    class class1
        public static void main(String[] param)
            Frame f = new TestFrame("test");
            f.setSize(600, 450);
            f.setVisible(true); // the first window is shown
    class TestFrame extends Frame
        public TestFrame(String title)
            super(title);
            setLayout(new FlowLayout());
            Button a = new Button("Click Me");
            add(a);
            a.addActionListener(new ButtonListener());
            addWindowListener(new WindowCloser());
        class ButtonListener implements ActionListener
            public void actionPerformed(ActionEvent evt)
                class2 c_instance = new class2();
                c_instance.mainfalse();
    Class 2:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.util.Vector;
    import javax.swing.BoxLayout;
    public class class2
        Vector teams;
        Vector Arsenal = new Vector(4);
            Player Adebayor = new Striker();
            Player Walcott = new Striker();
            Player Fabregas = new Midfielder();
            Player Denilson = new Midfielder();
            Player Gallas = new Defender();
            Player Eboue = new Defender();
            Player Lehmann = new Goalkeeper();
            // ONLY CREATING ONE TEAM FOR THE PURPOSE OF THE SIMPLIFIED PROGRAM
        public void mainfalse()
            Frame m_frame = new mainframe("class3", teams);
            m_frame.setSize(1200, 700);
            m_frame.setVisible(true);
        class mainframe extends Frame
            Vector teams;
            public mainframe(String title, Vector teams)
                super(title);
                this.teams = teams;
                setLayout(new FlowLayout());
                Arsenal.addElement(Adebayor);
                Arsenal.addElement(Walcott);
                Arsenal.addElement(Fabregas);
                Arsenal.addElement(Denilson);           
                Arsenal.addElement(Gallas);
                Arsenal.addElement(Eboue);           
                Arsenal.addElement(Lehmann);    
                teams.addElement(Arsenal);
    // --------------- add START GAME button ----------------           
                Button c = new Button("Start Game");
                add(c);
                c.addActionListener(new startgameListener(teams));
    // --------------- WINDOW CLOSER LISTENER ----------------
                addWindowListener(new WindowCloser());           
        class startgameListener implements ActionListener
            Vector teams;
            public startgameListener(Vector t1)
                this.teams = t1;
            public void actionPerformed(ActionEvent evt)
                class3 c_instance1 = new class3();
                c_instance1.gVector(teams);
    }*... and Class 3:*
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Vector;
    public class class3
        Vector teams;
        public void gVector(Vector t1)
            this.teams = t1;
            Frame main = new mainframe("Main Window", teams);
            main.setSize(1400, 900);
            main.setVisible(true);
        class mainframe extends Frame
            public mainframe(String title, Vector t1)
                super(title);
                setLayout(new FlowLayout());
                addWindowListener(new WindowCloser());
                Vector teams = t1;
                JOptionPane.showMessageDialog(null, "Hello and WELCOME to The FIRST, annual StickMan Footy!");
                if (teams.contains(Arsenal))
                    int t = teams.indexOf(Arsenal);
                    Vector Arsenal = (Vector) teams.elementAt(t);
                // getName() is a method declared in the Player class
                // the Player class is the superclass of the Striker class
    /*            if (teams.contains(Adebayor))
                And my error message after trying to compile Class 2, is "cannot find symbol - variable Arsenal".
    ........... help.
    Shax

  • Vector inside a Vector

    Help me, friends.
    A vector "V" contains elements which are also vectors, say "v". E.g.:
    V = {{1,2,3},{1,3,4,5},{2,4,5},{5,6,7}}
    How to implement: if the first element of vector "v" are the same, combines the two vectors "v" AND if the two vectors "v" contains the same element for the rest (2nd, 3rd, etc), remove duplicate.
    So the output for above example will be:
    V = {{1,2,3,4,5},{2,4,5},{5,6,7}}
    Thanks you for your help.

    Thanks.
    Another problem. I've tried to find the all pairs.
    <code>
    import java.io.*;
    import java.util.*;
    public class SequenceFacade {
         private HashMap map;
         public SequenceFacade() {
              map = new HashMap();     
         } // end default constructor
         /**     Task: Find all the pairs with input gap.
         *     @param inputFile a text file to be read
         *     @param gap no. of words between the pair
         public HashMap findPairs(String inputFile, String outputFile, int gap) throws Exception {
              File textFile = new File(inputFile);
              FileReader reader = new FileReader(textFile);
              BufferedReader br = new BufferedReader(reader);          
              FileWriter writer = new FileWriter(outputFile);
              PrintWriter pw = new PrintWriter(writer);
              String line = br.readLine();
              Vector words = new Vector();
              Object value;
              Vector indexList;
              int docIndex = 0;
              int totalPairs = 0;
              while(line != null) {
                   StringTokenizer st = new StringTokenizer(line);
                   while(st.hasMoreTokens())
                        words.addElement(st.nextToken());
                   int noOfWords = words.size();
                   for(int i = 0; i < noOfWords; i++) {
                        int j = i + (gap+1);
                        if(i < (noOfWords - (gap+1))) {
                             for(int k = i+1; k <= j; k++) {
                                  Vector sequence = new Vector();
                                  sequence.addElement(words.elementAt(i));
                                  sequence.addElement(words.elementAt(k));
                                  Vector index = new Vector();
                                  index.addElement(new Integer(docIndex));
                                  index.addElement(new Integer(i));
                                  index.addElement(new Integer(k));
                                  value = map.get(sequence);
                                  if(value == null) {
                                       indexList = new Vector();
                                       map.put(sequence, indexList);
                                  else {
                                       indexList = (Vector)value;
                                  totalPairs++;
                                  indexList.addElement(index);
                        else {
                             for(int k = i+1; k < noOfWords; k++) {
                                  Vector sequence = new Vector();
                                  sequence.addElement(words.elementAt(i));
                                  sequence.addElement(words.elementAt(k));
                                  Vector index = new Vector();
                                  index.addElement(new Integer(docIndex));
                                  index.addElement(new Integer(i));
                                  index.addElement(new Integer(k));
                                  value = map.get(sequence);
                                  if(value == null) {
                                       indexList = new Vector();
                                       map.put(sequence, indexList);
                                  else {
                                       indexList = (Vector)value;
                                  totalPairs++;
                                  indexList.addElement(index);
                   } // end for
                   docIndex++;
                   line = br.readLine();
                   words = new Vector();
              } // end while
              System.out.println("Total no. of pairs : "+map.size());
              System.out.println("Total no. of all pairs : "+totalPairs);
              Set set = map.entrySet();
              List setList = new ArrayList(set);
              //Collections.sort(setList, new MyCompare());
              for(Iterator it = setList.iterator(); it.hasNext();)
                   pw.println(it.next());
              br.close();
              pw.close();
              return map;
         } // end findPairs()
    } // end class SequenceFacade
    </code>
    The problem is when the key has a value which is a Vector that contains vector v. if the first element of vectors v are the same, then just append the vector.
    Eg.
    "hello world" which is found in line 1, "hello" in position 2, "world" in position 3.
    So:
    [hello, world]=[[1,2,3]]
    if the words "hello word" also found in the same line but different position for each words, we just append the vector. Say, another "hello world" also found in line 1, "hello" in position 6, world in position 8.
    We just append it like this:
    [hello, world]=[[1,2,3,6,8]]
    Anyone can help me edit the above algorithm? Thanks.

  • Difference  between null vector and empty Vector

    What is the diffrence between null vector and empty vector.

    null vector means the JVM doesn't allocate memory.It doesn't exist
    in memory. NO instance!
    empty vector means the JVM allocated memory.It exists in memory.
    it's a instance than is accessabel.But only have on elements.
    GL&HF.

  • [svn] 2236: Allow implicit conversion of Vector. * to Vector. T in strict mode.

    Revision: 2236<br />Author:   [email protected]<br />Date:     2008-06-25 11:48:59 -0700 (Wed, 25 Jun 2008)<br /><br />Log Message:<br />-----------<br />Allow implicit conversion of Vector.<*> to Vector.<T> in strict mode.<br /><br />Modified Paths:<br />--------------<br />    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/util/Context.java

    For some reason it just started to work now. Have no idea what didn't work before.

  • How do I skew a vector onto another vector?

    I have a vector that I would like to skew in order to match the blue block as shown above. I did this using the Object > Transform > Transform Each function, however the result is less than ideal. Is there any way to accurately and easily map the vector onto another vector such as in my example?
    Thanks

    You can do the same by Rotating the object and Scaling it vertically.

  • Vector in a Vector

    Hi, i have a basic Vector question:
    When i have following:
    Vector ouside = new Vector();
    Vector inside = new Vector();
    outside.addElement(inside);
    inside.addElement("Test");
    is the Vector ouside changed too and contains the inside Vector with "Test"?

    is the Vector ouside changed too and contains the
    inside Vector with "Test"?In Java an object is always represented by a reference pointing at it.
    Before "Test" is added, the inside object is referenced from two places.
    1. The pointer held in the inside reference variable.
    2. The pointer held in the first element of the outside object.
    Now when you add "Test" to the inside object the two pointers above will still point to it. Just because you change the content of an object doesn't mean that pointers to it are changed.

  • Adding Vector to another Vector

    Hi there,
    Does this code correct by adding Vector to another Vector?
    vector1.add(vector2);Thanks
    Neo

    Hi,
    If you see the add method as shown below
    add
    public boolean add(Object o)
    Appends the specified element to the end of this Vector.
    You can see that add() method takes in the any Object parameter and we know that Object is the super class for all the classes.
    So till vector2 is any Object , there is no problem of adding it to another vector.
    Regards,
    Shishank

  • Are Vector Integer and Vector String different types?

    Maybe I am missing something.
    Are Vector <String> and Vector <Integer> different types? Can I have to methods of the same name with arguments of these types? That would be the point of method overloading.
    Appearently not. The following code does not compile:
    import java.util.*;
    public class b {
            public static void doit(Vector <String> what) {
                    what.add(new String(""));
            public static void doit(Vector <Integer> what) {
                    what.add(new Integer(0));
    }$ javac -target 1.5 -source 1.5 b.java
    b.java:3: name clash: doit(java.util.Vector<java.lang.String>) and doit(java.util.Vector<java.lang.Integer>) have the same erasure
    public static void doit(Vector <String> what) {
    ^
    b.java:6: name clash: doit(java.util.Vector<java.lang.Integer>) and doit(java.util.Vector<java.lang.String>) have the same erasure
    public static void doit(Vector <Integer> what) {
    ^
    2 errors

    So it is not possible to have both methods in a class. Let us do instanceof instead.
    import java.util.*;
    public class b {
            public static void doit(Vector what) {
                            if (what instanceof Vector<String>) {
                                   what.add(new String(""));
                            else if (what instanceof Vector<Integer>) {
                                   what.add(new Integer(0));
    }javac -target 1.5 -source 1.5 b.java
    b.java:4: illegal generic type for instanceof
    if (what instanceof Vector<String>) {
    ^
    b.java:7: illegal generic type for instanceof
    else if (what instanceof Vector<Integer>) {

  • Problem to get glyph vector's shape

    Some Chinese fonts(TrueType) were created from embeded font files in a PDF file and glyph vectors were
    successfully generated. But when calling the glyph vector's getOutline() to get the shape of the vectors,
    the program crashed and got the following log. What's wrong with it?
    hs_err_pid3440.log
    ====================================================================
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d2d3bf9, pid=3440, tid=2680
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86)
    # Problematic frame:
    # C [fontmanager.dll+0x13bf9]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    T H R E A D
    Current thread (0x0afe2400): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2680, stack(0x0b790000,0x0b7e0000)]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000010
    Registers:
    EAX=0x00000000, EBX=0x00000000, ECX=0x0000000b, EDX=0x0af12a1c
    ESP=0x0b7dee98, EBP=0x0b7deeb0, ESI=0x0b0038a0, EDI=0x0b0038a0
    EIP=0x6d2d3bf9, EFLAGS=0x00010246
    Top of Stack: (sp=0x0b7dee98)
    0x0b7dee98: 00000000 0b0038a0 636d6170 0b0038a0
    0x0b7deea8: 6d2d3d33 0b27e728 0b7def20 6d2c3cec
    0x0b7deeb8: 0b0038a0 00000062 00000000 0b7def1c
    0x0b7deec8: 0b0038a0 0b27e728 00000001 002e04e0
    0x0b7deed8: 0b27eca0 0b266ba8 0000000d 002e04e0
    0x0b7deee8: 0af13958 002e0178 00000000 00000000
    0x0b7deef8: 0b5b0000 0af18048 00000000 0b5b0000
    0x0b7def08: 0af17000 00000628 002e0178 00000000
    Instructions: (pc=0x6d2d3bf9)
    0x6d2d3be9: 75 51 57 68 70 61 6d 63 56 e8 6f fd ff ff 6a 00
    0x6d2d3bf9: ff 70 10 ff 70 0c ff b6 88 00 00 00 ff b6 90 00
    Stack: [0x0b790000,0x0b7e0000], sp=0x0b7dee98, free space=315k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [fontmanager.dll+0x13bf9]
    C [fontmanager.dll+0x3cec]
    C [fontmanager.dll+0x3da2]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    J java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    J java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::StubRoutines (1)
    P R O C E S S
    Java Threads: ( => current thread )
    0x0b07b400 JavaThread "TimerQueue" daemon [_thread_blocked, id=4040, stack(0x0cce0000,0x0cd30000)]
    0x002e5c00 JavaThread "DestroyJavaVM" [_thread_blocked, id=2628, stack(0x008c0000,0x00910000)]
    =>0x0afe2400 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2680, stack(0x0b790000,0x0b7e0000)]
    0x0afe4400 JavaThread "AWT-Shutdown" [_thread_blocked, id=2384, stack(0x0b710000,0x0b760000)]
    0x0b12c800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3484, stack(0x0b600000,0x0b650000)]
    0x0b12a400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2804, stack(0x0b560000,0x0b5b0000)]
    0x0ab14000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1068, stack(0x0ae60000,0x0aeb0000)]
    0x0ab08c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4000, stack(0x0ae10000,0x0ae60000)]
    0x0aafd800 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=2800, stack(0x0adc0000,0x0ae10000)]
    0x0aafc400 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=2620, stack(0x0ad70000,0x0adc0000)]
    0x0aafa400 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=2380, stack(0x0ad20000,0x0ad70000)]
    0x0aaef800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2796, stack(0x0aca0000,0x0acf0000)]
    0x0aaea800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=560, stack(0x0ac50000,0x0aca0000)]
    0x0aad9000 JavaThread "Finalizer" daemon [_thread_blocked, id=2604, stack(0x0ac00000,0x0ac50000)]
    0x0aad4c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2280, stack(0x0abb0000,0x0ac00000)]
    Other Threads:
    0x0aad1c00 VMThread [stack: 0x0ab60000,0x0abb0000] [id=1340]
    0x0ab27400 WatcherThread [stack: 0x0aeb0000,0x0af00000] [id=2644]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 1344K, used 136K [0x029c0000, 0x02b30000, 0x02ea0000)
    eden space 1216K, 11% used [0x029c0000, 0x029e2010, 0x02af0000)
    from space 128K, 0% used [0x02af0000, 0x02af0000, 0x02b10000)
    to space 128K, 0% used [0x02b10000, 0x02b10000, 0x02b30000)
    tenured generation total 17020K, used 12841K [0x02ea0000, 0x03f3f000, 0x069c0000)
    the space 17020K, 75% used [0x02ea0000, 0x03b2a740, 0x03b2a800, 0x03f3f000)
    compacting perm gen total 17664K, used 17494K [0x069c0000, 0x07b00000, 0x0a9c0000)
    the space 17664K, 99% used [0x069c0000, 0x07ad5be0, 0x07ad5c00, 0x07b00000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00423000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\java.exe
    0x77f50000 - 0x77ff7000 C:\WINDOWS\System32\ntdll.dll
    0x77e40000 - 0x77f4e000 C:\WINDOWS\system32\kernel32.dll
    0x77da0000 - 0x77e3b000 C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x78086000 C:\WINDOWS\system32\RPCRT4.dll
    0x7c340000 - 0x7c396000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\msvcr71.dll
    0x6d870000 - 0x6dac0000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\client\jvm.dll
    0x77d10000 - 0x77d9c000 C:\WINDOWS\system32\USER32.dll
    0x77c40000 - 0x77c80000 C:\WINDOWS\system32\GDI32.dll
    0x76b10000 - 0x76b39000 C:\WINDOWS\System32\WINMM.dll
    0x76300000 - 0x7631c000 C:\WINDOWS\System32\IMM32.DLL
    0x62c20000 - 0x62c28000 C:\WINDOWS\System32\LPK.DLL
    0x72f10000 - 0x72f6a000 C:\WINDOWS\System32\USP10.dll
    0x6d320000 - 0x6d328000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\hpi.dll
    0x76bc0000 - 0x76bcb000 C:\WINDOWS\System32\PSAPI.DLL
    0x6d410000 - 0x6d439000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\jdwp.dll
    0x6d770000 - 0x6d776000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\npt.dll
    0x6d820000 - 0x6d82c000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\verify.dll
    0x6d3c0000 - 0x6d3df000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\java.dll
    0x6d860000 - 0x6d86f000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\zip.dll
    0x6d290000 - 0x6d297000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\dt_socket.dll
    0x71a20000 - 0x71a35000 C:\WINDOWS\System32\WS2_32.dll
    0x77be0000 - 0x77c33000 C:\WINDOWS\system32\msvcrt.dll
    0x71a10000 - 0x71a18000 C:\WINDOWS\System32\WS2HELP.dll
    0x719c0000 - 0x719fb000 C:\WINDOWS\System32\mswsock.dll
    0x76ef0000 - 0x76f15000 C:\WINDOWS\System32\DNSAPI.dll
    0x76d30000 - 0x76d46000 C:\WINDOWS\System32\iphlpapi.dll
    0x76f80000 - 0x76f87000 C:\WINDOWS\System32\winrnr.dll
    0x76f30000 - 0x76f5c000 C:\WINDOWS\system32\WLDAP32.dll
    0x76f90000 - 0x76f95000 C:\WINDOWS\System32\rasadhlp.dll
    0x71a00000 - 0x71a08000 C:\WINDOWS\System32\wshtcpip.dll
    0x6d0b0000 - 0x6d1de000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\awt.dll
    0x72f70000 - 0x72f93000 C:\WINDOWS\System32\WINSPOOL.DRV
    0x7cab0000 - 0x7cbd1000 C:\WINDOWS\system32\ole32.dll
    0x5adc0000 - 0x5adf3000 C:\WINDOWS\System32\uxtheme.dll
    0x51000000 - 0x5104d000 C:\WINDOWS\System32\ddraw.dll
    0x73b30000 - 0x73b36000 C:\WINDOWS\System32\DCIMAN32.dll
    0x74680000 - 0x746c4000 C:\WINDOWS\System32\MSCTF.dll
    0x0b6b0000 - 0x0b6db000 C:\WINDOWS\System32\msctfime.ime
    0x6d460000 - 0x6d484000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\jpeg.dll
    0x6d620000 - 0x6d633000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\net.dll
    0x0ffd0000 - 0x0fff3000 C:\WINDOWS\System32\rsaenh.dll
    0x759d0000 - 0x75a70000 C:\WINDOWS\system32\USERENV.dll
    0x71ba0000 - 0x71bee000 C:\WINDOWS\System32\netapi32.dll
    0x6d2c0000 - 0x6d313000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\fontmanager.dll
    0x773a0000 - 0x77b92000 C:\WINDOWS\system32\shell32.dll
    0x63180000 - 0x631e5000 C:\WINDOWS\system32\SHLWAPI.dll
    0x78090000 - 0x78174000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
    0x77310000 - 0x7739b000 C:\WINDOWS\system32\comctl32.dll
    0x6d640000 - 0x6d649000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\nio.dll
    0x74650000 - 0x74676000 C:\WINDOWS\System32\Msimtf.dll
    0x10000000 - 0x1001f000 C:\Program Files\Apoint\Apoint.DLL
    0x76320000 - 0x76363000 C:\WINDOWS\system32\comdlg32.dll
    0x77bd0000 - 0x77bd7000 C:\WINDOWS\system32\VERSION.dll
    0x0bb60000 - 0x0bb70000 C:\WINDOWS\System32\Vxdif.dll
    0x6d200000 - 0x6d22f000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\cmm.dll
    0x6d230000 - 0x6d253000 C:\Program Files\Java\jdk1.6.0_06\jre\bin\dcpr.dll
    VM Arguments:
    jvm_args: -Xdebug -Xrunjdwp:transport=dt_socket,address=localhost:1656
    java_command: client.Manager
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;;
    USERNAME=qing
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel
    S Y S T E M
    OS: Windows XP Build 2600 Service Pack 1
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 9 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 785392k(81692k free), swap 1921396k(1080464k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1
    time: Tue Jun 17 18:17:12 2008
    elapsed time: 202 seconds

    Hi,
    I solved my problem.
    In my rule 's container, i had declared my subtype (ZBUS0050) like in my task 's container and in my workflow 's container.
    ZGCA0050
    |----
    Attribute 1
    |----
    Attribute 2
    |........................
    But my FM couldn't access to the attributes...
    So, i just set Attribute 1(FundsCenter)  in my rule's container without subtype reference, and it's good.
    Thanks for your help.
    Regards.

  • NullPointerException in vector get method call.

    Hi guys.
    I've got this slab of code that is realy getting on my titties.
    I can see that everything is being passed as it should be, but when i try to append the vector entries to StringBuffer array elements, i get this little darling error. Please, if you have the time, then give me some advice on the topic.
            int j = 0;
            for (int i=0; i<mTableNames.size(); i++) {
                int k               = 0;
                String sTableName   = mTableNames.get(i).toString();
                System.out.println(sTableName); //DB
                StringBuffer sElements[] = new StringBuffer[mElementNames.size()];
                System.out.println(""+mElementNames.size()); //DB
                String sPreName     = sArgOne + i;
                System.out.println(sPreName);  //DB
                String sFirstElement= null;
                while (mElementNames.get(j).toString().substring(0,mElementNames.get(j).toString().indexOf(" ")).equals(Integer.toString(i))) {
                    System.out.print(mElementNames.get(j).toString());  //DB
                    sElements[k++].append(mElementNames.get(j));
                    if (sFirstElement.equals(null))
                        sFirstElement = sElements[0].toString();
                    j++;
    //continues.. but not relevant.

    // you forgot
    sElements[k] = new StringBuffer();What you created is an array to hold "mElementNames.size()" number of string buffers.

Maybe you are looking for

  • Can I set up personal folders in Mail?

    Can I set up personal folders in mail like I do in yahoo mail or outlook? I have multiple clients at a time and would like to set up folders for each one. I find it irritating to scroll through all the emails looking for what I need. Thanks in advanc

  • How to create business functions and expose as webservice?

    Hi...   How to use Java to create business functions and expose that as a webservice.

  • Urgent- using adobe flash player 10 to view files from a URL (in javascript)

    Hello I am trying to cereate a video search engine that retrieves and then plays videos. I have decided to use adobe flash player to play the given files, howver with no luck. I am successful at actually hosting the player in my html code, however, w

  • Mail rules iPad

    Can you set up mail rules in Mail.app on the iPad like you can on a mac ie. mark as junk or spam, block email addresses.  Tried looking in the support section but could not find anything.

  • Help  :   How can i call oracle stored procedure in PHP

    i have following stored procedure and i want to call it in PHP. pls give me syntax how can i call it. Create or Replace Procedure Insert_profilebasicdetail p_isubprofileid IN NUMBER, p_Copyisubprofileid IN NUMBER, p_itranno IN NUMBER, As v_IncKeyID N