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

IllegalAccessError when using org.spf4j.avro.schema.SchemaUtils.writeIdlProtocol #59

Open
venkatduddu opened this issue Sep 21, 2021 · 1 comment

Comments

@venkatduddu
Copy link

See below error when using spf4j-avro when I do SchemaUtils.writeIdlProtocol

java.lang.IllegalAccessError: class org.spf4j.avro.schema.SchemaUtils tried to access field org.apache.avro.Schema.FACTORY (org.spf4j.avro.schema.SchemaUtils and org.apache.avro.Schema are in unnamed module of loader 'app')
        at org.spf4j.avro.schema.SchemaUtils.createJsonGenerator(SchemaUtils.java:212)
        at org.spf4j.avro.schema.SchemaUtils.writeIdl(SchemaUtils.java:194)
        at org.spf4j.avro.schema.SchemaUtils.writeIdlProtocol(SchemaUtils.java:183)

Trying to use org.spf4j:spf4j-avro:8.9..1

If I am not wrong Root cause for this is FACTORY in org.apache.avro.Schema is not public, it has a default access modifier.

@zolyfarkas
Copy link
Owner

zolyfarkas commented Oct 15, 2021 via email

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

No branches or pull requests

2 participants