About IDEA project start springboot abnormal - Disconnected from the target VM, address: '127.0.0.1:59770', transport: 'socket'

About IDEA project start springboot abnormal - Disconnected from the target VM, address: '127.0.0.1:59770', transport: 'socket'

Start springboot project being given as follows:

Connected to the target VM, address: '127.0.0.1:55043', transport: 'socket'

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.0.RELEASE)

八月 02, 2019 11:28:31 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Tomcat
八月 02, 2019 11:28:31 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.4
八月 02, 2019 11:28:31 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
八月 02, 2019 11:28:32 上午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Tomcat
Disconnected from the target VM, address: '127.0.0.1:55043', transport: 'socket'

Process finished with exit code 1

Troubleshooting steps:

001
  1. First make sure logback.xmlthe configuration (of course, you can also use a different log profiles, but the idea is the same) whether there is a problem. Because there is no print out the error log.
  2. I have here the configuration file in question, resulting in the error log is not output. We can not locate the problem. After modifying the problem became clear.
....
Caused by: java.lang.NullPointerException: null
    at com.t.i.c.ChannelTrans.<clinit>(ChannelTrans.java:42) ~[classes/:na]
    ... 24 common frames omitted
Disconnected from the target VM, address: '127.0.0.1:55069', transport: 'socket'

Process finished with exit code 1
002
  1. If it says no problem with the configuration, then for no log output, the last way is to go step by step debug.
  2. You can also find the same problem where to be thrown out, then swallowed where the error log.

Finally, I would like to summarize here
the Internet looked at the statistics on the wrong question, the answer is due to inconsistent versions maven.
Although I do not know in the end it is the kind of solution that solves the problem. But certainly for me the question is not of any help.
So I think directly to the result, it is better to deal with the problem of thinking to come out, so that subsequent problems can be encountered someone pressing ideas to troubleshoot the problem, rather than take the results to set the process.

Guess you like

Origin www.cnblogs.com/Trainoo/p/11287739.html