codelipenghui commented on pull request #10878:
URL: https://github.com/apache/pulsar/pull/10878#issuecomment-858628724


   @jerrypeng Here is the error log for the last test:
   
   ```
   java.lang.RuntimeException: java.lang.NoClassDefFoundError: 
com/google/common/base/Preconditions
        at 
org.apache.pulsar.client.internal.ReflectionUtils.catchExceptions(ReflectionUtils.java:42)
 ~[java-instance.jar:?]
        at 
org.apache.pulsar.client.internal.DefaultImplementation.decodeKeyValueSchemaInfo(DefaultImplementation.java:414)
 ~[java-instance.jar:?]
        at 
org.apache.pulsar.common.schema.SchemaInfo.getSchemaDefinition(SchemaInfo.java:79)
 ~[java-instance.jar:?]
        at 
org.apache.pulsar.tests.integration.io.TestGenericObjectSink.write(TestGenericObjectSink.java:74)
 ~[java-test-functions.jar:2.9.0-SNAPSHOT]
        at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.sendOutputMessage(JavaInstanceRunnable.java:355)
 [org.apache.pulsar-pulsar-functions-instance-2.9.0-SNAPSHOT.jar:2.9.0-SNAPSHOT]
        at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.handleResult(JavaInstanceRunnable.java:338)
 [org.apache.pulsar-pulsar-functions-instance-2.9.0-SNAPSHOT.jar:2.9.0-SNAPSHOT]
        at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:283)
 [org.apache.pulsar-pulsar-functions-instance-2.9.0-SNAPSHOT.jar:2.9.0-SNAPSHOT]
        at java.lang.Thread.run(Thread.java:829) [?:?]
   Caused by: java.lang.NoClassDefFoundError: 
com/google/common/base/Preconditions
        at 
org.apache.pulsar.client.impl.schema.KeyValueSchemaInfo.decodeKeyValueSchemaInfo(KeyValueSchemaInfo.java:198)
 ~[java-test-functions.jar:2.9.0-SNAPSHOT]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:?]
        at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 ~[?:?]
        at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
        at 
org.apache.pulsar.client.internal.DefaultImplementation.lambda$decodeKeyValueSchemaInfo$45(DefaultImplementation.java:418)
 ~[java-instance.jar:?]
        at 
org.apache.pulsar.client.internal.ReflectionUtils.catchExceptions(ReflectionUtils.java:34)
 ~[java-instance.jar:?]
        ... 7 more
   ``` 
   
   Seems we need to contains `<include>com.google.guava:*</include>` in the 
java-test-functions image
   
   
https://github.com/apache/pulsar/blob/master/tests/docker-images/java-test-functions/pom.xml#L85


-- 
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:
us...@infra.apache.org


Reply via email to