报错信息:
D:\resource\java_jdk_1.8.261\bin\java.exe -ea -javaagent:C:\Users\镜\AppData\Local\JetBrains\IntelliJIdea2020.2\testAgent\intellij-coverage-agent-1.0.512.jar=C:\Users\镜\AppData\Local\Temp\coverage10args -Didea.test.cyclic.buffer.size=1048576 "-javaagent:E:\tools\IntelliJ IDEA 2020.2\lib\idea_rt.jar=60647:E:\tools\IntelliJ IDEA 2020.2\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\镜\AppData\Local\Temp\classpath770525232.jar com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.faw_qm.erpcg.gld.gld895.service.TestGld895Service
FATAL ERROR in native method: processing of -javaagent failed
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.coverage.main.CoveragePremain.premain(CoveragePremain.java:35)
at com.intellij.rt.coverage.main.CoveragePremain.premain(CoveragePremain.java:28)
6 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at com.intellij.rt.coverage.instrumentation.Instrumentator.performPremain(Instrumentator.java:55)
at com.intellij.rt.coverage.instrumentation.Instrumentator.premain(Instrumentator.java:33)
12 more

Process finished with exit code 1

解决方案: 1.更改window 登录的用户名为英文。(此方法自行百度吧,就不做讲解了)

2.更改idea生成文件的默认路径:

help->Edit Custom VM Options...  中添加  -Djava.io.tmpdir=E:\resource\idea\Temp

注意: 一定要先创建对应的文件夹

既然都更改了临时文件的位置,不如其他的默认路径一起更改了吧:

注意:更改下面的默认路径配置之后,之前的idea插件将全部丢失!!!

1.找到idea安装目录下面的bin文件下的idea.properties

(E:\tools\IntelliJ IDEA 2020.2\bin\idea.properties)

找到:idea.system.path=${user.home}/.IntelliJIdea/system

idea.plugins.path=${idea.config.path}/plugins

更改即可。

报错信息:D:\resource\java_jdk_1.8.261\bin\java.exe -ea -javaagent:C:\Users\镜\AppData\Local\JetBrains\IntelliJIdea2020.2\testAgent\intellij-coverage-agent-1.0.512.jar=C:\Users\镜\AppData\Local\Temp\coverage10args -Didea.test.cyclic.buffer.size=1048576 "-jav... java .lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
JUnit是一款优秀的开源 Java 单元测试 框架,也是目前使用率最高最流行的 测试 框架,开发工具Eclipse和 IDEA 对JUnit都有很好的支持,JUnit主要用于白盒 测试 和回归 测试 。<!--more-->白盒 测试 :把 测试 对象看作一个打开的盒子,程序内部的逻辑结构和其他信息对 测试 人员是公开的;回归 测试 :软件或环境修复或更正后的再 测试 单元测试 :最小粒度的 测试 ,以 测试 某个功能或代码块。一般由程序员来做,因为它需要知道内部程序设计和编码的细节;JUnitGitHub地址:开发环境: SpringBoot 2.0.4RELEASEJUnit4.12Maven IDEA 2018.2如果是 SpringBoot
解决方案:此错误是因为用Mybatis -代码自动生成(generatorConfig.xml)工具,对应的mapper的xml文件中生成了两个resultMap(BaseResultMap),删除其中一个,或删除此xml文件,重新生成。 造成的原因:Mybatis -代码自动生成(generatorConfig.xml)工具可能重复执行了。 异常(错误)信息: java .lang.reflec...
java .lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java :62) at sun.reflect.DelegatingMethodAccessorImpl.inv...
java .lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java :57) at sun.re
加了一个mapper.xml文件后发生如下异常: java .lang.reflect.InvocationTargetException sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java :57) sun.reflect.DelegatingMethodAccessorImpl.invok
public class PhotoProcessImpl implements PhotoProcessService { @Resource private PhotoUtil photoUtil; @Resource private ReadGlobalConfig readGlobalConfig; /** 图片上传地址*/ private static fi <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 报错 信息: org.springframework.beans.factory.BeanCreationE.. import com.google.common.base.Predicates; import io.swagger.annotations.ApiOperation; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Config.. Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateExceptio 28629 jenkins ERROR: Failed to parse POMs ProjectBuildingException Non-resolvable parent POM for 爱学习的枕头: 牛皮 困扰我一天