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

PiT 23.1: starter fails to run with a java.lang.NoSuchMethodError #97

Closed
Tracked by #2982
manolo opened this issue May 19, 2022 · 3 comments
Closed
Tracked by #2982

PiT 23.1: starter fails to run with a java.lang.NoSuchMethodError #97

manolo opened this issue May 19, 2022 · 3 comments

Comments

@manolo
Copy link
Member

manolo commented May 19, 2022

Issue

When running the demo it fails to start by throwing the following error

SEVERE: Unable to start system bundle.
java.lang.NoSuchMethodError: 'java.util.Dictionary org.osgi.framework.FrameworkUtil.asDictionary(java.util.Map)'
	at org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:5166)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:849)
	at org.apache.felix.framework.Felix.init(Felix.java:899)
...
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)

May 19, 2022 2:22:20 PM org.apache.karaf.main.Main$2 log
SEVERE: Bundle org.apache.felix.framework [0] Error stopping bundle. (java.lang.NullPointerException)
java.lang.NullPointerException
	at org.apache.felix.framework.Felix$SystemBundleActivator.stop(Felix.java:5284)
	at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:871)
	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2822)
	at org.apache.felix.framework.Felix.init(Felix.java:969)
	at org.apache.felix.framework.Felix.init(Felix.java:648)
	at org.apache.karaf.main.Main.launch(Main.java:288)

How to reproduce

By following the README instructions do:

  • Checkout the project git clone https://github.com/vaadin/vaadin-flow-karaf-example.git (branch v23)
  • Compile and install mvn install
  • Run the demo module mvn -pl main-ui install -Prun
  • See the error above
@manolo manolo mentioned this issue May 19, 2022
9 tasks
@ZheSun88
Copy link
Contributor

there is one comment from another issue ticket.
#65 (comment) and it also provided an workaround.

@mshabarov
Copy link

Workaround applied to both v22 and v23 versions.

@ZheSun88
Copy link
Contributor

let us close this ticket, as the example is working now.

regarding the mentioned vaadin/osgi#90, it can be handled separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants