The error message is as follows:
1
|
Error creating bean with name 'messageServiceImpl' : Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.qianxiao.blogwebscoket.service.impl.MessageServiceImpl] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader @41cf53f9 ] |
The two environments are not local development
1
2
3
|
java version "1.8.0_281" Java(TM) SE Runtime Environment (build 1.8 .0_281-b09) Java HotSpot(TM) Client VM (build 25.281 -b09, mixed mode, sharing) |
docker container environment
1
2
3
|
openjdk version "1.8.0_111" OpenJDK Runtime Environment (build 1.8 .0_111-8u111-b14- 2 ~bpo8+ 1 -b14) OpenJDK 64 -Bit Server VM (build 25.111 -b14, mixed mode) |
Looks like there is nothing wrong with this version
But when I add @Service annotation to the MessageServiceImpl class, I get an error at runtime.
Remove the @Service annotation and start normally
I have been looking for a problem for a long time; in the end, the problem lies in the use of the CallBack callback parameter in this implementation class. It is normal to remove this parameter and compile and restart! ! !
Read More:
- Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen is reported when docker port mapping or starting the container
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- Jenkins uses NPM to build Vue error, and the manual build is normal
- Spring bean object cannot be injected into quartz job
- K8S Master Initialize Error: [ERROR CRI]: container runtime is not running: output: E0812
- Docker run Error: container_linux.go:235: starting container process caused “process_linux.go:258: appl
- Docker: How to Enter the Closed Container and View the Logging
- [Solved] Spring MVC Error: A child container failed during start
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- [Solved] Docker startup container error: permission denied””: unknown.
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380
- Docker Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid
- MAC: How to modify the docker container error [screen is terminating]
- Start Docker Quickstart Terminal error This computer is running Hyper-V. VirtualBox won’t boot a 64bits VM when Hyper-V is activated
- [Solved] Docker Error: WSL 2 installation is incomplete.
- [How to Fix] manual close is not allowed over a Spring managed SqlSession
- Error from server (BadRequest): a container name must be specified for pod
- [Solved] Project Upgrade Gradle error (Bugly is integrated)
- Spring cloud Eureka error creating bean with name
- [Solved] swagger3 Error: org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException