本文整理汇总了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();
}
}
}
示例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);
}
}
示例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);
}
}
示例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";
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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();
}
示例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);
}
}
示例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);
}
}
示例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);
}
}