问题描述 : 

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. day8:列表相关函数&深浅拷贝&字典相关函数&集合相关操作/函数

    字符串/列表/字典/集合 目录 字符串相关操作: 拼接 重复 跨行拼接 索引 切片字符串相关函数:常规11+is系列3+填充去除6+最重要3字符串拓展:字符串的格式化format 列表的相关操作:拼接 ...

  2. Kubernetes入门实践(环境搭建)

    容器技术只是解决了运维部署工作中的一个很小的问题,在现实生产环境中,除了最基本的安装,还会各式各样的需求,比如服务发现.负载均衡.状态监控.健康检查.扩容缩容.应用迁移.高可用等等.这些容器之上的管理 ...

  3. 为什么数据库project被做成了web开发啊啊——一个半小时实现增删查改

    昨天晚上去小破站上找了一点点~~亿点点~~资料,仔细研究了一下我们项目说明文档里的restful框架,发现可以直接用django_restful_framework. 天大的好消息啊!今天下午有三个小 ...

  4. 推荐两个AI神器:ChatGPT只需1个标题,2分钟全自动生成PPT!

    今天给大家分享两个工具,帮助你全自动生成PPT,接下来以自动化测试为主题,教大家如何2分钟生成好PPT. 1.第一个工具:ChatGPT 1.打开ChatGPT页面,输入prompt,告诉它,让它帮你 ...

  5. UniApp小程序开发项目创建与运行

    1.准备工作:HbuiderX  +  微信开发者工具下载安装+小程序账号申请开通(这里就不例举了,可以看同账号uniapp小程序开发准备) 2.创建项目 新版本的HbuilderX点击新建项目--选 ...

  6. ES6 新增的一些特性

    还有symbol和set,map, bind,call,apply 1. let关键字 (1)基本用法:let关键字用来声明变量,它的用法类似于var,都是用来声明变量. (2)块级作用域:let声明 ...

  7. 学习笔记——树形dp

    树形 dp 介绍 概念 树形 dp,顾名思义,就是在树上做 dp,将 dp 的思想建立在树状结构之上. 常见的树形 dp 有两种转移方向: 从叶节点向根节点转移,这种也是树形 dp 中较为常见的一种. ...

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

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

  9. 【学习笔记】【题解】树形依赖 DP 选做

    地址:https://www.cnblogs.com/FReQuenter5156/p/shuxingyilaidp.html/ 简介 这类背包本质上是分组背包问题. 将一个节点的每一棵子树看作一组, ...

  10. pikachu靶场学习

    pikachu靶场通关 搭建靶场 1.官网下载https://github.com/zhuifengshaonianhanlu/pikachu 2.把pikachu文件夹放到phpstudy的web服 ...