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

UiDemoTvm doesn't run #2

Closed
SergeyKhokhryakov opened this issue Apr 17, 2024 · 4 comments
Closed

UiDemoTvm doesn't run #2

SergeyKhokhryakov opened this issue Apr 17, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@SergeyKhokhryakov
Copy link

Steps to reproduce

  1. Run UiDemoTvm.main()

Actual behavior

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Exception in thread "main" java.util.ServiceConfigurationError: io.github.mmm.ui.api.controller.UiNavigationManager: io.github.mmm.ui.tvm.controller.TvmNavigationManager Unable to get public no-arg constructor
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:679)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1240)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
at io.github.mmm.base.service.ServiceHelper.singleton(ServiceHelper.java:51)
at io.github.mmm.base.service.ServiceHelper.singleton(ServiceHelper.java:37)
at io.github.mmm.ui.impl.controller.UiNavigationManagerProvider.(UiNavigationManagerProvider.java:19)
at io.github.mmm.ui.api.controller.UiNavigationManager.get(UiNavigationManager.java:101)
at io.github.mmm.ui.demo.tvm.UiDemoTvm.start(UiDemoTvm.java:15)
at io.github.mmm.ui.demo.tvm.UiDemoTvm.main(UiDemoTvm.java:23)
Caused by: java.lang.NoClassDefFoundError: org/teavm/jso/JSObject
at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3549)
at java.base/java.lang.Class.getConstructor0(Class.java:3754)
at java.base/java.lang.Class.getConstructor(Class.java:2442)
at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:666)
at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:663)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:674)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.teavm.jso.JSObject
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:526)
... 18 more

Process finished with exit code 1

Expected behavior

Affected version

@SergeyKhokhryakov SergeyKhokhryakov added the bug Something isn't working label Apr 17, 2024
@hohwille
Copy link
Member

@SergeyKhokhryakov thanks for reporting this bug and sorry for the delayed response.
TeaVM is compiling JavaCode to JavaScript or WebAssembly what is quite a challenging task.
At the moment this project is still in a somewhat early phase where I sometimes change and refactor things.
Typically with my CI processes and all that I did setup, I quickly notice when things break.
It seems here I have to improve!
Typically these types of errors from the TeaVM compiler arise when I use new special Java features not (yet) covered by TeaVM.
I therefore already contributed some PRs to TeaVM project itself to make it work.
However, this error that you reported looks a little different and maybe is a new bug in TeaVM itself so I have to check for updates and investigate further. Unfortunately I am a little busy at the moment so I might need several weeks to get this resolved. Sorry for any inconvenience and thanks for trying mmm. I hope you at least managed to run the JavaFx part of the demo. For android there are even things missing in the implementation and some tricky problems are yet to be solved. iOS is not yet even on the list and therefore I would really need quite some manpower joining the community of this project.

@hohwille
Copy link
Member

Ah, and if you just want to try it out, you could go back to maybe this commit and change the revision from 0-SNAPSHOT to an older release like e.g. 0.9.1
https://repo1.maven.org/maven2/io/github/m-m-m/mmm-base/

hohwille added a commit that referenced this issue May 5, 2024
@hohwille
Copy link
Member

hohwille commented May 5, 2024

I updated teavm.version to 0.10.0 but now I am facing this error:
konsoletyper/teavm#918
Sorry, it seems we are still blocked with getting ui-demo running in the browser again.

hohwille added a commit to m-m-m/scanner that referenced this issue Jun 23, 2024
@hohwille
Copy link
Member

fixed. Sorry for the long delay. I was sick for quite a long time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants