Opened 5 weeks ago

Last modified 5 weeks ago

#21359 new defect

pt assistant sorting bug

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


What steps will reproduce the problem?

  1. Install pt_assistant
  2. Select relation 11052105 and validate
  3. Click on "Route contains gap that can be fixed by sorting"
  4. Click on fix

What is the expected result?

Sort relation, remove problem

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-06-02 22:03:39 +0200 (Wed, 02 Jun 2021)
Build-Date:2021-06-02 20:11:30

Identification: JOSM/1.5 (17919 en) Linux Ubuntu 20.04.2 LTS
Memory Usage: 698 MB / 1912 MB (396 MB allocated, but free)
Java version: 11.0.11+9-Ubuntu-0ubuntu2.20.04, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 2560×1440 (scaling 2.00×2.00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_CA.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_CA
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: ubuntu:GNOME
Java package: openjdk-11-jre:amd64-11.0.11+9-0ubuntu2~20.04
Java ATK Wrapper package: libatk-wrapper-java:all-0.37.1-1
fonts-noto: fonts-noto:-
Dataset consistency test: No problems found

+ buildings_tools (35756)
+ pt_assistant (1ff2e15)
+ terracer (35640)

Map paint styles:

Last errors/warnings:
- 00162.806 E: Failed to locate image 'bus.png'
- 01385.380 E: Handled by bug report queue: java.lang.ClassCastException: class cannot be cast to class ( and are in unnamed module of loader 'app')

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: AWT-EventQueue-0 (19) of main
java.lang.ClassCastException: class cannot be cast to class ( and are in unnamed module of loader 'app')
	at org.openstreetmap.josm.plugins.pt_assistant.actions.SortPTRouteMembersAction.sortPTRouteMembers(
	at org.openstreetmap.josm.plugins.pt_assistant.validation.RouteChecker.fixSortingError(
	at org.openstreetmap.josm.plugins.pt_assistant.validation.PTAssistantValidatorTest.fixError(
	at org.openstreetmap.josm.gui.dialogs.ValidatorDialog$FixTask.fixError(
	at org.openstreetmap.josm.gui.dialogs.ValidatorDialog$FixTask.realRun(
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(
	at java.base/java.util.concurrent.Executors$
	at java.base/
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.base/java.util.concurrent.ThreadPoolExecutor$
	at java.base/

Attachments (0)

Change History (2)

comment:1 Changed 5 weeks ago by skyper

Keywords: sort added

Similar to or duplicate of #19480 and #19640.

comment:2 Changed 5 weeks ago by gaben

They are the same but has a bit different stack traces because of the plugin versions.

I miss a YouTrack/Jira/GitHub like ticket reference system in Trac. Doing it by hand is error-prone and mechanical work.

Modify Ticket

Change Properties
Set your email in Preferences
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.