Newbie question. help vector add

hi group
i have this problem:
valoresindex.add(1, val);
for (int i=2; i<numColumns; i++) {
valoresindex.add(i,rs.getString(i));
System.out.println((String)valoresindex.get(i));
the error it is:
Error al leer archivojava.lang.ArrayIndexOutOfBoundsException: 1 > 0
help please.

You are trying to add an item to the '1' index, but there are no items in the Vector yet. If you want to add items to a Vector one after the other, just use add (Object o). There is no need to specify an index.
Secondly, the items in a Vector start at the '0' index, not '1'.

Similar Messages

  • PCS3 to PCS4 Mac Newbie Question/Help

    Hello. I recently bought my first Mac (a MacBook) and I'm wanting to download Photoshop CS3 Extended, but now there's the new PCS4. On my old computer which is a Dell, I had PCS3 Extended and I have the serial number. My question is if I download the trial version of PCS4 Extended on my Mac, can I still use the same serial number to activate it or will I have to buy PCS4 Extended for Mac? I'm somewhat confused, but I appreciate any help.

    No, you cannot use a Windows license on a Mac.
    You need a new license for your Mac.
    If you are not going to keep the Windows version, you can contact Customer Support and ask for a cross-grade.  It involves a letter of destruction of the Windows version and paying a nominal fee (under $10) for the cost and shipping of the new media. Actually, since you're coming from CS3 you will be charged the Upgrade price ($200 or so).
    If you want to keep on using a Windows version, then you must buy a new version for the Mac at full price.
    Message was edited by: Ramón G Castañeda

  • WD 'My Book' Newbie Questions (help?)

    Hi folks,
    This is my first post on here and I only recentky purchased my WD My Book 2TB.
    So a couple of questions for anyone who might be kind enough to assist here:
    Is it possible to UPLOAD your own AVATAR?  I could not see the option to do this when I created my profile earlier.
    Secondly, I am getting the following ERROR MESSAGE when I try to UPDATE my WD My Book:
    Many thanks in advance guys . . .
    Best,
    Paul David Seaman

    Welcome to the Community.
    Only established and long-time board members who have earned a positive reputation by helping a lot and earning themselves Kudo stars and accepted solutions are able to change their avatars.
    With regard to your second inquiry, the update is for WD Drive Utilities in question, not the WD My Book itself. You can manually update your device and the application in the following links:
    http://support.wdc.com/product/download.asp?groupid=132&sid=171&lang=en
    http://www.wdc.com/wdproducts/wdsmartwareupdate/firmware.asp?id=wdfMyBook_FJK&os=WIN

  • Newbie questions, help needed, please

    I am pretty new to Oracle Application Express. I have two problems when I try to create Page with type of "Report and Form". I hope you guys could help me out:
    (1) When I create Pages with the type of "Report and Form", the first column, primary key does not show up in the report page. Why?
    (2) When the table has two primary keys, I have problem when I click the button to go to form page from report page to update the record. It always show error said "Fetch returns more than one rows". How can I tell the application that I have two primary keys?
    Thanks,
    Lee

    Put in "HTML Expression [Insert column value]" part of field which will be a link:
    a href = f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::NO::PX_PK1,PX_PK2:'+'#PK1#'+','+'#PK2#')">Edit< /aput in previous sentence "<" in front and ">" on the end and remove blank before "/a" - otherwise you'll not see the content but real link!!!!!
    where :
    <li>"&APP_ID." is the page in which you want to open and start edit</li>
    <li>"PX_PK1,PX_PK2" are items on that page (probably hidden) tha will represent primary key</li>
    <li>"#PK1#" and "#PK2#" are primary key values on current page (from table grid represent with query "SELECT PK1,PK2,...from MyTable"</li>
    P.S.
    I read somewhere that life with Appex should be much easy when people should use PK base on one coulmn (sequence).
    To ensure PK on those fields create UNIQUE index on those two fields and in table define NOT NULL on those two columns.
    When you get expireienced you'll know the benefit of this advise

  • Newbie question - how to add a computer not on your network?

    We purchased the ARD 3.0 for our networked Macs and so far it's been working fine. But we also have a remote user we'd like to add. This person is using a cable modem to connect to our VPN now but is moving and may have to use dial-up for a while.
    So, how do I add them to this list? Get their IP address? What if the IP address changes?
    Thanks

    "So, how do I add them to this list?"
    "File" menu --> Add by address.
    But you should forget about supporting this user if they have a dialup connection, as it is far to slow to do 95% of ARDs tasks...especially control and observe.
    "What if the IP address changes?"
    Set up the computer with a dynamic hostname at dyndns.com

  • Vector file - newb question

    After reading the user manual, I still don't understand how this works. Let's say I use Adobe Illustrator to draw a picture of sayyyyyyyy.......a kitty. Is there any possible way to take my kitty picture, export it out of illustrator as a vector file and import it into Motion so that motion can scale that image more or less indefinitely and maintain the crystal clear image no matter what the size. Like, can I zoom in on kitty's eyeball in Motion and still have the image look good?
    Sorry for the newbie question but I just have not worked with vector images much. Thanks for any help.

    The answer is yes. All you do is save the file as .ai or .pdf, bring it into Motion, and turn off fixed resolution for the underlying media (import the file to the Canvas, select it in the Media tab of the Project Pane, select the Media tab of the Inspector, and uncheck Fixed Resolution). You can now scale it as large as you wish with no loss of resolution.

  • Newbie audio question--help please...

    I recently recorded/captured video from Canon HV30 and unfortunately found that only Left audio channel was recorded..Right channel in non-existant. How do I duplicate the audio track from Left to Right so that both tracks are played in sync?
    I appreciate your help on this newbie question!

    When the left channel is filled you use the Fill Left effect
    The Fill Left effect duplicates the left channel information of the audio clip and places it in the right channel, discarding the original clip’s right channel information.
    Instead of putting the effect on each clip use the Audio Mixer.

  • SG200-08 Newbie Questions

    I have recently purchased the SG200-08 Smart Switch, but I have a few "newbie questions" about it as I get started using it.
    The on board firmware shows 1.0.1.0. Is that the latest firmware to the switch?
    Do I need to enable IPv6 Auto Configuration and DCHPv6 in my switch settings to be ready for IPv6 as my ISP rolls it out down the road?
    How do I go about changing the switch's username? I was able to easily change the password, but having issues getting the username to change.
    Do I need to do anything about the LLDP-MED settings? What exactly is that?
    How do I confugure the System Time Settings so the switch functions in my time zone (USA Central Time)?
    Thanks a bunch for any assistance!

    Hi Nathan,
    My guess is that NAT is already on - you have one public IP address from your ISP. Your router will use NAT (network address translation) to allow multiple clients (and either dynamically assign them private IPs via dhcp or you set them statically) to connect to the internet using the one public IP. It also sounds like your RV042G is assigning both ipv6 and ipv4 addresses, and theres nothing wrong with that. Unless you have specific information re: ipv6 from your isp, however, I would suggest not worrying about it until you hear from them. Are your macs connected to the router via the SG200 switch? If so, it looks like its passing ipv6 just fine.  UPnP is something completely different - thats with opening ports like you mentioned - its a way that your devices can communicate with the router to automatically enable the proper port forwarding for the device/application.
    Regarding the username, create a new user account. I don't think you can edit the cisco user, but try deleting it after creating and testing a new user account..
    I'm not familiar with the Polycom system, but I would leave the settings as default unless you are using true IP phones (rather than an ATA adapter). From a quick google of the polycom device, I don't think you will gain anything from LLDP/CDP as the handsets use regular cordless phone freqs. With my setup, we use cisco IP desk phones and cordless wifi phones, CDP makes life easy as the cisco access point, wifi phones, cisco switch, and cisco desk phones (connected via ethernet) see each other and know what they're dealing with automatically.
    I don't see the SNTP setting for unicast / broadcast that you're looking at. For the switch to get the time from a sntp server, under administration -> time -> sntp settings, add a server, and then back on time-> system time, enable sntp server as the main clock source. What are you using as your sntp source? Do you have an internal sntp server? You don't need to enable dhcp on the sntp server.
    May I also point you to the two manuals, I think they may be helpful:  RV042G  & SG200
    Hope thats helpful.
    Best,
    David
    Please rate any helpful posts.

  • RV042G Newbie Questions

    I have the new Cisco RV042G router, and I have just a few "newbie questions" about it as I get started using it:
    The firmware on board is v4.2.1.02. Since this is a brand new router, is that the latest firmware?
    Under Time>DST Dates, what do I need to configure in there? I'm in the US, Central Time.
    I want to use Back to My Mac from iCloud (formerly MobileMe). Under the iCloud preferances pane on my Mac, it's saying: "Back to My Mac may be slow because NAT Port Mapping (NAT-PMP) or Universal Plug and Play (UPnP) is turned off on your router. Turn on NAT-PMP or UPnP." What should I enable on my router in order for Back to My Mac to better function?
    I'm using a VOIP phone on the network (only 1 device with a couple phones). Are there any QoS settings I should tweak for better performance of my VOIP phone? I did change the port the VOIP phone is connected to to High (instead of Normal) under Port Settings. Will this help boost performance?
    I also want to setup a VLAN on a port for guests to access the Internet, but not have any access to my personal network. Here's the steps I've done so far. Is this sufficient or is there anything else I need to do?
    I went to Setup>Network, enabled Multiple Subnets.
    I added 192.168.254.1/255.255.255.0 as a subnet.
    I went to Port Management>Port Setup, set the port I wanted to use (Port 4) to VLAN2.
    I went to Firewall>Access Rules, added two rules:
    Deny All Traffic from 192.168.254.0 to 192.168.1.0.
    Deny All Traffic from 192.168.1.0 to 192.168.1.0.
    Thanks everyone for your help!

    Easy.  just goto the DHCP field and fill in the Static DHCP fields.
    Assigning static IP addresses by adding devices from a list
    Click Show unknown MAC addresses. The IP & MAC binding list appears. If the web browser displays a message about the pop-up window, allow the blocked content.
    The devices are listed by the IP address and the MAC address. (Typically the MAC address appears on a label on the bottom panel or back panel of a device.) If needed, you can clickRefresh to update the data.To select a device, first enter a descriptive Name. Then check the Enable box. Alternatively, select all devices in the list by clicking the check box at the top of the Enable column.
    Click OK to add the devices to the Static IP list, or click Close to close the pop-up window without adding the selected devices. After you click OK, a message appears. The message includes important information. Read it before clicking OK. Keep the browser open and wait until the selected MAC addresses appear in the Static IP list.
    Modify or remove list entries, as needed:
    To modify the settings: Click a device in the list. The information appears in the text fields. Make the changes, and then click Update. If you do not need to make changes, you can click Add New to de-select the entry and clear the text fields.
    To delete an entry from the list: Click the entry that you want to delete, and then clickDelete. To select a block of entries, click the first entry, hold down the Shift key, and then click the final entry in the block. To select individual entries, press the Ctrl key while clicking each entry. To de-select an entry, press the Ctrl key while clicking the entry.
    Assigning static IP addresses by entering devices manuallyIn the Static IP Address section, add or edit entries as needed. Remember that the settings are not saved until you click the Save button.
    To add a new device to the list: Enter the following information, and then click Add to list.
    Static IP Address: Enter the static IP address. You can enter 0.0.0.0 if you want the router to assign a static IP address to the device.
    MAC Address: Enter the MAC address of the device. (Typically the MAC address appears on a label on the bottom panel or the back panel of a device.) Enter the address without punctuation.
    Name: Enter a descriptive name for the device.
    Enable: Check this box to assign the static IP address to this device.
    To add another new entry: Enter the information, and then click Add to list.
    To modify the settings: Click a device in the list. The information appears in the text fields. Make the changes, and then click Update. If you do not need to make changes, you can clickAdd New to de-select the entry and clear the text fields.
    To delete an entry from the list: Click the entry that you want to delete, and then click Delete. To select a block of entries, click the first entry, hold down the Shift key, and then click the final entry in the block. To select individual entries, press the Ctrl key while clicking each entry. To de-select an entry, press the Ctrl key while clicking the entry.
    Using the Static IP List to Block Devices
    You can use the Static IP list to control access to your network. You can block access by devices that are not on the list or do not have the correct IP address.
    Add devices to the Static IP list as described in Static IP Addresses.
    Enable or disable the following features:
    Block MAC address on the list with wrong IP address: Check this box to prevent a computer from accessing your network if its IP address has been changed. For example, if you previously assigned a static IP address of 192.168.1.100 and someone configures the device to use 192.168.149, the device will not be allowed to connect to your network. This feature discourages users from changing their device IP addresses without your permission. Uncheck the box to allow access regardless of the current IP address assignment.
    Block MAC address not on the list: Check this box to block access from devices that are not included in the Static IP list. This feature prevents unknown devices from accessing your network. Uncheck the box to allow access by any connected device that is configured with an IP address in the correct range.
    Hope that helps.
    Regards Simon
    http://www.linksysinfo.org

  • Total Newbie Question ... Sorry :-(

    I know it's a windows thing, and I am now converted to Mac but I gotta know this because it's doing my head in. It's a complete stupid green gilled newbie question.
    When installing new programs on a Mac can you create shortcuts to the programs on the Dock? I did what I THOUGHT it would be, i.e I made an Alias and stuck it in the dock, but on rebooting my Mac later on, in place of the shortcuts where 3 question marks which when clicked on did absolutely nothing???
    Help?
    A.L.I
    Windows XP Pro Desktop, Macbook Pro, 60GB iPod Video   Mac OS X (10.4.5)   OS X

    You aren't installing something from a dmg file are you? The dmg is a disk image – kind of a virtual CD. So when you double click the dmg and then get the little disk/hardrive/custom icon on your desktop that is the same as if you had mounted a CD. You then need to drag the application off of that "CD" into your application folder. Then it is truly installed.
    You can then "eject" the icon your your desktop. This is what happens when you shutdown and without remounting the image your dock shortcut can't find the original.
    Just a thought.

  • Newbie question - XML version, searching by artist

    Probably quite a common problems - apologies for newbie questions.
    I've changed the URL of my MP3s in my XML to a new location and refreshed my feed. Is there a way of seeing what version of the XML iTunes is using? (it takes around 24 housr to refresh, right?)
    Also, when I'm searching for my podcast by author it's not coming up (<channel><itunes:author>) - is there a reason for this or a way to get it to show up when people search for the artist, other than doubling it in the title? (This works by the way, but I'd prefer not to!)
    Thanks.

    you can do it in just one loop, going through all the image
    tags in index_content and for each tag fill the values of all four
    arrays
    for (i...) {
    get the appropriate child of index_content
    first_array[ i ] = value of first tag
    second_array[ i ] = value of second tag
    no need for multiple loops.
    flash has functionality for xml files, but it helps to write
    a little wrapper around it, to simplify programming, especially if
    you work with xml a lot.. I wrote my for work, so I can't show it
    to you, but it's not very complicated to do

  • Newbie need help in compiling sample code

    Hi,
    I know this is a very newbie question.
    Could someone please help me out on how to compile the sample code?
    [root@localhost getting_started]# gcc -I/usr/src/db-4.7.25.NC/build_unix gettingstarted_common.c example_database_read.c
    /tmp/ccMnYv8b.o: In function `open_database':
    gettingstarted_common.c:(.text+0xeb): undefined reference to `db_create'
    gettingstarted_common.c:(.text+0xfc): undefined reference to `db_strerror'
    /tmp/ccMnYv8b.o: In function `databases_close':
    gettingstarted_common.c:(.text+0x513): undefined reference to `db_strerror'
    gettingstarted_common.c:(.text+0x565): undefined reference to `db_strerror'
    gettingstarted_common.c:(.text+0x5ba): undefined reference to `db_strerror'
    collect2: ld returned 1 exit status
    Thanks alot.
    JB

    Hi,
    I tried:
    [root@localhost getting_started]# gcc -I/usr/src/db-4.7.25.NC/build_unix -L/usr/src/db-4.7.25.NC/build_unix -ldb gettingstarted_common.c example_database_read.c
    /tmp/ccaHcwAy.o: In function `open_database':
    gettingstarted_common.c:(.text+0xeb): undefined reference to `db_create'
    gettingstarted_common.c:(.text+0xfc): undefined reference to `db_strerror'
    /tmp/ccaHcwAy.o: In function `databases_close':
    gettingstarted_common.c:(.text+0x513): undefined reference to `db_strerror'
    gettingstarted_common.c:(.text+0x565): undefined reference to `db_strerror'
    gettingstarted_common.c:(.text+0x5ba): undefined reference to `db_strerror'
    collect2: ld returned 1 exit status
    But it still does not work.
    Any idea?
    Sorry for the newbie question.
    JB

  • Lync 2010 - Browser Helper & Lync Add-on

    We are rolling out Lync 2010 via SCCM.  One of the things we've noticed is that Lync automatically installs two brower add-ons: Lync 2010 - Browser Helper & Lync Add-on.  Is there any way
    not to install these?  or at least install them with the default of being disabled?
    Otherwise, the users get prompted that "The Lync browser helper is ready for use" and asks if they want to enable it. 
    Thanks

    As the further test, EnableBHOSmartTags didn’t work.
    Here is the right registry key. Hope it helpful for others view this thread.
    Check the following link.
    http://smulpuru.wordpress.com/2012/08/07/disable-particular-ie-add-on-via-registry/
    Find out the class ID of Lync add-on.
    Then find the class ID in registry key.
    Open the path [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{31D09BA0-12F5-4CCE-BE8A-2923E76605DA}. It is for Lync add-on.
    There is no Flags registry key, you should create it manually.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • QUESTION: HOW TO ADD OWN SUBJECT IN CCMS

    Hi, All
    QUESTION: HOW TO ADD OWN SUBJECT IN CCMS
    In NW2004s SP20, kernal 4.6C WebAs 620
    I add paramater in RZ21, Method: CCMS_OnAlert_Eamil , Paramater: SUBJECT_ALERT value CCMS Alert from XDV
    But nothing changed when I received e mail it same look like CCMS alerts XDV 20080528 104346
    How can I do that please advicse
    Thanks

    HI,
    Refer
    Blog to implement the email notification:
    /people/federico.babelis2/blog/2006/05/03/solution-manager-cen-and-alerting-configuration-guide-for-dummies
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/c193d07a7343ff9a81db1bdc97b2f7/frameset.htm
    Monitoring with Solution Manager
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/40f83ee0e66856e10000000a114084/frameset.htm
    Configuring the Alert monitoring of Solution Manager 4.0
    Thanks
    Swarup
    Edited by: Swarup Sawant on May 30, 2008 8:07 PM

  • Newbie question: ""dynamic"" casting

    Hello all,
    <br>
    I have a quite newbie question. I have this class hierarcy:
    <br>
    A
    |_A1
    |_A2
    |_A3
    |_A4
    |_A5
    |_.....
    <br>
    in some part of my code I have this:
    <br><br>
    if (object1 instanceof A){
    if (object1 instanceof A1)      {A1   object2 = (A1) e;}
              if (object1 instanceof A2)      {A2   object2 = (A2) e;}
              if (object1 instanceof A3)      {A3   object2 = (A3) e;}
              if (object1 instanceof A4)      {A4   object2 = (A4) e;}
              if (object1 instanceof A5)      {A5   object2 = (A5) e;}
    object2.callMethod();
    <br><br>
    Is there any way to do this type of casting just in one line? I mean, I just want to cast object1 to the class it is instanceof. If it is instance of A1, I want to be casted to A1, if it is A2 to A2, etc...
    <br><br>
    Thanks you in advance.

    kamikaze04 wrote:
    In fact I know what object1 is on execution time,Which doesn't help your compiler at all, when it's task to link and verify method calls.
    because the code posted at the top is working well, i just want to avoid repeating that if's for all the new classes Ax I will create. Big "code smell" here.
    In other words if i had from A1 to A200 i dont want to have 200 if's to cast it to the class it is and then execute it's method.You could call the method "doMagic()" and make it abstract in A. Then you can implement it in all Ax classes and would never have to worry about casting in the first place, because A.doMagic() would automagically do the right thing. Polymorphism.

Maybe you are looking for