开发者社区 问答 正文

项目接入seata提示NoSuchMethodError

报错内容如下,不是很理解为什么会产生,求助! 2023-03-09 08:46:48.393 WARN 11940 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalTransactionScanner' defined in class path resource [io/seata/spring/boot/autoconfigure/SeataAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.seata.spring.annotation.GlobalTransactionScanner]: Factory method 'globalTransactionScanner' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.commons.lang.ArrayUtils.isNotEmpty([Ljava/lang/Object;)Z 2023-03-09 08:46:48.408 ERROR 11940 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

io.seata.spring.annotation.scannercheckers.PackageScannerChecker.addScannablePackages(PackageScannerChecker.java:48)

The following method did not exist:

org.apache.commons.lang.ArrayUtils.isNotEmpty([Ljava/lang/Object;)Z

The method's class, org.apache.commons.lang.ArrayUtils, is available from the following locations:

jar:file:/D:/respository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar!/org/apache/commons/lang/ArrayUtils.class

展开
收起
游客zcxfw2szxcs2g 2023-03-09 09:16:10 1006 分享 版权
1 条回答
写回答
取消 提交回答
  • 发表文章、提出问题、分享经验、结交志同道合的朋友

    这是错误Spring Boot应用程序的上下文初始化报的,根据错误信息,似乎是缺少Apache Commons Lang库的某些类或方法。具体来说,它似乎缺少“org.apache.commons.lang.ArrayUtils.isNotEmpty(Object[])”方法。

    2023-03-09 20:57:51
    赞同 展开评论
问答分类:
问答标签:
问答地址: