Fatal error in native method processing of javaagent failed process java start failed

I have installed idea, and I cannot open idea by double-clicking the .exe file, so there is no response at all. If I choose to open idea.bat with the command line, such an error will be reported , ...

I have installed idea, and I cannot open idea by double-clicking the .exe file, so there is no response at all. If I choose to open idea.bat with the command line, such an error will be reported ,

    Exception in thread "main" java.lang.reflect.InvocationTargetException
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.base/java.lang.reflect.Method.invoke(Method.java:566)
            at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
            at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
    Caused by: java.lang.RuntimeException: java.lang.NullPointerException
            at fuck_the_regulations_v300.bj.b(bj.java)
            at fuck_the_regulations_v300.p.premain(p.java)
            ... 6 more
    Caused by: java.lang.NullPointerException
            ... 8 more
    *** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
    FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed

asked Jan 5, 2022 at 9:04

beerandman's user avatar

3

You have to locate the file idea64.exe.vmoptions

I have mine here

then modify the file and delete the label-javaagent or Related labels

Diego D's user avatar

Diego D

5,9711 gold badge16 silver badges30 bronze badges

answered Apr 16, 2022 at 8:21

iShenShen's user avatar

In my case, I knew that Intelli 2021.3.2 should work in my PC as I was able to install it in Windows Sandbox just fine.

So what I did next, knowing that it works on a clean windows system was to go to Run Command and type

%APPDATA%

Once inside the explorer window, delete the Directory JetBrains since this contains the old installation configurations of your old IntelliJ installations and may be causing the issue.

After deleting this, I was finally able to run IntelliJ alright. :)

answered Apr 7, 2022 at 8:39

iamjoshua's user avatar

iamjoshuaiamjoshua

1,1363 gold badges14 silver badges32 bronze badges

I have the same trouble. Did you delete just the first line (in my case it is: «-Xms128m») or the whole file?

answered Jan 5, 2022 at 17:42

Tom's user avatar

1

@abhishekkarigar

running kafka, zookeeper with prometheus
following is the error i get when i try to produce data from kafka container

bash-4.4# kafka-console-producer.sh —broker-list localhost:9094 —topic myTopic
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.net.BindException: Address in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at sun.net.httpserver.ServerImpl.bind(ServerImpl.java:133)
at sun.net.httpserver.HttpServerImpl.bind(HttpServerImpl.java:54)
at io.prometheus.jmx.shaded.io.prometheus.client.exporter.HTTPServer.(HTTPServer.java:145)
at io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:31)
… 6 more
FATAL ERROR in native method: processing of -javaagent failed

@brian-brazil

It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.

@theRealWardo

in case this helps another future Google searcher… you need to figure out what env var is setting your -javaagent flag. given you are also using the jmx exporter with kafka, I have seen this set as either KAFKA_OPTS or KAFKA_JVM_PERFORMANCE_OPTS. to use the scripts that come with kafka you want to unset those env vars or you can clear the env var inline like:

KAFKA_JVM_PERFORMANCE_OPTS="" JMX_PORT=1234 kafka-topics.sh --zookeeper ${KAFKA_ZOOKEEPER_CONNECT} --list

note that you will have to still specify an alternative JMX_PORT if you are executing the command inside of a kafka container that has a running jmx exporter.

