﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21270	IOException to open fieldpapers by local file	Luebeck	mojodna	"==== What steps will reproduce the problem?
open fieldpapers
past ""c:\temp\test_field.jpg""
=> crash

==== What is the expected result?

==== What happens instead?

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-08-02 19:44:04 +0200 (Mon, 02 Aug 2021)
Build-Date:2021-08-02 18:26:20
Revision:18118
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18118 de) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 2009 (19043)
Memory Usage: 567 MB / 989 MB (302 MB allocated, but free)
Java version: 1.8.0_202-b08, Oracle Corporation, Java HotSpot(TM) Client VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00) \Display1 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: de_DE
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ AddrInterpolation (35640)
+ FixAddresses (35640)
+ ImageWayPoint (35640)
+ ImportImagePlugin (35567)
+ Mapillary (2.0.0-alpha.30-dirty)
+ PicLayer (1.0.1)
+ apache-commons (35524)
+ apache-http (35589)
+ ejml (35458)
+ fieldpapers (v0.5.0)
+ geotools (35458)
+ jaxb (35543)
+ jna (35662)
+ jts (35458)
+ log4j (35458)
+ measurement (35640)
+ opendata (35640)
+ terracer (35640)
+ turnlanes (35640)
+ utilsplugin2 (35792)
+ wikipedia (1.1.4)

Tagging presets:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/DE.zip
+ http://www.tappenbeck.net/osm/vespucci/josm-preset_vespucci.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/Heritage&zip=1
+ U:\turbo-overpass\josm_source\josm_heritage_hl.xml

Map paint styles:
- %UserProfile%\Documents\JOSM_VORLAGEN\jt_josm_icons.mapcss
+ %UserProfile%\Documents\JOSM_VORLAGEN\vermessung.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_features&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MaxspeedIcons&zip=1
+ ""%UserProfile%\Documents\JOSM_Vorlagen\Flut2021.xml""

Last errors/warnings:
- 00005.563 E: java.nio.file.NoSuchFileException: %UserProfile%\Documents\JOSM_VORLAGEN\jt_josm_icons.mapcss
- 00005.563 W: Kartenstile konnten nicht von '%UserProfile%\Documents\JOSM_VORLAGEN\vermessung.mapcss' geladen werden. Fehler war: java.nio.file.NoSuchFileException: %UserProfile%\Documents\JOSM_VORLAGEN\vermessung.mapcss
- 00005.564 E: java.nio.file.NoSuchFileException: %UserProfile%\Documents\JOSM_VORLAGEN\vermessung.mapcss
- 00005.565 W: 'Initializing map style %UserProfile%\Documents\JOSM_VORLAGEN\vermessung.mapcss' in 1 ms beendet (1 errors, 0 warnings)
- 00005.686 W: Kartenstile konnten nicht von '""%UserProfile%\Documents\JOSM_Vorlagen\Flut2021.xml""' geladen werden. Fehler war: java.nio.file.InvalidPathException: Illegal char <""> at index 0: ""%UserProfile%\Documents\JOSM_Vorlagen\Flut2021.xml""
- 00005.686 E: java.nio.file.InvalidPathException: Illegal char <""> at index 0: ""%UserProfile%\Documents\JOSM_Vorlagen\Flut2021.xml""
- 00005.687 E: java.nio.file.InvalidPathException: Illegal char <""> at index 0: ""%UserProfile%\Documents\JOSM_Vorlagen
- 00005.687 W: 'Initializing map style ""%UserProfile%\Documents\JOSM_Vorlagen\Flut2021.xml""' in 1 ms beendet (1 errors, 0 warnings)
- 00060.065 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.fixAddresses.FixAddressesPreferences
- 00137.869 E: Handled by bug report queue: javax.json.JsonException: I/O error while auto-detecting the encoding of stream. Ursache: java.io.IOException: stream is closed



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (17) of main
javax.json.JsonException: I/O error while auto-detecting the encoding of stream
	at org.glassfish.json.UnicodeDetectingInputStream.fillBuf(UnicodeDetectingInputStream.java:123)
	at org.glassfish.json.UnicodeDetectingInputStream.detectEncoding(UnicodeDetectingInputStream.java:128)
	at org.glassfish.json.UnicodeDetectingInputStream.<init>(UnicodeDetectingInputStream.java:75)
	at org.glassfish.json.JsonParserImpl.<init>(JsonParserImpl.java:95)
	at org.glassfish.json.JsonReaderImpl.<init>(JsonReaderImpl.java:73)
	at org.glassfish.json.JsonProviderImpl.createReader(JsonProviderImpl.java:136)
	at javax.json.Json.createReader(Json.java:225)
	at org.openstreetmap.josm.plugins.fieldpapers.FieldPapersAddLayerAction.getMetadata(FieldPapersAddLayerAction.java:106)
	at org.openstreetmap.josm.plugins.fieldpapers.FieldPapersAddLayerAction.openUrl(FieldPapersAddLayerAction.java:71)
	at org.openstreetmap.josm.plugins.fieldpapers.FieldPapersAddLayerAction.actionPerformed(FieldPapersAddLayerAction.java:58)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: stream is closed
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.ensureOpen(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
	at org.openstreetmap.josm.io.ProgressInputStream.read(ProgressInputStream.java:60)
	at org.glassfish.json.UnicodeDetectingInputStream.fillBuf(UnicodeDetectingInputStream.java:89)
	... 48 more
}}}
"	defect	new	normal		Plugin fieldpapers			template_report	
