Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#11751 closed defect (fixed)

[Patch] JOSM JNLP doesn't restart in Linux

Reported by: Sylve Owned by: team
Priority: normal Milestone: 15.08
Component: Core restart Version: latest
Keywords: Linux debian icedtea webstart jnlp Cc:

Description

Hi,

My JOSM seems to not restart. I use the josm.jnlp version, on Debian Jessie (Linux). I start JOSM with the command: javaws ~/OpenStreetMap/josm.jnlp

When I restart JOSM, I get this message in the command line:

INFO : Restart -Xbootclasspath/a:/usr/share/icedtea-web/netx.jar:, -Xms8m, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/bin/javaws, -Djava.security.manager, -Djava.security.policy=/etc/icedtea-web/javaws.policy, -cp, "/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar", net.sourceforge.jnlp.runtime.Boot

And JOSM do not restart.

Regards,

Sylve

Attachments (1)

11751.patch (8.1 KB) - added by simon04 7 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 7 years ago by Don-vip

Owner: changed from team to Sylve
Status: newneedinfo

Can you please attach your status report as asked on newticket?

comment:2 Changed 7 years ago by Sylve

Sorry for the mistake.

What steps will reproduce the problem?

  1. Start JOSM JNLP version with
    javaws josm.jnlp
    
    command.
  2. Restart JOSM with Files --> Restart.

What is the expected result?

JOSM should restart.

What happens instead?

JOSM do not restart.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2015-06-16 21:45:58
Last Changed Author: Don-vip
Revision: 8491
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2015-06-16 23:27:08 +0200 (Tue, 16 Jun 2015)
Last Changed Rev: 8491

Identification: JOSM/1.5 (8491 fr) Linux Debian GNU/Linux 8.1 (jessie)
Memory Usage: 94 MB / 1753 MB (53 MB allocated, but free)
Java version: 1.7.0_79, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u79-2.5.6-1~deb8u1
WebStart package: icedtea-netx:amd64-1.5-2+deb8u1
VM arguments: [-Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/bin/javaws, -Djava.security.manager, -Djava.security.policy=/etc/icedtea-web/javaws.policy]

Regards,

Sylve

comment:3 Changed 7 years ago by Don-vip

Keywords: debian icedtea webstart jnlp added
Owner: changed from Sylve to team
Status: needinfonew

Changed 7 years ago by simon04

Attachment: 11751.patch added

comment:4 Changed 7 years ago by simon04

Milestone: 15.09
Summary: JOSM JNLP doesn't restart in Linux[Patch] JOSM JNLP doesn't restart in Linux

I can confirm this issue (Arch Linux). Patch attached w/ refactoring of the restart logic plus fix for this issue. The main part of the fix is the test for …

(System.getProperty("sun.java.command").endsWith(".jnlp") && jnlp == null)

comment:5 Changed 7 years ago by Don-vip

Milestone: 15.0915.08

comment:6 Changed 7 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 8666/josm:

fix #11751 - JOSM JNLP doesn't restart in Linux (patch by simon04, modified)

comment:7 Changed 7 years ago by Don-vip

Thanks for the patch! We'll finally have a robust implementation of restarting a Java application :)

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.