Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flyway: Broken since 9.18.0 #252926

Closed
kai-tub opened this issue Sep 2, 2023 · 1 comment · Fixed by #252974
Closed

flyway: Broken since 9.18.0 #252926

kai-tub opened this issue Sep 2, 2023 · 1 comment · Fixed by #252974

Comments

@kai-tub
Copy link
Contributor

kai-tub commented Sep 2, 2023

Describe the bug

The application flyway has been broken since version 9.21.0.
The previous and last working version was 9.18.0 (d457cf2).

Steps To Reproduce

Steps to reproduce the behavior:

Simply call flyway --version, and you will be greeted with the error message: java.lang.NoClassDefFoundError.

For the current version (9.21.2) run:

nix-shell -p flyway -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz --command "flyway --version"

Full output:

Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/Versioned
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1013)
	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at org.flywaydb.commandline.Main.main(Main.java:107)
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.Versioned
	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:521)
	... 10 more

Expected behavior

To get the correct version output of flyway

Notify maintainers

@CMCDragonkai

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.4.12, NixOS, 23.11 (Tapir), 23.11.20230827.cddebdb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@marsam marsam linked a pull request Sep 2, 2023 that will close this issue
12 tasks
@kai-tub
Copy link
Contributor Author

kai-tub commented Sep 2, 2023

@marsam Thank you for the extremely quick response! :o
Sorry that I didn't catch that a couple of files weren't correctly copied 🤦
Do you have a buymeacoffe link or similar? 🤗

spikespaz pushed a commit to spikespaz/nixpkgs that referenced this issue Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant