idea 调试报错 Illegal access: this web application instance has been stopped already.

简介: idea 调试报错 Illegal access: this web application instance has been stopped already.

1、报错信息

执行到当前代码 Map<String, Object> map = parseMapOneRegion(page, ruleRegion);

不进入该代码,则直接下一步,会报错!

2023-02-22 21:03:31.082 [INFO ] [autocrawler-worker  ] [pool-4-thread-1] [autocrawler worker 105346] [org.apache.catalina.loader.WebappClassLoaderBase] - Illegal access: this web application instance has been stopped already. Could not load [META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
  at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1385)
  at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1115)
  at org.apache.xerces.parsers.SecuritySupport$6.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at org.apache.xerces.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
  at org.apache.xerces.parsers.ObjectFactory.findJarServiceProvider(Unknown Source)
  at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
  at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)


2、原因分析:调试的时候,可能是tomcat 进程重复开了,在 tomcat 重启的时候,因为之前的 tomcat 中的线程还没有完全关闭,新启动 tomcat 就会报这个异常。


3、解决:全部关闭,重新进行调试即可

目录
相关文章
|
1月前
|
运维 Nacos 开发者
nacos常见问题之IDEA启动raft报错如何解决
Nacos是阿里云开源的服务发现和配置管理平台,用于构建动态微服务应用架构;本汇总针对Nacos在实际应用中用户常遇到的问题进行了归纳和解答,旨在帮助开发者和运维人员高效解决使用Nacos时的各类疑难杂症。
22 0
|
3月前
|
Java 开发工具
【开发工具】IDEA-DeBug 调试模式使用
【1月更文挑战第20天】【开发工具】IDEA-DeBug 调试模式使用
|
2月前
|
应用服务中间件 nginx
【报错】Failed to start A high performance web server and a reverse proxy server.
【报错】Failed to start A high performance web server and a reverse proxy server.
108 2
|
1月前
|
Java 编译器
有关电脑中idea编译报错问题java: No implementation was created for AdminUserConverter due to having a problem in
有关电脑中idea编译报错问题java: No implementation was created for AdminUserConverter due to having a problem in
33 0
|
15天前
|
NoSQL 关系型数据库 MySQL
开发者福音:用IDEA和Iedis2加速Redis开发与调试
开发者福音:用IDEA和Iedis2加速Redis开发与调试
31 0
开发者福音:用IDEA和Iedis2加速Redis开发与调试
|
15天前
|
Java 应用服务中间件 Maven
使用IDEA搭建SpringMVC环境,Maven导入了依赖,但是运行报错 java.lang.ClassNotFoundException
使用IDEA搭建SpringMVC环境,Maven导入了依赖,但是运行报错 java.lang.ClassNotFoundException
13 1
|
26天前
|
Kubernetes Ubuntu Linux
通过 IntelliJ IDEA 对 containerd 进行源码级调试
本文介绍如何在 Ubuntu 22.04 系统上,通过 IntelliJ IDEA 对 containerd 进行源码级调试。我们将从 containerd 的安装、源码编译、验证调试信息的存在,到最终的调试过程中,每一步骤都进行详细讲解。
通过 IntelliJ IDEA 对 containerd 进行源码级调试
|
1月前
|
Java 数据库连接 应用服务中间件
idea中报错……的解决方式!
idea中报错……的解决方式!
8 0
|
1月前
|
Web App开发 前端开发 JavaScript
防止你的 Web 应用被别人通过 Chrome 开发者工具进行调试的一种简单办法
防止你的 Web 应用被别人通过 Chrome 开发者工具进行调试的一种简单办法
30 0
|
1月前
|
Java 应用服务中间件
解决tomcat启动报错:无法在web.xml或使用此应用程序部署的jar文件中解析绝对的url [http:java.sun.com/jsp/jstl/core]
解决tomcat启动报错:无法在web.xml或使用此应用程序部署的jar文件中解析绝对的url [http:java.sun.com/jsp/jstl/core]
133 1