Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2621 closed defect (duplicate)

editgpx can't save modified gpx file

Reported by: pert Owned by: team
Priority: critical Milestone:
Component: Plugin Version: latest
Keywords: editgpx Cc:

Description

Using Save or Save as from the editgpx plugin results in crash:

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1605
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1605
Last Changed Date: 2009-05-19 19:11:56 +0200 (Tue, 19 May 2009)

Java version: 1.6.0_13
Plugins: AgPifoJ;editgpx;validator
Plugin AgPifoJ Version: 14916
Plugin editgpx Version: 14247
Plugin validator Version: 14406

java.lang.ClassCastException: java.util.Date cannot be cast to java.lang.String

at org.openstreetmap.josm.io.GpxWriter.writeAttr(GpxWriter.java:70)
at org.openstreetmap.josm.io.GpxWriter.wayPoint(GpxWriter.java:238)
at org.openstreetmap.josm.io.GpxWriter.writeTracks(GpxWriter.java:156)
at org.openstreetmap.josm.io.GpxWriter.write(GpxWriter.java:54)
at org.openstreetmap.josm.actions.SaveActionBase.save(SaveActionBase.java:206)
at org.openstreetmap.josm.actions.SaveActionBase.save(SaveActionBase.java:142)
at org.openstreetmap.josm.actions.SaveActionBase.doSave(SaveActionBase.java:57)
at org.openstreetmap.josm.actions.SaveActionBase.actionPerformed(SaveActionBase.java:38)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
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 (4)

comment:1 by pert, 15 years ago

Just noticed #2359 which seems to be hitting the same bug. I can't provide the problem gpx file either
since I can't save it :-)

Maybe it would upload to osm? I could try if that would be helpful. But then I will need to shutdown the josm instance in a few minutes ...

comment:2 by pert, 15 years ago

Just noticed that this is a duplicate of #2371

comment:3 by stoecker, 15 years ago

Resolution: duplicate
Status: newclosed

comment:4 by stoecker, 15 years ago

Closed as duplicate of #2359.

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.