﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14258	"Doing a Debug-Load via Eclipse from Fresh SVN Checkout Throws Errors at Startup: ""Error: Unknown projection code"""	alexkemp	alexkemp	"==== What steps will reproduce the problem?
1. Install latest Eclipse IDE (Oxygen Release Milestone 4 (4.7.0 M4)) under freshly updated Debian GNU/Linux 8.7 (jessie)
2. Checkout SVN under Eclipse into empty workspace dir + load embedded project at josm/core
2. (right-click ▸ Debug as) on ""josm/core/eclipse/JOSM (Java 8).launch""
3. It rapidly froze at the Debug screen, and I had to Resume (f8) more than once before JOSM threw up this Report Bug screen

==== What is the expected result?
JOSM to load to the point of downloading info from server

==== What happens instead?
JOSM reached 'Setting defaults' & started throwing exceptions

==== Please provide any additional information below. Attach a screenshot if possible.
Before launching from Eclipse, I had updated JOSM & launched from the latest snapshot + updated all plugins, then exited after startup terminated.

This full, clean update was prompted by an earlier discovery of ""Error: Unknown projection code"" on similar startup via Eclipse. Cleaning the Build (on this occasion), re-starting Eclipse & then re-doing `Debug as` (as to be able to report the file + file-line where it first stopped) loaded uneventfully & reached the Start Screen. I'm going to go & lie down in a darkened room again.

Please also see https://www.openstreetmap.org/user/alexkemp/diary/40212

{{{
Build-Date:2017-01-17 00:58:34
Revision:11473
Is-Local-Build:true

Identification: JOSM/1.5 (11473 SVN en_GB) Linux Debian GNU/Linux 8.7 (jessie)
Memory Usage: 198 MB / 1636 MB (152 MB allocated, but free)
Java version: 1.8.0_111-8u111-b14-2~bpo8+1-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1366x768
Maximum Screen Size: 1366x768
Java package: openjdk-8-jre:amd64-8u111-b14-2~bpo8+1
Java ATK Wrapper package: libatk-wrapper-java:all-0.30.5-1
VM arguments: [-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:59000, -Dfile.encoding=UTF-8]
Program arguments: [--debug]

Plugins:
+ DirectUpload
+ Mapillary
+ apache-commons
+ apache-http
+ buildings_tools
+ continuosDownload
+ terracer
+ waydownloader

Last errors/warnings:
- W: Update plug-ins - org.openstreetmap.josm.plugins.PluginHandler$UpdatePluginsMessagePanel[,0,0,0x0,invalid,layout=java.awt.GridBagLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
- E: Handled by bug report queue: java.lang.ExceptionInInitializerError. Cause: org.openstreetmap.josm.tools.JosmRuntimeException: java.io.IOException: Failed to open input stream for resource 'resource://data/projection/custom-epsg'. Cause: java.io.IOException: Failed to open input stream for resource 'resource://data/projection/custom-epsg'


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main (1)
java.lang.ExceptionInInitializerError
	at org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice.getProjection(AbstractProjectionChoice.java:62)
	at org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference.setProjection(ProjectionPreference.java:438)
	at org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference.setProjection(ProjectionPreference.java:417)
	at org.openstreetmap.josm.Main.preConstructorInit(Main.java:761)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:331)
Caused by: org.openstreetmap.josm.tools.JosmRuntimeException: java.io.IOException: Failed to open input stream for resource 'resource://data/projection/custom-epsg'
	at org.openstreetmap.josm.data.projection.Projections.<clinit>(Projections.java:150)
	... 5 more
Caused by: java.io.IOException: Failed to open input stream for resource 'resource://data/projection/custom-epsg'
	at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:213)
	at org.openstreetmap.josm.io.CachedFile.getContentReader(CachedFile.java:250)
	at org.openstreetmap.josm.data.projection.Projections.loadProjectionDefinitions(Projections.java:272)
	at org.openstreetmap.josm.data.projection.Projections.<clinit>(Projections.java:148)
	... 5 more
}}}
"	defect	closed	normal		Core	latest	worksforme	template_report	
