Modify

Opened 5 months ago

Last modified 3 months ago

#19901 new defect

Update of FlatLaf PLugin fails

Reported by: Klumbumbus Owned by: simon04
Priority: normal Milestone:
Component: Plugin flatlaf Version:
Keywords: template_report Cc:

Description (last modified by Klumbumbus)

What steps will reproduce the problem?

  1. start JOSM
  2. Error message

A manual update in the preferences doesn't work either.

see also attached screenshots.

console from the beginning:

2020-10-10 11:10:18.599 INFORMATION: Protokollierungsgrad ist bei INFORMATION (INFO, 800)
2020-10-10 11:10:19.257 INFO: Detected useable IPv6 network, preferring IPv6 over IPv4.
2020-10-10 11:10:20.788 WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
2020-10-10 11:10:22.588 INFO: loading plugin 'flatlaf' (version 35568)
2020-10-10 11:10:24.617 INFO: Running plugin update after JOSM upgrade. Automatic update at startup is enabled.
2020-10-10 11:10:24.866 INFO: GET https://josm.openstreetmap.de/pluginicons?plugins=HouseNumberTaggingTool,OpeningHoursEditor,PicLayer,RoadSigns,SimplifyArea,apache-commons,buildings_tools,editgpx,ejml,flatlaf,geotools,imagery-xml-bounds,imagery_offset_db,javafx-windows,jaxb,jna,jogl,jts,log4j,measurement,photo_geotagging,photoadjust,pointInfo,reltoolbox,reverter,tageditor,tagging-preset-tester,terracer,turnlanes-tagging,turnrestrictions,undelete,utilsplugin2 -> HTTP/1.1 200 (211 ms)
2020-10-10 11:10:27.006 INFO: Downloading Plugin flatlaf...
2020-10-10 11:10:27.071 INFO: GET https://josm.openstreetmap.de/osmsvn/applications/editors/josm/dist/flatlaf.jar -> HTTP/1.1 200 (64 ms; 434 kB)
2020-10-10 11:10:27.075 SEVERE: org.openstreetmap.josm.plugins.PluginDownloadException: java.nio.file.FileSystemException: C:\Users\stefa\AppData\Roaming\JOSM\plugins\flatlaf.jar.new: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.. Cause: java.nio.file.FileSystemException: C:\Users\stefa\AppData\Roaming\JOSM\plugins\flatlaf.jar.new: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.
org.openstreetmap.josm.plugins.PluginDownloadException: java.nio.file.FileSystemException: C:\Users\stefa\AppData\Roaming\JOSM\plugins\flatlaf.jar.new: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

	at org.openstreetmap.josm.plugins.PluginDownloadTask.download(PluginDownloadTask.java:147)
	at org.openstreetmap.josm.plugins.PluginDownloadTask.realRun(PluginDownloadTask.java:175)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at org.openstreetmap.josm.plugins.PluginHandler.updatePlugins(PluginHandler.java:1178)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:1141)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:909)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:714)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.nio.file.FileSystemException: C:\Users\stefa\AppData\Roaming\JOSM\plugins\flatlaf.jar.new: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

	at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
	at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source)
	at java.nio.file.Files.deleteIfExists(Unknown Source)
	at java.nio.file.Files.copy(Unknown Source)
	at org.openstreetmap.josm.plugins.PluginDownloadTask.download(PluginDownloadTask.java:131)
	... 17 more

2020-10-10 11:10:27.187 SEVERE: Plugin update failed - <html>Updating the following plugin has failed:<ul><li>flatlaf</li></ul>Please open the Preference Dialog after JOSM has started and try to update it manually.</html>
2020-10-10 11:10:54.264 WARNING: Failed to delete outdated plugin 'C:\Users\stefa\AppData\Roaming\JOSM\plugins\flatlaf.jar'.
2020-10-10 11:10:54.265 WARNING: Failed to install already downloaded plugin 'flatlaf'. Skipping installation. JOSM is still going to load the old plugin version.
2020-10-10 11:10:54.270 INFO: loading plugin 'jaxb' (version 35092)
2020-10-10 11:10:54.274 INFO: loading plugin 'javafx-windows' (version 35458)
2020-10-10 11:10:54.305 INFO: loading plugin 'log4j' (version 35092)

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-10-09 18:53:24 +0200 (Fri, 09 Oct 2020)
Build-Date:2020-10-10 01:30:48
Revision:17137
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17137 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1909 (18363)
Memory Usage: 790 MB / 1820 MB (372 MB allocated, but free)
Java version: 1.8.0_261-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1680x1050 (scaling 1.0x1.0)
Maximum Screen Size: 1680x1050
Best cursor sizes: 16x16 -> 32x32, 32x32 -> 32x32
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Program Files (x86)\josm-latest.jnlp, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=65017, -Djnlpx.jvm=<java.home>\bin\javaw.exe]

