问题描述 : 

springboot     程序运行出现以下情况
没有错误日志  返回运行结束 状态码  1     状态码为 1 的时候表示程序不是异常终止
连接到目标VM, 地址: ''127.0.0.1:4376',传输: '套接字'', 传输: '{1}'
2021-10-29 17:35:46 JRebel: Directory 'xxx\majorproject\target\classes' will be monitored for changes.
2021-10-29 17:35:47 JRebel:
2021-10-29 17:35:47 JRebel: A newer version '2021.4.0' is available for download
2021-10-29 17:35:47 JRebel: from https://jrebel.com/software/jrebel/download/
2021-10-29 17:35:47 JRebel:
2021-10-29 17:35:49 JRebel: Starting logging to file: C:\Users\jiannachun\.jrebel\jrebel.log
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel: #############################################################
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel: JRebel Agent 2021.2.2 (202105271234)
2021-10-29 17:35:49 JRebel: (c) Copyright 2007-2021 Perforce Software, Inc.
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel: Over the last 30 days JRebel prevented
2021-10-29 17:35:49 JRebel: at least 74 redeploys/restarts saving you about 0.8 hours.
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel: Over the last 365 days JRebel prevented
2021-10-29 17:35:49 JRebel: at least 2171 redeploys/restarts saving you about 24.1 hours.
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel: License acquired from License Server: http://127.0.0.1:8888
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel: Licensed to ilanyu.
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel: You are using an offline license.
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel:
2021-10-29 17:35:49 JRebel: #############################################################
2021-10-29 17:35:49 JRebel: Process finished with exit code 1

解决方案


步骤一: 在启动类中进行错误抓取 

@SpringBootApplication
public class MajorDemolitionApplication { public static void main(String[] args) {
try {
SpringApplication.run(MajorDemolitionApplication.class, args);
System.out.println("--- 项目 启动成功---" + "version1.0.0 => " + new Date());
} catch (Throwable e) {
//异常级别越大越好,我之前测试的时候,用的是Exception,但是没有日志。
e.printStackTrace();
}
}
}

步骤二:启动程序 观察控制台日志  此时会出现错误信息 
2021-10-29 19:32:24 JRebel:
java.lang.IllegalStateException: Could not initialize Logback logging from classpath:logback-spring.xml
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:156)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithConventions(AbstractLoggingSystem.java:82)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:60)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:117)
at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:293)
at org.springframework.boot.context.logging.LoggingApplicationListener.initialize(LoggingApplicationListener.java:266)
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:229)
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:202)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:75)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:347)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at com.longshine.major.MajorProjectApplication.main(MajorProjectApplication.java:17)
Caused by: ch.qos.logback.core.joran.spi.JoranException: Problem parsing XML document. See previously reported errors.
at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:65)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:151)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.configureByResourceUrl(LogbackLoggingSystem.java:180)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:152)
... 18 more
Caused by: org.xml.sax.SAXParseException; systemId: file:/J:/majorproject/target/classes/logback-spring.xml; lineNumber: 191; columnNumber: 7; 元素类型 "configuration" 必须由匹配的结束标记 "</configuration>" 终止。
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:59)
... 23 more
---河北 重点项目 启动成功---version1.0.0 => Fri Oct 29 19:32:26 CST 2021
与目标VM断开连接, 地址为: ''127.0.0.1:11441',传输: '套接字'', 传输: '{1}' Process finished with exit code 0
步骤三: 观察错误信息 发现  logback-spring.xml 文件配置有误 无法完整解析 (如下注释的时候不知道为什么缺失了一段注释)



修改处理即可   上次遇到这个问题是因为 在引入依赖的时候循环依赖导致的    然后没有做记录  这次记录下这样的问题处理方案 

