You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/06/14 09:22:57 UTC

[GitHub] [pulsar] eolivelli opened a new issue #10919: Cannot use SchemaBuilder.record() inside a Source#open() method without adding pulsar-client as dependency in the NAR file

eolivelli opened a new issue #10919:
URL: https://github.com/apache/pulsar/issues/10919


   I am testing current 2.8.0 rc3 and I have this problem in an integration test.
   
   I have a Pulsar IO Source that in the "open" method tries to prepare a GenericSchema using this code
   `RecordSchemaBuilder udtSchemaBuilder = SchemaBuilder.record(typeName);`
   
   The only way to make it work is to add `pulsar-client-original` into the NAR file.
   
   
   ```
   java.lang.reflect.InvocationTargetException: null
   	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
   	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
   	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
   	at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
   	at com.datastax.oss.pulsar.source.CassandraSource.createConverter(CassandraSource.java:185) ~[source-pulsar-0.2.0-SNAPSHOT.jar:?]
   	at com.datastax.oss.pulsar.source.CassandraSource.open(CassandraSource.java:111) ~[source-pulsar-0.2.0-SNAPSHOT.jar:?]
   	at org.apache.pulsar.functions.instance.JavaInstanceRunnable.setupInput(JavaInstanceRunnable.java:734) [org.apache.pulsar-pulsar-functions-instance-2.8.0.jar:2.8.0]
   	at org.apache.pulsar.functions.instance.JavaInstanceRunnable.setup(JavaInstanceRunnable.java:219) [org.apache.pulsar-pulsar-functions-instance-2.8.0.jar:2.8.0]
   	at org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:243) [org.apache.pulsar-pulsar-functions-instance-2.8.0.jar:2.8.0]
   	at java.lang.Thread.run(Thread.java:829) [?:?]
   Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.pulsar.client.impl.schema.RecordSchemaBuilderImpl
   	at org.apache.pulsar.client.internal.ReflectionUtils.catchExceptions(ReflectionUtils.java:45) ~[java-instance.jar:?]
   	at org.apache.pulsar.client.internal.DefaultImplementation.newRecordSchemaBuilder(DefaultImplementation.java:355) ~[java-instance.jar:?]
   	at org.apache.pulsar.client.api.schema.SchemaBuilder.record(SchemaBuilder.java:39) ~[java-instance.jar:?]
   	at com.datastax.oss.pulsar.source.converters.AbstractGenericConverter.<init>(AbstractGenericConverter.java:57) ~[source-pulsar-0.2.0-SNAPSHOT.jar:?]
   	at com.datastax.oss.pulsar.source.converters.AvroConverter.<init>(AvroConverter.java:30) ~[source-pulsar-0.2.0-SNAPSHOT.jar:?]
   	... 10 more
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #10919: Cannot use SchemaBuilder.record() inside a Source#open() method without adding pulsar-client as dependency in the NAR file

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #10919:
URL: https://github.com/apache/pulsar/issues/10919#issuecomment-1058889396


   The issue had no activity for 30 days, mark with Stale label.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org