Package jade.core

Examples of jade.core.IMTPException


            outConnection = createBackEnd();

            return myStub;
        } catch (ICPException icpe) {
            throw new IMTPException("Connection error", icpe);
        }
    }
View Full Code Here


                myLogger.log(Logger.WARNING, "Connection error. " + ioe.toString());
            }
        }

        // No address succeeded: try to handle the problem...
        throw new IMTPException("Error creating the BackEnd.");
    }
View Full Code Here

      startConnectionReader(c);
     
      return myStub;
    }
    catch (ICPException icpe) {
      throw new IMTPException("Connection error", icpe);
    }
  }
View Full Code Here

        myLogger.log(Logger.WARNING, "Connection error. "+ioe.toString());
      }
    }
   
    // No address succeeded: try to handle the problem...
    throw new IMTPException("Error creating the BackEnd.");
  }
View Full Code Here

      Object result = n.accept(cmd);
      if (result instanceof IMTPException) {
        throw (IMTPException)result;
      }
      else if (result instanceof Throwable) {
        throw new IMTPException("An undeclared exception was thrown", (Throwable)result);
      }
     
      return (SAMInfo) result;
    }
    catch(ServiceException se) {
      throw new IMTPException("Unable to access remote node", se);
    }
  }
View Full Code Here

      if((result != null) && (result instanceof Throwable)) {
        if(result instanceof IMTPException) {
          throw (IMTPException)result;
        }
        else {
          throw new IMTPException("An undeclared exception was thrown", (Throwable)result);
        }
      }
    }
    catch(ServiceException se) {
      throw new IMTPException("Unable to access remote node", se);
    }
  }
View Full Code Here

      if((result != null) && (result instanceof Throwable)) {
        if(result instanceof IMTPException) {
          throw (IMTPException)result;
        }
        else {
          throw new IMTPException("An undeclared exception was thrown", (Throwable)result);
        }
      }
    }
    catch(ServiceException se) {
      throw new IMTPException("Unable to access remote node", se);
    }
  }
View Full Code Here

      }
      catch(JADESecurityException ae) {
        cmd.setReturnValue(ae);
      }
      catch(ServiceException se) {
        cmd.setReturnValue(new IMTPException("Service error", se));
      }
    }
View Full Code Here

          myLogger.log(Logger.FINE,"Cloned Agent " + newID + " correctly created on destination container");
       
      }
      catch (IOException ioe) {
        // Error in agent serialization
        throw new IMTPException("I/O serialization error in handleInformCloned()", ioe);
      }
      catch(ServiceException se) {
        throw new IMTPException("Destination container not found in handleInformCloned()", se);
      }
      //catch(Exception e){
        //throw new IMTPException("Error accessing to agent's code in handleInformCloned()", e);
      //}
      finally {
View Full Code Here

          // Actually start the agent thread
          myContainer.powerUpLocalAgent(agentID);
        }
      }
      catch(IOException ioe) {
        throw new IMTPException("An I/O error occurred during de-serialization", ioe);
      }
      catch(ClassNotFoundException cnfe) {
        throw new IMTPException("A class was not found during de-serialization", cnfe);
      }
      catch(Throwable t) {
        t.printStackTrace();
        throw new IMTPException("Unexpected error.", t);
      }
    }
View Full Code Here

TOP

Related Classes of jade.core.IMTPException

Copyright © 2018 www.massapicom. 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.