penghuazhou opened a new issue, #38315:
URL: https://github.com/apache/shardingsphere/issues/38315

   It throw "Caused by: java.lang.NoClassDefFoundError: 
org/apache/seata/core/context/RootContext" err when I use 
   shardingsphere-proxy: 5.5.3.
   
   I use test case as 
https://github.com/apache/shardingsphere/issues/37993#event-22701512337.
   
   ```
   Caused by: java.lang.NoClassDefFoundError: 
org/apache/seata/core/context/RootContext
           at 
org.apache.shardingsphere.transaction.base.seata.at.SeataTransactionalSQLExecutionHook.start(SeataTransactionalSQLExecutionHook.java:36)
           at 
org.apache.shardingsphere.infra.executor.sql.hook.SPISQLExecutionHook.start(SPISQLExecutionHook.java:36)
           at 
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:90)
           at 
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:65)
           at 
org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.syncExecute(ExecutorEngine.java:99)
           at 
org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.parallelExecute(ExecutorEngine.java:95)
           at 
org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.execute(ExecutorEngine.java:78)
           at 
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:66)
           at 
org.apache.shardingsphere.proxy.backend.connector.jdbc.executor.ProxyJDBCExecutor.execute(ProxyJDBCExecutor.java:74)
           at 
org.apache.shardingsphere.proxy.backend.connector.ProxySQLExecutor.useDriverToExecute(ProxySQLExecutor.java:235)
           at 
org.apache.shardingsphere.proxy.backend.connector.ProxySQLExecutor.execute(ProxySQLExecutor.java:192)
           at 
org.apache.shardingsphere.proxy.backend.connector.StandardDatabaseProxyConnector.doExecute(StandardDatabaseProxyConnector.java:238)
           at 
org.apache.shardingsphere.proxy.backend.connector.StandardDatabaseProxyConnector.execute(StandardDatabaseProxyConnector.java:194)
           at 
org.apache.shardingsphere.proxy.backend.handler.data.type.UnicastDatabaseProxyBackendHandler.execute(UnicastDatabaseProxyBackendHandler.java:63)
           at 
org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:96)
           at 
org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.doExecuteCommand(CommandExecutorTask.java:126)
           at 
org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:121)
           at 
org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:78)
           ... 4 common frames omitted
   Caused by: java.lang.ClassNotFoundException: 
org.apache.seata.core.context.RootContext
           ... 22 common frames omitted
   [ERROR] 2026-03-03 16:15:25.813 [ShardingSphere-Command-0] 
o.a.s.p.f.c.CommandExecutorTask - Exception occur: 
   java.lang.RuntimeException: java.lang.NoClassDefFoundError: 
org/apache/seata/core/context/RootContext
           at 
org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:87)
           at com.alibaba.ttl.TtlRunnable.run(TtlRunnable.java:60)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
           at java.base/java.lang.Thread.run(Thread.java:1474)
   Caused by: java.lang.NoClassDefFoundError: 
org/apache/seata/core/context/RootContext
           at 
org.apache.shardingsphere.transaction.base.seata.at.SeataTransactionalSQLExecutionHook.start(SeataTransactionalSQLExecutionHook.java:36)
           at 
org.apache.shardingsphere.infra.executor.sql.hook.SPISQLExecutionHook.start(SPISQLExecutionHook.java:36)
           at 
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:90)
           at 
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:65)
           at 
org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.syncExecute(ExecutorEngine.java:99)
           at 
org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.parallelExecute(ExecutorEngine.java:95)
   :
   ```


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to