-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: ADDONS_10.10
-
Component/s: Integration
The subscription is failing when retrieving the requiredFields containing lists from Zapier.
We should re-test all Zapier trigger forms and all required fields examples to check if we have the correct Required Fields structure server side.
We should also check if all of them are really relevant to exist.
java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class java.lang.CharSequence (java.util.ArrayList and java.lang.CharSequence are in module java.base of loader 'bootstrap') at org.apache.avro.generic.GenericDatumWriter.writeString(GenericDatumWriter.java:267) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.specific.SpecificDatumWriter.writeString(SpecificDatumWriter.java:71) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:128) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:159) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeMap(GenericDatumWriter.java:234) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:121) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:159) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:166) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.specific.SpecificDatumWriter.writeField(SpecificDatumWriter.java:90) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.reflect.ReflectDatumWriter.writeField(ReflectDatumWriter.java:191) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:156) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:118) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:159) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeArray(GenericDatumWriter.java:192) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.reflect.ReflectDatumWriter.writeArray(ReflectDatumWriter.java:68) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:120) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:159) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:166) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.specific.SpecificDatumWriter.writeField(SpecificDatumWriter.java:90) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.reflect.ReflectDatumWriter.writeField(ReflectDatumWriter.java:191) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:156) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:118) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:75) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:159) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:62) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.message.RawMessageEncoder.encode(RawMessageEncoder.java:113) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.message.BinaryMessageEncoder$V1MessageEncoder.encode(BinaryMessageEncoder.java:109) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.message.RawMessageEncoder.encode(RawMessageEncoder.java:99) ~[avro-1.8.2.jar:1.8.2] at org.apache.avro.message.BinaryMessageEncoder.encode(BinaryMessageEncoder.java:84) ~[avro-1.8.2.jar:1.8.2] at org.nuxeo.lib.stream.codec.AvroMessageCodec.encode(AvroMessageCodec.java:69) ~[nuxeo-stream-10.10-HF10.jar:?] at org.nuxeo.zapier.service.ZapierComponent.storeWebHook(ZapierComponent.java:278) ~[nuxeo-zapier-webhook-0.2-SNAPSHOT.jar:?] at org.nuxeo.zapier.service.ZapierComponent.subscribe(ZapierComponent.java:117)
To reproduce:
- Create a Nuxeo trigger Zapier side `Get Nuxeo Notification`
- Edit the options by selecting `Document created event by type`
- Add Dublincore as schema for required fields
- Turn on the Zap to get the error.