Strange behaviour of the rangeSize - or is it desired?

Hi there,
as recently asked in Difference between VO Fetch Size, Iterator rangeSize and af:table Fetch Siz we have a problem with the rangeSize property of the iterator binding.
First of all, we're currently working wit JDev version 11.1.2.2.0. So, we have a page with a table. In this table is nested inside a panel collection which is nested inside a panel stretch layout. To cut a long story short, it stretches.
The rangeSize is now set to the default 25, but you could see in the fullscreen usage about 35 rows. When we now select a row which is in the rage of the first 25 records and use the data in such a method:
RichTable table = this.getTable();
RowKeySet rowKeySet = table.getSelectedRowKeys();
Iterator selectetNodesIterator = rowKeySet.iterator();
CollectionModel treeModel = (CollectionModel)table.getValue();
JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)treeModel.getWrappedData();
while (selectetNodesIterator.hasNext()) {
  List selectedRowKeyPath = (List)selectetNodesIterator.next();
  JUCtrlHierNodeBinding nodeBinding = treeBinding.findNodeByKeyPath(selectedRowKeyPath);
  Row row = nodeBinding.getRow();
  DBSequence aaId = (DBSequence)row.getAttribute("AaId");
}We got a NPE at Row row = nodeBinding.getRow();, because the nodeBinding is null. Only the last fetched records have a JUCtrlHierNodeBinding.
So yeah ok, for testing purposes we changed the rangeSize to 1, just to see what happens. And again it fetches one row after another as long is the tables current view is full. And if we try it again every record results in a NPE excpet the very last visible record. So far so good, after what we've seen with 25 records this was expected.
When we change the rangeSize to a value greater than 36 (the visible rows, in that current fullscreen resolution) it works as it should.
So, to see if there is a bug i decided to create a small testapp with the HR schema. I've just dropped the employees vo as a table inside a panel collection which is nested inside a panle stretch layout. And used nearly the same method:
public String onButtonClicked() {
  RowKeySet rks = table.getSelectedRowKeys();
  CollectionModel tablemodel = (CollectionModel)table.getValue();
  JUCtrlHierBinding binding = (JUCtrlHierBinding)tablemodel.getWrappedData();
  Iterator it = rks.iterator();
  while(it.hasNext()){
    List selectedRowKeyPath = (List)it.next();
    JUCtrlHierNodeBinding node = binding.findNodeByKeyPath(selectedRowKeyPath);
    Row row = node.getRow();
    System.out.println("Testausgabe: " + row.getAttribute(1));
  return null;
}When the rangeSize is now set to 1 every visible row except the last also result in a NPE. If we run that above code on a button click, but now the strange part. When the rangeSize is changed to a value greater 1 it works like a charm. You can run that code with every visible record an you get now NPE. Also very strange with a rangeSize = 1, when you select the last visible record which is working and run the code, then select a record above, which had thrown an NPE previously and run the code. It is working, but with the value of the last visible record.
This leads us to a bunch of questions.
1) Is it the supposed way to work, that you get a NPE when the rangeSize is set to a smaller number than visible rows?
2) If 1) is the desired way, how do you handle the rangeSize for a table which is stretched? You couldn't now how many rows you could see.
3) Does anyone have an idea how to explain the last explained behaviour with the testapp? (I could upload it)
Thanks in advance.
Alex

Hi Alex,
can you open a SR at Oracle support for this issue?
I know there are several bugs which are somehow related with the rangeSize and the synchronization of the model (currrent row) and the view (in this case the visible part of af:table).
See also Restore current row after rollback does not work with page ranging
As far I know Oracle plans some enhancements in this area to fix the syncronize problems and change e.g. the rangeSize dynamically depending on the number of rows visible in the GUI.
But anyway your issue sounds like a new bug.
regards
Peter

