-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
NullPointerException
in SubTypeValidator.validateSubType
when validating Spring interface
#1872
Comments
That sounds like a very interesting behavior. :) |
Ah. Probably not due to package name, but due to interface. Will verify. |
I left out an analysis on the original report, but perhaps this will help.... As far as I can tell, it must be both interface and start with If it does not start with The for (Class<?> cls = raw; cls != Object.class; cls = cls.getSuperclass()) { to for (Class<?> cls = raw; cls != Object.class && cls != null; cls = cls.getSuperclass()) { |
Actually correction, both. Guard statement for spring packages. So nicely isolates problem to the area being ... patched. :-/ I think this alone would warrant micro-patch, so there's I guess that upside. I'll backport the other fix and then could use help verifying there aren't other issues. |
As always...Thanks for the fast response! I am tracking what I believe is one last issue I am having with 2.9.4-SNAPSHOT, but not sure if I will get anything reported until Monday. I want to spend some time isolating the problem and ensuring the problem is not on my end. |
NullPointerException
in SubTypeValidator.validateSubType
when validating Spring interface
@rwinch Your help is much appreciated. I do want to make as sure as possible that we can close this branch of problems before 2.9.4 and 2.8.11.1, and will coordinate with you before going with release. |
Thanks for your responsiveness! On a related note... It appears that 2.9.4-SNAPSHOT hasn't been updated since December. Any chance you could fix that? I believe it is related to that it appears that Travis is not building 2.9 branch, but may be wrong on that. PS: At this point I am fairly certain at this point that the remaining issue with updating Jackson in Spring Security is on my end. I will be sure to validate 2.9.4 and 2.8.11.1 before the end of Monday. |
@rwinch Yes, I'll do mvn deploy from home. I thought settings used should allow build of |
Found it. I think I didn't fully understand branch whitelisting (applies to each commit separately), plus, 2.9 settings were wrong wrt that. |
Thanks for waiting and sorry for my delayed response. My delay was due to deliberating on an additional issue. I ended up reporting #1880 Initially I was thinking perhaps this is just a bug fix which broke passivity (in which case it wasn't an issue), but the more I thought about it I thought it was a bug. Thanks again for all your help. |
Fix included in |
In jackson-databind-2.8.11 jackson-databind-2.9.3 and jackson-databind-2.9.4-SNAPSHOT
SubTypeValidator.validateSubType
fails with aNullPointerException
if theJavaType.getRawClass()
is an interface that starts withorg.springframework.
For example, the following will fail:with the following stacktrace:
In prior versions, the test works.
The text was updated successfully, but these errors were encountered: