Modify

Opened 3 months ago

Closed 3 months ago

#15898 closed defect (fixed)

NPE at RestartAction.getCommands

Reported by: Zian Owned by: team
Priority: normal Milestone: 18.02
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Launch JOSM from the Start menu

What is the expected result?

JOSM should start and show the main window.

What happens instead?

I got the Report a Bug dialog.

Please provide any additional information below. Attach a screenshot if possible.

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-01-28 23:08:56 +0100 (Sun, 28 Jan 2018)
Build-Date:2018-01-28 22:25:44
Revision:13367
Relative:URL: ^/trunk

Identification: JOSM/1.5 (13367 en) Windows 7 64-Bit
OS Build number: Windows 7 Ultimate (7601)
Memory Usage: 590 MB / 1751 MB (296 MB allocated, but free)
Java version: 1.8.0_162-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1600x900, \Display1 1080x1920
Maximum Screen Size: 1600x1920
VM arguments: [-Djava.security.manager, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djava.util.Arrays.useLegacyMergeSort=true, --add-modules=java.activation,java.se.ee, --add-exports=java.base/sun.security.util=ALL-UNNAMED, --add-exports=java.base/sun.security.x509=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.home=C:\Program Files\Java\jre-9.0.4, -Djnlpx.remove=false, -Djnlpx.offline=false, -Djnlpx.relaunch=true, -Djnlpx.session.data=%UserProfile%\AppData\Local\Temp\session15958746287723477156, -Djnlpx.heapsize=NULL,NULL, -DtrustProxy=true, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-36f47514, exit]

Plugins:
+ ElevationProfile (33815)
+ InfoMode (33722)
+ Mapillary (v1.5.10)
+ OpeningHoursEditor (33876)
+ apache-commons (33668)
+ apache-http (32699)
+ buildings_tools (34040)
+ imagery_offset_db (33774)
+ measurement (33760)
+ scoutsigns (116)
+ utilsplugin2 (33991)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Fixme&zip=1
+ https://raw.githubusercontent.com/species/josm-preset-traffic_sign_direction/master/direction.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Styles/Traffic_signs&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1

Last errors/warnings:
- E: Handled by bug report queue: java.lang.NullPointerException
- W: java.io.IOException: The requested URL https://josm.openstreetmap.de/josmfile?page=Styles/Traffic_signs&zip=1 was not found
- W: Failed to load Mappaint styles from 'https://josm.openstreetmap.de/josmfile?page=Styles/Traffic_signs&zip=1'. Exception was: java.io.IOException: The requested URL https://josm.openstreetmap.de/josmfile?page=Styles/Traffic_signs&zip=1 was not found
- E: java.io.IOException: The requested URL https://josm.openstreetmap.de/josmfile?page=Styles/Traffic_signs&zip=1 was not found
- W: Initializing map style https://josm.openstreetmap.de/josmfile?page=Styles/Traffic_signs&zip=1 completed in 192 ms (1 errors, 0 warnings)
- W: No configuration settings found.  Using hardcoded default values for all pools.


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: IPv6-checker (39)
java.lang.NullPointerException
	at org.openstreetmap.josm.actions.RestartAction.getCommands(RestartAction.java:139)
	at org.openstreetmap.josm.actions.RestartAction.restartJOSM(RestartAction.java:95)
	at org.openstreetmap.josm.gui.MainApplication.lambda$checkIPv6$20(MainApplication.java:1293)
	at java.lang.Thread.run(Unknown Source)

Attachments (1)

JOSM Screenshot.png (95.3 KB) - added by Zian 3 months ago.
Screenshot of the JOSM Report a Bug dialog

Download all attachments as: .zip

Change History (3)

Changed 3 months ago by Zian

Attachment: JOSM Screenshot.png added

Screenshot of the JOSM Report a Bug dialog

comment:1 Changed 3 months ago by Don-vip

Milestone: 18.02
Summary: JOSM Crashes on StartupNPE at RestartAction.getCommands

comment:2 Changed 3 months ago by Don-vip

Resolution: fixed
Status: newclosed

In 13393/josm:

fix #15898 - robustness when sun.java.command property cannot be retrieved

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.

Add Comment


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

 
Note: See TracTickets for help on using tickets.