1 Reply Latest reply on Nov 7, 2006 8:21 PM by Lee Hualiang

    HotSwapper Exception

    Lee Hualiang Newbie

      Code :

       //CtClass target = ...;
       HotSwapper swapper = new HotSwapper(8000);
       swapper.reload(target.getName(), target .toBytecode());


      problem:
      Listening for transport dt_socket at address: 8000
      Exception in thread "HotSwap" java.lang.UnsupportedOperationException: schema change not implemented
       at com.sun.tools.jdi.VirtualMachineImpl.redefineClasses(VirtualMachineImpl.java:309)
       at javassist.util.HotSwapper.hotswap(HotSwapper.java:249)
       at javassist.util.HotSwapper$1.run(HotSwapper.java:223)
      java.lang.RuntimeException: failed to reload: sun.misc.Launcher$AppClassLoader
       at javassist.util.HotSwapper.reload2(HotSwapper.java:203)
       at javassist.util.HotSwapper.reload(HotSwapper.java:159)
       at com.azk.component.bridge.ParentClassLoadAspect.save(ParentClassLoadAspect.java:125)
       at com.azk.component.bridge.ClassLoaderBridge.connect(ClassLoaderBridge.java:53)
       at com.azk.component.ClassLoaderBridgeTest.main(ClassLoaderBridgeTest.java:17)