Error then copy all lines in an ArrayList... help please

Hi all

IAM doing a little POC on the module of editing as webservices... Application iam stuck when copying the whereclause results in an arraylist... someone please help... below is the code
public class matrixVOImpl extends ViewObjectImpl {
    /**This is the default constructor (do not remove)
     */
    ArrayList al=new ArrayList();
    public matrixVOImpl() {
    }
public  ArrayList getCompLevels(String role){
    int x=0;
    int pos=0;
    setWhereClause("matrixEO.ROLE='"+role+"'");
    executeQuery();
    if (!hasNext())
    {
            throw new JboException("unable to find role " +role);
    }
    long i=getEstimatedRowCount();
    
    for(x=0;x<=i-1;x++){
    Row rw=getRowAtRangeIndex(x);************ //here lies the problem for me********************
   

String comp= rw.getAttribute("Competency").toString();
    String lr=rw.getAttribute("LevelRequired").toString();
   
   al.add(0,comp);
  pos=pos+1;
   al.add(1,lr);
  pos=pos+1;
    }
    return al;
    

}

}





problem is at  Row rw=getRowAtRangeIndex(x); for loop is not workin here...when i manually put zero,first(),last() in place of x works fine i get the first row ..but if i put 1,2...10 or any number i get a null pointer exception..

how to get all the rows ...wch can b copied to an arraylist...can someone help pllzz.
Published by: Oraclerr on April 10, 2009 12:31

To iterate over a set of rows that you usually use

while(hasNext())
{
  Row row = next();
  // Copy your attributes
}

Timo

Tags: Java

