0

我有一个通过 RMI 连接到 WAS 的 eclipse 插件...

当我在 Eclipse 中运行插件时,工作正常......但是当我尝试在 RDz 上运行时(http://www-01.ibm.com/software/rational/products/developer/systemz/是一个 Eclipse 平台构建IBM)我得到了以下异常。

java.lang.VerifyError: JVMVRFY027 o receptor é incompatível com classe de declaração; class=com/ibm/rmi/corba/TypeCodeImpl, method=read_value_body(Lorg/omg/CORBA_2_3/portable/InputStream;)V, pc=233
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(Unknown Source)
    at java.lang.J9VMInternals.initialize(Unknown Source)
    at com.ibm.rmi.iiop.CDROutputStream.<clinit>(CDROutputStream.java:1105)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(Unknown Source)
    at com.ibm.rmi.corba.ORB.<init>(ORB.java:277)
    at com.ibm.rmi.iiop.ORB.<init>(ORB.java:187)
    at com.ibm.CORBA.iiop.ORB.<init>(ORB.java:569)
    at java.lang.J9VMInternals.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Unknown Source)
    at org.omg.CORBA.ORB.create_impl(ORB.java:322)
    at org.omg.CORBA.ORB.init(ORB.java:363)
    at com.sun.jndi.toolkit.corba.CorbaUtils.getOrb(CorbaUtils.java:215)
    at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:332)
    at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:289)
    at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:251)
    at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:103)
    at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:61)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:695)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:318)
    at javax.naming.InitialContext.init(InitialContext.java:253)
    at javax.naming.InitialContext.<init>(InitialContext.java:227)
    at my.package.product.core.server.LPDAProxy.lookup(LPDAProxy.java:68)
    at my.package.product.core.server.session.LPDASessionProxy.open(LPDASessionProxy.java:145)
    at my.package.product.core.server.session.LPDASession.open(LPDASession.java:99)
    at my.package.product.core.server.task.OpenConnectionTask.runServerTask(OpenConnectionTask.java:94)
    at my.package.product.core.server.task.LPDAServerTask.runTask(LPDAServerTask.java:88)
    at my.package.product.core.server.LPDATask.run(LPDATask.java:60)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(Unknown Source)
    at org.eclipse.jface.operation.ModalContext.run(Unknown Source)
    at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(Unknown Source)
    at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(Unknown Source)
    at org.eclipse.ui.internal.progress.ProgressManager.run(Unknown Source)
    at my.package.product.core.server.LPDAServer.executeTask(LPDAServer.java:385)
    at my.package.product.core.server.LPDAServer.open(LPDAServer.java:175)
    at my.package.product.core.server.LPDAServer.checkConnection(LPDAServer.java:333)
    at my.package.product.core.server.LPDAServer.getLPDARepository(LPDAServer.java:314)
    at my.package.product.core.ui.common.selector.repository.RepositorySelector.load(RepositorySelector.java:152)
    at my.package.product.core.ui.common.selector.repository.RepositorySelector.refresh(RepositorySelector.java:131)
    at my.package.product.core.ui.common.selector.repository.RepositorySelector.access$0(RepositorySelector.java:128)
    at my.package.product.core.ui.common.selector.repository.RepositorySelector$1.widgetSelected(RepositorySelector.java:67)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
    at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
    at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
    at org.eclipse.ui.internal.Workbench$7.run(Unknown Source)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

此异常发生在 InitialContext 的查找方法中......当我使用单个类中的当前参数仅执行查找方法时,工作正常。

谁能帮我解决这个问题?

4

1 回答 1

0

我遇到了问题,因为服务器正在运行 java 5 而我使用的是 java 7。当我尝试查找 EJB 时,此版本之间存在一些不兼容。

于 2013-03-08T16:37:33.283 回答