Skip to content

Illegal reflective access by kryo #3659

@juliangilbey

Description

@juliangilbey

I'm not sure where I should report this issue, so please feel free to tell me if it should go somewhere else.

I'm running QuPath, and am opening lots of images using the BioFormats library to create thumbnail images. On one image, I get the following warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.esotericsoftware.kryo.serializers.FieldSerializer (file:/home/jdg/qupath/build/dist/QuPath-0.2.3/lib/app/kryo-2.24.0.jar) to field java.util.regex.Pattern.pattern
WARNING: Please consider reporting this to the maintainers of com.esotericsoftware.kryo.serializers.FieldSerializer
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 only use of the kryo library in QuPath is as a dependency of BioFormats. I had a look at the kryo GitHub page, and it's currently on version 6.0.1 or so; version 2.4.0 was released in 2014. So if it's a bug in kryo, it may well have been fixed by now.

I am happy to share my code, in case that helps. Unfortunately, though, this issue also seems to be transient: I repeated the extraction and did not get any warnings the second time around. But my colleague, using the same code, is also sporadically getting this same warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions