Modify

Opened 4 years ago

Closed 4 years ago

#21545 closed defect (duplicate)

CCE: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node

Reported by: contrapunctus@… Owned by: contrapunctus@…
Priority: normal Milestone:
Component: Plugin pt_assistant Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-11-01 23:05:46 +0100 (Mon, 01 Nov 2021)
Revision:18303
Build-Date:2021-11-01 22:25:18
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18303 en) Linux Debian GNU/Linux bookworm/sid
Memory Usage: 492 MB / 1956 MB (181 MB allocated, but free)
Java version: 11.0.13+8-post-Debian-1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Screen: :0.0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_IN
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_IN
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: XFCE
Java package: openjdk-11-jre:amd64-11.0.13+8-1
Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-5
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20201225-1
Dataset consistency test: No problems found

Plugins:
+ pt_assistant (1ff2e15)
+ reverter (35846)

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

Last errors/warnings:
- 00008.096 E: Failed to locate image 'bus.png'
- 02650.411 W: java.net.SocketTimeoutException: connect timed out
- 04465.690 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:71)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.sortPTRouteMembers(SortPTRouteMembersAction.java:484)
	at org.openstreetmap.josm.plugins.pt_assistant.validation.RouteChecker.fixSortingError(RouteChecker.java:350)
	at org.openstreetmap.josm.plugins.pt_assistant.validation.PTAssistantValidatorTest.fixError(PTAssistantValidatorTest.java:478)
	at org.openstreetmap.josm.data.validation.TestError.getFix(TestError.java:433)
	at org.openstreetmap.josm.gui.dialogs.ValidatorDialog$FixTask.fixError(ValidatorDialog.java:630)
	at org.openstreetmap.josm.gui.dialogs.ValidatorDialog$FixTask.realRun(ValidatorDialog.java:658)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Attachments (0)

Change History (6)

comment:1 by skyper, 4 years ago

How did you install JOSM? How do you run it?
See ticket/21540.

Despite the name the "Ubuntu" package is a general Debian package and works perfect on Debian, see Download.

comment:2 by skyper, 4 years ago

Owner: changed from team to contrapunctus@…
Status: newneedinfo

comment:3 by skyper, 4 years ago

Summary: CrashCCE: class org.openstreetmap.josm.data.osm.Way cannot be cast to class org.openstreetmap.josm.data.osm.Node

comment:4 by Don-vip, 4 years ago

Component: CorePlugin pt_assistant

comment:5 by contrapunctus@…, 4 years ago

I use java -jar josm-tested.jar.

comment:6 by taylor.smock, 4 years ago

Resolution: duplicate
Status: needinfoclosed

Closed as duplicate of #19480.
It looks like PT_Assistant assumes all stop positions are nodes. It really should do validation earlier. Or not assume that all stop positions are nodes.

Modify Ticket

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