ho-dev / HattrickOrganizer

Assistant for Hattrick online football manager
https://ho-dev.github.io/HattrickOrganizer/
GNU Lesser General Public License v3.0
194 stars 79 forks source link

[BUG] Startup Error after installation of 6.1 BETA (r379) #1654

Closed johari75 closed 1 year ago

johari75 commented 2 years ago

Describe the bug Startup Error after installation of 6.1 BETA (r379). (View screenshot)

Screenshots Bug_StartUp

Platform information: Platform_Information

Additional context Add any other context about the problem here.

wsbrenk commented 2 years ago

@johari75 how did you install the HO?

wsbrenk commented 2 years ago

@johari75 could it be that you have simply copied the new version to the folder of the old installation. Maybe the old darklaf (2.7.3) files have been preserved. You should delete them.

johari75 commented 2 years ago

@wsbrenk Update to current version was done by HO feature. Installation was done the usual way. But I copied database from previous version to get current training values. Now I downloaded the zip, made a new full installation and replaced the database from a previous version. It´s working fine now. Old darklaf files weren´t updated during update via HO feature.

wsbrenk commented 2 years ago

can reproduce it now. it happens when upgrading the portable versions.

wsbrenk commented 2 years ago

update failed !java.lang.RuntimeException: Error unzipping file C:\Users\wolfg\Documents\ho6-portable\update.piz at core.HOLauncher.update(HOLauncher.java:106) at core.HOLauncher.main(HOLauncher.java:45) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94) at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25) Caused by: java.nio.file.NoSuchFileException: C:\Users\wolfg\Documents\ho6-portable\darklaf-compatibility-3.0.2.jar at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:96) at java.base/sun.nio.fs.WindowsLinkSupport.getRealPath(WindowsLinkSupport.java:258) at java.base/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:933) at java.base/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:42) at core.HOLauncher.update(HOLauncher.java:92) ... 8 more java.lang.NoClassDefFoundError: core/HO at core.HOLauncher.main(HOLauncher.java:75) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94) at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25) Caused by: java.lang.ClassNotFoundException: core.HO at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ... 8 more

johari75 commented 2 years ago

You are right. Sorry. Previous version was HO-6.0.315.1-portable-win-BETA-JRE

Synthespian commented 2 years ago

Yup. Just upgraded portable. Same issue. Now wondering what's going to be the correct way to update it again, having seen this.

wsbrenk commented 2 years ago

@Synthespian you can extract the update-zip file by hand. the ho function should have downloaded the correct zip file already (update.piz). You can rename it to .zip and open it with 7-zip. the name of the darklafe packages changed, so you have to remove the old files after extracting the new version.

Synthespian commented 2 years ago

Tried with new beta.
Not sure. image

Synthespian commented 2 years ago

Had to completely re-add the JRE folder.

wsbrenk commented 2 years ago

@Synthespian Thank you for testing - unfortunatly i don't understand how you tested this. the newest beta should not find any newer beta to update to.

if it was a update of the newest beta you tested, there should be a backup folder, which saves the old installation in your directory.

johari75 commented 1 year ago

@wsbrenk Got the same error as Synthespian 9 days ago after upgrading the portable versions via HO feature. Error message comes up during restart after upgrade.

Synthespian commented 1 year ago

Just a nudge, needed this for lookback, that the latest upgrade has given another error, this time where it can't find the java that is part of the download set. image