本文整理了Java中java.rmi.RemoteException.printStackTrace
方法的一些代码示例,展示了RemoteException.printStackTrace
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteException.printStackTrace
方法的具体详情如下:
包路径:java.rmi.RemoteException
类名称:RemoteException
方法名:printStackTrace
暂无
代码示例来源:origin: stackoverflow.com
Message message = Message.obtain(null, MyService.ADD_RESPONSE_HANDLER);
message.replyTo = messenger;
try {
myService.send(message);
catch (RemoteException e) {
e.printStackTrace();
}
代码示例来源:origin: stackoverflow.com
public void sendMessage(ProgressBarState state) {
Message message = Message.obtain();
switch (state) {
case SHOW :
message.arg1 = Home.SHOW;
break;
case HIDE :
message.arg1 = Home.HIDE;
break;
}
try {
messageHandler.send(message);
} catch (RemoteException e) {
e.printStackTrace();
}
}
代码示例来源:origin: konsoletyper/teavm
@Override
public void error(String text) {
try {
callback.errorReported(text);
} catch (RemoteException e) {
e.printStackTrace();
}
}
代码示例来源:origin: konsoletyper/teavm
@Override
public void info(String text) {
try {
callback.infoReported(text);
} catch (RemoteException e) {
e.printStackTrace();
}
}
代码示例来源:origin: konsoletyper/teavm
@Override
public void warning(String text) {
try {
callback.warningReported(text);
} catch (RemoteException e) {
e.printStackTrace();
}
}
代码示例来源:origin: stackoverflow.com
text.setText(mIRemoteService.getMessage(etMsg.getText().toString()));
} catch (RemoteException e) {
e.printStackTrace();
代码示例来源:origin: org.freemarker/freemarker
RmiDebuggerService() {
try {
debugger = new RmiDebuggerImpl(this);
server = new DebuggerServer((Serializable) RemoteObject.toStub(debugger));
server.start();
} catch (RemoteException e) {
e.printStackTrace();
throw new UndeclaredThrowableException(e);
}
}
代码示例来源:origin: stackoverflow.com
final IDataContract objReceived = IDataContract.Stub.asInterface(getIntent().getExtras().getBinder("object_value"));
try {
Log.d(TAG, "received object=" + objReceived + ", func1()=" + objReceived.func1("test1") + ", func2()=" + objReceived.func2("test2"));
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
代码示例来源:origin: neo4j/neo4j
e.printStackTrace();
代码示例来源:origin: stackoverflow.com
public class SecondActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_second);
final Messenger messenger = getIntent().getParcelableExtra(MainActivity.EXTRA_MESSENGER);
try {
messenger.send(Message.obtain(null, MainActivity.MSG_OP1, 101, 1001, "10001"));
messenger.send(Message.obtain(null, MainActivity.MSG_OP2, 102, 1002, "10002"));
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
代码示例来源:origin: stackoverflow.com
private void testBluetoothA2dp(BluetoothDevice device) {
// TODO Auto-generated method stub
// TODO Auto-generated method stub
IBluetoothA2dp ibta = getIBluetoothA2dp();
try {
Log.d("Felix", "Here: " + ibta.getSinkPriority(device));
ibta.connectSink(device);
} catch (RemoteException e) {
// * TODO Auto-generated catch block
e.printStackTrace();
}
代码示例来源:origin: stackoverflow.com
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
try {
serviceBinder.endCall(lineId);
} catch (RemoteException e) {
e.printStackTrace();
}
}
}.execute();
代码示例来源:origin: stackoverflow.com
iBeaconManager = IBeaconManager.getInstanceForApplication(this.getApplicationContext());
...
@Override
public void onIBeaconServiceConnect() {
try {
long five_minutes_in_millis = 5*60*1000l;
iBeaconManager.setForegroundScanPeriod(five_minutes_in_millis);
iBeaconManager.setBackgroundScanPeriod(five_minutes_in_millis);
} catch (RemoteException e) {
e.printStackTrace();
}
}
代码示例来源:origin: au.net.zeus.jgdms/jgdms-lib-dl
/**
* Prints the composite message and the embedded stack trace to
* the specified print writer <code>pw</code>
* @param pw the print writer
*/
public void printStackTrace(java.io.PrintWriter pw)
{
synchronized(pw) {
pw.println(this);
toThrow.printStackTrace(pw);
}
}
代码示例来源:origin: axis/axis
/**
* The override of the base class method prints out the
* fault info before the stack trace.
*
* @param ps where to print
*/
public void printStackTrace(PrintStream ps) {
ps.println(dumpToString());
super.printStackTrace(ps);
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* The override of the base class method prints out the
* fault info before the stack trace.
*
* @param pw where to print
*/
public void printStackTrace(java.io.PrintWriter pw) {
pw.println(dumpToString());
super.printStackTrace(pw);
}
代码示例来源:origin: com.github.rjolly/remote4j
@Override
public void setPassword(final char[] password) {
try {
callback.map(c -> {
c.setPassword(password);
return Remote.VOID;
});
} catch (final RemoteException e) {
e.printStackTrace();
}
}
代码示例来源:origin: axis/axis
/**
* The override of the base class method prints out the
* fault info before the stack trace.
*
* @param pw where to print
*/
public void printStackTrace(java.io.PrintWriter pw) {
pw.println(dumpToString());
super.printStackTrace(pw);
}
代码示例来源:origin: com.github.rjolly/remote4j
@Override
public String getName() {
try {
return callback.map(c -> c.getName()).get();
} catch (final RemoteException e) {
e.printStackTrace();
}
return null;
}
代码示例来源:origin: org.freemarker/com.springsource.freemarker
RmiDebuggerService()
{
try
{
new DebuggerServer((Serializable)RemoteObject.toStub(new RmiDebuggerImpl(this))).start();
}
catch(RemoteException e)
{
e.printStackTrace();
throw new UndeclaredThrowableException(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!