Plugins:
+ HouseNumberTaggingTool (35508)
+ OpeningHoursEditor (35414)
+ PicLayer (35405)
+ RoadSigns (35510)
+ SimplifyArea (35405)
+ apache-commons (35524)
+ buildings_tools (35570)
+ editgpx (35248)
+ ejml (35313)
+ flatlaf (35568)
+ geotools (35169)
+ imagery-xml-bounds (35546)
+ imagery_offset_db (35405)
+ javafx-windows (35458)
+ jaxb (35092)
+ jna (35092)
+ jogl (1.2.3)
+ jts (35122)
+ log4j (35092)
+ measurement (35405)
+ photo_geotagging (35499)
+ photoadjust (35405)
+ pointInfo (35565)
+ reltoolbox (35529)
+ reverter (35556)
+ tageditor (35258)
+ tagging-preset-tester (35267)
+ terracer (35560)
+ turnlanes-tagging (283)
+ turnrestrictions (35515)
+ undelete (35521)
+ utilsplugin2 (35487)

Tagging presets:
+ ...

Map paint styles:
+ ...

Validator rules:
+ ...

Last errors/warnings:
- 00008.487 E: org.openstreetmap.josm.plugins.PluginDownloadException: java.nio.file.FileSystemException: <josm.pref>\plugins\flatlaf.jar.new: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.. Cause: java.nio.file.FileSystemException: <josm.pref>\plugins\flatlaf.jar.new: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.
- 00008.598 E: Plugin update failed - <html>Updating the following plugin has failed:<ul><li>flatlaf</li></ul>Please open the Preference Dialog after JOSM has started and try to update it manually.</html>
- 00035.675 W: Failed to delete outdated plugin '<josm.pref>\plugins\flatlaf.jar'.
- 00035.676 W: Failed to install already downloaded plugin 'flatlaf'. Skipping installation. JOSM is still going to load the old plugin version.

Attachments (2)

flatlaf1.png (46.8 KB) - added by Klumbumbus 5 months ago.
flatlaf2.png (69.0 KB) - added by Klumbumbus 5 months ago.

Download all attachments as: .zip

Change History (20)

Changed 5 months ago by Klumbumbus

Attachment: flatlaf1.png added

Changed 5 months ago by Klumbumbus

Attachment: flatlaf2.png added

comment:1 Changed 5 months ago by Klumbumbus

Description: modified (diff)

comment:2 Changed 5 months ago by GerdP

Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

(The process cannot access the file because it is being used by another process.)
Try a reboot (or a tool like Unlocker)

comment:3 Changed 5 months ago by Klumbumbus

Same problem after a fresh reboot. I think there is no other process blocking the freshly downloaded flatlaf.jar.new file except JOSM itself.
Did the update of the plugin work fine for every else?

comment:4 Changed 5 months ago by GerdP

I see similar problems. At the same time update of the building_tools plugin worked fine. Might be the same problem as in #19098

comment:5 in reply to:  3 ; Changed 5 months ago by skyper

Replying to Klumbumbus:

Same problem after a fresh reboot. I think there is no other process blocking the freshly downloaded flatlaf.jar.new file except JOSM itself.
Did the update of the plugin work fine for every else?

Edit: Sorry, it did update, but does not work.

No, it does not update.

In my case, it does not even find the update at all.

