Mybatis integrates pagehelper and reports an error ClassNotFoundException: org.mybatis.logging.LoggerFactory

Table of Contents Report an error reason Solution Error report In order to introduce pagehelper, the following code is added to the pom.xml file <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.1.3</version> </dependency> As a result, the error when starting the soringboot project is as follows: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘testMybatisController’: Unsatisfied dependency expressed through field ‘salePickGoodsInfoMapper’; […]

Solve the problem of JMSException: ClassNotFoundException when consuming ActiveMQ queue

The requirement development was completed and tested. During the test, it was found that when the listener of activemq was consuming queue messages, the program caught an exception. See the log below.The exception information is obvious, the class com.cn.yft.ora.entity.TAccReviewRecord does not exist. Looking at this ClassNotFoundException exception, I thought that it had also appeared when […]

Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWo

1. Error description usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 14:19:28 org.apache.catalina.core.AprLifecycleListener init Message: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8. 2014-7-12 14:19:29 org.apache.catalina.core.AprLifecycleListener init Information: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 2014-7-12 14:19:29 […]

ClassNotFoundException exception occurs in Java reflection analysis of specified jar package, how to handle it

In the last blog post, I wrote that the specified jar package was parsed through Java’s reflection mechanism, and the full class name, method name, and parameter name were obtained. However, some bloggers may find some problems when using it. The problem is that when parsing a simple interface case, it can be parsed completely, […]

How to solve ClassNotFoundException, NoClassDefFoundError and ExceptionInitializerError

1. ClassNotFoundException 1. Introduction ClassNotFoundException is a checked exception. Thrown when the application attempts to load a class by its string name, but a class with the specified name is not found in the classpath. Generally occurs in Class.forName(String), ClassLoader.findSystemClass(String), ClassLoader.loadClass(String, boolean) 2. Common reasons The essence of this exception is: there is no classes […]

ElasticJob startup error: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.TSFBuider

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right. Table of Contents 1. The error is reported as follows 2. Investigation direction Summarize 1. The error is reported as follows 2023-08-25 19:28:14.211|ERROR|main||||org.springframework.boot.SpringApplication.reportFailure[826]|Application run failed org.springframework.beans.factory.BeanCreationException: Error […]

Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.MethodProxy

1. Exception information 2023-08-16 14:17:14.817 INFO 14304 [restartedMain] io.seata.config.ConfigurationFactory : load Configuration:FileConfiguration$$EnhancerByCGLIB$$862af1eb 2023-08-16 14:17:15.006 ERROR 14304 [ restartedMain] g.springframework.boot.SpringApplication : Application run failed 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 […]

When introducing nacos, an error is reported ClassNotFoundException: org.springframework.cloud.client.discovery.simple.SimpleDiscoveryCl

ClassNotFoundException: org.springframework.cloud.client.discovery.simpleSimpleDiscoveryClientAutoConfiguration The problem encountered when listening to the dark horse’s springcloud class P16. First, follow the guidance of the barrage to add the @EnableDiscoveryClient annotation on the startup class and introduce the corresponding class, but it still fails to run Then I checked some related issues on the Internet and found that most of […]

In-depth analysis of java.lang.ClassNotFoundException

1. Introduction In Java development, we often encounter various exceptions. Among them, java.lang.ClassNotFoundException is a common exception. This article will deeply analyze the definition, function, cause and common scenarios of this exception. 1.1 Introduce the definition and function of ClassNotFoundException The ClassNotFoundException exception is a standard exception class in the Java programming language, which inherits […]

Intellij IDEA double-clicks to start and reports an error ClassNotFoundException: com.licel.b.z@

Project scenario: Newly downloaded from the official websiteideaIU-2023.2.win.zip, after installation, double-click to start and report an error, unable to run idea, the prompt information is as follows Description of the problem Internal error. Please refer to https://jb.gg/ide/critical-startup-errors java.lang.ExceptionInInitializerError at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:375) at fuck_the_regulations_v320.us.f (Unknown Source) at fuck_the_regulations_v320.us.W(Unknown Source) at fuck_the_regulations_v320.us.q (Unknown Source) at […]