"Process finished with exit code 1" 进程结束的更多相关文章

  1. cordova Process finished with exit code -1

    安装完cordova之后,创建一个测试项目后,运行报Process finished with exit code -1,经过查找原因,是因为gradle没有安装,在http://www.androi ...

  2. [idea] - 项目启动报错Process finished with exit code 1

    今天运行项目发现一个bug, "C:\Program Files\Java\jdk1.8.0_191\bin\java.exe" -XX:TieredStopAtLevel=1 - ...

  3. pycharm Process finished with exit code (0xC0000005)

    pycharm  Process finished with exit code  (0xC0000005)解决办法 上次报过这个错误,是在安装浏览器时发现的,报过同样的错误.按当时的方法,以为切地解 ...

  4. pycharm 出现Process finished with exit code 0 或 Process finished with exit code -1

    Process finished with exit code 0 意味着你的程序正常执行完毕并退出. 可以科普一下exit code,在大部分编程语言中都适用: exit code 0 表示程序执行 ...

  5. Android-AndroidStudio-AVD启动不了-emulator: Process finished with exit code 1

    注意:解决此错误目前只针对Windows系统的电脑: 1.AndroidStudio-->AVDManager(Create Virtual Device): 2.提示AVD启动不了,同时Eve ...

  6. spring boot 运行提示:Process finished with exit code 1

    spring boot 运行提示:Process finished with exit code 1 经检查发现是由于在application.properties配置文件中将某些自定义配置项移除了, ...

  7. tensorflow Process finished with exit code 137 (interrupted by signal 9: SIGKILL) 错误

    Process finished with exit code 137 (interrupted by signal 9: SIGKILL) 在使用tensorflow自带的数据集做手写数字识别的时候 ...

  8. 运行代码后出现Process finished with exit code 0是为什么?

    Process finished with exit code 0 意味着你的程序正常执行完毕并退出. 可以科普一下exit code,在大部分编程语言中都适用: exit code 0 表示程序执行 ...

  9. pycharm 调试Django 奇葩问题:Process finished with exit code -1073741819

    想自己整个BLOG,发现python+Django好像还不错,尝试一下.在使用过程中,突然pycharm不能调试django工程.网上搜索也没解决,是google哦.好像记得启动pycharm时,看到 ...

  10. SpringBoot Idea 启动报错 Process finished with exit code 1

    问题描述:没有其他任何错误日志,只有Process finished with exit code 1 问题原因:Maven POM.xml问题造成 由于是properties是我直接从其他项目中拷贝 ...

随机推荐

  1. js开发规范

    ####################### 1.缩进 [强制] 使用 4 个空格做为一个缩进层级,不允许使用 2 个空格 或 tab 字符. [强制] switch中缩进2个空格 [强制] 要求分 ...

  2. mysql迁移:mysqldump导出表结构及数据

    问题描述:有需要mysql某几张表的需求,某个数据库某几张表,导出先检查相应的数据库和表是否存在 数据泵用法:默认导出的是表结构以及表中的数据 mysqldump -uroot -p -S /data ...

  3. 【Java SE】IO流

    1.File类 ①File类的一个对象代表一个文件或一个文件目录 ②File类声明在java.io下 1.1 FIle类的声明 路径分隔符 Windows和DOS系统默认使用'',UNIX和URL使用 ...

  4. jQuery 在图片和文字中插入内容(多种情况考虑)

    昨天接到一个新的需要,在后台文章编辑器中,每一个文章的正文前面,可以单独添加一个电头字段,但是如果在富文本编辑器中最上面就添加图片的话,图片就会把电头和正文中的文字给隔开.需要做的是获取到电头字段,然 ...

  5. MySQL-InnoDB磁盘结构

    主要阐述InnoDB存储引擎(MySQL5以后的默认引擎). 数据库中最基本的组成结构是数据表,视觉上的表和其对应的磁盘结构如下: 此图参考了厦门大学课堂:MySQL原理 .但是视频中一些更多细节没有 ...

  6. [C++核心编程] 4.6、继承

    文章目录 4.6 继承 4.6.1 继承的基本语法 4.6.2 继承方式 4.6.3 继承中的对象模型 4.6.4 继承中构造和析构顺序 4.6.5 继承同名成员处理方式 4.6.6 继承同名静态成员 ...

  7. 关于java中的多态和对实例化对象的一些理解

    java面向对象三大特征即为:继承封装多态.而多态需要三大必要条件.分别是:继承.方法重写.父类引用指向子类对象.我们先一个一个来理解. 1.首先是继承和重写.这个很简单.因为多态就是建立在不同的重写 ...

  8. Prism Sample 20-NavigateToExistingViews

    上一个例子介绍了INavigationAware中的OnNavitationTo,这次是第二个实现函数. IsNavitationTarget,这个名字有点误导,真实的作用是,当从其它页面导航至本页面 ...

  9. 2022-06-22:golang选择题,以下golang代码输出什么?A:3;B:1;C:4;D:编译失败。 package main import ( “fmt“ ) func mai

    2022-06-22:golang选择题,以下golang代码输出什么?A:3:B:1:C:4:D:编译失败. package main import ( "fmt" ) func ...

  10. < Python全景系列-2 > Python数据类型大盘点

    <Python全景系列-2> Python数据类型大盘点 欢迎来到我们的系列博客<Python全景系列>!在这个系列中,我们将带领你从Python的基础知识开始,一步步深入到高 ...