Œuvres of DCIterator, but VORowImpl does not, gives the NPE

Type 1

------------------------

DCIteratorBinding it = ADFUtils.findIterator ("TransientVOIterator");

RowSetIterator laughs = it.getRowSetIterator ();

laughs. Reset();

If (rit.first ()! = null)

{

Line rw = rit.first ();

System.out.println (RW. GetAttribute ("BinNo") + "-" + rw.getAttribute ("Qty")); "."

}

While (rit.hasNext ())

{

Line rw1 = rit.next ();

If (rw1! = null)

{

System.out.println (RW1. GetAttribute ("BinNo") + "-" + rw1.getAttribute ("Qty")); "."

}

}

Type 2

--------------------------

for (int j = 0; j < TransientVO.getViewObject () .getRowCount (); j ++)

{

System.out.println ("number of rows:" + TransientVO.getViewObject () .getRowCount () + "j:" + j);

oracle.jbo.Row BLWRow = TransientVO.getRowAtRangeIndex (j);

String l_disp ="";

l_disp = bin_disposition.get (BLWRow.GetAttribute("BinNo"). ToString());

if(BLWRow!=null)

{

System.out.println ("BinNo:" + BLWRow.getAttribute ("BinNo"));

}

}

I have 40 lines in my TransientVO, Type1 gives me all the 40 lines, Type 2 stops after a few lines of 23/25 and gives nulls for the rest of the lines.

For Type2, I tried both getRowCount() as getEstimatedRowCount()

Type2 works perfectly if there are a few limited. or lines for example 10/15. But in the absence. lines increases, it throws NPE to some lines.

I checked back VO of database is "all lines".

did someone gone through this before?

Thank you

Rahul

Hello Rahul,

Please make following changes you won't get null pointer exception after recording 25.

Open your defination file containing TransientVOIterator.

Select it, and then change the property "range size = - 1" instead of 25. in the property inspector

Tags: Java

Similar Questions

Maybe you are looking for

  • Connect the Scanner for extreme

    Can I connect my Canon Canoscan 9000F scanner USB in the extreme I can print or scan from my MacBookAir via my WiFi?

  • Edit / split Mp3 files into pieces

    Hello My Russian Professor makes nice MP3 files to show the pronunciation of the Russian. To add who uttered the words in the file of Anki I want to split the MP3 file in mp3 format, small files each file containing a separate Word. Preference the Di

  • Upgrading processor SR1901WM

    Hi, everyone, I have an old Compaq SR1901WM running windows XP. I want to upgrade the CPU and I need to know the processor the faster can install on this computer. He runs a Sempron 3200 + socket 939. Thanks for your help!

  • same source/sink wiring problem

    Hello There is a wiring error entering my polar plot.  I'm conversion Re / Im fleece pieces and then grouping together.  I then create a table to form a table 1 d of 2 elements, however, it is still a mistake, even if the sink requires an of2 table 1

  • Select a location for Windows Update

    I have a Sony Vaio with limited hard drive space.  So I found my program Windows files on a memory stick to free up space on the C drive.  Can someone tell me how do I specify that all updates to Windows on the memory stick instead of drive C that se