我正在使用EJB 2.x。我有兩臺機器,兩臺都在WebSphere 7.0。 他們每個人都部署了不同的應用程序。當我從一個應用程序(machine1上)嘗試調用其他應用程序的EJB(machine2上),我收到以下錯誤:在嘗試調用另一臺服務器上的EJB方法時出現Websphere錯誤
java.rmi.MarshalException: CORBA MARSHAL 0x4942f999 No; nested exception is: org.omg.CORBA.MARSHAL: Profile data of length 0x3f400000 while reading IOR Profile vmcid: IBM minor code: 999 completed: No
有沒有人有知道如何解決這個問題,因爲我」米很困擾這個問題。 Thanx!
編輯:
對於EJB調用我用常用的方法:
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
props.put(Context.PROVIDER_URL, "iiop://remote.host.com:2809");
props.put(Context.SECURITY_PRINCIPAL, "remote_user");
props.put(Context.SECURITY_CREDENTIALS, "remote_pwd");
Context ctx = new InitialContext(props);
Object objRef = ctx.lookup("servicemanagerJndiName");
ServiceManagerHome home = (ServiceManagerHome) PortableRemoteObject.narrow(
objRef, ServiceManagerHome.class);
manager = home.create();
manager.getMethod();...
的事情是,這個服務調用正確inoked遠程服務器上,並且響應被髮送,只需在客戶端上我收到以下錯誤:
And this is the error I receive[SoapConnectorThreadPool : 5] [] ERROR java.rmi.MarshalException: CORBA MARSHAL 0x4942f999 No; nested exception is: org.omg.CORBA.MARSHAL: Profile data of length 0x3f400000 while reading IOR Profile vmcid: IBM minor code: 999 completed: No at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:277) at javax.rmi.CORBA.Util.mapSystemException(Util.java:84) at com.host.local.manager._ServiceManager_Stub.getMethod(_ServiceManager_Stub.java):
你是如何在其他服務器上調用EJB的?你使用的是外國的細胞綁定等? 詳細說明設置並提供詳細日誌,以便我們可以嘗試並幫助您。 Manglu – Manglu