Nir Barel created AVRO-2913:
-------------------------------
Summary: 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
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)