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

MP Quickstart fails to run with JDK 17 #3063

Closed
barchetta opened this issue Jun 2, 2021 · 2 comments · Fixed by #3074
Closed

MP Quickstart fails to run with JDK 17 #3063

barchetta opened this issue Jun 2, 2021 · 2 comments · Fixed by #3074
Assignees
Labels
bug Something isn't working MP P2
Milestone

Comments

@barchetta
Copy link
Member

barchetta commented Jun 2, 2021

Environment Details

  • Helidon Version: 2.3.0
  • Helidon MP
  • JDK version: build 17-ea+24-2164
  • OS: MacOS

Problem Description

The Helidon MP quickstart fails to run using JDK 17:

2021.06.02 09:28:50 INFO org.jboss.weld.Event Thread[main,5,main]: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jersey.ext.cdi1x.internal.ProcessAllAnnotatedTypes.processAnnotatedType(@Observes ProcessAnnotatedType<?>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.025 s <<< FAILURE! - in io.helidon.examples.quickstart.mp.MainTest
[ERROR] io.helidon.examples.quickstart.mp.MainTest  Time elapsed: 1.025 s  <<< ERROR!
java.lang.reflect.GenericSignatureFormatError:
Signature Parse error: Expected Field Type Signature
	Remaining input: org.eclipse.microprofile.openapi.annotations.enums.SchemaType
	at io.helidon.examples.quickstart.mp.MainTest.startTheServer(MainTest.java:27)

Steps to reproduce

  1. Install JDK 17 preview and make sure you are using it: java --version
  2. Generate a project using the 2.3.0 Helidon MP quickstart
  3. mvn clean install
@barchetta barchetta added the MP label Jun 2, 2021
@barchetta
Copy link
Member Author

This is due to a Weld issue. See https://issues.redhat.com/browse/WELD-2671

@barchetta
Copy link
Member Author

barchetta commented Jun 2, 2021

Workaround

Force upgrade jboss-classfilewriter to 1.2.5 by adding the following to your application's pom.xml:

    <properties>
        <version.lib.jboss.classfilewriter>1.2.5.Final</version.lib.jboss.classfilewriter>
    </properties>

Note using the property only works if you are using the Helidon application parent pom (which the quickstart does). Otherwise you will need to force the upgrade by managing the version yourself in your pom.

@barchetta barchetta added the bug Something isn't working label Jun 2, 2021
@barchetta barchetta self-assigned this Jun 3, 2021
@barchetta barchetta added the P2 label Jun 3, 2021
@barchetta barchetta added this to the 2.3.1 milestone Jun 3, 2021
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MP P2
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant