Modify

Opened 4 years ago

Closed 22 months ago

#19480 closed defect (fixed)

[PATCH][GitHub Plugin] sort PT route members in relation causes ClastCastException in various places

Reported by: Polyglot Owned by: Biswesh
Priority: normal Milestone:
Component: Plugin pt_assistant Version:
Keywords: template_report sort Cc: michael2402, floscher, Polyglot, avantdill@…

Description

What steps will reproduce the problem?

  1. Use the sort PT route members in relation

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-05-18 09:57:52 +0200 (Mon, 18 May 2020)
Build-Date:2020-05-19 01:30:51
Revision:16460
Relative:URL: ^/trunk

Identification: JOSM/1.5 (16460 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 1903 (18362)
Memory Usage: 209 MB / 725 MB (68 MB allocated, but free)
Java version: 1.8.0_251-b08, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1920x1080, \Display1 1920x1080
Maximum Screen Size: 1920x1080
Dataset consistency test: No problems found

Plugins:
+ FixAddresses (35343)
+ Mapillary (1.5.23-3-g1f54475-dirty)
+ apache-commons (35362)
+ apache-http (35092)
+ buildings_tools (35500)
+ ejml (35313)
+ geotools (35169)
+ javafx-windows (35458)
+ jaxb (35092)
+ jna (35092)
+ jts (35122)
+ opendata (35405)
+ pt_assistant (2.1.10-94-g236cf99-dirty)
+ reverter (35474)
+ scripting (30796)
+ todo (30306)
+ utilsplugin2 (35476)
+ wikipedia (1.1.4)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/SlovakiaBicycleRoutes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedCycleNodeNetworks&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedCycleNodeNetworks&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedWalkingNodeNetworks&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1

Last errors/warnings:
- E: Failed to locate image 'bus.png'
- E: Handled by bug report queue: java.lang.ClassCastException: org.openstreetmap.josm.data.osm.Node cannot be cast to org.openstreetmap.josm.data.osm.Way


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (15) of main
java.lang.ClassCastException: org.openstreetmap.josm.data.osm.Node cannot be cast to org.openstreetmap.josm.data.osm.Way
	at org.openstreetmap.josm.data.osm.RelationMember.getWay(RelationMember.java:61)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.wayCanBeTraversedAgain(SortPTRouteMembersAction.java:625)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.sortPTRouteMembers(SortPTRouteMembersAction.java:465)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.continueAfterDownload(SortPTRouteMembersAction.java:151)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.actionPerformed(SortPTRouteMembersAction.java:123)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (15)

comment:1 by simon04, 4 years ago

Cc: michael2402 floscher Polyglot added

comment:2 by skyper, 4 years ago

Ticket #19923 has been marked as a duplicate of this ticket.

comment:3 by skyper, 3 years ago

Keywords: sort added

Similar to #19640 and #21359.

comment:4 by taylor.smock, 3 years ago

Ticket #19640 has been marked as a duplicate of this ticket.

comment:5 by taylor.smock, 3 years ago

Ticket #21359 has been marked as a duplicate of this ticket.

comment:6 by taylor.smock, 3 years ago

Ticket #21545 has been marked as a duplicate of this ticket.

comment:7 by taylor.smock, 3 years ago

Summary: sort PT route members in relation causes exception[PATCH] sort PT route members in relation causes ClastCastException in various places

comment:8 by taylor.smock, 2 years ago

Patch ping

comment:9 by taylor.smock, 2 years ago

Summary: [PATCH] sort PT route members in relation causes ClastCastException in various places[PATCH][GitHub Plugin] sort PT route members in relation causes ClastCastException in various places

comment:10 by taylor.smock, 2 years ago

Ticket #22502 has been marked as a duplicate of this ticket.

comment:11 by taylor.smock, 2 years ago

Ticket #22620 has been marked as a duplicate of this ticket.

comment:12 by taylor.smock, 2 years ago

I need someone else with write access to pt_assistant to review the patch -- since I wrote it, I cannot merge it (with the current GitHub repo settings).

comment:13 by skyper, 23 months ago

Ticket #22724 has been marked as a duplicate of this ticket.

comment:14 by skyper, 23 months ago

Cc: avantdill@… added

comment:15 by taylor.smock, 22 months ago

Resolution: fixed
Status: newclosed

Modify Ticket

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