Modify

Opened 16 years ago

Closed 15 years ago

#2834 closed defect (fixed)

java.lang.ArrayIndexOutOfBoundsException: 25

Reported by: phobie Owned by: phobie
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc: Gubaer

Description

The exception raised while I pasted text into a role-field in the relation-editor.

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1721
Node Kind: directory
Last Changed Author: david
Last Changed Rev: 1721
Last Changed Date: 2009-07-02 18:02:27 +0200 (Thu, 02 Jul 2009)

Memory Usage: 148 MB / 986 MB (18 MB allocated, but free)
Java version: 1.6.0_14

Plugins: measurementopenstreetbugsosmarenderplastic_lafremotecontrolroutesslippymaptageditortagging-preset-testerusertoolsutilspluginvalidatorwaydownloaderwmsplugin
Plugin plastic_laf Version: 14016
Plugin measurement Version: 15953
Plugin openstreetbugs Version: 16163
Plugin osmarender Version: 16163
Plugin remotecontrol Version: 14991
Plugin routes
Plugin slippymap Version: 16164
Plugin tageditor Version: 15707
Plugin tagging-preset-tester Version: 14015
Plugin usertools Version: 14125
Plugin utilsplugin Version: 16162
Plugin validator Version: 16159
Plugin waydownloader Version: 16177
Plugin wmsplugin Version: 15961

java.lang.ArrayIndexOutOfBoundsException: 25

at sun.font.FontDesignMetrics.charsWidth(FontDesignMetrics.java:492)
at javax.swing.text.Utilities.getTabbedTextOffset(Utilities.java:381)
at javax.swing.text.Utilities.getTabbedTextOffset(Utilities.java:302)
at javax.swing.text.Utilities.getTabbedTextOffset(Utilities.java:286)
at javax.swing.text.PlainView.viewToModel(PlainView.java:403)
at javax.swing.text.FieldView.viewToModel(FieldView.java:263)
at javax.swing.plaf.basic.BasicTextUI$RootView.viewToModel(BasicTextUI.java:1540)
at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1089)
at javax.swing.text.DefaultCaret.moveCaret(DefaultCaret.java:311)
at javax.swing.text.DefaultCaret.mouseDragged(DefaultCaret.java:565)
at java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:303)
at java.awt.Component.processMouseMotionEvent(Component.java:6311)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4255)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Attachments (0)

Change History (11)

comment:1 by Gubaer, 16 years ago

Cc: Gubaer added
Owner: changed from team to phobie
Status: newneedinfo

works for me in r1804.

Do you have more specific info?

comment:2 by phobie, 16 years ago

Status: needinfoassigned

In 1803 I still get a ArrayIndexOutOfBoundsException but it might have an other source.

I selected a relation --> "Edit" --> "Download Members" --> "Cancel"

GET http://api.openstreetmap.org/api/capabilities... OK                                                                                                                                                                                     
Communications with http://api.openstreetmap.org/api established using protocol version 0.6                                                                                                                                                 
GET http://api.openstreetmap.org/api/0.6/map?bbox=10.212467908859251,54.32211769526193,10.21273612976074,54.322267871488286                                                                                                                 
minZoomLvl shouldnt be lees than 2! Setting to 2.                                                                                                                                                                                           
total of 0 loaded tiles, size OK 1247946173413                                                                                                                                                                                              
doesn't even cover one tile, increasing zoom from 2
current zoom lvl (2) couldnt be increased. MaxZoomLvl (-70) reached.
GET http://api.openstreetmap.org/api/0.6/relation/63910/full
GET http://api.openstreetmap.org/api/0.6/relation/50560/full
GET http://api.openstreetmap.org/api/0.6/relation/174308/full
GET http://api.openstreetmap.org/api/0.6/relation/168046/full
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 22 >= 22
        at java.util.Vector.elementAt(Vector.java:427)
        at javax.swing.DefaultListModel.getElementAt(DefaultListModel.java:70)
        at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1348)
        at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1299)
        at javax.swing.plaf.basic.BasicListUI.getPreferredSize(BasicListUI.java:566)
        at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
        at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
        at java.awt.Container.layout(Container.java:1421)
        at java.awt.Container.doLayout(Container.java:1410)
        at java.awt.Container.validateTree(Container.java:1507)
        at java.awt.Container.validate(Container.java:1480)
        at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:670)
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
        at java.awt.Dialog$1.run(Dialog.java:1045)
        at java.awt.Dialog$3.run(Dialog.java:1097)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1095)
        at java.awt.Component.show(Component.java:1563)
        at java.awt.Component.setVisible(Component.java:1515)
        at java.awt.Window.setVisible(Window.java:841)
        at java.awt.Dialog.setVisible(Dialog.java:985)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.prepareDialog(PleaseWaitRunnable.java:89)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.access$300(PleaseWaitRunnable.java:29)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable$5.run(PleaseWaitRunnable.java:141)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