Similar Questions

  • I am trying to download my trial version of photoshop. It says installation failed then downloads to 83%. When I click on start, it starts at 42% then fails again, again and again. Help, please

    I am trying to download my trial version of photoshop. It says installation failed then downloads to 83%. When I click on start, it starts at 42% then fails again, again and again. Help, please

    Hi Sherry,

    You can follow the thread: creative cloud hangs at 42% , where this issue is already discussed and resolved.

    You can also follow article: error "Unable to install" received when installing Adobe Creative Cloud desktop application that will help you get this fixed number.

    Let us know if it works or not.

    Thank you

    Yann Arora

  • In Windows 7 we select several lines of data that are in a different location on the page (no continuous lines) through the mouse or keyboard and also can we copy all lines of these different at the same time to paste somewhere else in one fell swoop.

    > Now I'm unlable to select more number of lines that are not a sequence in a single page to copy the data rows and paste somewhere in one fell swoop.
    > Is this concept implemented in Windows 7. ?
    > Is there a provision (method) to select several lines that are not continuous across the keyboard or the mouse in windows 7?

    Byagaris,
    It depends on what program you are trying to copy and paste into.  You are able to select continuous, multiple lines, by using the Ctrl Key and clicking, or by highlighting the desired line.  For example, I held the Ctrl key and then, using the mouse, has highlighted several different phrases in the various paragraphs, and could then copy them.  This feature is available for several versions of windows.
    If you are not able to perform this action then post what happens when you try and what program you try it.
    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • After inserting a mock-up (LOGO PNG) in my shine card it becomes transparent, only vague lines are visible. Help, please!

    Im working on a film for the introduction of logo in After effects. Unfortunetely when I insert my composition (PNG or JPEG) in my card smash it becomes transparent. This is why the logo can not be seen. Only vague lines can be seen. Is that a graphics card problem or can it be resolved?


    Help, please!

    Thank you very much for the quick responses. I found the problem myself. I did not put my opinion shatter on "renders"!

  • Added Muse cannot open my file more and says that he has encountered an error and will now stop with the "Limits of big kid very detected" message. I just added all the pages of my phone. Now, I can not at all in the site. Help, please!

    Screen Shot 2015-02-19 at 10.34.35 PM.png

    Hello

    Could you please share your with us .muse file to study? Please send it to [email protected]. If your file is larger than 20 MB, you can use something like Adobe SendNow SendThisFile or Dropbox. Don't forget to mention the link to this forum thread in your email so that we can identify the file.

  • My MacBook Pro is running extremely slow all of a sudden. Help, please!

    My MacBook Pro is in running extremely slow all of a sudden, that way for several days now and I can't understand what is the cause.

    Details: MacBook Pro (13-inch, late 2011)

    Processor - 2.4 GHz Intel Core i5

    Memory - 4 GB 1333 MHz DDR 3

    Storage - 500 GB SATA (264.44 498.88 free GB) drive

    OSX - El Capitan 10.11.5 version

    I tried the simple things such as checking for indexing spotlight, my home screen of the size of the compensation, first aid running in disk utility, etc.. But had no results. Any suggestions would be very appreciated!

    Back up all data immediately, as the internal drive may be failing.

    When you see a beachball cursor or the slowness is particularly bad, note the exact time: hour, minute, second.

    These must be run as administrator. If you have only one user account, you are the administrator.

    Run the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Each message in the journal begins with the date and time when it was entered. Highlight date back to the time you noted above.

    Select the messages entered since then until the end of the episode, or until they begin to repeat, whichever comes first.

    Copy messages to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost all this is useless to solve any particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name, may appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • Could not be resolved "error 16 creation of file... "Help, please

    Hello

    I renamed a folder parent on my hard drive that I have a multitrack and associated files. Since then, when I go to record the session, I wonder if I want to copy multimedia files that are found outside Session about her record. I hit Yes then I get "Error 16 to create the destination file (path) can be complete or is no longer available"
    I renamed the folder relative to the name it had before the start of the error, but does not. I can't resolve '16 create file error'.

    Any help is appreciated!

    Thank you very much

    I think u may have nailed mate & if so it is an obvious mistake on my part!

    Will find tonight when I can access the computer. Thanks a lot for your comments / effort & answer

  • Solitaire: error "your drive could not be partitioned. Help, please

    Hey, solitaire

    After recovering disk space, I tried to run BCA. I used a 64 bit Win10 .iso downloaded from Microsoft. BCA created the installation disk, downloaded media files and allowed me to choose my size of the partition (same split) on my merger of 3 TB drive. Then I got the error.

    I have reset the SMC

    Rest PRAM

    None of the external devices are connected.

    I repaired the drive in disk utility, and restarted in single-user mode and made a repair of the AF - / sbin/fsck.

    Also, I started in safe mode to try BCA from there, but he couldn't find the Win installation disc, even if disk utility could find it.

    Here is my list of current diskutil:

    Cs diskutil list

    This is my current research on the problem brought me. I remember seeing a bunch of odd discs added to diskutil when it is run in repair mode. There were about ten of them. I don't know if they were repaired during the previous process.

    Ideas? Thank you!

    As you test, use utility disk to create a FAT of 1 partition to or more and check the result of diskutil disk1 and sudo fdisk/dev/disk1 list and check if it works. If so, you can always delete the partition and use wizard BC.

  • HP OfficeJet Pro K5400 print is Cyan and yellow all of a sudden. Help, please...

    OfficeJet Pro K5400 Cyan and yellow just stopped working at the same time (very strange).  I have read almost every post and tried almost everything including diagnostic tests that show that all is well (via the keys on the printer), test and all the other available tests in the manual of HP cleaning several times.  The diagnostic test shows no problem and brand new and full cartridges to max.  However the diagnostic characters shows that black and Magenta, but no Cyan, yellow or any other color.  I took out the printheads, cleaned connectors, soak the heads and everything else you can imagine and not luck. I need to have finished the power and "hard reset" on a dozen times.  I can't imagine that two printhead (cyan on a yellow on the other) has just decided to die at the same time.  I can't be driver/software related because I did the tests directly from the printer.  The only thing I can think is maybe cyan and yellow parched when I took out the cartridges at staples with me to reference.  All cartridges have been taken out of the printer for 2 weeks or more.  Any thoughts?

    Ouch - two weeks with the cartridges removed probably allowed 'plumbing' between the cartridges and printer to dry and clog.  If the print head and cartridges were never removed and it is also possible for the tubes to drain and air to block channels of ink.

    You tried to clean the printhead a couple of times, I suggest three levels of cleaning in the sequence of head running.  Each level of cleaning up to three will be a more energetic cleaning.  You have probably already found the Troubleshooting page here.

    Scroll down this page and click on the + to expand the Windows section, then scroll down to the section on executing a cleaning of the Control Panel, click on the +.  It is said:
  • I am not able to access gmail. Error reading - the proxy server refuses connections. Help, please

    I get the attached error message when trying to access my gmail account "the proxy server refuses connections. Firefox is configured to use a proxy server refusing connections. The problem started today. No problem before.
    Second problem, though less of a problem - I'm using Firefox 16.0.2.I tried to upgrade to the latest version and received the following message "ERROR the requested URL could not be found.
    I can still access my gmail account but my IPAD

    Hello robd, please check firefox > options > advanced > network > connection - settings... if firefox is configured to directly connect to the internet ('no proxy').

    Firefox cannot load websites but other browsers may

  • I need information on windows xp, I can't install Itunes. Has anyone dealt with ituneshelper.exe Itunes must be reinstalled Windows 7 error message? I've tried everything. Help, please!

    I have an ipod shuffle (first-generation) OLD. My system is Windows XP service pack 3. Computer behaving badly. If for any reason I can't install ITUNES without the error message 7 missing Itunes helper.exe need to reinstall Itunes. I tried many methods to address them. I can't use my IPOD or Itunes.  Please someon point me in the right direction. Thank you angella

    Hello

    · Brief us with the steps you tried to solve the problem.

    I see many users ITunes with the same concern. According the apple forums, this error is caused if SQLite3.dll is missing.

    For assistance on the issue I suggest you to post your query in the ITunes forum. Link: https://discussions.apple.com/community/itunes/itunes_for_windows

  • Why each Storage device I plug my usb slot shows all files as shortcuts? Help, please!

    I am foreigner working abroad. A co worker lent me his portable external hard drive, as soon as I connected it to my laptop to access ALL the files were in the shortcuts. I thought oh OK, this is how he has her but, when I went to reach my own HHD is also in the same format (all THE shortcuts) now each storage device I plug into my laptop computer does the same thing. I know it is a form of virus, but I do not know how to fight. Some people have suggested Kapersky and various other anti virus programs. I don't want to lose ALL my data either which I said anti virus programs. Any advice would be extermely useful.

    Hello

    You can scan the computer for virus/malware using the check and scan Microsoft security if it helps.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • I have an error message on Adobe Premiere Pro CS6.  Help, please!

    The following error message appears when I click on the program: "this project contains a sequence that could not be opened.  No preview only predefined sequence file or code could be associated with this type of sequence. »

    My computer is a Mac G5 from 2006 and my operating system is the OSX Version 10.7.5 I also have Adobe first Pro CC and this program gives me the same message as well.  What should I do to recover my pictures?  Thanks for your help.

    Hi ritchieg35900664,

    Please refer to this document: characteristics and missing sequence presets

    Thank you

    Regalo

  • migrated to 10, trying to open the first pro I get an error (0xc0000142) window unable to start properly. Help, please

    I've migrated to windows 10, when I try to open Premier Pro, I get a windows error message "the application could not start correctly (0xc0000142). Click OK to close the application. I have uninstall the Prime Minister and re-installed and still have the same problem. Any body have an answer to this problem?

    Hey Cheemo.

    I've migrated to windows 10, when I try to open Premier Pro, I get a windows error message "the application could not start correctly (0xc0000142). Click OK to close the application. I have uninstall the Prime Minister and re-installed and still have the same problem. Any body have an answer to this problem?

    Update for Premiere Pro CC 2015 (9.2) for a fix.

    Thank you
    Kevin

  • Limit the maximum number of characters per line in the TextField, help please

    Hello Livecycle designers!

    It would be great if you could help me with the following problem. I have a TextField with 5 lines (limit of the viewable area and the exact height) and I want to limit the maximum number of characters per line up to 10 (as well as the total in this field at 50, but I'm able to do with the option "time limit, max characters").

    As far as I know can be done only by the script so if you change that I wrote:

    lines of the var = xfa.event.newText.toString().split('\n');

    i = Lines.Length,
    maxChar = "10";

    If {(maxChar)
    While (I--> 0) {}
    If (rows [i] .length == maxChar) {}
    XFA. Event.change = "\n";
    }
    }
    }

    and actually who works very well when instead of '\n' in the 1st line, I put any character (e.g. ' |' and I won't pretend that ' |' is my new \n).

    So the main problem is to split the text entered by the user in lines (the '\n' is unfortunately not working). So the solution to this problem would somehow split my Textbox in lines (in table) after the user presses ENTER.

    I'd appreciate any help here, so if you have just 2 minutes of your time, please help me.

    Hello

    I have rebuild your idea... that is the result.

    var Input = xfa.event.fullText;

    var FullLength = Input.length;

    var SplitLength = 10

    var SplitParts = Math.ceil(FullLength / SplitLength)

    var JoinString = "";

     

    for (var i = 0; i)<= splitparts;="">

    {

    SplitString = Input.substring (0, SplitLength);

    Entry = Input.replace (SplitString, "");

    JoinString = JoinString + SplitString + "\u000a";

    }

    xfa.resolveNode("Textfield2").rawValue = JoinString;

Maybe you are looking for

  • Satellite S50-B-12R - bad quality with white windows screen

    Under 64-bit win8.1 all update. In some windows (white background) as device, iTunes, Ccleaner... Manager display is bad.The display is better on my Satellite A200 win8pro (7 years) and my win7pro P10 (11 years)! But there is no problem with some sof

  • Dynamic load of Labview VI

    Hello I tried to run a VI within another VI in Labview 8.0. I studied the example of the dynamics of the load, but when I run my own the VI that I call the "VI principla" does not open, it runs but it used literally opened (I must look in my files an

  • error code 2148204800 KB973917

    Basically by train to run update KB973917, tried through the WSUS and manually, but fails every time. Event Viewer says it has an error code of 2148204800 No. Signature was present in the subject. I tried to stop the update service and delete everyth

  • T500 annoying beep! (the cause is not battery power management and no BEEP in Device Manager)

    I have ThinkPad T500, 2241, CTO. Whenever laptop starts, there's an annoying beep. It is not a signal that can be had when the power state changes. BIP is both in power and disabled Manager in the power management BIOS section. In addition, in the De

  • Lenovo Care button - FIXED