Java 8 NotBoundException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 NotBoundException class.

This code example shows how to use the following methods:getMessage
		} catch (MalformedURLException e) {
			log.error(e.getMessage(),e);
		} catch (RemoteException e) {
			log.error(e.getMessage(),e);
		} catch (NotBoundException e) {
			log.error(e.getMessage(),e);
		} 
		catch (Exception e) {
			log.error(e.getMessage(),e);
		} 
		return null; 
	} 
	 
	public static Object lookupService(String address)
	{ 
		try { 
			RMIUtil.setEnv(); 
			if(!connectiontimeoutsetted)
			{ 
				initConnectionTimeout(); 
4
CodeRank
This code example shows how to use the following methods:
    } 
 
    public void unbind(String name) throws RemoteException, NotBoundException, AccessException {
        Remote rem = remove(name);
        if (rem == null) {
            throw new NotBoundException(name);
        } 
    } 
 
    public void rebind(String name, Remote obj) throws RemoteException, AccessException {
        put(name, obj);
    } 
 
    public String[] list() throws RemoteException, AccessException {
        Collection<String> keys = keySet();
        if (ListUtil.size(keys) <= 0) {
            return new String[0];
        } else { 
            return keys.toArray(new String[keys.size()]);
        } 
4
CodeRank
This code example shows how to use the following methods:printStackTrace
 
    public ExampleRemoteClient() { 
        try { 
            rd = (RemoteDispatcher) Naming.lookup(RMI_URL);
        } catch (NotBoundException e) {
            e.printStackTrace();
        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (RemoteException e) {
            e.printStackTrace();
        } 
    } 
 
    public Map<String, Object> runTestService() throws RemoteException, GenericServiceException {
        Map<String, Object> context = new HashMap<String, Object>();
        context.put("message", "Remote Service Test"); 
        return rd.runSync("testScv", context);
    } 
 
    public static void main(String[] args) throws Exception {
3
CodeRank
See Code Examples for Java 8 NotBoundException Methods: