Skip to content

Conversation

@arshadmohammad
Copy link
Collaborator

Purpose of this pull request

Check list

@arshadmohammad
Copy link
Collaborator Author

Seatunnel-web start is failing with following error

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mybatisPlusInterceptor' defined in class path resource [org/apache/seatunnel/app/config/MybatisPlusConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor]: Factory method 'mybatisPlusInterceptor' threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/jsqlparser/statement/select/SelectExpressionItem at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311) ... 128 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mybatisPlusInterceptor' defined in class path resource [org/apache/seatunnel/app/config/MybatisPlusConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor]: Factory method 'mybatisPlusInterceptor' threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/jsqlparser/statement/select/SelectExpressionItem at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) 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.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1607) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1571) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1437) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1347) at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:2030) at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.<init>(MybatisPlusAutoConfiguration.java:136) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) ... 130 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor]: Factory method 'mybatisPlusInterceptor' threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/jsqlparser/statement/select/SelectExpressionItem at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ... 152 more Caused by: java.lang.NoClassDefFoundError: net/sf/jsqlparser/statement/select/SelectExpressionItem at com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor.<clinit>(PaginationInnerInterceptor.java:69) at org.apache.seatunnel.app.config.MybatisPlusConfig.mybatisPlusInterceptor(MybatisPlusConfig.java:33) at org.apache.seatunnel.app.config.MybatisPlusConfig$$EnhancerBySpringCGLIB$$4af70d15.CGLIB$mybatisPlusInterceptor$0(<generated>) at org.apache.seatunnel.app.config.MybatisPlusConfig$$EnhancerBySpringCGLIB$$4af70d15$$FastClassBySpringCGLIB$$3a024f2.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) at org.apache.seatunnel.app.config.MybatisPlusConfig$$EnhancerBySpringCGLIB$$4af70d15.mybatisPlusInterceptor(<generated>) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 153 more Caused by: java.lang.ClassNotFoundException: net.sf.jsqlparser.statement.select.SelectExpressionItem at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 165 more

@arshadmohammad
Copy link
Collaborator Author

The class net/sf/jsqlparser/statement/select/SelectExpressionItem was included in jsqlparser-4.5.jar. However, after upgrading, we are now receiving jsqlparser-4.9.jar as an indirect dependency, which does not contain this class.

Further analysis is required to resolve this issue. If anyone has any insights or suggestions, please share them

@arshadmohammad arshadmohammad self-assigned this Apr 17, 2025
@jm18919
Copy link

jm18919 commented Apr 24, 2025

image

I found this conflict with dependency analysis. I am not so sure. How about upgrading mybatisplus?

https://github.com/naijim/seatunnel-web check this repo. I just upgraded mybatisplus. It looks like the conflict has been resolved.

@arshadmohammad
Copy link
Collaborator Author

Thank you, @jm18919.
Would you like to raising a PR in the seatunnel-web project?

@jm18919
Copy link

jm18919 commented Apr 29, 2025

#292

Here is the PR. There is still some issues. I can not choose data source while testing mysql-jdbc.

@arshadmohammad
Copy link
Collaborator Author

#292

Here is the PR. There is still some issues. I can not choose data source while testing mysql-jdbc.

Please investigate the cause and try to identify a solution

@jm18919
Copy link

jm18919 commented Apr 29, 2025

#292
Here is the PR. There is still some issues. I can not choose data source while testing mysql-jdbc.

Please investigate the cause and try to identify a solution

May I take a look at your Run/Debug Configurations in IDEA? I may set the wrong environment variables.

@jm18919
Copy link

jm18919 commented May 7, 2025

I make a wrong configuration. The PR can be merged without issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants