Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of java.lang.StackOverflowError in the project startup report

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to solve the project startup report java.lang.StackOverflowError". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the project startup report java.lang.StackOverflowError".

The project is spring boot, and there was no problem before, but suddenly this error was reported when the debug mode was started.

Because there is no problem with other colleagues and no problem online, the code problem is ruled out first.

At first, I thought that the computer opened too much software, and then the memory for jvm was too small. After trying to shut down several softwares in vain, I restarted the computer. After the computer started, only idea was opened, and the error remained the same.

Later, you try to set the jvm startup parameters manually, but it is still invalid after setting xms, xmx and other parameters.

Looking closely at the startup process, we found that the error occurred during compilation. Test does not start the project, directly rebuild project, also report the same error. At this point, confirm what went wrong with the editing process.

Maven clean, then package. When it is found that package will eventually report an error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:

Check the pom file. There are several properties

1.8 1.8 1.8

Open idea's settings, look for java compiler, find that its setting is 1.8, and then open project structures, find that project sdk is jdk11, guess whether there is a problem here? Go to the official website of oracle to download the corresponding version of jdk (8.0). While waiting for download, first test the modified language level of project structures and set it to 8MB lambdas. after the application, restart the project, and as a result, the project starts. Problem solved.

Core: set the compile level of the project to be consistent with the pom setting (1.8)

Setting language level is also the same as pom.

Original address: https://blog.easytake.top/245.html#more-245

Thank you for your reading, the above is the content of "how to solve the project startup report java.lang.StackOverflowError". After the study of this article, I believe you have a deeper understanding of how to solve this problem in the project startup report java.lang.StackOverflowError, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report