JRebel 5.6.1无法启动:抛出java.lang.ClassNotFoundException:weblogic / rmi / spi / HostID错误Java8

时间:2015-11-09 12:02:40

标签: java-8 rmi weblogic12c jrebel

我正在使用 JRebel版本5.6.1 。我正在尝试在 Java 1.8 weblogic 12.2.1 上启动我的服务器。当我启动服务器时,我在控制台上收到以下错误:

2015-11-09 11:25:54 JRebel: ERROR java.lang.RuntimeException: java.lang.ClassNotFoundException: weblogic/rmi/spi/HostID
    at com.zeroturnaround.javarebel.mE.a(JRebel:1684)
    at com.zeroturnaround.javarebel.mE.a(JRebel:1654)
    at com.zeroturnaround.javarebel.mJ.a(JRebel:1426)
    at com.zeroturnaround.javarebel.mJ.a(JRebel:1325)
    at com.zeroturnaround.javarebel.mQ.d(JRebel:1475)
    at com.zeroturnaround.javarebel.mP.d(JRebel:866)
    at com.zeroturnaround.javarebel.Dr.d(JRebel:63)
    at com.zeroturnaround.javarebel.mC.a(JRebel:1554)
    at com.zeroturnaround.javarebel.mC.b(JRebel:1017)
    at com.zeroturnaround.javarebel.mC.a(JRebel:693)
    at com.zeroturnaround.javarebel.mC.a(JRebel:506)
    at com.zeroturnaround.javarebel.Dm.process(JRebel:32)
    at com.zeroturnaround.javarebel.yQ.a(JRebel:257)
    at com.zeroturnaround.javarebel.yQ.a(JRebel:246)
    at com.zeroturnaround.javarebel.yQ.a(JRebel:224)
    at com.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(JRebel:127)
    at com.zeroturnaround.javarebel.yz.transform(JRebel:45)
    at java.lang.ClassLoader.defineClass(ClassLoader.java)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:836)
    at com.oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:515)
    at com.oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:495)
    at com.oracle.classloader.SearchPolicy.defineClass(SearchPolicy.java:115)
    at com.oracle.classloader.search.SearchCodeSources.loadClass(SearchCodeSources.java:174)
    at com.oracle.classloader.search.SearchSequence.loadClass(SearchSequence.java:126)
    at com.oracle.classloader.PolicyClassLoader$1.run(PolicyClassLoader.java:259)
    at com.oracle.classloader.PolicyClassLoader$1.run(PolicyClassLoader.java:257)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:256)
    at com.oracle.classloader.weblogic.LaunchClassLoader.loadClass(LaunchClassLoader.java:62)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:127)
    at weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:106)
    at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:66)
    at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:51)
    at weblogic.rmi.internal.OIDManager.makeServerReference(OIDManager.java:192)
    at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:173)
    at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceRemote(RemoteObjectReplacer.java:107)
    at weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:90)
    at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:234)
    at weblogic.rmi.internal.OIDManager.initializeDGCServer(OIDManager.java:229)
    at weblogic.rmi.internal.OIDManager.initializeServer(OIDManager.java:236)
    at weblogic.rmi.internal.OIDManager.initialize(OIDManager.java:220)
    at weblogic.rmi.internal.RMIServerService.start(RMIServerService.java:52)
    at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:76)
    at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1262)
    at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:332)
    at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)
    at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
    at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:228)
    at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
    at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2072)
    at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
    at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
    at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
    at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:643)
    at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
    at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
    at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
    at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
    at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)

