Modify

Opened 15 years ago

Closed 15 years ago

#2668 closed defect (fixed)

ClassCastException when trying to edit a relation

Reported by: osm@… Owned by: team
Priority: major Milestone:
Component: Core Version: tested
Keywords: Cc:

Description

This is what I did:

"Relation ("Europaplatz", 4 Elemente) [ID: 140.082]"

or

"Relation ("Marktplatz", 2 Elemente) [ID: 140.092]"

  • Click on "Bearbeiten" (Edit)

And this is what I get:

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1607
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1607
Last Changed Date: 2009-05-20 16:08:00 +0200 (Wed, 20 May 2009)

Java version: 1.6.0_0
Plugins: remotecontrol;validator;wmsplugin
Plugin remotecontrol Version: 14991
Plugin validator Version: 15127
Plugin wmsplugin Version: 15091

java.lang.ClassCastException: org.openstreetmap.josm.data.osm.Node cannot be cast to org.openstreetmap.josm.data.osm.Relation

at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor.refreshTables(GenericRelationEditor.java:348)
at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor.setupBasicLayout(GenericRelationEditor.java:204)
at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor.<init>(GenericRelationEditor.java:111)
at org.openstreetmap.josm.gui.dialogs.relation.RelationEditor.getEditor(RelationEditor.java:59)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog$1.actionPerformed(RelationListDialog.java:61)
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:253)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
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 stoecker, 15 years ago

Resolution: fixed
Status: newclosed

Fixed since r1616.

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.