Examples of RemoteConnectionException


Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

        else
          this.cd(protocol, (RemoteSiteFile) pFile.getParent());
      }
      return protocol;
    } catch (Exception e) {
      throw new RemoteConnectionException(
          "Failed to get appropriate protocol for " + pFile + " : "
              + e.getMessage());
    }
  }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

      pgInfo.updatePageInfo(curLoc, fileList);

      return page;
    } catch (Exception e) {
      e.printStackTrace();
      throw new RemoteConnectionException(
          "Failed getting next page for protocol " + protocol + "-- pgStart = "
              + pgInfo.getPageLoc() + " pgSize = " + pi.getPageSize() + " : "
              + e.getMessage());
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

      // rename file back to original name
      downloadFile.renameTo(toFile);

    } catch (Exception e) {
      downloadFile.delete();
      throw new RemoteConnectionException("Failed to download file " + fromFile
          + " : " + e.getMessage());
    }
  }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

    try {
      url = ((RemoteSiteFile) protocol.pwd()).getSite().getURL();
      LOG.log(Level.INFO, "Disconnecting protocol from " + url);
      protocol.close();
    } catch (Exception e) {
      throw new RemoteConnectionException("Error disconnecting from " + url
          + " : " + e.getMessage());
    }
  }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

            } catch (Exception e) {
                LOG.log(Level.WARNING, "Retrying to get next page for " + dir
                        + " because operation failed : " + e.getMessage());
            }
        }
        throw new RemoteConnectionException("Failed to get next page for "
                + dir);
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.exceptions.RemoteConnectionException

                                } catch (Exception e1) {
                                }
                            }
                        } else {
                            this.failedDownloadList.add(file);
                            throw new RemoteConnectionException(
                                    "Failed to get session to download " + file
                                            + " : " + e.getMessage());
                        }
                    }
                }
View Full Code Here

Examples of org.jboss.remoting.samples.chat.exceptions.RemoteConnectionException

      }
      catch (Throwable t)
      {
         log.error(t);
         t.printStackTrace();
         throw new RemoteConnectionException();
      }
   }
View Full Code Here

Examples of org.jboss.remoting.samples.chat.exceptions.RemoteConnectionException

      }
      catch (Throwable e)
      {
         log.error(e);
         e.printStackTrace();
         throw new RemoteConnectionException();
      }
        
      // Create callback handler to process incoming messages.
      try
      {
         receiverConnector = new Connector();
         String receiverLocatorString = Parameters.getParameter("clientUriString", chatClientLocatorDefault);
         InvokerLocator receiverLocator = new InvokerLocator(receiverLocatorString);
         receiverConnector.setInvokerLocator(receiverLocator.getLocatorURI());
         log.info(receiverLocator.getLocatorURI());
         receiverConnector.start();
         receiverLocator = receiverConnector.getLocator();
         log.info(receiverConnector.getInvokerLocator());
         InvokerCallbackHandler receiverHandler = new ChatReceiverHandler(talkFrame);
         serverClient.addListener(receiverHandler, receiverLocator, owner);
      }
      catch (MalformedURLException e)
      {
         log.error(e);
         e.printStackTrace();
         throw new RemoteConnectionException();
      }
      catch (Throwable e)
      {
         log.error(e);
         e.printStackTrace();
         throw new RemoteConnectionException();
      }
     
      // Create stub for new chat room server.
      ChatServer chatServer = new ChatServerStub(serverClient);
     
View Full Code Here

Examples of org.jboss.remoting.samples.chat.exceptions.RemoteConnectionException

      }
      catch (Throwable e)
      {
         log.error(e);
         e.printStackTrace();
         throw new RemoteConnectionException();
      }
        
      // Create callback handler to process incoming messages.
      try
      {
         receiverConnector = new Connector();
         String receiverLocatorString = Parameters.getParameter("clientUriString", chatClientLocatorDefault);
         InvokerLocator receiverLocator = new InvokerLocator(receiverLocatorString);
         receiverConnector.setInvokerLocator(receiverLocator.getLocatorURI());
         log.info(receiverLocator.getLocatorURI());
         receiverConnector.start();
         receiverLocator = receiverConnector.getLocator();
         InvokerCallbackHandler receiverHandler = new ChatReceiverHandler(talkFrame);
         serverClient.addListener(receiverHandler, receiverLocator, newMember);
      }
      catch (MalformedURLException e)
      {
         log.error(e);
         e.printStackTrace();
         throw new RemoteConnectionException();
      }
      catch (Throwable e)
      {
         log.error(e);
         e.printStackTrace();
         throw new RemoteConnectionException();
      }
     
     
      // Create stub for new chat room server.
      ChatServer chatServer = new ChatServerStub(serverClient);
View Full Code Here

Examples of org.jboss.remoting.samples.chat.exceptions.RemoteConnectionException

            return (ArrayList) serverClient.invoke(invocation);
         }
         catch (Throwable e)
         {
            log.error(e);
            throw new RemoteConnectionException();
         }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.