zolyfarkas / spf4j

Simple performance framework for java

Home Page:http://www.spf4j.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

venkatduddu opened this issue · comments

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.