Modify ↓
Opened 6 years ago
Closed 6 years ago
#18058 closed defect (fixed)
ClassCastException: "Node cannot be cast to Way" at SortPTRouteMembersAction.wayCanBeTraversedAgain
| Reported by: | Polyglot | Owned by: | Biswesh |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin pt_assistant | Version: | |
| Keywords: | template_report | Cc: |
Description (last modified by )
What steps will reproduce the problem?
- tried to sort stops on this route relation: https://www.openstreetmap.org/relation/7360567
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: 2019-08-21 00:04:41 +0200 (Wed, 21 Aug 2019)
Build-Date:2019-08-21 01:31:05
Revision:15309
Relative:URL: ^/trunk
Identification: JOSM/1.5 (15309 fr) Linux Mint 18.3 Sylvia
Memory Usage: 1830 MB / 2711 MB (859 MB allocated, but free)
Java version: 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900
Maximum Screen Size: 1600x900
Java package: openjdk-8-jre:amd64-8u191-b12-2ubuntu0.16.04.1
libcommons-compress-java: libcommons-compress-java:-
libcommons-logging-java: libcommons-logging-java:all-1.2-1+build1
fonts-noto: fonts-noto:all-20160116-1
Dataset consistency test: No problems found
Plugins:
+ CustomizePublicTransportStop (35039)
+ Mapillary (1.5.18)
+ OpeningHoursEditor (34977)
+ PolygonCutOut (v0.7)
+ apache-commons (34908)
+ apache-http (34908)
+ buildings_tools (34982)
+ changeset-viewer (22)
+ ejml (35049)
+ geotools (34908)
+ graphview (34977)
+ jaxb (35014)
+ jna (34908)
+ jts (35064)
+ markseen (13)
+ measurement (35051)
+ opendata (34997)
+ pt_assistant (2.1.10-60-g7d595bd)
+ public_transport (34977)
+ scripting (30796)
+ tag2link (35070)
+ terracer (34977)
+ todo (30306)
+ utilsplugin2 (34977)
+ wikipedia (v1.1.1)
Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/BENELUX&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Trees&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1
Map paint styles:
+ 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/Cycleways&zip=1
- ${HOME}/bus_stops_with_direction.mapcss
- ${HOME}/Fietssnelwegen Vlaanderen.mapcss
- https://raw.githubusercontent.com/yopaseopor/traffic_signs_style_JOSM/master/Styles_Traffic_signs_EUR.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/MaxspeedIcons&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
Last errors/warnings:
- W: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 20 23:41:24 CEST 2019
- W: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 20 23:41:24 CEST 2019
- W: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 20 23:41:24 CEST 2019
- W: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 20 23:41:24 CEST 2019
- W: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 20 23:41:24 CEST 2019
- W: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 20 23:41:24 CEST 2019
- W: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertPathValidatorException: validity check failed. Cause : java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 20 23:41:24 CEST 2019
- W: Already here java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 20 23:41:24 CEST 2019
- 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
- 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 (16) 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:580)
at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.sortPTRouteMembers(SortPTRouteMembersAction.java:461)
at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.continueAfterDownload(SortPTRouteMembersAction.java:139)
at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.actionPerformed(SortPTRouteMembersAction.java:119)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Attachments (0)
Change History (4)
comment:1 by , 6 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | tried to sort stops on this route relation: https://www.openstreetmap.org/relation/7360567 → ClassCastException at SortPTRouteMembersAction.wayCanBeTraversedAgain |
comment:2 by , 6 years ago
| Summary: | ClassCastException at SortPTRouteMembersAction.wayCanBeTraversedAgain → ClassCastException: "Node cannot be cast to Way" at SortPTRouteMembersAction.wayCanBeTraversedAgain |
|---|
comment:3 by , 6 years ago
comment:4 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



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