1
在Spring Boot應用程序中使用Liberty Profile進行遠程EJB調用時出現以下錯誤。Liberty和Spring Boot遠程EJB問題1.4.2
org.omg.CORBA.BAD_PARAM: bad address: iiop port is invalid: vmcid: OMG minor code: 0x8
我的代碼如下所示:
InitialContext ctx = new InitialContext();
Object obj = ctx.lookup("corbaloc:iiop:my.host.com:9810#ejb/com/dwl/base/requestHandler/beans/DWLServiceController");
dwlServiceControllerHome = (DWLServiceControllerHome) PortableRemoteObject.narrow(obj, DWLServiceControllerHome.class);
錯誤跟蹤:
[err] org.omg.CORBA.BAD_PARAM: bad address: iiop port is invalid: vmcid: OMG minor code: 0x8 completed: No
[err] at org.apache.yoko.orb.OCI.IIOP.CorbalocProtocol_impl.parse_address(CorbalocProtocol_impl.java:121)
[err] at [internal classes]
[err] at javax.naming.InitialContext.lookup(InitialContext.java:417)
我使用JEE 7完整的個人資料自由輪廓16.0.0.3。
您是否已將您的默認iiop端點配置爲端口9810?缺省情況下它的端口2809 –
@aguibert我已經配置象下面 iiopEndpoint> –
springbootlearner