Modify

Opened 5 years ago

Closed 5 years ago

#18734 closed defect (duplicate)

ClassCastException: Node cannot be cast to Way

Reported by: gaben Owned by: Biswesh
Priority: normal Milestone:
Component: Plugin pt_assistant Version: latest
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Open a public transport route relation
  2. Click on 'Sort PT Route Members Relation Editor' button

What is the expected result?

It shouldn't throw exception.

What happens instead?

Throwing ClassCastException.

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-02-17 21:18:05 +0100 (Mon, 17 Feb 2020)
Build-Date:2020-02-18 02:31:05
Revision:15882
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15882 hu) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1909 (18363)
Memory Usage: 1075 MB / 1820 MB (729 MB allocated, but free)
Java version: 1.8.0_241-b07, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1200
Maximum Screen Size: 1920x1200
VM arguments: [-Djava.security.manager, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm-latest.jnlp, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlp.tk=awt, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.splashport=61558, -Djnlpx.home=<java.home>\bin, -Djnlpx.remove=false, -Djnlpx.offline=false, -Djnlpx.relaunch=true, -Djnlpx.session.data=%UserProfile%\AppData\Local\Temp\session8464363292134554693, -Djnlpx.heapsize=-1,2147483648, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\31\583aa85f-3ed5e881]
Dataset consistency test: No problems found

Plugins:
+ AddrInterpolation (35248)
+ OpeningHoursEditor (35250)
+ buildings_tools (35248)
+ continuosDownload (91)
+ pt_assistant (2.1.10-79-gb14a159)
+ tageditor (35258)
+ turnlanes-tagging (283)
+ utilsplugin2 (35248)
+ wikipedia (1.1.3)

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

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Surface-DataEntry&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Surface&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/PriorityRoad&zip=1

Validator rules:
+ D:\incorrect.validator.mapcss

Last errors/warnings:
- W: Nem sikerült D:\incorrect.validator.mapcss hozzáadása a címke ellenőrzőhöz
- W: java.nio.file.NoSuchFileException: D:\incorrect.validator.mapcss
- 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
- W: Figyelmeztetés - <html>A JOSM nem talált információt az alábbi bővítményekről:<ul><li>continuosDownload</li><li>pt_assistant</li><li>turnlanes-tagging</li><li>utilsplugin2</li><li>tageditor</li><li>AddrInterpolation</li><li>OpeningHoursEditor</li><li>buildings_tools</li><li>wikipedia</li></ul>A bővítmények nem lesznek betöltve.</html>


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (34) of javawsApplicationThreadGroup
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:637)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.sortPTRouteMembers(SortPTRouteMembersAction.java:489)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.continueAfterDownload(SortPTRouteMembersAction.java:153)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.actionPerformed(SortPTRouteMembersAction.java:124)
	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 (2)

comment:1 by gaben, 5 years ago

Maybe duplicate of #18058?

comment:2 by Don-vip, 5 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #18058.

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.