Error Message:
08:35:28.542 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Destroying ProtocolHandler ["http-nio-8088"] 08:35:28.545 [main] ERROR o.s.b.SpringApplication - [reportFailure,826] - Application run failed org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat server at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:212) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:296) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405) at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) at com.ruoyi.InterphoneApplication.main(InterphoneApplication.java:18) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) Caused by: java.lang.IllegalArgumentException: standardService.connector.startFailed at org.apache.catalina.core.StandardService.addConnector(StandardService.java:244) at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:265) at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:196) ... 18 common frames omitted Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed at org.apache.catalina.connector.Connector.startInternal(Connector.java:1067) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.addConnector(StandardService.java:240) ... 20 common frames omitted Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:228) at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:211) at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1159) at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1245) at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:603) at org.apache.catalina.connector.Connector.startInternal(Connector.java:1064) ... 22 common frames omitted 08:35:28.551 [main] INFO o.q.c.QuartzScheduler - [shutdown,666] - Scheduler RuoyiScheduler_$_yuren1629419725223 shutting down. 08:35:28.552 [main] INFO o.q.c.QuartzScheduler - [standby,585] - Scheduler RuoyiScheduler_$_yuren1629419725223 paused. 08:35:28.552 [main] INFO o.q.c.QuartzScheduler - [shutdown,740] - Scheduler RuoyiScheduler_$_yuren1629419725223 shutdown complete. 08:35:28.552 [main] INFO sys-user - [shutdownAsyncManager,31] - ====Close the background task task thread pool==== 08:35:28.553 [main] WARN o.s.c.a.CommonAnnotationBeanPostProcessor - [postProcessBeforeDestruction,185] - Destroy method on bean with name 'shutdownManager' threw an exception: java.lang.ExceptionInInitializerError 08:35:28.555 [main] INFO c.a.d.p.DruidDataSource - [close,2043] - {dataSource-1} closing ... 08:35:28.559 [main] INFO c.a.d.p.DruidDataSource - [close,2116] - {dataSource-1} closed Exception in thread "Quartz Scheduler [RuoyiScheduler]" org.springframework.scheduling.SchedulingException: Could not start Quartz Scheduler after delay; nested exception is org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called. at org.springframework.scheduling.quartz.SchedulerFactoryBean$1.run(SchedulerFactoryBean.java:754) Caused by: org.quartz.SchedulerException: The Scheduler cannot be restarted after shutdown() has been called. at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:529) at org.quartz.impl.StdScheduler.start(StdScheduler.java:142) at org.springframework.scheduling.quartz.SchedulerFactoryBean$1.run(SchedulerFactoryBean.java:751)
Reason:
[root@yuren interphone]# ps -ef|grep interphone-admin.jar
root 29204 28182 10 08:34 pts/0 00:00:26 java -jar interphone-admin.jar
It’s already running
java -jar ***.jar When the log comes out, pressing enter doesn’t actually end the process, so starting it again will report this error. After reinstalling jdk, it must not be running anymore, and it must be OK to start the project again.
Solution:
ps -ef|grep ***.jar to find the process number
Kill the process, then restart the project.
Read More:
- jemter java.net.BindException:Address alreardy in use [How to Solve]
- [Solved] Kafka in Windows error:java. nio. file. Filesystemexception: this file is in use by another program and cannot be accessed by the process
- [Solved] Tomcat configurate HTTPS error: java.net.SocketException: Permission denied
- [Solved] fasterxml ToStringSerializerBase Error: Caused by: java.lang.NoClassDefFoundError…
- [Solved] Error running ‘myToncat‘: Address localhost:8080 is already in use
- Caused by: java.lang.IllegalStateException (How to Fix)
- java.net.SocketException: software caused connection abort: socket write error resolution (selenium)
- [Solved] IDEA springboot Startup Error: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path
- The node requests the API address written by java to report an error error:getaddrinfo ENOTFOUND
- [Solved] nacos Startup Error: nested exception is java.lang.RuntimeException: java.lang.RuntimeException: [db-load-error
- How to Fix Error Caused by: java.util.MissingResourceException: Can‘t find bundle for base name xxx, locale zh_CN
- [Solved] Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException
- [Solved] ClientAbortException: java.io.IOException: Connection reset by peer
- JAVA Error Illegal access: this web application instance has been stopped already. Could not load net.sf
- [Solved] kafka Error: java.net.UnknownHostException: ls-bptysztw
- Resin Failed to Startup Error: ERROR: transport error 202: bind failed: Address already in use: JVM_Bind Listenin (Two Resins in One PC)
- [Solved] Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type…
- [Solved] Kafka Error: is/are not present and missingTopicsFatal is true
- [Solved] Spring set xml Component Scanning error: Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException…
- Solve the use of declaration transactions in spring java.lang.NoClassDefFoundError: org/aspectj/util/PartialOrder$PartialComparable