-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
An illegal reflective access #2609
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
Comments
Unfortunately this is not much to go about. Do you have anything else to help trigger the issue? Code to reproduce, stack trace? Without this, all I know is that yes, module system can complain about reflection access used to introspect accessors for value types when reading/writing json. |
Sure, Sure config ** I need to upload a file to a remote server using restemplate
then i got two errors :
|
This:
will not work: a value or property of type If you would like to serialize contents of such input source, you will need to read them, and add as |
this looks very similar to #2626 |
Yes, sort of: basically most JDK types should not be introspected as POJOs and this warning tends to show that either:
|
Since as per @pjfanning this is I think same as #2626, will close this as dup just because that one has bit more specific info (usually would keep older). |
It's almost like the 3rd party code is using jackson to serialize a class instance where the class has a member that is an InputStream. Maybe, I don't understand the use case - but serializing such a class should be set up to ignore the input stream because this will consume the stream. It seems to me that custom code should be written when you need to produce json based on reading an inputs stream. |
Right, I think many of these cases are for types that should not be serialized. |
java version : OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.fasterxml.jackson.databind.util.ClassUtil (file:/home/tarik/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.8/jackson-databind-2.9.8.jar) to field sun.nio.ch.ChannelInputStream.ch
WARNING: Please consider reporting this to the maintainers of com.fasterxml.jackson.databind.util.ClassUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
The text was updated successfully, but these errors were encountered: