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

   ### 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
   
   Seatunnel version:2.3.5
   Seatunnel web version:1.0.1
   
   English:
   connector-xxx-2.3.5.jar in the Seatunnel, connectors/seatunnel and lib(with 
datasource xxxx-.1.0.0.jar configured) directory has been configured according 
to the official documentation. The Seatunnel starts normally. 
   Starting Seatunnel web appears: NoClassDefFoundError:
   org/apache/seatunnel/api/table/catalog/schema/TableSchemaOptions
   Try to replace the web/libs directory seatunnel - API - 2.3.3. Jar for 
seatunnel - API - 2.3.5. Jar, the error message into Java. Lang. 
NoSuchFieldError: APPEND_DATA
   The SEATUNNEL_HOME and SEATUNNEL_WEB_HOME variables have been configured
   Since there is no issue with the seatunnelWeb project, I would like to ask 
what is going on here?
   
   Chinese:
   按照官方文档配置了Seatunnel,connectors/seatunnel 和 lib(放置了datasource-xxxx-.1.0.0.jar) 
目录下放置的 connector-xxx-2.3.5.jar,Seatunnel能正常启动
   此时启动 Seatunnel web 出现 java.lang.NoClassDefFoundError:
   org/apache/seatunnel/api/table/catalog/schema/TableSchemaOptions
   尝试替换掉 web/libs 目录下的 seatunnel-api-2.3.3.jar 为 