Even stranger, it is not listed if the plugin list is filtered to list only installed plugins and it does not find the update if manually checking for update.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-10-09 18:53:24 +0200 (Fri, 09 Oct 2020)
Revision:17137
Build-Date:2020-10-10 01:30:48
URL:https://josm.openstreetmap.de/svn/trunk

Look and Feel: com.formdev.flatlaf.FlatDarculaLaf

Plugins:
+ flatlaf (35572)
2020-10-10 12:37:48.010 INFO: Plugins up to date - All installed plugins are up to date. JOSM does not have to download newer versions.
Last edited 5 months ago by skyper (previous) (diff)

comment:6 in reply to:  5 ; Changed 5 months ago by Klumbumbus

Replying to skyper:

Plugins:
+ flatlaf (35572)

You already have the latest version. I'm stuck with 35568.

comment:7 in reply to:  6 Changed 5 months ago by skyper

Replying to Klumbumbus:

Replying to skyper:

Plugins:
+ flatlaf (35572)

You already have the latest version. I'm stuck with 35568.

Yes, sorry, it did automatically update yesterday, but it does not work as expected: 19819#comment:19

Last edited 5 months ago by skyper (previous) (diff)

comment:8 in reply to:  5 Changed 5 months ago by skyper

Replying to skyper:

Even stranger, it is not listed if the plugin list is filtered to list only installed plugins.

After disabling the plugin and then enabling it again, it is listed again under installed plugins and at least the status bar did change.

comment:9 in reply to:  3 Changed 5 months ago by GerdP

Replying to Klumbumbus:

Same problem after a fresh reboot. I think there is no other process blocking the freshly downloaded flatlaf.jar.new file except JOSM itself.

2020-10-10 11:10:22.588 INFO: loading plugin 'flatlaf' (version 35568)
2020-10-10 11:10:24.617 INFO: Running plugin update after JOSM upgrade. Automatic update at startup is enabled.
2020-10-10 11:10:24.866 INFO: GET https://josm.openstreetmap.de/pluginicons?plugins=HouseNumberTaggingTool,OpeningHoursEditor,PicLayer,RoadSigns,SimplifyArea,apache-commons,buildings_tools,editgpx,ejml,flatlaf,geotools,imagery-xml-bounds,imagery_offset_db,javafx-windows,jaxb,jna,jogl,jts,log4j,measurement,photo_geotagging,photoadjust,pointInfo,reltoolbox,reverter,tageditor,tagging-preset-tester,terracer,turnlanes-tagging,turnrestrictions,undelete,utilsplugin2 -> HTTP/1.1 200 (211 ms)
2020-10-10 11:10:27.006 INFO: Downloading Plugin flatlaf...

Yes, it first loads the plugin and then tries to update. Regression of r16974?

comment:10 Changed 5 months ago by simon04

Regression of r16974?

Maybe. For plugins providing LaF, the loading must be performed prior setupUIManager. However, people wanted to have the splash screen shown in the correct LaF (#19290). What should we do?

comment:11 Changed 5 months ago by GerdP

I would not show the splash screen before the update of those plugins is done.

comment:12 Changed 5 months ago by simon04

This boils down to reverting r16498?

comment:13 Changed 5 months ago by GerdP

No. I meant no GUI at all before the very early plugins are loaded. No idea if that is possible since PluginHandler may try to show a popup in case of a crash.

comment:14 Changed 3 months ago by skyper

Just for the record: It works for me on Linux with automatic updates. I have plugin version 35589 installed now.

comment:15 Changed 3 months ago by GerdP

Hows that? Did you disable the Look and Feel first?

comment:16 Changed 3 months ago by skyper

No, I never had this problem with updating the plugin on my Linux system. It worked from the beginning.

comment:17 Changed 3 months ago by GerdP

Ah, OK, so it might be related to the behaviour of Windows which - unlike unix - doesn't allow to rename or delete a file which is opened and sometimes even keeps this lock when the program was already stopped.

comment:18 Changed 3 months ago by Klumbumbus

Meanwhile the flatlaf updated also for me, but I guess only because I once disabled it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain simon04.
as The resolution will be set.
to The owner will be changed from simon04 to the specified user.
The owner will change to Klumbumbus
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from simon04 to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.