本文整理了Java中java.rmi.RemoteException.toString
方法的一些代码示例,展示了RemoteException.toString
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteException.toString
方法的具体详情如下:
包路径:java.rmi.RemoteException
类名称:RemoteException
方法名:toString
暂无
代码示例来源:origin: xap/xap
@Override
public String toString() {
return wrapped == null ? "" : wrapped.toString();
}
}
代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core
/** {@inheritDoc} */
// Called by JMeter ListenToTest if remoteStop is true
@Override
public void exit() {
log.info("about to exit remote server on {}", hostAndPort);
try {
remote.rexit();
} catch (RemoteException e) {
log.warn("Could not perform remote exit: " + e.toString());
}
}
代码示例来源:origin: au.net.zeus.jgdms/jgdms-lib-dl
/**
* Returns the detail message, including the message from the nested
* exception the server wants thrown
*/
public String getMessage() {
return super.getMessage() +
"; that is transporting: \n\t" +
toThrow.toString();
}
代码示例来源:origin: xap/xap
@Override
public void run() {
try {
registrar.destroy();
mainThread.interrupt();
} catch (RemoteException e) {
if (logger.isLoggable(Level.SEVERE)) {
logger.log(Level.SEVERE, e.toString(), e);
}
}
}
});
代码示例来源:origin: carol/carol
public NamingEnumeration list(String name) throws NamingException {
try {
return new CmiNames(reg.list());
} catch (AccessException e) {
throw new NamingException(e.toString());
} catch (RemoteException e) {
throw new NamingException(e.toString());
}
}
代码示例来源:origin: io.snappydata/dunit
public Object get(Object key) {
try {
return DUnitLauncher.getMaster().get(key);
} catch (RemoteException e) {
throw new TestException(e.toString(), e);
}
}
代码示例来源:origin: io.snappydata/dunit
public boolean put(Object key, Object value) {
try {
return DUnitLauncher.getMaster().put(key, value);
} catch (RemoteException e) {
throw new TestException(e.toString(), e);
}
}
代码示例来源:origin: io.snappydata/dunit
public int addAndGet(Object key, int delta, int defaultValue) {
try {
return DUnitLauncher.getMaster().addAndGet(key, delta, defaultValue);
} catch (RemoteException e) {
throw new TestException(e.toString(), e);
}
}
代码示例来源:origin: io.snappydata/dunit
public boolean remove(Object key) {
try {
return DUnitLauncher.getMaster().remove(key);
} catch (RemoteException e) {
throw new TestException(e.toString(), e);
}
}
代码示例来源:origin: io.snappydata/dunit
public Map<Object, Object> getMapCopy() {
try {
return DUnitLauncher.getMaster().getMapCopy();
} catch (RemoteException e) {
throw new TestException(e.toString(), e);
}
}
代码示例来源:origin: io.snappydata/dunit
public void acquireSharedLock() {
try {
DUnitLauncher.getMaster().acquireSharedLock();
} catch (RemoteException e) {
throw new TestException(e.toString(), e);
}
}
代码示例来源:origin: io.snappydata/dunit
public void releaseSharedLock() {
try {
DUnitLauncher.getMaster().releaseSharedLock();
} catch (RemoteException e) {
throw new TestException(e.toString(), e);
}
}
}
代码示例来源:origin: carol/carol
public void unbind(String name) throws NamingException {
if (TraceCarol.isDebugJndiCarol())
TraceCarol.debugJndiCarol("unbind(" + name + ")");
if (name.equals("")) {
throw new InvalidNameException("Cannot unbind empty name");
}
try {
reg.unbind(name);
} catch (java.rmi.RemoteException e) {
throw new NamingException(e.toString());
} catch (java.rmi.NotBoundException e) {
throw new NameNotFoundException(e.toString());
}
}
代码示例来源:origin: org.glassfish.main.ejb/ejb-container
/**
* This is the implementation of the javax.ejb.EJBHome remove method.
* @exception RemoveException on error during removal
*/
public final void remove(Handle handle)
throws RemoteException, RemoveException
{
container.authorizeRemoteMethod(BaseContainer.EJBHome_remove_Handle);
EJBObject ejbo;
try {
ejbo = handle.getEJBObject();
} catch ( RemoteException ex ) {
_logger.log(Level.FINE, "Exception in method remove()", ex);
NoSuchObjectException nsoe =
new NoSuchObjectException(ex.toString());
nsoe.initCause(ex);
throw nsoe;
}
ejbo.remove();
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public RMIRemoteSessionController createRemoteSessionController() {
RMIRemoteSessionController controller = null;
try {
if (getSession().isServerSession()) {
controller = new RMIRemoteSessionControllerDispatcher((((ServerSession)getSession()).acquireClientSession()));
} else {
controller = new RMIRemoteSessionControllerDispatcher((getSession()));
}
} catch (RemoteException exception) {
System.out.println("Error in invocation " + exception.toString());
}
return controller;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public RMIRemoteSessionController createRemoteSessionController() {
RMIRemoteSessionController controller = null;
try {
if (getSession().isServerSession()) {
controller = new RMIRemoteSessionControllerDispatcher((((ServerSession)getSession()).acquireClientSession()));
} else {
controller = new RMIRemoteSessionControllerDispatcher((getSession()));
}
} catch (RemoteException exception) {
System.out.println("Error in invocation " + exception.toString());
}
return controller;
}
代码示例来源:origin: org.glassfish.main.common/glassfish-naming
/**
* Bind the object to the specified name.
*
* @param name name that the object is being bound to.
* @param obj object that is being bound.
* @throws NamingException if there is a naming exception.
*/
@Override
public void bind(String name, Object obj) throws NamingException {
name = getRelativeName(name);
if (isjavaURL(name)) {
javaUrlContext.bind(name, obj);
} else {
try {
getProvider().bind(name, obj);
} catch (RemoteException ex) {
throw new CommunicationException(ex.toString());
}
}
}
代码示例来源:origin: org.glassfish.main.common/glassfish-naming
/**
* Rebind the object to the specified name.
*
* @param name name that the object is being bound to.
* @param obj object that is being bound.
* @throws NamingException if there is a naming exception.
*/
@Override
public void rebind(String name, Object obj) throws NamingException {
name = getRelativeName(name);
if (isjavaURL(name)) {
javaUrlContext.rebind(name, obj);
} else {
try {
getProvider().rebind(name, obj);
} catch (RemoteException ex) {
throw new CommunicationException(ex.toString());
}
}
}
代码示例来源:origin: org.glassfish.common/glassfish-naming
/**
* Bind the object to the specified name.
*
* @param name name that the object is being bound to.
* @param obj object that is being bound.
* @throws NamingException if there is a naming exception.
*/
@Override
public void bind(String name, Object obj) throws NamingException {
name = getRelativeName(name);
if (isjavaURL(name)) {
javaUrlContext.bind(name, obj);
} else {
try {
getProvider().bind(name, obj);
} catch (RemoteException ex) {
throw new CommunicationException(ex.toString());
}
}
}
代码示例来源:origin: org.glassfish.common/glassfish-naming
/**
* Unbind the object with the specified name.
*
* @param name that is being unbound.
* @throws NamingException if there is a naming exception.
*/
@Override
public void unbind(String name) throws NamingException {
name = getRelativeName(name);
if (isjavaURL(name)) {
javaUrlContext.unbind(name);
} else {
try {
getProvider().unbind(name);
} catch (RemoteException ex) {
throw new CommunicationException(ex.toString());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!