Similar Messages

  • The strange behaviour of the notification

    Coherence 3.3.1/389
         .Net API 3.3.1.2
         I have C++ GUI client with grid. It shows in the grid all updates from Coherence.
         I have also the 'server' application, which inserts objects into Coherence (1 - 2 per second).
         I use 'near-scheme' with front set to local-scheme and back set to remote-cache-scheme.
         I have 3 GUI clients connected to the Coherence and i have the strange behaviour of the clients. The insert comes to one of them three times instead of one. I've checked in the debugger and it's true. The insert really comes three times. But when i've restarted the client all became to work fine.
         It's bad that i can't repeat this situation, it happens from time to time.
         Does anybody get the same situation?
         I've masked it by the checking key and version of object, but it's really strangely.
         Thanks.

    I think it's depended on the situation described in thread CacheEventFilter: Where does the filter part apply?
         Many thanks.

  • Strange behaviour of the forum website

    Since yesterday I observe a strange behaviour of the forum website:
    There is a thread by Foto-Gabriela called "LR 3.4 crashes after some hours of work with very strange behaviour"
    When I select "All threads" I cannot see this thread, but when I select "Open questions", it is visible.
    It says that there are 6 answers. When I click on the thread, it comes up with only 3 answers visible.
    What's going on, here?
    WW

    function(){return A.apply(null,[this].concat($A(arguments)))}
    When I select "All threads" I cannot see this thread, but when I select "Open questions", it is visible.
    It says that there are 6 answers. When I click on the thread, it comes up with only 3 answers visible.
    This behavior, with posts appearing and disappearing, has been occurring for a few weeks, and is just one of many symptoms of the poor forum service provided to Adobe by Jive.  You can keep abreast of such forum issues at the Forum Comments forum:
    http://forums.adobe.com/community/general/forum_comments

  • Strange behaviour in the text resources on the km

    Hi, we have got a strange problem here..
    when we try to retrieve the content of a text resource from the km by code, we often get the content, but with this 3 characters at the beginning: ""
    Does anybody knows why?
    thanks to everybody...

    http://en.wikipedia.org/wiki/Byte_Order_Mark

  • Anyone else experiencing strange behaviour using the App Store/iTunes

    I'm having a strange problem with both iTunes and the App Store apps.  Searching for items is hit or miss, sometimes no results are returned or tiles are missing their pics etc.  Clicking on a item of interest like a TV show, for example, brings up the details page but sometimes the individual episodes descriptions/pics won't load. 
    The first time I used the new App Store it was showing me GBP currency instead of CDN.  I checked my settings and my location was set as Canada, so it definitely wasn't a settings issue on my end.  Killing the app and going back in seemed to fix the problem. 
    I was just browsing some new games when I ran into another problem, prompting me to post here.  I clicked on a game's icon/tile to access the details page, but nothing happened.  Clicked it again thinking it was me and this time the tile showed as depressed but nothing happened.  Clicked another tile and it depressed as well (and the first tile stayed in that state too) but the details page didn't load. 
    I definitely think there are a few bugs in the new App Store/iTunes apps.  Very annoying as there are a few purchases that I'd like to make but can't.  Argh.
    This all started after upgrading to iOS 6, which has otherwise been fine so far.
    Anyone else having similar problems?

    YES! I am having a lot of AppStore problems since iOS 6. My 2 main issues are:
    1. AppStore crashes constantly or will just sit & spin then does nothing at all.
    2. If I search for a specific App, making sure my spelling is correct, AppStore will NOT bring the app up. Instead, it will bring up unrelated apps.
    Podcasts app does the same thing, as well as jumbling up dates. Very impossible to find the correct episode.
    APPLE, please tell me you are reading this and that a fix is quickly under way!!

  • Strange behaviour of the web UI

    Hi,
    I have encountered something weird when i used the web UI of Oracle 10g Express.
    I have a table with one of fields defined as Blob type and this table contains a record with data in the blob field.
    I used a Java application (created by myself) and standard Java's record fetching methodology to get the record from that table and everything works fine. The key point here is that i am able to retrieve the blob data from the DB.
    However, when i used the web UI to update a particular field in that table (e.g. changed a value), i could no longer retrieve the blob data using the Java application. It returned a null instead and moreover, the web UI still indicates that there was value in the blob field.
    I am wondering if anyone else has encountered this problem. Is it a bug?

    when i used the web UI to update a particular field in that table (e.g. changed a
    value), i could no longer retrieve the blob data using the Java application. It
    returned a null instead and moreover, the web UI still indicates that
    there was value in the blob field.Post exactly how you update that table.

  • Strange behaviour of the Energy Saver settings

    I noticed that the two sliders in the Energy Saver settings seem to work in tandem. If I set the Display to "Never shutdown" (I used this as I don't want my display/TV to go off in the middle of a movie as the mac sees there are no user interactions), and then try to adjust the sleep timer to anything (15min, 30min, etc.), it aligns the slider for the Display at the same point!
    Is it happening only on my mac or is it the way it works for others?

    That would be the simple logic. But, the scenario I mentioned is also a logical one. I have noticed that when I am watching a long Youtube video or an online movie from sites like Jaman, the screen would go off even though the system access is alive. At that time I have to scramble to the mouse/kbd to reactivate the display.
    At the same time, I want to put the mini to sleep after 30min of inactivity. Hence, I want to set the sleep timer to 30min and the display to "never".
    The energy saver settings show two separate sliders and there is no indication that they are attached at the hips.
    Since it works this way for you as well, then I am not doing something weird. I think this is a bug in the OS.

  • Strange behaviour using the "Save Region(s) As..."

    I'm encountering some apparently repeatable oddities when using the "Save Region(s) As..." command.
    I take one long track, snip it up into smaller regions (say, 20) and then in the Audio Window menu, select all the regions and use "Save Region(s) As..." from the Audio File menu.
    What happens is that the FIRST time I try this Logic only saves EVERY FOURTH REGION as a new audio file, ie if I had 20 regions selected I'll only get 5 new audio files!
    If I select all the regions and try it again, Logic now saves all the regions correctly and in order.
    (File conversion settings all are set to "Preserve Original" "No Change".)
    Anyone else?
    12 PB 1.33Mhz, 1.25GB RAM   Mac OS X (10.4.7)  

    correction:
    this only happens when i delete the first region, then save the remainder. to clarify:
    load audio file. there's one region showing, which consists of the entire audio file. go make 16 new regions, so you've got 17 total. delete the first one, which is the full length of the file. now you've got 16. select all 16 by click-dragging down the side of the audio window so all 16 are selected. "save regions as..." saves only regions 2-16.
    when i don't do that initial delete of the full-length region, all regions are saved properly.

  • LGWR strange behaviour during the performance test!

    Hi,
    We are doing performance test on our new schema and during the test we see that this LGWR database process is always the highest resource taking process during the test.
    I see that the Commit activity appears continiously on Grid Controller toghegher with System I/O.
    I checked the Redo Logs and we have them in 5 groups each 200MB.
    Any idea about what causes this? I guess the application is doing one commit after each statement, or?
    Any comment about how can we improve this?
    I wanted to attach the screenshot from the Grid Controller but it seems we can't do that on this Forum!
    Thanks in advance for the help!
    / Hes  

    http://docs.oracle.com/cd/E16655_01/server.121/e17633/process.htm#CNCPT89084

  • Strange behaviour of the bios (setup)

    Hi.
    I have 2 issues:
    1) When i using USB keyboard and I enter to the BIOS (setup) the response of the program is very slow, i need to wait couple of seconds before the program will respond on my keyboard press. In Win XP is working well.
    2) My memory Mushkin 2gb (2x1gb) hp2-6400 with epp (2.1v 4-4-4-12) is inappropriate recognized - somehow the EPP is not chosen automatically but the adjusted memory clock field is indicating 1066 instead off 800 (in the Windows i see only 800).
    Here full spec of the computer:
    1) MSI P45 Platinum, BIOS v1.6
    2) Intel E8200 CPU
    3) DDR2-800 Mushkin HP2-6400 with EPP 2.1V 4-4-4-12
    4) WD 320GB SATA2 Hard Drive
    5) NVIDIA 8600GT 512MB Graphics Card
    6) Windows XP SP3 Professional
    7) Thermaltake 400Watt Power Suply
    Thank You.
    Thank You and Best Regards.

    Hi,
    please provide full system specs.  Read the >>Posting Guide<< to get an idea of what details you should provide. Thanks.

  • Strange behaviour of JTree makes it hard to find the mistake.

    Hi,
    I would like to report a problem I actually already solved. But the mistake was not easy to find because of a strange behaviour of the JTree.
    The mistake I made is that I declared a 'treeModel' in a JTree and added new entries to this model but I didnot connect the model to the tree correctely.
    One would expect that simply nothing would happen when calling addNode(). But effectively the first node is added! After calling addNode() again no more nodes are added but the vertical lines of the tree-angles are disapearing (so one thinks the model is connected to the tree correctely because the tree changes its look in a strange way..).
    Whole, compilable code which lets disapear the vertical lines of the tree-angles:
    import javax.swing.*;
    import javax.swing.tree.*;
    public class Strange
        static class MyTree extends JTree
              static DefaultMutableTreeNode root = new  DefaultMutableTreeNode("Root");
              static DefaultTreeModel treeModel = new DefaultTreeModel( root );
              public MyTree()
                   super( root );
              public void addNode()
                   DefaultMutableTreeNode newNode = new DefaultMutableTreeNode("New Node");
                   treeModel.insertNodeInto( newNode, root, root.getChildCount() );
                   expandPath( new javax.swing.tree.TreePath(root) );
         public static void main(String[] args)
              JFrame jframe = new JFrame();
              MyTree mytree = new MyTree();
              jframe.add(mytree);
            jframe.setBounds( 50, 50, 300, 200 );
              jframe.setVisible( true );
              mytree.addNode();
              mytree.addNode();     
              mytree.addNode();
    }Message was edited by:
    MarcMooser

    Simple.... change in constructor super( treeModel );

  • View Master mode strange behaviour with jpg files

    Hy all,
    I'm using Aperture, and I'm tweakin a lot the SW to discover all secrets ....
    I'm really concerned about a strange behaviour of the SW in view mode.
    If I open a jpg file, do not apply ANY modification, and apply the "show master" command (pressing M), there's a subtle behaviour :
    *the images get sharper !!!!*
    It behaves as if an "edge sharpening" was applied !!!!!!
    With _RAW files this thing doesn't happen at all._
    Even stranger, if I zoom to full definition (by pressing Z), and toggle between normal view and "show master" view, the immage remains the same !
    The effect is not so evident with all images, but sometimes it is !!
    Anyway, I expect not to have such kind of things with a professional SW.
    With professional cameras and good quality files it's really annoying not to beeing sure what's the REAL content of the jpg image.
    Has anyone noted this thing ? Is there a reasonable explanation ?
    The only one I tried to figure out is the following : may be Aperture applies some kind of resampling algorithm with jpg files (bicubic, bilinear, etc).
    May be this resampling is not applied with 100% magnification, as weel as with raw files.
    But it's only my guessing. Now, I'm tweaking other viewers and other SW to understand what's the real jpg image stored in the file : the blurer one form normal view or the sharper one with "show master" mode.
    I stress once again : of course, the jpg file I'm talking about have no settings at all, just imported and toggled with M button.
    Thanks in advance.
    Regards,
    Enzo

    Hy,
    I'm afraid I'm not been clear.
    The problem is this :
    1) jpg image opened in normal view mode, no zoom, (no quick preview, of course) : image with a certain amount of blour
    2) jpg image opened in show master mode, no zoom, (no quick previre, of course) : image SHARPER with respect with the previous.
    No edit applied from import, so "show master" command shouln't apply any change in rendering, should it ?
    The only thing I said on 100% view is that such difference (between normal mode e show mastermode) is not present with 100% magnification.
    That was the issue.
    Enzo

  • Cursor shows strange behaviour in 10.9.5

    HI,
    I'm using a 15" MBPr late 2013, i7, 16 GB RAM, 1 TB SSD, running on 10.9.5. Lately I registered a very strange behaviour of the cursor when using the built in trackpad. If hovering over one of the symbols in the bar at the upper right corner of the screen and then moving the cursor downward, the menu of the symbol on the right of the cursor pops up (not the one the cursor ist pointing on).
    For example: the symbol for WiFi is located left from the one regulating the volume. When hovering over WiFi and moving downwards to activate/deactivate it, the volume-controle pops up ! If I want to use the WiFi, I have to hover over the symbol for bluetooth-connectivity instead....
    Any idea whats happening here ?
    Help is very much appreciated !
    MIchael

    OK, found the solution by myself. The reason seemed to be related to the resolution of the display. Changed it to another one (no matter which one), waited for the display to change and the changed the res back to optimal for display.
    The cursor now works fine and exactly....
    Really weird.

  • Strange behaviour when using connection pooling with proxy authentication

    All
    I have developed an ASP.NET 1.1 Web application that uses ODP.NET 9.2.0.4 accessing Oracle Database 8i (which is to be upgraded to 10g in the coming months). I have enabled connection pooling and implemented proxy authentication.
    I am observing a strange behaviour in the live environment. If two users (User 1 and User 2) are executing SQL statements at the same time (concurrent threads in IIS), the following is occurring:
    * User 1 opens a new connection, executes a SELECT statement, and closes this connection. The audit log, which uses the USER function, shows User 1 executed this statement.
    * User 2 opens the same connection (before it is released to the connection pool?), excutes an INSERT statement, and closes this connection. The audit log shows User 1, not User 2, executed this statement.
    Is this a known issue when using connection pooling with proxy authentication? I appreciate your help.
    Regards,
    Chris

    Hi Chris,
    I tried to reproduce your complaint, but was unable to. I didnt use auditting however, just a series of "select user from dual" with proxy authentication. You might want to see if you can put together a small complete testcase for this and open a sr with support.
    Cheers
    Greg

  • Strange behaviour in web cartographic application

    Hi group,
    I have noticed a strange behaviour with the overview tool of my web application with MapInfo data uploaded in Oracle 10g with EasyLoader. When I put the cursor near the limit of some polygons but outside of its surface, the overview tool shows the info of this polygon when it should show the info of the neighbor polygon. It's like if the boundary of the polygon is outside of its limit but visually the borders are looking good.
    After many tests, I think the problem may be related with the tolerance precision and the table bounds in sdo_metadata. The table is in lat/long (8307) and the tolerance setted by Easyloader is X: 7.9013E-6 and Y:1.01201E-5
    In MapInfo I gave this bounds to the table: min x: -82.0483359 min y: 43.2322719 max x: -54.6521931 max y: 64.3415211 but when loaded in Oracle the bounds are automatically set to -180/180 and -90/90
    I tried to change the tolerance and the bounds in Oracle and create a new spatial index without success. Changing the bounds in MapInfo prior uploading to Oracle was unsuccessfull as well.
    Anything else could be tryed?
    Thank you
    Maxime D.

    Maxime,
    Didn't you contact me privately about something like this? No matter.
    the tolerance setted by Easyloader is X: 7.9013E-6 and Y:1.01201E-5These tolerances are not what Oracle says should be set for geodetic (8307) data. From the documentation...
    The tolerance value for geodetic data should not be smaller than 0.05 (5 centimeters)You can do one of two things:
    1. If you have SQL Developer, install GeoRaptor and then right mouse click on the table in the connect pane and select Metadata Manager. Then calculate XY values and if GeoRaptor doesn't set the tolerances to 0.05 do it manually. Then press Update.
    2. Using SQLPlus or SQL Developer's SQL Worksheet, do this:
    update user_sdo_geom_metadata
    set diminfo = SDO_DIM_ARRAY(SDO_DIM_ELEMENT(-82.0483359,-54.6521931,0.05),
                                SDO_DIM_ELEMENT(43.2322719,64.3415211,0.05)),
           SRID = 8307
    where table_name = YOUR TABLE
      and column_name = YOUR SDO_GEOMETRY COLUMN NAME;
    commit;NOTE: It is OK to have ordinate ranges different from -180..180, -90..90.
    Drop your index and rebuild.
    Should now be OK.
    If it starts to misbehave again (and the metadata has been changed) then all one could say is that perhaps the MapInfo software is modifying the metadata some how. Perhaps this is related to the MAPINFO_MAPCATALOG?
    Any MapInfo gurus know?
    regards
    Simon

Maybe you are looking for

  • Foreign keys at the table partition level

    Anyone know how to create and / or disable a foreign key at the table partition level? I am using Oracle 11.1.0.7.0. Any help is greatly appreciated.

  • I have a problem with the copy option in premiere pro CC

    I have a proyec when I need to copy some video and audio clips to other secuense but if I tray to copy the clips in the other secuense the program get close.

  • My wifi on iphone 5 is connected but i cannot connect to internet

    i bought a new iphone 5 64 GB today and i connected to my home wifi, it connected successfully and the bars are full but i cannot get on to the app store or any other stuff that needs internet connection, i wonder whats wrong

  • Values to be captured in variables

    Hi Friends, I have get the data from the database table and keep in variables or field symbols can any one tell me how to do it, right now I am coding in this way because there is no require for having an internal table because I am selecting single

  • What is the script to enlist several songs with a bottom?

    so i mean i would like to know how i can do for enlisting several songs as virtual songs with a bottom for example if someone click the word "PLAY" listen the all songs "mp3" tha i put on several castmemebers i know to make it only to play one with t