问题描述 : 

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. Java设计模式 —— 装饰模式

    12 装饰模式 12.1 装饰模式概述 Decorator Pattern: 动态地给一个对象增加一些额外的职责.提供一种比使用子类更加灵活的方案来扩展功能. 装饰模式是一种用于替代继承的技术,通过一 ...

  2. DG:三种模式切换

    应用归档日志方式进行数据同步 SQL> alter system set log_archive_dest_2='SERVICE=standby arch noaffirm valid_for= ...

  3. nginx 极简教程

    什么是 Nginx? Nginx (engine x) 是一款轻量级的 Web 服务器 .反向代理服务器及电子邮件(IMAP/POP3)代理服务器. 什么是反向代理? 反向代理(Reverse Pro ...

  4. defineProperty在数据劫持后是如何通知数据的更新和视图的更新的

    vue的双向绑定是由数据劫持结合发布者-订阅者模式实现的,那么什么是数据劫持?vue是如何进行数据劫持的?说白了就是通过Object.defineProperty()来劫持对象属性的setter和ge ...

  5. django restframework的简单使用

    django restframework的简单使用 1.快速上手 配置: (pip install djangorestframework==3.12.4) # settings.py INSTALL ...

  6. 记一次 .NET某医疗器械清洗系统 卡死分析

    一:背景 1. 讲故事 前段时间协助训练营里的一位朋友分析了一个程序卡死的问题,回过头来看这个案例比较经典,这篇稍微整理一下供后来者少踩坑吧. 二:WinDbg 分析 1. 为什么会卡死 因为是窗体程 ...

  7. Awesome GPT 来了!

    大家好!我是韩老师. GPT, ChatGPT, OpenAI, LLM(大语言模型)等等技术的出现与应用,改变了许多的行业和人. 长期来看,类 GPT 的技术会对整个世界有着持续的改变. 我们几乎每 ...

  8. Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)

    本文演示Sitecore XP Single(XP0)在Azure上的一键部署,即"30分钟生成Sitecore演示环境"的一环. 关于XP(即Sitecore Experienc ...

  9. C++ Primer 5th 阅读笔记:入门指南

    学习方法 The way to learn a new programming language is to write programs. 学习一门新编程语言的方式是编写程序. 函数(Functio ...

  10. 解析草稿-造价管理-工程经济-P190-例4.2.3

    原题 计算步骤 需要记忆的概念 excel计算文件 [腾讯文档]例题