List of usage examples for java.rmi RemoteException RemoteException
public RemoteException(String s)
From source file:org.kchine.rpf.ManagedServantAbstract.java
public Serializable pop(String symbol) throws RemoteException { throw new RemoteException("push/pop mode not supported"); }
From source file:org.kchine.rpf.ManagedServantAbstract.java
public String[] listSymbols() throws java.rmi.RemoteException { throw new RemoteException("push/pop mode not supported"); }
From source file:org.kchine.rpf.ManagedServantAbstract.java
public void startGraphicSession() throws RemoteException { throw new RemoteException("graphic mode not supported"); }
From source file:org.kchine.rpf.ManagedServantAbstract.java
public RemotePanel getPanel(int w, int h) throws RemoteException { throw new RemoteException("graphic mode not supported"); }
From source file:org.kchine.rpf.ManagedServantAbstract.java
public void endGraphicSession() throws RemoteException { throw new RemoteException("graphic mode not supported"); }
From source file:org.kchine.rpf.ManagedServantAbstract.java
public void asynchronousConsoleSubmit(String cmd) throws RemoteException { throw new RemoteException("console mode not supported"); }
From source file:org.kchine.rpf.ManagedServantAbstract.java
public void asynchronousConsoleSubmit(String cmd, HashMap<String, Object> clientProperties) throws RemoteException { throw new RemoteException("console mode not supported"); }
From source file:org.mule.module.fws.api.AxisFWSClient.java
public MerchantSKUSupply getInventorySupply(String merchantSku, String responseGroup) throws RemoteException { Validate.notEmpty(merchantSku);//w ww.j ava 2 s .co m GetInventorySupplyResultHolder result = new GetInventorySupplyResultHolder(); getPort(inventoryPortProvider, result).getInventorySupply(asArray(merchantSku), responseGroup, result, newInventoryMetadata()); final MerchantSKUSupply[] supply = result.value.getMerchantSKUSupply(); if (supply.length != 1) { throw new RemoteException("There is no available inventory for the given sku " + merchantSku); } return supply[0]; }
From source file:org.mule.module.fws.api.AxisFWSClient.java
private FulfillmentItem getSingleItem(String sku, final FulfillmentItem[] fulfillmentItem) throws RemoteException { if (fulfillmentItem.length != 1) { throw new RemoteException("The sku " + sku + " is invalid"); }/* w w w . ja v a2s . c o m*/ return fulfillmentItem[0]; }
From source file:org.nimbustools.messaging.gt4_0_elastic.v2008_05_05.rm.defaults.DefaultCancelSI.java
public CancelSpotInstanceRequestsResponseType cancelSIRequests(CancelSpotInstanceRequestsType req, Caller caller, Manager manager) throws RemoteException { if (manager == null) { throw new IllegalArgumentException("manager may not be null"); }//from ww w. j a v a 2s .c o m if (caller == null) { throw new IllegalArgumentException("caller may not be null"); } if (req == null) { throw new IllegalArgumentException("req may not be null"); } SpotInstanceRequestIdSetItemType[] siris = req.getSpotInstanceRequestIdSet().getItem(); String[] reqIds = new String[siris.length]; for (int i = 0; i < siris.length; i++) { reqIds[i] = siris[i].getSpotInstanceRequestId().trim(); } SpotRequestInfo[] spotRequests = null; try { spotRequests = manager.cancelSpotInstanceRequests(reqIds, caller); } catch (ManageException e) { if (logger.isDebugEnabled()) { logger.error(e.getMessage(), e); } else { logger.error(e.getMessage()); } e.printStackTrace(); } catch (Exception e) { logger.warn(e.getMessage(), e); throw new RemoteException("Invalid request ID."); } CancelSpotInstanceRequestsResponseType csirst = new CancelSpotInstanceRequestsResponseType(); if (spotRequests != null) { CancelSpotInstanceRequestsResponseSetItemType[] csirrst = new CancelSpotInstanceRequestsResponseSetItemType[spotRequests.length]; for (int i = 0; i < spotRequests.length; i++) { SpotRequestInfo info = spotRequests[i]; CancelSpotInstanceRequestsResponseSetItemType item = new CancelSpotInstanceRequestsResponseSetItemType(); item.setSpotInstanceRequestId(info.getRequestID()); item.setState(info.getState().getStateStr()); csirrst[i] = item; } CancelSpotInstanceRequestsResponseSetType sirst = new CancelSpotInstanceRequestsResponseSetType(); sirst.setItem(csirrst); csirst.setSpotInstanceRequestSet(sirst); } return csirst; }