Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2402 closed defect (duplicate)

Save fails in GpxWriter.writeAttr ClassCastException: java.lang.Float cannot be cast to java.lang.String

Reported by: TuurEfe Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: ClassCastException, Float, String Cc:

Description

Saving to disk fails when loaded two gpx files converted from AMOD gps logger using gpsbabel -t -i nmea -f infile.log -x simplify,error=0.0005k -x discard,hdop=6 -o gpx -F outfile.gpx and loaded multiple map data areas.

Error appears immediately after clicking with mouse on the save (disk image) button. Using OpenJDK 6 on Ubuntu.

Attached the gpx files that were loaded when the error appeared. The map data was loaded from multiple areas around the track. I seem to be able to continue, but cannot save.

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1521
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1521
Last Changed Date: 2009-03-31 17:26:55 +0200 (Tue, 31 Mar 2009)

Java version: 1.6.0_0
Plugins: utilsplugin;validator;wmsplugin
Plugin utilsplugin Version: 14356
Plugin validator Version: 14123
Plugin wmsplugin Version: 14120

java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.String

at org.openstreetmap.josm.io.GpxWriter.writeAttr(GpxWriter.java:68)
at org.openstreetmap.josm.io.GpxWriter.wayPoint(GpxWriter.java:202)
at org.openstreetmap.josm.io.GpxWriter.writeTracks(GpxWriter.java:120)
at org.openstreetmap.josm.io.GpxWriter.write(GpxWriter.java:52)
at org.openstreetmap.josm.actions.SaveActionBase.save(SaveActionBase.java:199)
at org.openstreetmap.josm.actions.SaveActionBase.save(SaveActionBase.java:141)
at org.openstreetmap.josm.actions.SaveActionBase.doSave(SaveActionBase.java:56)
at org.openstreetmap.josm.actions.SaveActionBase.actionPerformed(SaveActionBase.java:37)
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:6106)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
at java.awt.Component.processEvent(Component.java:5871)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4293)
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:4293)
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 (2)

GPS_20090408_050103.gpx (160.3 KB ) - added by TuurEfe 15 years ago.
GPX file 1
GPS_20090408_143109_2.gpx (232.0 KB ) - added by TuurEfe 15 years ago.
GPX file 2 (this one was actually empty on my disk, re-created it, could it be emptied by josm??)

Download all attachments as: .zip

Change History (4)

by TuurEfe, 15 years ago

Attachment: GPS_20090408_050103.gpx added

GPX file 1

by TuurEfe, 15 years ago

Attachment: GPS_20090408_143109_2.gpx added

GPX file 2 (this one was actually empty on my disk, re-created it, could it be emptied by josm??)

comment:1 by TuurEfe, 15 years ago

Resolution: duplicate
Status: newclosed

comment:2 by TuurEfe, 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.