[
https://issues.apache.org/jira/browse/AVRO-2913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan Skraba resolved AVRO-2913.
-------------------------------
Resolution: Duplicate
It looks like this has been fixed in 1.9.x – I would recommend updating to the
more recent version of Avro if possible. There have been security and CVE
fixes and upgrades, and the migration is *mostly* straightforward (notably with
the removal of joda-time). If I understand correctly, there should be no
changes required to your proto or compiler.
> No support for option java_multiple_files = true;
> -------------------------------------------------
>
> Key: AVRO-2913
> URL: https://issues.apache.org/jira/browse/AVRO-2913
> Project: Apache Avro
> Issue Type: Bug
> Reporter: Nir Barel
> Priority: Major
>
> Hi,
> In my proto file I used this setting:
> option java_multiple_files = true;
>
> which avoid the outer class and split each part into separated java class,
> when trying to read bytes into such proto I get an exception ClassNotFound
>
> java.lang.RuntimeException: java.lang.ClassNotFoundException: Failed to load
> class com.obj.OuterCls$Obj
> at org.apache.avro.protobuf.ProtobufData.newRecord(ProtobufData.java:145) at
> org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:212)
> at
> org.apache.avro.protobuf.ProtobufDatumReader.readRecord(ProtobufDatumReader.java:63)
> at
> org.apache.avro.generic.GenericDatumReader.readWithoutConversion(GenericDatumReader.java:175)
> at
> org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:153)
> at
> org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:145)
> at
> com.sentinelone.mgmt.war.WarEventSerde$2.deserialize(WarEventSerde.java:105)
> at
> com.sentinelone.mgmt.war.WarEventSerdeUnitTest.testDeserializer(WarEventSerdeUnitTest.java:40)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:564) at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at..
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)