2015-11-09 11:25:54 JRebel:ERROR Class' weblogic / rmi / internal / BasicRuntimeDescriptor'无法通过' com.zeroturnaround.javarebel.Dm@77e6b35e'处理:java.lang.RuntimeException:java.lan NotFoundException:weblogic / rmi / spi / HostID         在com.zeroturnaround.javarebel.mE.a(JRebel:1684)         在com.zeroturnaround.javarebel.mE.a(JRebel:1654)         在com.zeroturnaround.javarebel.mJ.a(JRebel:1426)         在com.zeroturnaround.javarebel.mJ.a(JRebel:1325)         在com.zeroturnaround.javarebel.mQ.d(JRebel:1475)         在com.zeroturnaround.javarebel.mP.d(JRebel:866)         在com.zeroturnaround.javarebel.Dr.d(JRebel:63)         在com.zeroturnaround.javarebel.mC.a(JRebel:1554)         在com.zeroturnaround.javarebel.mC.b(JRebel:1017)         在com.zeroturnaround.javarebel.mC.a(JRebel:693)         在com.zeroturnaround.javarebel.mC.a(JRebel:506)         在com.zeroturnaround.javarebel.Dm.process(JRebel:32)         在com.zeroturnaround.javarebel.yQ.a(JRebel:257)         在com.zeroturnaround.javarebel.yQ.a(JRebel:246)         在com.zeroturnaround.javarebel.yQ.a(JRebel:224)         at com.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(JRebel:127)         在com.zeroturnaround.javarebel.yz.transform(JRebel:45)         at java.lang.ClassLoader.defineClass(ClassLoader.java)         at java.lang.ClassLoader.defineClass(ClassLoader.java:836)         在com.oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:515)         在com.oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:495)         在com.oracle.classloader.SearchPolicy.defineClass(SearchPolicy.java:115)         在com.oracle.classloader.search.SearchCodeSources.loadClass(SearchCodeSources.java:174)         在com.oracle.classloader.search.SearchSequence.loadClass(SearchSequence.java:126)         在com.oracle.classloader.PolicyClassLoader $ 1.run(PolicyClassLoader.java:259)         在com.oracle.classloader.PolicyClassLoader $ 1.run(PolicyClassLoader.java:257)         at java.security.AccessController.doPrivileged(Native Method)         在com.oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:256)         在com.oracle.classloader.weblogic.LaunchClassLoader.loadClass(LaunchClassLoader.java:62)         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)         在weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:127)         在weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:106)         在weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:66)         在weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:51)         在weblogic.rmi.internal.OIDManager.makeServerReference(OIDManager.java:192)         在weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:173)         在weblogic.rmi.utils.io.RemoteObjectReplacer.replaceRemote(RemoteObjectReplacer.java:107)         在weblogic.rmi.utils.io.RemoteObjectReplacer.replaceObject(RemoteObjectReplacer.java:90)         在weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:234)         在weblogic.rmi.internal.OIDManager.initializeDGCServer(OIDManager.java:229)         在weblogic.rmi.internal.OIDManager.initializeServer(OIDManager.java:236)         在weblogic.rmi.internal.OIDManager.initialize(OIDManager.java:220)         在weblogic.rmi.internal.RMIServerService.start(RMIServerService.java:52)         在weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:76)         at sun.reflect.GeneratedMethodAccessor7.invoke(未知来源)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         在java.lang.reflect.Method.invoke(Method.java:497)         在org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1262)         在org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:332)         在org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)         at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)         在org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:228)         在org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)         at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2072)         在org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)         at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)         在org.glassfish.hk2.runlevel.internal.CurrentTaskFuture $ QueueRunner.oneJob(CurrentTaskFuture.java:1213)         在org.glassfish.hk2.runlevel.internal.CurrentTaskFuture $ QueueRunner.run(CurrentTaskFuture.java:1144)         at weblogic.work.SelfTuningWorkManagerImpl $ WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:643)         at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)         at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)         在weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)         在weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)         at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)         在weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)         在weblogic.work.ExecuteThread.run(ExecuteThread.java:346)

我从JRebel收到了初始消息,但之后出现上述错误,我无法更新任何类。此外,我没有得到任何关于文件夹将被监控以进行更改的消息。

请帮我解决问题。

1 个答案:

答案 0 :(得分:1)

此问题已在JRebel nightly build中修复。每晚构建可以从https://zeroturnaround.com/software/jrebel/download/nightly-build/

下载