Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#17701 closed defect (fixed)

IllegalArgumentException: "Parameter 'name' must not be null" when opening session

Reported by: mpasha Owned by: team
Priority: normal Milestone: 19.05
Component: Core imagery Version: latest
Keywords: template_report session Cc:

Description

What steps will reproduce the problem?

The error occurs if the line <name> Test </ name> is deleted in the example.jos file

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-05-08 21:48:06 +0200 (Wed, 08 May 2019)
Revision:15062
Build-Date:2019-05-09 01:30:52
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (15062 ru) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 2016 LTSB 1607 (14393)
Memory Usage: 617 MB / 1024 MB (241 MB allocated, but free)
Java version: 12+33, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: \Display0 1366x768
Maximum Screen Size: 1366x768
VM arguments: [-Djosm.home=<josm.pref>]
Program arguments: [D:\Programs\JOSM_Portable\Session\default1.jos]

Plugins:
+ BuildingGeneralization (23)
+ DirectDownload (34977)
+ DirectUpload (34908)
+ FastDraw (34977)
+ HouseNumberTaggingTool (34977)
+ Mapillary (1.5.18)
+ OpeningHoursEditor (34977)
+ apache-commons (34908)
+ apache-http (34908)
+ continuosDownload (82)
+ contourmerge (v0.1.4)
+ ejml (34908)
+ eventbus (34908)
+ geotools (34908)
+ gpxfilter (34908)
+ gson (34908)
+ imagery_offset_db (34908)
+ jna (34908)
+ jogl (1.2.3)
+ jts (34908)
+ livegps (34977)
+ log4j (34908)
+ merge-overlap (34972)
+ namemanager (34977)
+ osm-obj-info (51)
+ photoadjust (34977)
+ reltoolbox (34977)
+ surveyor (34977)
+ tag2link (34977)
+ tageditor (34977)
+ utilsplugin2 (34977)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/NewTags&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Towers&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Quick-stops&zip=1
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/UA.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/Manholes&zip=1

Map paint styles:
- https://github.com/GlassOceanos/indoor-JOSM-style/archive/master.zip
- D:\GitHub\-= JOSM =-\Map Styles\Test\potlatch2.mapcss
+ https://pasharm.github.io/New_basic_style_for_JOSM/New_basic_style.mapcss
- D:\GitHub\New_basic_style_for_JOSM\New_basic_style2.mapcss
- D:\GitHub\-= JOSM =-\Map Styles\Test\elemstyles standart JOSM.mapcss
- D:\GitHub\New_basic_style_for_JOSM\New_basic_style.mapcss
- D:\GitHub\Ones test style JOSM\Ones test.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&zip=1

Validator rules:
- <josm.pref>\validator\indoorhelper.validator.mapcss

Last errors/warnings:
- W: Region [TMS_BLOCK_v2] Resetting cache
- W: Cannot start IPv4 remotecontrol https server on port 8112: Keystore was tampered with, or password was incorrect
- W: Cannot start IPv6 remotecontrol https server on port 8112: Keystore was tampered with, or password was incorrect
- W: Некоторые из обработчиков нажатий клавиш забыли себя удалить: [org.openstreetmap.josm.plugins.eventbus.EventBusPlugin$10@4851abf2]
- W: Некоторые из обработчиков клавиш-модификаторов забыли убрать себя: org.openstreetmap.josm.tools.ListenerList@40976d49
- W: Некоторые из обработчиков нажатий клавиш забыли себя удалить: [org.openstreetmap.josm.plugins.eventbus.EventBusPlugin$10@4851abf2]
- W: Некоторые из обработчиков клавиш-модификаторов забыли убрать себя: org.openstreetmap.josm.tools.ListenerList@4cc114cb
- E: org.openstreetmap.josm.io.IllegalDataException: отсутствует обязательный атрибут 'name' для элемента 'layer'
- E: Ошибка данных - <html>Не удалось загрузить файл сеанса 'test.jos'.<br>Ошибка:<br>отсутствует обязательный атрибут 'name' для элемента 'layer'</html>
- E: Handled by bug report queue: java.lang.IllegalArgumentException: Parameter 'name' must not be null


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (18) of main
java.lang.IllegalArgumentException: Parameter 'name' must not be null
	at org.openstreetmap.josm.tools.CheckParameterUtil.ensureParameterNotNull(CheckParameterUtil.java:69)
	at org.openstreetmap.josm.data.imagery.ImageryInfo.<init>(ImageryInfo.java:526)
	at org.openstreetmap.josm.io.session.ImagerySessionImporter.load(ImagerySessionImporter.java:45)
	at org.openstreetmap.josm.io.session.SessionReader.parseJos(SessionReader.java:563)
	at org.openstreetmap.josm.io.session.SessionReader.loadSession(SessionReader.java:746)
	at org.openstreetmap.josm.io.session.SessionReader.loadSession(SessionReader.java:706)
	at org.openstreetmap.josm.actions.SessionLoadAction$Loader.realRun(SessionLoadAction.java:180)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:835)

Attachments (2)

example_normal.jos (1.3 KB ) - added by mpasha 6 years ago.
example_error.jos (1.3 KB ) - added by mpasha 6 years ago.

Download all attachments as: .zip

Change History (5)

by mpasha, 6 years ago

Attachment: example_normal.jos added

by mpasha, 6 years ago

Attachment: example_error.jos added

comment:1 by Don-vip, 6 years ago

Keywords: session added
Summary: Error opening sessionIllegalArgumentException: "Parameter 'name' must not be null" when opening session

comment:2 by Don-vip, 6 years ago

Resolution: fixed
Status: newclosed

In 15070/josm:

fix #17701, fix #17702 - add robustness when loading imagery layers from session

comment:3 by Don-vip, 6 years ago

Component: CoreCore imagery
Milestone: 19.05

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.