[英]Tomcat server does not start with DCEVM patched JRE
I have followed at the steps mentioned here 我按照这里提到的步骤进行
-Dcatalina.base="C:\\MCA\\workspaces\\MCA\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0" -Dcatalina.home="C:\\MCA\\tools\\apache-tomcat-7.0.54" -Dwtp.deploy="C:\\MCA\\workspaces\\MCA\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0\\wtpwebapps" -Djava.endorsed.dirs="C:\\MCA\\tools\\apache-tomcat-7.0.54\\endorsed" -XXaltjvm="dcevm" -javaagent:C:\\MCA\\tools\\dcevm\\hotswap-agent.jar
) -Dcatalina.base="C:\\MCA\\workspaces\\MCA\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0" -Dcatalina.home="C:\\MCA\\tools\\apache-tomcat-7.0.54" -Dwtp.deploy="C:\\MCA\\workspaces\\MCA\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp0\\wtpwebapps" -Djava.endorsed.dirs="C:\\MCA\\tools\\apache-tomcat-7.0.54\\endorsed" -XXaltjvm="dcevm" -javaagent:C:\\MCA\\tools\\dcevm\\hotswap-agent.jar
) Whenever I try to use an exception is thrown. 每当我尝试使用异常时,都会引发异常。
Below is the stack trace. 下面是堆栈跟踪。
HOTSWAP AGENT: 17:15:46.234 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {0.3.0-SNAPSHOT} - unlimited runtime class redefinition.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: java.lang.NullPointerException
at org.hotswap.agent.config.PluginConfiguration.<init>(PluginConfiguration.java:44)
at org.hotswap.agent.config.PluginManager.init(PluginManager.java:95)
at org.hotswap.agent.HotswapAgent.premain(HotswapAgent.java:42)
... 6 more
FATAL ERROR in native method: processing of -javaagent failed
Exception in thread "main"
Java - version is Java-版本为
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Here it is described a very similar bug caused bythe same NPE that you get: 这里描述了由您得到的相同NPE引起的非常相似的错误:
Caused by: java.lang.NullPointerException
at org.hotswap.agent.config.PluginConfiguration.<init>(PluginConfiguration.java:44)
The solution seems to be switching from Oracle JDK to OpenJDK. 解决方案似乎是从Oracle JDK切换到OpenJDK。
So, if you are using Oracle JDK, try to change it. 因此,如果您使用的是Oracle JDK,请尝试对其进行更改。 If you are already using OpenJDK, forget my answer.
如果您已经在使用OpenJDK,请忘记我的答案。
Hope it helps! 希望能帮助到你!
我通过将JDK1.7_80更改为JDK1.7_55解决了这个问题。
当我的热交换代理路径错误时,我遇到了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.