javax.rmi.CORBA.Util.mapSystemException()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中javax.rmi.CORBA.Util.mapSystemException()方法的一些代码示例,展示了Util.mapSystemException()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.mapSystemException()方法的具体详情如下:
包路径:javax.rmi.CORBA.Util
类名称:Util
方法名:mapSystemException

Util.mapSystemException介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

EjbLogger.EJB3_INVOCATION_LOGGER.trace("CORBA system exception in IIOP stub", ex);
  throw Util.mapSystemException(ex);
} finally {
  _releaseReply(in);

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

public void connect(javax.rmi.CORBA.Stub stub, org.omg.CORBA.ORB orb)
    throws java.rmi.RemoteException {
  try {
    org.omg.CORBA.portable.Delegate delegate;
    try {
      delegate = stub._get_delegate();
    } catch (org.omg.CORBA.BAD_OPERATION ex) {
      throw new java.rmi.RemoteException("stub has no identity", ex);
    }
    if (delegate.orb(stub) != orb) {
      org.omg.CORBA.portable.OutputStream out = orb
          .create_output_stream();
      out.write_Object(stub);
      org.omg.CORBA.portable.InputStream in = out
          .create_input_stream();
      org.omg.CORBA.portable.ObjectImpl impl = (org.omg.CORBA.portable.ObjectImpl) in
          .read_Object();
      stub._set_delegate(impl._get_delegate());
    }
  } catch (org.omg.CORBA.SystemException ex) {
    throw javax.rmi.CORBA.Util.mapSystemException(ex);
  }
}

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

Object copyResult(Object result, boolean sameState, ORB orb)
    throws RemoteException {
  if (result == null) {
    return null;
  }
  if (!sameState) {
    if (return_type.copyBetweenStates()) {
      try {
        org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) orb
            .create_output_stream();
        return_type.write(out, result);
        org.omg.CORBA_2_3.portable.InputStream in = (org.omg.CORBA_2_3.portable.InputStream) out
            .create_input_stream();
        return return_type.read(in);
      } catch (org.omg.CORBA.SystemException ex) {
        logger.log(Level.FINE, "Exception occurred copying result", ex); 
        throw Util.mapSystemException(ex);
      }
    }
  } else if (copyWithinState) {
    CopyState state = new CopyState(getTypeRepository());
    try {
      return state.copy(result);
    } catch (CopyRecursionException e) {
      throw new MarshalException("cannot copy recursive value?");
    }
  }
  return result;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

throw Util.mapSystemException(ex);

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

throw Util.mapSystemException(ex);

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

throw Util.mapSystemException(ex);

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

throw Util.mapSystemException(ex);

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

throw Util.mapSystemException(ex);

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

throw Util.mapSystemException(ex);

相关文章