comment:3 by Gubaer, 16 years ago

Resolution: fixed
Status: assignedclosed

Should be fixed in r1806, at least it this exception occurs when you download relation members or relation parents in the relation editor. Let me know if it happens elsewhere too.

comment:4 by phobie, 16 years ago

Ok, should I open a new report for this exception in 1803?

GET http://api.openstreetmap.org/api/0.6/map?bbox=10.194169878959656,54.3289720556559,10.194518566131592,54.32912846314699 
GET http://api.openstreetmap.org/api/0.6/relation/174308/full                                                              
GET http://api.openstreetmap.org/api/0.6/relation/168047/full                                                              
Exception occurred during event dispatching:                                                                               
java.lang.ArrayIndexOutOfBoundsException: 7 >= 7                                                                           
        at java.util.Vector.elementAt(Vector.java:427)                                                                     
        at javax.swing.DefaultListModel.getElementAt(DefaultListModel.java:70)                                             
        at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1348)                                     
        at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1299)                                
        at javax.swing.plaf.basic.BasicListUI.getPreferredSize(BasicListUI.java:566)                                       
        at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)                                                   
        at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)                                         
        at java.awt.Container.layout(Container.java:1421)                                                                  
        at java.awt.Container.doLayout(Container.java:1410)                                                                
        at java.awt.Container.validateTree(Container.java:1507)                                                            
        at java.awt.Container.validate(Container.java:1480)                                                                
        at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:670)                                   
        at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127)              
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)                                               
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)                                                          
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)                               
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)                                  
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)                                  
        at java.awt.Dialog$1.run(Dialog.java:1045)                                                                         
        at java.awt.Dialog$3.run(Dialog.java:1097)                                                                         
        at java.security.AccessController.doPrivileged(Native Method)                                                      
        at java.awt.Dialog.show(Dialog.java:1095)                                                                          
        at java.awt.Component.show(Component.java:1563)                                                                    
        at java.awt.Component.setVisible(Component.java:1515)                                                              
        at java.awt.Window.setVisible(Window.java:841)                                                                     
        at java.awt.Dialog.setVisible(Dialog.java:985)                                                                     
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.prepareDialog(PleaseWaitRunnable.java:89)                         
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.access$300(PleaseWaitRunnable.java:29)                            
        at org.openstreetmap.josm.gui.PleaseWaitRunnable$5.run(PleaseWaitRunnable.java:141)                                
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)                                               
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)                                                          
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)                               
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)                                  
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)                               
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)                                           
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)                                           
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)                                                  
GET http://api.openstreetmap.org/api/0.6/relation/168049/full

comment:5 by Gubaer, 16 years ago

Resolution: fixed
Status: closedreopened

Ok, should I open a new report for this exception in 1803?

You're mentioning 1803.

Can you check whether you can reproduce it in r1806 or higher?

comment:6 by Gubaer, 16 years ago

Status: reopenedneedinfo

comment:7 by phobie, 16 years ago

Resolution: fixed
Status: needinfoclosed

Seems to be fixed now!
Edited relations for about half-an hour with rev 1807...

comment:8 by phobie, 16 years ago

Here is the next one ;)

While having the relation editor open I downloaded bboxes to add streets to the relation.
The exception occurred during one of those downloads.

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1807
Node Kind: directory
Last Changed Author: Gubaer
Last Changed Rev: 1807
Last Changed Date: 2009-07-19 00:06:29 +0200 (Sun, 19 Jul 2009)


