From: Norman W. <nd...@nw...> - 2003-08-22 09:53:43
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi folks, I added a couple of new feeds yesterday and suddenly the RSSView hierarchy menu on the left hand side is completely confused. If I try to open the "people" folder, I get: Load Duration: 3781 java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(ArrayList.java:326) at de.cinek.rssview.RssSubscriptionModel.get(RssSubscriptionModel.java:104) at de.cinek.rssview.SubscriptionAdapterTreeModel.getChild(SubscriptionAdapterTreeModel.java:71) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1475) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1270) at javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(VariableHeightLayoutCache.java:966) at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:164) at javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTreeUI.java:1494) at javax.swing.plaf.basic.BasicTreeUI$TreeExpansionHandler.treeExpanded(BasicTreeUI.java:2314) at javax.swing.JTree.fireTreeExpanded(JTree.java:2228) at javax.swing.JTree.setExpandedState(JTree.java:2999) at javax.swing.JTree.expandPath(JTree.java:1735) at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2095) at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTreeUI.java:2082) at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2036) at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.handleSelection(BasicTreeUI.java:2831) at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed(BasicTreeUI.java:2801) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.Component.processMouseEvent(Component.java:5097) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) java.lang.ArrayIndexOutOfBoundsException: 10 >= 6 at java.util.Vector.removeElementAt(Vector.java:517) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.collapse(VariableHeightLayoutCache.java:1583) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.collapse(VariableHeightLayoutCache.java:1277) at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:170) at javax.swing.plaf.basic.BasicTreeUI$TreeExpansionHandler.treeCollapsed(BasicTreeUI.java:2327) at javax.swing.JTree.fireTreeCollapsed(JTree.java:2259) at javax.swing.JTree.setExpandedState(JTree.java:2975) at javax.swing.JTree.collapsePath(JTree.java:1760) at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2106) at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTreeUI.java:2082) at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2036) at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.handleSelection(BasicTreeUI.java:2831) at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mouseReleased(BasicTreeUI.java:2864) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Persist Duration: 3624 Hopefully, you can reproduce this with my .rssviewdb databases and my .rssviewrc file: http://norman.walsh.name/scratch/rssview-snapshot.tar.gz Be seeing you, norm - -- Norman Walsh <nd...@nw...> | When one admits that nothing is certain http://nwalsh.com/ | one must, I think, also admit that some | things are much more nearly certain | than others.--Bertrand Russell -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/> iD4DBQE/RegJOyltUcwYWjsRAhejAJjWN4IYCsFA31g4M4fl1UBjTF4DAJ97IIP0 H2kDk2H0e4DoQseYcdWqgw== =CkEf -----END PGP SIGNATURE----- |
From: Martin K. <ci...@gm...> - 2003-08-22 21:40:48
|
On Fri, 2003-08-22 at 11:53, Norman Walsh wrote: > java.lang.ArrayIndexOutOfBoundsException: -1 > at java.util.ArrayList.get(ArrayList.java:326) > at de.cinek.rssview.RssSubscriptionModel.get(RssSubscriptionModel.java:104) > at de.cinek.rssview.SubscriptionAdapterTreeModel.getChild(SubscriptionAdapterTreeModel.java:71) I can reproduce it. It appears after opening the "People" node. This is the tree structure which returns a "not found" for a child node. I didn't write this part of code. After doing some debugging, I could locate the piece of code causing the error: 1: if (groupParent.isLeaf(index)) { 2: // Stored id -> lookup in Model and return a real value! 3: Object id = groupParent.getChildAt(index); 4: return model.get(model.indexOf(id)); 5: } else { 6: return groupParent.getChildAt(index); 7: } The id returned in line 3 is valid. I printed out this value and I could not find it in the whole database. I wonder where it comes from... And in line 4 model.indexOf() returns -1. I think indexOf() is not in our sources, but calls another method from the tree model transparently, so I have some trouble to find it. Perhaps something got deleted and it was not released properly (are foreign keys being used in our database? It would prevent deletion of parent nodes while children still exist)? Perhaps the id is calculated somewhere and it has the wrong value (the id which causes the error is 2 digits shorter than the others)? Perhaps I can find out more later. Martin |
From: Christoph W. <e93...@st...> - 2003-08-22 22:25:17
|
Hi, I'll try to locate the root of that problem over the weekend - I have some ideas what went wrong but had no time to try out and debug your configuration. Ciao Christoph -- Christoph Walcher Email: chr...@we... Max-Winter-Platz 7/16 Tel: +43 (1) 9460866 A-1020 Vienna Mobil: +43 (699) 194609867 > -----Original Message----- > From: rss...@li... > [mailto:rss...@li...] On > Behalf Of Martin Krzysiak > Sent: Friday, August 22, 2003 5:51 PM > To: RSSView Developers > Subject: Re: [Rssview-developers] Completely confused display > > > On Fri, 2003-08-22 at 11:53, Norman Walsh wrote: > > java.lang.ArrayIndexOutOfBoundsException: -1 > > at java.util.ArrayList.get(ArrayList.java:326) > > at > de.cinek.rssview.RssSubscriptionModel.get(RssSubscriptionModel > .java:104) > > at > de.cinek.rssview.SubscriptionAdapterTreeModel.getChild(Subscri > ptionAdapterTreeModel.java:71) > > I can reproduce it. It appears after opening the "People" node. This > is the tree structure which returns a "not found" for a child node. > > I didn't write this part of code. After doing some debugging, I could > locate the piece of code causing the error: > > 1: if (groupParent.isLeaf(index)) { > 2: // Stored id -> lookup in Model and return a real value! > 3: Object id = groupParent.getChildAt(index); > 4: return model.get(model.indexOf(id)); > 5: } else { > 6: return groupParent.getChildAt(index); > 7: } > > The id returned in line 3 is valid. I printed out this value > and I could not find it in the whole database. I wonder where > it comes from... And in line 4 model.indexOf() returns -1. > I think indexOf() is not in our sources, but calls another > method from the tree model transparently, so I have some > trouble to find it. > > Perhaps something got deleted and it was not released > properly (are foreign keys being used in our database? > It would prevent deletion of parent nodes while children > still exist)? > > Perhaps the id is calculated somewhere and it has the wrong > value (the id which causes the error is 2 digits shorter than > the others)? > > Perhaps I can find out more later. > > Martin > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a > single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click > here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > Rssview-developers mailing list > Rss...@li... > https://lists.sourceforge.net/lists/listinfo/rssview-developers > |