Hello!

Faced such a problem. When running tests using the Coverage plugin (in IDEA 2016.1.3), it generates the error FATAL ERROR in native method: processing of -javaagent failed .

Without the plugin, everything works fine. Tried to demolish all Java and IDEA and reinstall - did not help. Tell me how to solve this problem?

Full text of the error:

 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:66) ... 6 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at com.intellij.rt.coverage.instrumentation.Instrumentator.premain(Instrumentator.java:64) ... 11 more Exception in thread "main" FATAL ERROR in native method: processing of -javaagent failed Process finished with exit code 1 

The Java version is Java SE Development Kit 8u91.

  • And what version of java? - Andrew Bystrov
  • Java SE Development Kit 8u91 - Valera Popov

0