ORB中的NullPointerException.调用ORB.string_to_object时,getPresent



无可否认,我是CORBA和使用orb的新手。我有一些代码安装在使用TAO ORB 1.3版本的第三方机器上。当我的代码调用

String myObjectString = "IOR:010000002d00000049444c3a637573732e696174612e6f72672f436f6d706f6e656e74732f4d656469614f75747075743a312e3000000000030000000000000038000000010102000a0000006c6f63616c686f737400204e1b00000014010f00525354a90b6c57ea3c060002000000010000000300000000000000000000000038000000010102000a0000006c6f63616c686f737400214e1b00000014010f00525354a90b6c57ea3c060002000000010000000300000000000000000000000038000000010102000a0000006c6f63616c686f737400224e1b00000014010f00525354a90b6c57ea3c06000200000001000000030000000000000000";

ORB.string_to_object(myObjectString);

我得到一个异常:

java.lang.NullPointerException at com.sun.corba.se.spi.orb.ORB.getPresentationManager(Unknown Source) at com.sun.corba.se.spi.orb.ORB.getStubFactoryFactory(Unknown Source) at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(Unknown Source) at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(Unknown Source) at com.sun.corba.se.impl.encoding.CDRInputStream.read_Object(Unknown Source) at com.sun.corba.se.impl.resolver.INSURLOperationImpl.getIORFromString(Unknown Source) at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(Unknown Source) at com.sun.corba.se.impl.orb.ORBImpl.string_to_object(Unknown Source) at CussClient.enableMediaOutput(CussClient.java:1232) at CussClient.ActivateComponents(CussClient.java:1879) at CussClient.setApplicationState(CussClient.java:268) at CussClient.HandleEvent(CussClient.java:2425) at evtListenerImpl.callback(evtListenerImpl.java:31) at types.evtListenerPOA._invoke(evtListenerPOA.java:49) at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(Unknown Source) at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(Unknown Source) at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(Unknown Source) at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source) at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(Unknown Source) at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(Unknown Source) at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(Unknown Source) at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(Unknown Source) at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(Unknown Source) at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(Unknown Source) at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(Unknown Source)

同样的代码可以在运行其他ORB的其他第三方机器上工作,所以我不确定这是TAO ORB的问题,还是别的什么。有ORB管理员可以告诉我为什么会发生这种情况吗?

这最终是由第三方机器上安装的JRE版本引起的。

这与航空业的CUSS(通用自助服务)版本1.3要求有关,该要求说明需要安装哪个版本的Java。在CUSS文档中声明允许使用Java 1.7.0_21及以上版本。在勘误表文档中,它被更改为需要Java 1.7.0_21。

相关内容

  • 没有找到相关文章

最新更新