Modify

Opened 11 years ago

Closed 11 years ago

#8852 closed defect (fixed)

IAE after SAXParseException

Reported by: skyper Owned by: team
Priority: minor Milestone:
Component: Plugin tagging-preset-tester Version:
Keywords: Cc:

Description

I did reload a file with broken syntax and after the warning message I got an IAE

  1. open tagging-preset-tester
  2. edit the preset file
  3. reload preset
  4. get error warning about broken syntax

After clicking OK I got the IAE but I would expect the plugin to stay calm and wait for another reload.

I need to close the plugin window and reopen it to use it again.

[Fatal Error] :4867:69: Attribute name "values" associated with an element type "combo" must be followed by the ' = ' character.
org.xml.sax.SAXParseException: Attribute name "values" associated with an element type "combo" must be followed by the ' = ' character.

Exactly, the error. I forgot a = after values

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-07-05 01:34:27
Last Changed Author: Don-vip
Revision: 6048
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-07-03 20:38:17 +0200 (Wed, 03 Jul 2013)
Last Changed Rev: 6048

Identification: JOSM/1.5 (6048 en) Linux Debian GNU/Linux 7.1 (wheezy)
Memory Usage: 160 MB / 592 MB (22 MB allocated, but free)
Java version: 1.6.0_27, Sun Microsystems Inc., OpenJDK 64-Bit Server VM
VM arguments: [-Djosm.home=$HOME/.josm-test]
Program arguments: [--language=en]

Plugin: tagging-preset-tester (29725)

java.lang.IllegalArgumentException: setSelectedIndex: 417 out of bounds
	at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:618)
	at org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester$2.actionPerformed(TaggingPresetTester.java:79)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6288)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6053)
	at java.awt.Container.processEvent(Container.java:2045)
	at java.awt.Component.dispatchEventImpl(Component.java:4649)
	at java.awt.Container.dispatchEventImpl(Container.java:2103)
	at java.awt.Component.dispatchEvent(Component.java:4475)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
	at java.awt.Container.dispatchEventImpl(Container.java:2089)
	at java.awt.Window.dispatchEventImpl(Window.java:2587)
	at java.awt.Component.dispatchEvent(Component.java:4475)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:675)
	at java.awt.EventQueue.access$300(EventQueue.java:96)
	at java.awt.EventQueue$2.run(EventQueue.java:634)
	at java.awt.EventQueue$2.run(EventQueue.java:632)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
	at java.awt.EventQueue$3.run(EventQueue.java:648)
	at java.awt.EventQueue$3.run(EventQueue.java:646)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:645)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Attachments (0)

Change History (1)

comment:1 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

Fixed in [o29748].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.