Modify ↓
Opened 8 years ago
Closed 8 years ago
#13294 closed defect (fixed)
same issue as 13293
Reported by: | Polyglot | Owned by: | darya |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin pt_assistant | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Downloaded josm-latest.jar and had the same problem as reported in https://josm.openstreetmap.de/ticket/13293
- opened PT.osm
- ran validation (full), aborted, then ran validation by using the upload button, so only modified objects will be validated.
What is the expected result?
What happens instead?
Please provide any additional information below. Attach a screenshot if possible.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2016-08-09 00:25:24 +0200 (Tue, 09 Aug 2016) Build-Date:2016-08-09 01:35:26 Revision:10770 Relative:URL: ^/trunk Identification: JOSM/1.5 (10770 en) Windows 7 64-Bit Memory Usage: 908 MB / 2889 MB (96 MB allocated, but free) Java version: 1.8.0_91-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Dataset consistency test: No problems found Plugins: + CustomizePublicTransportStop (0.3) + Mapillary (32639) + OpeningHoursEditor (32583) + PicLayer (32495) + RoadSigns (32584) + apache-commons (32584) + apache-http (32584) + buildings_tools (32728) + geochat (32561) + livegps (32470) + pt_assistant (32784) + public_transport (32639) + reverter (32584) + scripting (30730) + surveyor (32584) + tag2link (32326) + terracer (32426) + todo (29154) + turnrestrictions (32629) + undelete (32584) + utilsplugin2 (32725) + wikipedia (32749) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/BENELUX&zip=1 + 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/PTStops&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/NumberedCycleNodeNetworks&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/NumberedWalkingNodeNetworks&zip=1 Last errors/warnings: - W: Old style SideButton usage for action org.openstreetmap.josm.plugins.todo.TodoDialog$SelectAction@1b34aef5 - W: Old style SideButton usage for action org.openstreetmap.josm.plugins.todo.TodoDialog$AddAction@1a0f8e64 - W: Old style SideButton usage for action org.openstreetmap.josm.plugins.todo.TodoDialog$PassAction@6281dd64 - W: Old style SideButton usage for action org.openstreetmap.josm.plugins.todo.TodoDialog$MarkAction@562632e2 - E: java.lang.ClassCastException: org.openstreetmap.josm.data.osm.Way cannot be cast to org.openstreetmap.josm.data.osm.Node === REPORTED CRASH DATA === BugReportExceptionHandler$BugReporterThread#askForBugReport: No data collected. === STACK TRACE === Thread: AWT-EventQueue-0 (18) of main java.lang.ClassCastException: org.openstreetmap.josm.data.osm.Way cannot be cast to org.openstreetmap.josm.data.osm.Node at org.openstreetmap.josm.data.osm.RelationMember.getNode(RelationMember.java:115) at org.openstreetmap.josm.plugins.pt_assistant.validation.NodeChecker.performStopPositionComparePlatformRelations(NodeChecker.java:129) at org.openstreetmap.josm.plugins.pt_assistant.validation.PTAssistantValidatorTest.visit(PTAssistantValidatorTest.java:93) at org.openstreetmap.josm.data.osm.Node.accept(Node.java:214) at org.openstreetmap.josm.data.validation.Test.visit(Test.java:211) at org.openstreetmap.josm.actions.upload.ValidateUploadHook.checkUpload(ValidateUploadHook.java:61) at org.openstreetmap.josm.actions.UploadAction.checkPreUploadConditions(UploadAction.java:207) at org.openstreetmap.josm.actions.UploadAction.uploadData(UploadAction.java:231) at org.openstreetmap.josm.actions.UploadAction.actionPerformed(UploadAction.java:271) 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)
Note:
See TracTickets
for help on using tickets.
The error was because the platforms in the new code were treated as Nodes, whereas they can be Ways too. The fixed version only performs that test if the platform is a Node.
Please update to revision 32791.