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

Bug Report: CDI tries to instantiate interface (Payara Community 5.2021.2)/FISH-6285 #5208

Closed
mkarg opened this issue Apr 22, 2021 · 5 comments
Assignees
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev

Comments

@mkarg
Copy link
Contributor

mkarg commented Apr 22, 2021

Description


An interface annotated by @Path found in a WAR file results in a warning that CDI cannot instantiate it.

Expected Outcome

No instance is created, and no warning is found in the log file.

Current Outcome

No instance is created, but a warning is found in the log file:

[2021-04-22T16:41:02.890+0200] [Payara 5.2021.2] [WARNING] [] [org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider] [tid: _ThreadID=103 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1619102462890] [levelValue: 900] [[
  Component of class interface mypackage.MyInterface cannot be instantiated and will be ignored.]]

Steps to reproduce

Deploy a WAR file containing an interface annotated by @Path(""), then send a request against the base URL of the WAR file.

Environment

  • Distribution: Payara Full Server Community Edition 5.2021.2
  • JDK Version: Java 8 (Azul Zulu)
  • Operating System: Windows 10 (64 Bit)

Notes

Originally reported against Payara, but I assume it is a Jersey bug.

@mkarg mkarg added the Type: Bug Label issue as a bug defect label Apr 22, 2021
@AlanRoth AlanRoth added the Status: Open Issue has been triaged by the front-line engineers and is being worked on verification label Apr 22, 2021
@oldpirate
Copy link

hi,
seems fixed with the version 5.2021.4

@shub8968 shub8968 assigned shub8968 and unassigned shub8968 Jul 1, 2021
@shub8968
Copy link
Contributor

shub8968 commented Jul 1, 2021

HI @mkarg,

Would you be able to verify it on version 5.2021.4

@shub8968 shub8968 added Status: Pending Waiting on the issue requester to give more details or share a reproducer and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect labels Jul 1, 2021
@shub8968 shub8968 self-assigned this Jul 1, 2021
@shub8968 shub8968 added Status: Abandoned User has not supplied reproducers for bug report, soon to be closed if user doesn’t come back and removed Status: Pending Waiting on the issue requester to give more details or share a reproducer labels Aug 10, 2021
@shub8968 shub8968 removed the Status: Abandoned User has not supplied reproducers for bug report, soon to be closed if user doesn’t come back label Sep 7, 2021
@shub8968 shub8968 closed this as completed Sep 7, 2021
@mkarg
Copy link
Contributor Author

mkarg commented Nov 8, 2021

@OndroMih Can you please reopen this bug report? I can still reproduce it with Payara 5.2021.8 as there is no Jersey 2.x published yet which actually fixes this problem. The solution is announced for upcoming Jersey 2.36, see here: eclipse-ee4j/jersey#4847. Thanks.

@OndroMih OndroMih reopened this Dec 5, 2021
@OndroMih
Copy link
Contributor

OndroMih commented Dec 5, 2021

Hi @mkarg , I reopened this issue but we'll need to wait for the Jersey 2.36 release before we can upgrade Jersey in Payara Server to fix this. Please notify us here when Jersey 2.36 is released in case we miss that.

@fturizo fturizo added the Status: Open Issue has been triaged by the front-line engineers and is being worked on verification label Jan 13, 2022
@fturizo fturizo assigned OndroMih and unassigned shub8968 Jan 13, 2022
@shub8968 shub8968 self-assigned this Jan 18, 2022
@shub8968 shub8968 changed the title Bug Report: CDI tries to instantiate interface (Payara Community 5.2021.2) Bug Report: CDI tries to instantiate interface (Payara Community 5.2021.2)/FISH-6285 May 5, 2022
@shub8968 shub8968 added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels May 5, 2022
@JamesHillyard
Copy link
Member

Payara Server 5.2022.2 has been upgraded to Jersey 2.36. You shouldn't encounter this issue now in the latest version of Payara Community.

Thanks,
James

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

7 participants