You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "litiliu (via GitHub)" <gi...@apache.org> on 2025/08/08 08:26:08 UTC

[I] [Bug] [E2E] NoSuchFieldError: Companion [seatunnel]

litiliu opened a new issue, #9682:
URL: https://github.com/apache/seatunnel/issues/9682

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   I'm running the E2E test case on my local but find it failed with the below exception:
   [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.241 s <<< FAILURE! - in org.apache.seatunnel.engine.e2e.k8s.KubernetesIT
   [ERROR] testTcpDiscovery  Time elapsed: 0.091 s  <<< ERROR!
   java.lang.NoSuchFieldError: Companion
           at org.apache.seatunnel.engine.e2e.k8s.KubernetesIT.runDiscoveryTest(KubernetesIT.java:138)
           at org.apache.seatunnel.engine.e2e.k8s.KubernetesIT.testTcpDiscovery(KubernetesIT.java:69)
   
   I also found a similar issue https://github.com/apache/seatunnel/issues/7250
   
   
   ### SeaTunnel Version
   
   2.3.12-SNAPSHOT
   
   ### SeaTunnel Config
   
   ```conf
   none
   ```
   
   ### Running Command
   
   ```shell
   ./mvnw -T 1 -B  verify -DskipUT=true -DskipIT=false -D"license.skipAddThirdParty"=true -D"skip.ui"=true --no-snapshot-updates -pl :seatunnel-engine-k8s-e2e -am -Pci
   ```
   
   ### Error Exception
   
   ```log
   [ERROR] testKubernetesDiscovery  Time elapsed: 0 s  <<< ERROR!
   java.lang.NoClassDefFoundError: Could not initialize class okhttp3.internal.concurrent.TaskRunner
           at org.apache.seatunnel.engine.e2e.k8s.KubernetesIT.runDiscoveryTest(KubernetesIT.java:138)
           at org.apache.seatunnel.engine.e2e.k8s.KubernetesIT.testKubernetesDiscovery(KubernetesIT.java:75)
   Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchFieldError: Companion [in thread "main"]
           at org.apache.seatunnel.engine.e2e.k8s.KubernetesIT.runDiscoveryTest(KubernetesIT.java:138)
           at org.apache.seatunnel.engine.e2e.k8s.KubernetesIT.testTcpDiscovery(KubernetesIT.java:69)
   
   [INFO] 
   [INFO] Results:
   [INFO] 
   [ERROR] Errors: 
   [ERROR]   KubernetesIT.testKubernetesDiscovery:75->runDiscoveryTest:138 » NoClassDefFound
   [ERROR]   KubernetesIT.testTcpDiscovery:69->runDiscoveryTest:138 » NoSuchField Companion
   [INFO] 
   [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   java 17
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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@seatunnel.apache.org.apache.org

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


Re: [I] [Bug] [E2E] NoSuchFieldError: Companion [seatunnel]

Posted by "litiliu (via GitHub)" <gi...@apache.org>.
litiliu commented on issue #9682:
URL: https://github.com/apache/seatunnel/issues/9682#issuecomment-3222788953

   RC is multiple version to kotlin-stdlib.jar exists in the classPath. Here is the screenShot of kotlin-stdlib in the IDEA's external Libiaries on version 2.3.12-SNAPSHOT.
   
   <img width="500" height="103" alt="Image" src="https://github.com/user-attachments/assets/33012c9e-3fe7-4107-8459-cffe696981f5" />
   
    


-- 
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@seatunnel.apache.org

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


Re: [I] [Bug] [E2E] NoSuchFieldError: Companion [seatunnel]

Posted by "litiliu (via GitHub)" <gi...@apache.org>.
litiliu commented on issue #9682:
URL: https://github.com/apache/seatunnel/issues/9682#issuecomment-3167291975

   RC is multiple version of Okhttp imports conflict kotlin jars. 


-- 
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@seatunnel.apache.org

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


Re: [I] [Bug] [E2E] NoSuchFieldError: Companion [seatunnel]

Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w closed issue #9682: [Bug] [E2E] NoSuchFieldError: Companion
URL: https://github.com/apache/seatunnel/issues/9682


-- 
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@seatunnel.apache.org

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