-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Issue with third-party library using Ikonly: Exception in thread "JavaFX Application Thread" java.lang.UnsupportedOperationException: Cannot resolve 'mdi-close' #155
Comments
When creating a fatjar make sure to merge service files otherwise icon providers won't be found https://kordamp.org/ikonli/#_creating_a_fat_jar |
Thanks a lot @aalmiray for the help. This solution was the missing part. Now it works perfectly. |
@aalmiray can you tell me any changes I can make to my pom.xml? I'm still getting errors with This is my pom.xml
` |
Hello,
I am having issue with "mdi" icon pack used from GemsFX.
I asked GemsFX for help and they told me that the problem is not with their components but with Ikonli.
Here you can see their answer: dlsc-software-consulting-gmbh/GemsFX#53
When I start the app from IntelliJ everything is working correctly.
But when I build a fatjar using "mvn compile package" command and maven-shade-plugin and run it using "java -jar", I get this errors on runtime:
Exception in thread "JavaFX Application Thread" java.lang.UnsupportedOperationException: Cannot resolve 'mdi-close'
or
Exception in thread "JavaFX Application Thread" java.lang.UnsupportedOperationException: Cannot resolve 'mdi-clock'
The second issue is causing problems loading the stage with the Time Picker. It is making the form almost unusable.
I am running the app on Ubuntu 22.04, JDK openjdk 18.0.2 2022-07-19 ,OpenJDK Runtime Environment Temurin-18.0.2+9 (build 18.0.2+9) and JavaFX 18, GemsFX version 1.47.0.
I've also added to the POM file of the project the latest version of Ikonli: ikonli-core, ikonli-javafx and ikonli-materialdesign-pack but this didn't solve my problem.
Nick
This part of the whole error from the konsole:
Exception in thread "JavaFX Application Thread" java.lang.UnsupportedOperationException: Cannot resolve 'mdi-close'
at org.kordamp.ikonli.AbstractIkonResolver.resolve(AbstractIkonResolver.java:61)
at org.kordamp.ikonli.javafx.IkonResolver.resolve(IkonResolver.java:69)
at org.kordamp.ikonli.javafx.FontIcon.lambda$new$2(FontIcon.java:76)
at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:360)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:106)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:113)
at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:147)
at javafx.css.StyleableObjectProperty.set(StyleableObjectProperty.java:82)
at org.kordamp.ikonli.javafx.FontIcon.setIconCode(FontIcon.java:231)
at org.kordamp.ikonli.javafx.FontIcon.(FontIcon.java:97)
at com.dlsc.gemsfx.DialogPane$ContentPane.(DialogPane.java:917)
at com.dlsc.gemsfx.DialogPane.lambda$new$4(DialogPane.java:112)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at com.dlsc.gemsfx.DialogPane.lambda$new$8(DialogPane.java:111)
The text was updated successfully, but these errors were encountered: