本文整理汇总了Java中com.sun.corba.se.impl.logging.ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED属性的典型用法代码示例。如果您正苦于以下问题:Java ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED属性的具体用法?Java ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED怎么用?Java ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.sun.corba.se.impl.logging.ORBUtilSystemException
的用法示例。
在下文中一共展示了ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: object_to_string
/**
* Convert an object ref to a string.
* @param obj The object to stringify.
* @return A stringified object reference.
*/
public synchronized String object_to_string(org.omg.CORBA.Object obj)
{
checkShutdownState();
// Handle the null objref case
if (obj == null) {
IOR nullIOR = IORFactories.makeIOR( this ) ;
return nullIOR.stringify();
}
IOR ior = null ;
try {
ior = ORBUtility.connectAndGetIOR( this, obj ) ;
} catch (BAD_PARAM bp) {
// Throw MARSHAL instead if this is a LOCAL_OBJECT_NOT_ALLOWED error.
if (bp.minor == ORBUtilSystemException.LOCAL_OBJECT_NOT_ALLOWED) {
throw omgWrapper.notAnObjectImpl( bp ) ;
} else
// Not a local object problem: just rethrow the exception.
// Do not wrap and log this, since it was already logged at its
// point of origin.
throw bp ;
}
return ior.stringify() ;
}