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

Illegal reflective access by fish.payara.microprofile.openapi.impl.model.util.AnnotationInfo /CUSTCOM-170 #4449

Closed
Lars5678 opened this issue Jan 21, 2020 · 2 comments
Assignees
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev
Milestone

Comments

@Lars5678
Copy link

Description


The following warnings appear when you start Payara Micro 5.194 with Java 11

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by fish.payara.microprofile.openapi.impl.model.util.AnnotationInfo (file:/tmp/payaramicro-rt3420083111219124935tmp/runtime/microprofile-openapi.jar) to field java.lang.reflect.Parameter.index
WARNING: Please consider reporting this to the maintainers of fish.payara.microprofile.openapi.impl.model.util.AnnotationInfo
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

It is just a warning. Payara starts and works.

Expected Outcome

The problem should be fixed in future releases to avoid false starts

Current Outcome

See description.

Steps to reproduce (Only for bug reports)

1 -** Start Payara with Rest Ressources

2 -** Create Open API Document

http://localhost:8080/openapi

3 -** See console output

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by fish.payara.microprofile.openapi.impl.model.util.AnnotationInfo (file:/tmp/payaramicro-rt998873570193110858tmp/runtime/microprofile-openapi.jar) to field java.lang.reflect.Parameter.index
WARNING: Please consider reporting this to the maintainers of fish.payara.microprofile.openapi.impl.model.util.AnnotationInfo
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[2020-01-21T15:32:29.798+0100] [] [INFO] [] [fish.payara.microprofile.openapi.impl.OpenApiService] [tid: _ThreadID=31 _ThreadName=http-thread-pool::http-listener(2)] [timeMillis: 1579617149798] [levelValue: 800] OpenAPI document created.

Environment

  • Payara Version: 5.194
  • Edition: Micro
  • JDK Version: Amazon Corretto JDK 11u6
  • Operating System: Docker for Windows / Debian Image
@rdebusscher rdebusscher self-assigned this Jan 27, 2020
@rdebusscher
Copy link

Hi @LarsBrenker,

I reproduced the warning when using an annotation on a method parameter like @PathParam.

I created the internal issue CUSTCOM-170 to fix this in a future version.

Thanks for this report

Regards
Rudy.

@rdebusscher rdebusscher added the Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev label Jan 27, 2020
@OndroMih OndroMih changed the title Illegal reflective access by fish.payara.microprofile.openapi.impl.model.util.AnnotationInfo Illegal reflective access by fish.payara.microprofile.openapi.impl.model.util.AnnotationInfo /CUSTCOM-170 Feb 4, 2020
@smillidge
Copy link
Contributor

Fixed by #4758

@smillidge smillidge added this to the 5.2020.3 milestone Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev
Projects
None yet
Development

No branches or pull requests

3 participants