linkedin/avro-util

detect version mismatches between avro and avro-compiler

radai-rosenblatt opened this issue · 0 comments

here's avro-compiler 1.9 with "core" avro 1.10 failing to find a class that's been deleted:

Exception in thread "main" java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
        at com.linkedin.avroutil1.compatibility.avro110.Avro110Adapter.compile(Avro110Adapter.java:343)
        at com.linkedin.avroutil1.compatibility.AvroCompatibilityHelper.compile(AvroCompatibilityHelper.java:561)
        at com.linkedin.avroutil1.compatibility.AvroCompatibilityHelper.compile(AvroCompatibilityHelper.java:569)
        at org.apache.avro.specific.SpecificCompilerHelper.compile(SpecificCompilerHelper.java:37)
        at com.linkedin.avro.Builder.main(Builder.java:209)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.linkedin.avroutil1.compatibility.avro110.Avro110Adapter.compile(Avro110Adapter.java:307)
        ... 4 more
Caused by: java.lang.NoClassDefFoundError: org/apache/avro/data/JodaTimeConversions$DateConversion