Memory Usage: 54 MB / 986 MB (18 MB allocated, but free)
Java version: 1.6.0_14

Plugins: measurement
openstreetbugs
osmarender
plastic_laf
remotecontrol
routes
slippymap
tageditor
tagging-preset-tester
usertools
utilsplugin
validator
waydownloader
wmsplugin
Plugin plastic_laf Version: 14016
Plugin measurement Version: 16317
Plugin openstreetbugs Version: 16294
Plugin osmarender Version: 16239
Plugin remotecontrol Version: 16290
Plugin routes
Plugin slippymap Version: 16294
Plugin tageditor Version: 15707
Plugin tagging-preset-tester Version: 14015
Plugin usertools Version: 14125
Plugin utilsplugin Version: 16162
Plugin validator Version: 16346
Plugin waydownloader Version: 16290
Plugin wmsplugin Version: 16363


java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at java.awt.Container.createHierarchyEvents(Container.java:1357)
	at java.awt.Container.createHierarchyEvents(Container.java:1357)
	at java.awt.Container.createHierarchyEvents(Container.java:1357)
	at java.awt.Container.createHierarchyEvents(Container.java:1357)
	at java.awt.Dialog.conditionalShow(Dialog.java:933)
	at java.awt.Dialog.show(Dialog.java:1034)
	at java.awt.Component.show(Component.java:1563)
	at java.awt.Component.setVisible(Component.java:1515)
	at java.awt.Window.setVisible(Window.java:841)
	at java.awt.Dialog.setVisible(Dialog.java:985)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.prepareDialog(PleaseWaitRunnable.java:89)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.access$300(PleaseWaitRunnable.java:29)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable$5.run(PleaseWaitRunnable.java:141)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

comment:9 by phobie, 16 years ago

Resolution: fixed
Status: closedreopened

After selecting "File" --> "Update Data"

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1807
Node Kind: directory
Last Changed Author: Gubaer
Last Changed Rev: 1807
Last Changed Date: 2009-07-19 00:06:29 +0200 (Sun, 19 Jul 2009)


Memory Usage: 109 MB / 986 MB (51 MB allocated, but free)
Java version: 1.6.0_14

Plugins: measurementopenstreetbugsosmarenderplastic_lafremotecontrolroutesslippymaptageditortagging-preset-testerusertoolsutilspluginvalidatorwaydownloaderwmsplugin
Plugin plastic_laf Version: 14016
Plugin measurement Version: 16317
Plugin openstreetbugs Version: 16294
Plugin osmarender Version: 16239
Plugin remotecontrol Version: 16290
Plugin routes
Plugin slippymap Version: 16294
Plugin tageditor Version: 15707
Plugin tagging-preset-tester Version: 14015
Plugin usertools Version: 14125
Plugin utilsplugin Version: 16162
Plugin validator Version: 16346
Plugin waydownloader Version: 16290
Plugin wmsplugin Version: 16363


java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at java.awt.Container.createHierarchyEvents(Container.java:1357)
	at java.awt.Container.createHierarchyEvents(Container.java:1357)
	at java.awt.Container.createHierarchyEvents(Container.java:1357)
	at java.awt.Container.createHierarchyEvents(Container.java:1357)
	at java.awt.Dialog.conditionalShow(Dialog.java:933)
	at java.awt.Dialog.show(Dialog.java:1034)
	at java.awt.Component.show(Component.java:1563)
	at java.awt.Component.setVisible(Component.java:1515)
	at java.awt.Window.setVisible(Window.java:841)
	at java.awt.Dialog.setVisible(Dialog.java:985)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.prepareDialog(PleaseWaitRunnable.java:89)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.access$300(PleaseWaitRunnable.java:29)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable$5.run(PleaseWaitRunnable.java:141)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

comment:10 by Gubaer, 16 years ago

In r1811 jttt has check in new code for progress monitoring. This is likely to solve the problems with java.lang.IndexOutOfBoundsException.

Again, could you please check with the latest version? Be careful, though, latest may be a little bit unstable because it includes two major refactorings.

comment:11 by phobie, 15 years ago

Resolution: fixed
Status: reopenedclosed

I am unable to reproduce any of the bugs mentioned here with josm rev 1818.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain phobie.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.