我想desrialize位於插件C.類型A的對象把對系統類路徑的Eclipse插件
雖然我的插件有具有A型的插件C上適當的依賴,也可以創建和實例化一個對象類型A,當我嘗試去描述類型A的對象時,它失敗。
的原因,我認爲是,這實際上是做反序列化的java.io. *類不能看到A型
什麼我必須把插件C的清單,以便系統類可以看到A型?
這裏是一個堆棧跟蹤我getting-
拋出java.lang.ClassNotFoundException:com.chronon.sb.debug.model.TimeAndEventData 在org.eclipse.osgi.internal.loader.BundleLoader。 (org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader (java.lang.ClassLoader.loadClass)(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at java.io.ObjectInputStream.resolveClass(Unknown來源) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0 (Unknown Source) at com.chronon.sb.recorder.commons.CompressorUtil.decompressObj ect(CompressorUtil.java:53) at com.chronon.sb.recorder。java.io.ObjectInputStream.readObject(Unknown Source) commons.CompressorUtil.decompressObj(Compres (com.chronon.sb.debug.core.dbManagers.Events.createBlock(Even ts.java:134) at com.chronon.sb.debug.core.dbManagers.Events.getThreadForTime(Events .java:108) at com.chronon.sb.debug.core.helpers.MethodCallHelper。(MethodCallHelper.java:62) at com.chronon.sb.debug.core.helpers.MiscHelper.getVeryFirstMet hod(MiscHelper.java :22) at com.placid.sb.browser.ui.startbrowse.StartBrowseJob $ 1.run(St artBrowseJob.java:86) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855) at org.eclipse.swt。 widgets.Display.readAndDispatch(Display.ja va:3476) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse .ui.internal.Workbench.access $ 4(Workbench.java:22 21) at org.eclipse.ui.internal.Workbench $ 5.run(Workbench.java:500) at org.eclipse.core.databinding.observable。 Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149) at org.eclipse.eui.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) org.eclipse.core.runtime中的。internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor。 EclipseStarter.run(EclipseS tarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun .reflect.NativeMethodAccessorImpl.invoke(未知來源) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(未知來源) 在java.lang.reflect.Method.invoke(未知來源) 在org.eclipse.equinox.launcher.Main。 invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:5 14) 在org.eclipse.equinox.launcher.Main.run(Main.java:1311) 在org.eclipse.equinox.launcher.Main.main(Main.java:1287)