Today, running the maven compiled project gave errors
JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class status [../../../src/share/back/util. c:1265]
JDWP exit error JVMTI_ERROR_INVALID_ENVIRONMENT(116): Can’t allocate jvmti memory [../../../src/share/back/util. c:1779]
FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)
FATAL ERROR in native method: JDWP Can’t allocate jvmti memory, jvmtiError=JVMTI_ERROR_INVALID_ENVIRONMENT(116)
The Internet says to set up maven to use local jdk, specifically open settings.xml and add jdk under the tag.
<profile>
<id>jdk17</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.7</jdk>
</activation>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>
</properties>
</profile>
But it’s strange that I didn’t change the configuration of the project, but I reported this mistake today. It’s amazing.
Read More:
- ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
- Maven project running servlet jump JSP error: HTTP status 500 – unable to compile class for JSP
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- Problems encountered after Maven installation or upgrade: could not find or load main class org.codehaus.plexus .class…..
- [Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class
- ERROR: JDWP Unable to get JNI 1.2 environment
- Linux GCC compilation error: “collect2: LD returned 1 exit status”
- Maven compilation error: package does not exist jar package does not exist
- HTTP Status 500-Error instantiating servlet class problem solving
- Failed to execute goal org.apache.maven . plugins:maven-surefire-plugin :2.12.4:test
- 解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- Error resolving version for plugin ‘org.apache.maven.plugins:maven-compiler-plugin’ from the repo…
- How to Fix Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- Maven compilation error Checksum validation failed, error in opening zip file
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test
- Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
- Maven’s jar package conflict; Maven’s introduction
- Solved: elasticsearch error: exception [type = search]_ phase_ execution_ exception, reason=all shards failed]