Modify

Opened 6 years ago

Last modified 2 years ago

#17293 new defect

JOSM shows misleading information when plugin fails to load

Reported by: GerdP Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

See #17290. The screenshot shows that JOSM tells the user that the problem occured in the reverter plugin while the traceback shows that the problem was in plugin tofix.
I wanted to reproduce this but I did not find the plugin binary anywhere.

Attachments (0)

Change History (1)

comment:1 by taylor.smock, 2 years ago

Looking at the exception from #17290, it is likely due to the ordering

org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin tofix
[...snip...]
	at reverter.ChangesetReverter.lambda$new$0(ChangesetReverter.java:157)
[...snip...]
Caused by: java.lang.reflect.InvocationTargetException
[...snip...]
Caused by: java.lang.NoClassDefFoundError: org/geojson/GeoJsonObject
	at org.openstreetmap.josm.plugins.tofix.TofixDialog.<init>(TofixDialog.java:100)
	at org.openstreetmap.josm.plugins.tofix.TofixPlugin.mapFrameInitialized(TofixPlugin.java:22)
	... 50 more
Caused by: java.lang.ClassNotFoundException: org.geojson.GeoJsonObject
[...snip...]

Our code is supposed to find the topmost one.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to GerdP.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.