hsma

    hi!!

    What is this error please

    «FATAL ERROR in native method: processing of -javaagent failed»

    I created two examples, the first works fine but the second shows me this error

    Tahnk you


      • 1.

        -javaagent problem

        hsma

        hsma

        Jan 21, 2011 2:25 PM


        (in response to hsma)

        Hi,

        here’s the error :

        java.lang.NoClassDefFoundError: javassist/scopedpool/ScopedClassPoolFactory

            at java.lang.Class.getDeclaredMethods0(Native Method)

            at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)

            at java.lang.Class.getMethod0(Class.java:2670)

            at java.lang.Class.getMethod(Class.java:1603)

            at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:294)

            at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)

        Caused by: java.lang.ClassNotFoundException: javassist.scopedpool.ScopedClassPoolFactory

            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

            … 6 more

        FATAL ERROR in native method: processing of -javaagent failed

        Exception in thread «main»

        Question: Why javaagent work in a single example, must i make some configurations??

        PLEASE,  I really need your help!!



        • 2.

          -javaagent problem

          hsma

          hsma

          Jan 22, 2011 4:55 PM


          (in response to hsma)

          Hello everyone,
          the problem is resolved by adding all the jar files in the classpath of my second project!!!
          I don’t know if this is the right solution! but the essential my second example works:))
          If you have any answers, please do not hesitate



          • 4.

            Re: -javaagent problem

            mie

            mie

            May 10, 2011 10:14 AM


            (in response to flavia.rainone)

            Sorry, it isn’t. It is part of javassist.jar (see full name of the class: javassist.scopedpool.ScopedClassPoolFactory and you can also check it in the mentioned jar file).

            But when I add the javassist.jar, it requires jboss-common-core.jar, then jboss-logging-spi.jar and then trove.jar. After all I get a message:

            ERROR: transport error 202: gethostbyname: unknown host

            ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

            JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]

            FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

            Any idea?


            Hi.

            I’m trying to reproduce the first scenario of the Lab 9: «Continuous Testing» that was was explained on vídeo «Code Coverage Setup with JaCoCo» and it throw me warnings and errors.
            I went through the steps several times and I think that I’m not doing anything different to the video or the first part of Lab 9 (Code coverage with Jacoco).
            I try creating a maven project like the lab 9 suggests and a freestyle project as in the video but on both cases I get the same error:

            [WARNING] /var/jenkins_home/workspace/jacoco-test/code-coverage-jacoco/src/integration-test/java/ITFizzBuzzTest.java: Some input files use or override a deprecated API.
            [WARNING] /var/jenkins_home/workspace/jacoco-test/code-coverage-jacoco/src/integration-test/java/ITFizzBuzzTest.java: Recompile with -Xlint:deprecation for details.
            [INFO] 
            
            T E S T S
            -------------------------------------------------------
            Exception in thread "main" java.lang.reflect.InvocationTargetException
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.base/java.lang.reflect.Method.invoke(Unknown Source)
                at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
                at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
            Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
                at org.jacoco.agent.rt.internal_b0d6a23.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139)
                at org.jacoco.agent.rt.internal_b0d6a23.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100)
                at org.jacoco.agent.rt.internal_b0d6a23.PreMain.createRuntime(PreMain.java:55)
                at org.jacoco.agent.rt.internal_b0d6a23.PreMain.premain(PreMain.java:47)
                ... 6 more
            Caused by: java.lang.NoSuchFieldException: $jacocoAccess
                at java.base/java.lang.Class.getField(Unknown Source)
                at org.jacoco.agent.rt.internal_b0d6a23.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137)
                ... 9 more
            *** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
            FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
            Aborted (core dumped)
            
            Results :
            
            Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
            
            [JENKINS] Recording test results
            [INFO] ------------------------------------------------------------------------
            [INFO] BUILD FAILURE
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time:  4.828 s
            [INFO] Finished at: 2021-12-13T18:18:50Z
            [INFO] ------------------------------------------------------------------------
            Waiting for Jenkins to finish collecting data
            [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project code-coverage-jacoco: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
            [ERROR] Command was/bin/sh -c cd /var/jenkins_home/workspace/jacoco-test/code-coverage-jacoco && /opt/java/openjdk/bin/java -javaagent:/var/jenkins_home/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/var/jenkins_home/workspace/jacoco-test/code-coverage-jacoco/target/coverage-reports/jacoco-ut.exec -jar /var/jenkins_home/workspace/jacoco-test/code-coverage-jacoco/target/surefire/surefirebooter6624810085396241211.jar /var/jenkins_home/workspace/jacoco-test/code-coverage-jacoco/target/surefire/surefire10181250726723161838tmp /var/jenkins_home/workspace/jacoco-test/code-coverage-jacoco/target/surefire/surefire_013196265457472944591tmp
            [ERROR] -> [Help 1]
            [ERROR] 
            [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
            [ERROR] Re-run Maven using the -X switch to enable full debug logging.
            [ERROR] 
            [ERROR] For more information about the errors and possible solutions, please read the following articles:
            [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
            [JENKINS] Archiving /var/jenkins_home/workspace/jacoco-test/code-coverage-jacoco/pom.xml to net.petrikainulainen.maven/code-coverage-jacoco/0.1/code-coverage-jacoco-0.1.pom
            channel stopped
            Finished: FAILURE
            

            I don’t know well how to interpret this in order to figure out what happen. Anyone have an idea?
            Regards.

            Понравилась статья? Поделить с друзьями:

            Читайте также:

          • Fatal error in native method jdwp no transports initialized
          • Fatal error in launcher unable to create process using что делать
          • Fatal error in launcher unable to create process using virtualenv
          • Fatal error in launcher unable to create process using pycharm
          • Fatal error in launcher unable to create process using pip как исправить

          • 0 0 голоса
            Рейтинг статьи
            Подписаться
            Уведомить о
            guest

            0 комментариев
            Старые
            Новые Популярные
            Межтекстовые Отзывы
            Посмотреть все комментарии