Modify

Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#14258 closed defect (worksforme)

Doing a Debug-Load via Eclipse from Fresh SVN Checkout Throws Errors at Startup: "Error: Unknown projection code"

Reported by: alexkemp Owned by: alexkemp
Priority: normal Milestone:
Component: Core Version: latest
Keywords: template_report Cc:

Description

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
  3. (right-click ▸ Debug as) on "josm/core/eclipse/JOSM (Java 8).launch"
  4. 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

Attachments (0)

Change History (3)

comment:1 by alexkemp, 8 years ago

https://www.openstreetmap.org/user/alexkemp/diary/40257

Well, I've restarted Eclipse yet again & have debug-launched JOSM yet again & even successfully loaded up a patch of Gedling in the Editor. It seems that I simply needed to shut it down & restart again (I spent 3 years from 1998 telling other folks to do that whilst supporting them on the inter-webs).

I'd like to think that no-one else needed to suffer this, but it also seems that this is a non-defect defect.

Thanks for your attention. Please close this report.

comment:2 by Don-vip, 8 years ago

Resolution: worksforme
Status: newclosed

Ant build must be called once before the first run I think.

comment:3 by anonymous, 6 years ago

Run 'ant epsg'

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain alexkemp.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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