[josm-dev] Exception when opening a preset

Dirk Stöcker openstreetmap at dstoecker.de
Sun Apr 27 16:08:22 UTC 2014


On Sat, 26 Apr 2014, Nicolás Alvarez wrote:

> I'm running a self-compiled JOSM 7006 with a few patches on top.
> Whenever I try to open a preset dialog, I get this error:
>
> java.lang.RuntimeException: Fatal: failed to locate image 'pin.???'.
> This is a serious configuration problem. JOSM will stop working.
>        at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:307)
>        at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:357)
>        at org.openstreetmap.josm.gui.tagging.TaggingPreset$ToolbarButtonAction.<init>(TaggingPreset.java:511)
>        at org.openstreetmap.josm.gui.tagging.TaggingPreset.createPanel(TaggingPreset.java:258)
>        at org.openstreetmap.josm.gui.tagging.TaggingPreset.showDialog(TaggingPreset.java:323)
>        at org.openstreetmap.josm.gui.tagging.TaggingPreset.actionPerformed(TaggingPreset.java:292)
>        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
>        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
>        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>        at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
>        at [...]
>
> What could be the cause? My patches aren't anywhere near the preset or
> image-loading code...

Very likely you have a toolbar action for a preset and this one uses an 
image "pin.png". Either an error or the file existed in the past and 
exists no more.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)


More information about the josm-dev mailing list