Modify

Opened 15 months ago

Last modified 4 weeks ago

#19640 new defect

CCE: Way cannot be cast to Node at SortPTRouteMembersAction.sortPTRouteMembers

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

Description

What steps will reproduce the problem?

  1. Select a relation with platforms and edit route
  2. Clic to "Sort route" icon
  3. Crash

What is the expected result?

Yes.

What happens instead?

The route don't sort and see a error.

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-07-30 12:44:04 +0200 (Thu, 30 Jul 2020)
Revision:16812
Build-Date:2020-07-31 01:30:49
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (16812 es) Linux Deepin 15.11
Memory Usage: 476 MB / 2952 MB (81 MB allocated, but free)
Java version: 11.0.6+10-post-Debian-1bpo91, Debian, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Screen: :0.0 1360x768 (scaling 1.0x1.0), :0.1 1920x1080 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1080
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
Java package: openjdk-11-jre:amd64-11.0.6+10-1~bpo9+1
libcommons-logging-java: libcommons-logging-java:all-1.2-1
fonts-noto: fonts-noto:all-20161116-1
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found

Plugins:
+ OpenStreetCam (327)
+ pt_assistant (2.1.10-80-g7d9bba3)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/iD&zip=1

Validator rules:
+ https://www.openrailwaymap.org/validator/openrailwaymap.validator.mapcss

Last errors/warnings:
- E: Handled by bug report queue: java.lang.ClassCastException: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node (org.openstreetmap.josm.data.osm.Way and org.openstreetmap.josm.data.osm.Node are in unnamed module of loader 'app')
- E: Handled by bug report queue: java.lang.ClassCastException: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node (org.openstreetmap.josm.data.osm.Way and org.openstreetmap.josm.data.osm.Node are in unnamed module of loader 'app')
- E: Handled by bug report queue: java.lang.ClassCastException: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node (org.openstreetmap.josm.data.osm.Way and org.openstreetmap.josm.data.osm.Node are in unnamed module of loader 'app')
- E: Handled by bug report queue: java.lang.ClassCastException: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node (org.openstreetmap.josm.data.osm.Way and org.openstreetmap.josm.data.osm.Node are in unnamed module of loader 'app')
- E: Handled by bug report queue: java.lang.ClassCastException: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node (org.openstreetmap.josm.data.osm.Way and org.openstreetmap.josm.data.osm.Node are in unnamed module of loader 'app')
- E: Handled by bug report queue: java.lang.ClassCastException: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node (org.openstreetmap.josm.data.osm.Way and org.openstreetmap.josm.data.osm.Node are in unnamed module of loader 'app')
- E: Handled by bug report queue: java.lang.ClassCastException: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node (org.openstreetmap.josm.data.osm.Way and org.openstreetmap.josm.data.osm.Node are in unnamed module of loader 'app')


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (20) of main
java.lang.ClassCastException: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node (org.openstreetmap.josm.data.osm.Way and org.openstreetmap.josm.data.osm.Node are in unnamed module of loader 'app')
	at org.openstreetmap.josm.data.osm.RelationMember.getNode(RelationMember.java:70)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.sortPTRouteMembers(SortPTRouteMembersAction.java:422)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.continueAfterDownload(SortPTRouteMembersAction.java:152)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.actionPerformed(SortPTRouteMembersAction.java:124)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
	at java.desktop/java.awt.Component.processEvent(Component.java:6397)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Attachments (0)

Change History (5)

comment:1 Changed 15 months ago by Klumbumbus

Component: CorePlugin pt_assistant
Owner: changed from team to Biswesh

comment:2 Changed 14 months ago by simon04

Cc: michael2402 floscher Polyglot added

comment:3 Changed 12 months ago by Don-vip

Summary: Crash with PT Assistant pluginCCE: Way cannot be cast to Node at SortPTRouteMembersAction.sortPTRouteMembers

comment:4 Changed 12 months ago by skyper

Similar to #19480 and #21359.

Last edited 4 weeks ago by skyper (previous) (diff)

comment:5 Changed 4 weeks ago by skyper

Keywords: sort added
Version: latest

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Biswesh.
as The resolution will be set.
to The owner will be changed from Biswesh to the specified user.
The owner will change to anonymous
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from Biswesh to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.