spf4j
spf4j copied to clipboard
IllegalAccessError when using org.spf4j.avro.schema.SchemaUtils.writeIdlProtocol
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.
Just released 8.9.2 today, which should have this issue resolved.
On Sep 21, 2021, at 2:18 PM, venkatduddu @.***> wrote:
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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zolyfarkas/spf4j/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDFVJRXRBTWCBXQMNR2JLUDDD6LANCNFSM5EPFNNHA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.