当前位置: 首页>>代码示例>>Java>>正文


Java RemoteException.printStackTrace方法代码示例

本文整理汇总了Java中java.rmi.RemoteException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java RemoteException.printStackTrace方法的具体用法?Java RemoteException.printStackTrace怎么用?Java RemoteException.printStackTrace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在java.rmi.RemoteException的用法示例。


在下文中一共展示了RemoteException.printStackTrace方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: add

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
  public void add() 
throws RemoteException, 
       MXException
  {
  	super.add();
MboRemote owner = getOwner();
if( owner != null && owner instanceof ModelRemote )
{
	try
          {
           setValue( FIELD_PARENTMODELID, owner.getString( Model.FIELD_BIMLMVMODELID ) );
           setValue( FIELD_BUCKETKEYFULL, owner.getString( Model.FIELD_BUCKETKEYFULL ) );
           setValue( FIELD_ORGID, owner.getString( Model.FIELD_ORGID ) );
           setValue( FIELD_SITEID, owner.getString( Model.FIELD_SITEID ) );
          }
          catch( RemoteException e )
          {
           e.printStackTrace();
          }
}
  }
 
开发者ID:IBM,项目名称:MaximoForgeViewerPlugin,代码行数:23,代码来源:ModelLink.java

示例2: UnicastServerRef

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Test(dataProvider = "bindData")
public void UnicastServerRef(String name, Object obj, int expectedFilterCount) throws RemoteException {
    try {
        RemoteImpl impl = RemoteImpl.create();
        UnicastServerRef ref = new UnicastServerRef(new LiveRef(0), impl.checker);

        Echo client = (Echo) ref.exportObject(impl, null, false);

        int count = client.filterCount(obj);
        System.out.printf("count: %d, obj: %s%n", count, obj);
        Assert.assertEquals(count, expectedFilterCount, "wrong number of filter calls");
    } catch (RemoteException rex) {
        if (expectedFilterCount == -1 &&
                UnmarshalException.class.equals(rex.getCause().getClass()) &&
                InvalidClassException.class.equals(rex.getCause().getCause().getClass())) {
            return; // normal expected exception
        }
        rex.printStackTrace();
        Assert.fail("unexpected remote exception", rex);
    } catch (Exception ex) {
        Assert.fail("unexpected exception", ex);
    }
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:24,代码来源:FilterUSRTest.java

示例3: canUpdateElement

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canUpdateElement(long elementId, long attributeId) {
    try {
        return deligate.canUpdateElement(elementId, attributeId);
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java

示例4: getStartMsg

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
protected String getStartMsg()
{
	try
       {
		return _logSet.getMessage( Messages.BUNDLE_MSG, Messages.MSG_UPLOADING_MODEL );
       }
       catch( RemoteException e )
       {
       	e.printStackTrace();
		return "Uploading model file";
       }
}
 
开发者ID:IBM,项目名称:MaximoForgeViewerPlugin,代码行数:14,代码来源:ModelUploadLogger.java

示例5: canUpdateAttribute

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canUpdateAttribute(long qualifierId, long attributeId) {
    try {
        return deligate.canUpdateAttribute(qualifierId, attributeId);
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java

示例6: canUpdateQualifier

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canUpdateQualifier(long qualifierId) {
    try {
        return deligate.canUpdateQualifier(qualifierId);
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java

示例7: canCreateStript

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canCreateStript() {
    try {
        return deligate.canCreateScript();
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java

示例8: canUpdateStream

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canUpdateStream(String path) {
    try {
        return deligate.canUpdateStream(path);
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java

示例9: getStream

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public byte[] getStream(String path) {
    try {
        return (byte[]) invocker.invoke(new CallParameters("getStream",
                new Object[]{path})).result;
    } catch (RemoteException e) {
        e.printStackTrace();
        remoteException(e);
    }
    return null;
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:12,代码来源:TcpClientEngine.java

示例10: setStream

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public void setStream(String path, byte[] bytes) {
    try {
        invocker.invoke(new CallParameters("setStream", new Object[]{
                path, bytes}));
    } catch (RemoteException e) {
        e.printStackTrace();
        remoteException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:TcpClientEngine.java

示例11: canCreateAttribute

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canCreateAttribute() {
    try {
        return deligate.canCreateAttribute();
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java

示例12: execute

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public DtoChanges execute(Long time, TransactionId.W version) {
    try {
        return DtoChangesUtil.getDtoChanges(time, version);
    } catch (RemoteException e) {
        e.printStackTrace();
    }
    throw new IllegalStateException();
}
 
开发者ID:openNaEF,项目名称:openNaEF,代码行数:10,代码来源:GetDtoChanegs.java

示例13: canCreateQualifier

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canCreateQualifier() {
    try {
        return deligate.canCreateQualifier();
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java

示例14: canDeleteAttribute

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canDeleteAttribute(long attributeId) {
    try {
        return deligate.canDeleteAttribute(attributeId);
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java

示例15: canDeleteElements

import java.rmi.RemoteException; //导入方法依赖的package包/类
@Override
public boolean canDeleteElements(long[] elementIds) {
    try {
        return deligate.canDeleteElements(elementIds);
    } catch (RemoteException e) {
        remoteException(e);
        e.printStackTrace();
        throw new ClientException(e);
    }
}
 
开发者ID:Vitaliy-Yakovchuk,项目名称:ramus,代码行数:11,代码来源:RMIClientAccessRules.java


注:本文中的java.rmi.RemoteException.printStackTrace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。