Opened 3 years ago

Closed 3 years ago

#15481 closed enhancement (fixed)

Silence FileNotFoundException

Reported by: naoliv Owned by: team
Priority: minor Milestone: 17.10
Component: Core Version:
Keywords: console log Cc:


When starting JOSM with an enabled style that isn't available we can see this:

2017-10-24 20:27:39.690 WARNING: Failed to load Mappaint styles from '/tmp/newnodes.mapcss'. Exception was: /tmp/newnodes.mapcss (No such file or directory)
2017-10-24 20:27:39.691 SEVERE: /tmp/newnodes.mapcss (No such file or directory) /tmp/newnodes.mapcss (No such file or directory)
	at java.base/ Method)
	at java.base/
	at java.base/<init>(
	at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.getSourceInputStream(
	at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.loadStyleSource(
	at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.loadStyleForFirstTime(
	at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.readFromPreferences(
	at org.openstreetmap.josm.Main$
	at org.openstreetmap.josm.Main$
	at java.base/
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.base/java.util.concurrent.ThreadPoolExecutor$
	at java.base/

Since JOSM already warns us with 2017-10-24 20:27:39.690 WARNING: Failed to load Mappaint styles from '/tmp/newnodes.mapcss'. Exception was: /tmp/newnodes.mapcss (No such file or directory), couldn't the exception be simply silenced?


Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-10-23 00:30:41 +0200 (Mon, 23 Oct 2017)
Build-Date:2017-10-23 01:33:19

Identification: JOSM/1.5 (13034 pt_BR) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 544 MB / 3072 MB (139 MB allocated, but free)
Java version: 9-Debian+0-9b181-4, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-9-jre:amd64-9~b181-4
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13
VM arguments: [--illegal-access=warn,, -Dawt.useSystemAAFontSettings=on]

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by Don-vip

Keywords: console log added
Milestone: 17.10
Priority: normalminor

comment:2 Changed 3 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 13037/josm:

fix #15481 - Silence FileNotFoundException

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.