-
Notifications
You must be signed in to change notification settings - Fork 81
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
Incorrect export of com.fasterxml.jackson.jaxrs.json
for JSON provider
#120
Comments
FYI @cowtowncoder |
Would this be fixed by this: ? |
And yes, I was right from beginning. I FUCKING HATE Oracle's piece of shit module system. Was probably bad move to try to support it. |
Is there a nightly build somewhere that I could try? |
Sonatype OSS repo has some of the snapshots, but looks like Travis settings for this project have not been updated to build them (unlike core projects). I can do manual deploy from home tonight |
@cowtowncoder That would be appreciated - I will test it then. |
Same error pops up when trying to list dependencies via jdeps:
full error dump:
|
Same problem
|
It is causing issues on my side as well. I don't even know how you managed to compile this?!? |
Same problem here, it is not the module system which is to blame. Just an invalid module-info with a duplicate export package. Please fix asap indeed, blocking. |
@robinvanpraet @tomdw Knowing that nothing annoys cowtowncoder more than people ordering him what to do with his free time, I'm curious if you've considered subscribing for Enterprise Support, which looks like just the sort of thing to address these sorts of issues? Enterprise support _Available as part of the Tidelift Subscription. The maintainers of jackson-jaxrs-providers and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more._ |
This issue is fixed with the 2.11.0-SNAPSHOT version and 3.0.0-SNAPSHOT version. It's not ideal to use snapshots, but it seems to work nicely on my end |
Yes, comments about "Fix this IMMEDIATELY" are annoying and frustrating. I literally do not work for any of you, nor do I take orders from you. I do however work with community members who will try to help; thank you everyone who has contributed in positive way. As to fix this should be resolved in 2.10.2 as far as I know, and release should be forthcoming within a week or so. If anyone wants to help, verification with a build from |
2.10.2 now released. |
I am now seeing the following error:
This is resolved with the following compiler option:
I see that I am supposed to load the instance differently, but some libraries, like Swagger use the |
I had no problems with the new version, built my project without a problem and the Jax-RS application can send and receive JSON information with the Jackson Jax-RS provider. I also use Jackson annotations. @doctorpangloss I'd suggest you post a question on StackOverflow, maybe even link it here. As far as I'm concerned, the issue is fixed. |
I can confirm that my problem is fixed, and since I'm the original reporter, I'll close this one. If there is another problem uncovered by the fix, please file a new issue for it. Thanks for the fix! |
@triceo Thank you for confirming this. If there are new issues we'll try to tackle them; everyone's help in verification is appreciated given that I only run and build things on JDK 8 on regular basis. |
@cowtowncoder I confirm that we have the same issue as @doctorpangloss being that the com.fasterxml.jackson.jaxrs.json package is now not exported at all. The workaround does work (but that's just a workaround), so the new release does help us out. Thanks! @doctorpangloss did you create another issue for this? |
@GedMarc just to make sure does this make sense? I can see that double export was now fully removed (perhaps due to merging fail) but wanted to make sure adding it makes sense since you are most familiar with testing for Module metadata. |
@cowtowncoder Correct - With 2.10.2 out, I do need to update the JDK 11 Compat test libraries again to point to these instead of the standalone singles I used. JAX-RS is included in the JDK 11 Compat 11 Test Suite, I do still however need to do the travis build for the JLink confirmation then that nut can be put to rest for all those modules. |
@GedMarc @robinvanpraet Ok looking at
which, being a more extensive access, would seem like implying "exports" as well. |
The opens clause is cause the consumers perform reflection on that package :) Wellll!!! - The JDK 11 test is passing because in JDK 11, opens clause does indeed also mean exports. You don't wanna know what I went through to figure this one out. |
Oh well. No wonder googling for the answer did not really bring up definite answers.... :) But at least this helps further explain why it is possible for some users to have issues, others not, even with same or similar usage. I will add the export too, then. |
com.fasterxml.jackson.jaxrs.json
for JSON provider
Note: changed title a bit as I will use this issue number for fix inclusion in 2.10.3. ... and should you find any other problems in other provides (quite possible, json one has gotten most attention), please report them, ideally as new issues. |
@cowtowncoder thanks for the fix. Do you have an idea when you could release version 2.10.3? It would help me out a lot. |
Unfortunately I just released 2.10.2 so it will be few months off. One possibility would be micro-patch just for JAX-RS tho (2.10.2.1), wherein I only need to publish this repo? |
@cowtowncoder please use this - it is 100% operational across all jdk's from what I can test (building on all jdk's sigh to ensure lol) @robinvanpraet Please can you check that this satisfies and provides the fix - |
@GedMarc as far as I can see, these 2 are identical to what 2.11 branch has, so that should be good. |
@cowtowncoder A 2.10.2.1 release with this fix would also be great. And if it is a possibility, please prefer to release jackson as a whole to avoid needing to manage multiple version numbers for jackson libs. |
Full release takes half a day so I do not have time to spend on that at this point. |
@cowtowncoder any idea when this micro patch would be available? Thanks |
I can release it tonight. |
JAX-RS 2.10.2.1 released, on its way to Maven Central; matching |
Update: looks like bom mentioned above is no good (accidentally defines dep versions as 2.10.3-SNAPSHOT): will push one with version |
When running an app with 2.10.1 using JPMS, I get the following error:
I am assuming this has to do with the following
module-info.class
that my IntelliJ IDEA decompiled for me:(See lines 15 and 16.)
Unfortunately, this makes Jackson 2.10.1 unusable in the context of Java modularity.
The text was updated successfully, but these errors were encountered: