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

jersey ClientConfig throws NPE's in ApacheConnector if connect/read timeouts are set with long values instead of int #4930

Closed
jcalcote opened this issue Dec 13, 2021 · 1 comment · Fixed by #4962

Comments

@jcalcote
Copy link

jcalcote commented Dec 13, 2021

Using Jersey 2.35 with apache connector provider. If you set ClientProperties.CONNECT/READ_TIMEOUT values using long values rather than int values, the configuration is created successfully, but as soon as the connector attempts to use the values, it can't parse or properly cast the longs to integers.

@jansupol
Copy link
Contributor

Yes, this is correct. Jersey tries to convert the object to a value type, but Long cannot be cast to int nor Integer.

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

Successfully merging a pull request may close this issue.

2 participants