seatunnel-api-2.3.5.jar,此时错误信息变成了java.lang.NoSuchFieldError: APPEND_DATA
   SEATUNNEL_HOME和SEATUNNEL_WEB_HOME变量已配置
   因为 seatunnelWeb 项目没有 issue,因此在这里提出问题,请问这是怎么一回事呢?
   
   Complete error message/完整错误信息:
   `
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'connectorCache' defined in URL 
[jar:file:/Users/akuan/cdc2/apache-seatunnel-web-1.0.1-bin/libs/seatunnel-app-1.0.1.jar!/org/apache/seatunnel/app/bean/connector/ConnectorCache.class]:
 Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.seatunnel.app.bean.connector.ConnectorCache]: Constructor threw 
exception; nested exception is java.lang.NoClassDefFoundError: 
org/apache/seatunnel/api/table/catalog/schema/TableSchemaOptions
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:420)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
        at 
org.apache.seatunnel.app.SeatunnelApplication.main(SeatunnelApplication.java:36)
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.apache.seatunnel.app.bean.connector.ConnectorCache]: 
Constructor threw exception; nested exception is 
java.lang.NoClassDefFoundError: 
org/apache/seatunnel/api/table/catalog/schema/TableSchemaOptions
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
        ... 17 common frames omitted
   Caused by: java.lang.NoClassDefFoundError: 
org/apache/seatunnel/api/table/catalog/schema/TableSchemaOptions
        at 
org.apache.seatunnel.connectors.seatunnel.http.source.HttpSourceFactory.getHttpBuilder(HttpSourceFactory.java:64)
        at 
org.apache.seatunnel.connectors.seatunnel.lemlist.source.LemlistSourceFactory.optionRule(LemlistSourceFactory.java:50)
        at 
org.apache.seatunnel.api.table.factory.FactoryUtil.sourceFullOptionRule(FactoryUtil.java:256)
        at 
org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery.lambda$getAllPlugin$5(AbstractPluginDiscovery.java:260)
        at java.lang.Iterable.forEach(Iterable.java:75)
        at 
org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery.getAllPlugin(AbstractPluginDiscovery.java:248)
        at 
org.apache.seatunnel.app.thirdparty.framework.PluginDiscoveryUtil.getAllConnectors(PluginDiscoveryUtil.java:126)
        at 
org.apache.seatunnel.app.bean.connector.ConnectorCache.refresh(ConnectorCache.java:107)
        at 
org.apache.seatunnel.app.bean.connector.ConnectorCache.<init>(ConnectorCache.java:73)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
        ... 19 common frames omitted
   Caused by: java.lang.ClassNotFoundException: 
org.apache.seatunnel.api.table.catalog.schema.TableSchemaOptions
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 33 common frames omitted
   `
   
   `
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'connectorCache' defined in URL 
[jar:file:/Users/akuan/cdc2/apache-seatunnel-web-1.0.1-bin/libs/seatunnel-app-1.0.1.jar!/org/apache/seatunnel/app/bean/connector/ConnectorCache.class]:
 Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.seatunnel.app.bean.connector.ConnectorCache]: Constructor threw 
exception; nested exception is java.lang.NoSuchFieldError: APPEND_DATA
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:420)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
        at 
org.apache.seatunnel.app.SeatunnelApplication.main(SeatunnelApplication.java:36)
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.apache.seatunnel.app.bean.connector.ConnectorCache]: 
Constructor threw exception; nested exception is java.lang.NoSuchFieldError: 
APPEND_DATA
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
        ... 17 common frames omitted
   Caused by: java.lang.NoSuchFieldError: APPEND_DATA
        at 
org.apache.seatunnel.connectors.seatunnel.jdbc.config.JdbcOptions.<clinit>(JdbcOptions.java:68)
        at 
org.apache.seatunnel.connectors.seatunnel.jdbc.sink.JdbcSinkFactory.optionRule(JdbcSinkFactory.java:237)
        at 
org.apache.seatunnel.api.table.factory.FactoryUtil.sinkFullOptionRule(FactoryUtil.java:282)
        at 
org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery.lambda$getAllPlugin$5(AbstractPluginDiscovery.java:273)
        at java.lang.Iterable.forEach(Iterable.java:75)
        at 
org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery.getAllPlugin(AbstractPluginDiscovery.java:248)
        at 
org.apache.seatunnel.app.thirdparty.framework.PluginDiscoveryUtil.getAllConnectors(PluginDiscoveryUtil.java:126)
        at 
org.apache.seatunnel.app.bean.connector.ConnectorCache.refresh(ConnectorCache.java:107)
        at 
org.apache.seatunnel.app.bean.connector.ConnectorCache.<init>(ConnectorCache.java:73)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
        ... 19 common frames omitted
   `
   
   ### SeaTunnel Version
   
   Seatunnel version:2.3.5
   Seatunnel web version:1.0.1
   
   ### SeaTunnel Config
   
   ```conf
   nohup sh bin/seatunnel-cluster.sh 2>&1 &
   ```
   
   
   ### Running Command
   
   ```shell
   null
   ```
   
   
   ### Error Exception
   
   ```log
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'connectorCache' defined in URL 
[jar:file:/Users/akuan/cdc2/apache-seatunnel-web-1.0.1-bin/libs/seatunnel-app-1.0.1.jar!/org/apache/seatunnel/app/bean/connector/ConnectorCache.class]:
 Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.seatunnel.app.bean.connector.ConnectorCache]: Constructor threw 
exception; nested exception is java.lang.NoClassDefFoundError: 
org/apache/seatunnel/api/table/catalog/schema/TableSchemaOptions
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:420)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
        at 
org.apache.seatunnel.app.SeatunnelApplication.main(SeatunnelApplication.java:36)
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.apache.seatunnel.app.bean.connector.ConnectorCache]: 
Constructor threw exception; nested exception is 
java.lang.NoClassDefFoundError: 
org/apache/seatunnel/api/table/catalog/schema/TableSchemaOptions
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
        ... 17 common frames omitted
   Caused by: java.lang.NoClassDefFoundError: 
org/apache/seatunnel/api/table/catalog/schema/TableSchemaOptions
        at 
org.apache.seatunnel.connectors.seatunnel.http.source.HttpSourceFactory.getHttpBuilder(HttpSourceFactory.java:64)
        at 
org.apache.seatunnel.connectors.seatunnel.lemlist.source.LemlistSourceFactory.optionRule(LemlistSourceFactory.java:50)
        at 
org.apache.seatunnel.api.table.factory.FactoryUtil.sourceFullOptionRule(FactoryUtil.java:256)
        at 
org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery.lambda$getAllPlugin$5(AbstractPluginDiscovery.java:260)
        at java.lang.Iterable.forEach(Iterable.java:75)
        at 
org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery.getAllPlugin(AbstractPluginDiscovery.java:248)
        at 
org.apache.seatunnel.app.thirdparty.framework.PluginDiscoveryUtil.getAllConnectors(PluginDiscoveryUtil.java:126)
        at 
org.apache.seatunnel.app.bean.connector.ConnectorCache.refresh(ConnectorCache.java:107)
        at 
org.apache.seatunnel.app.bean.connector.ConnectorCache.<init>(ConnectorCache.java:73)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
        ... 19 common frames omitted
   Caused by: java.lang.ClassNotFoundException: 
org.apache.seatunnel.api.table.catalog.schema.TableSchemaOptions
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 33 common frames omitted
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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: [email protected]

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

Reply via email to