angryip / ipscan

Angry IP Scanner - fast and friendly network scanner
angryip.org
GNU General Public License v2.0
4.08k stars 715 forks source link

All settings and comments lost after upgrade #438

Open oapy123 opened 7 months ago

oapy123 commented 7 months ago

Describe the bug After upgrading to latest version (3.9.0 > 3.9.1), settings have reset to default and all of my comments are lost. This happened to me with the previous update as well (3.8.2 > 3.9.0). With the previous update, if I ran the program with Admin rights then my comments would show. Now they won't show at all whether I run with admin rights or not.

To Reproduce Steps to reproduce the behavior:

  1. Update to new version
  2. all settings and comments are lost

Expected behavior Settings and comments are retained through updates.

Versions (please copy from the About dialog or complete manually):

Logs:

C:\Program Files\Angry IP Scanner>jre\bin\java -jar ipscan.exe
Feb 14, 2024 1:35:05 PM net.azib.ipscan.fetchers.HostnameFetcher <clinit>
WARNING: Could not get InetAddressImpl
java.lang.reflect.InaccessibleObjectException: Unable to make field static final java.net.InetAddressImpl java.net.InetAddress.impl accessible: module java.base does not "opens java.net" to unnamed module @3632be31
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Unknown Source)
        at java.base/java.lang.reflect.Field.setAccessible(Unknown Source)
        at net.azib.ipscan.fetchers.HostnameFetcher.<clinit>(HostnameFetcher.java:37)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
        at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
        at net.azib.ipscan.di.Injector.createInstance(Injector.java:41)
        at net.azib.ipscan.di.Injector.require(Injector.java:24)
        at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(Unknown Source)
        at net.azib.ipscan.di.Injector.register(Injector.java:29)
        at net.azib.ipscan.config.ComponentRegistry.register(ComponentRegistry.java:20)
        at net.azib.ipscan.config.ComponentRegistry.init(ComponentRegistry.java:35)
        at net.azib.ipscan.config.ComponentRegistry.init(ComponentRegistry.java:29)
        at net.azib.ipscan.Main.main(Main.java:57)