-
Notifications
You must be signed in to change notification settings - Fork 339
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
Jersey should specify what constitutes a "suitable constructor" #2390
Comments
@glassfishrobot Commented |
@glassfishrobot Commented
|
@glassfishrobot Commented In my case the constructor in my resource/controller required some arguments, I removed them and now everything works. I guess Jersey's reflection can't initialize the class if there are some arguments, because obviously it doesn't know what to put there. This wasn't clear at a first look. |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Jersey throws the following exception:
Expected behavior: explain what constitutes a "suitable constructor" in the exception message so developers know what needs to get fixed. Either link to a more detailed explanation or describe it inline.
Also, it would be useful if you provided more contextual information, such as "Found constructors X, Y, Z. Was looking for A, B or C"
Affected Versions
[2.2]
The text was updated successfully, but these errors were encountered: