ben-wangz commented on issue #8717: fix issue 
https://issues.apache.org/jira/browse/FLINK-12725
URL: https://github.com/apache/flink/pull/8717#issuecomment-511351314
 
 
   i cherry-pick this fix to release-1.8.0 and run it with mongo input format 
(org.mongodb, mongo-hadoop-core, 1.3.0)。 found exception of 
java.lang.LinkageError: 
   ```
   Caused by: java.lang.LinkageError: loader constraint violation: when 
resolving method 
"com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy.setFallbackInstantiatorStrategy(Lorg/objenesis/strategy/InstantiatorStrategy;)V"
 the class loader (instance of 
org/apache/flink/runtime/execution/librarycache/FlinkUserCodeClassLoaders$ChildFirstClassLoader)
 of the current class, 
org/apache/flink/api/java/typeutils/runtime/WritableSerializer, and the class 
loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining 
class, com/esotericsoftware/kryo/Kryo$DefaultInstantiatorStrategy, have 
different Class objects for the type 
org/objenesis/strategy/InstantiatorStrategy used in the signature
           at 
org.apache.flink.api.java.typeutils.runtime.WritableSerializer.checkKryoInitialized(WritableSerializer.java:131)
           at 
org.apache.flink.api.java.typeutils.runtime.WritableSerializer.copy(WritableSerializer.java:68)
           at 
org.apache.flink.api.java.typeutils.runtime.WritableSerializer.copy(WritableSerializer.java:42)
           at 
org.apache.flink.api.java.typeutils.runtime.TupleSerializer.copy(TupleSerializer.java:111)
           at 
org.apache.flink.api.java.typeutils.runtime.TupleSerializer.copy(TupleSerializer.java:37)
           at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:577)
           at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:554)
           at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:534)
           at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:718)
           at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:696)
           at 
org.apache.flink.streaming.api.operators.StreamSourceContexts$NonTimestampContext.collect(StreamSourceContexts.java:104)
           at 
org.apache.flink.streaming.api.functions.source.InputFormatSourceFunction.run(InputFormatSourceFunction.java:93)
           at 
org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:93)
           at 
org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:57)
           at 
org.apache.flink.streaming.runtime.tasks.SourceStreamTask.run(SourceStreamTask.java:97)
           at 
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:300)
           at org.apache.flink.runtime.taskmanager.Task.run(Task.java:711)
           at java.lang.Thread.run(Thread.java:745)
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to