Examples of InternalError


Examples of jade.domain.FIPAAgentManagement.InternalError

      logger.log(Logger.FINE, "Agent " + requester + " requesting Debug-on");
    // FIXME: Permissions for this action are not yet defined
    try {
      myPlatform.debugOn(don.getDebugger(), don.getCloneOfDebuggedAgents());
    } catch (NotFoundException nfe) {
      throw new InternalError("Agent not found. " + nfe.getMessage());
    } catch (UnreachableException ue) {
      throw new InternalError("Container unreachable. " + ue.getMessage());
    }
  }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.InternalError

      logger.log(Logger.FINE, "Agent " + requester + " requesting Debug-off");
    // FIXME: Permissions for this action are not yet defined
    try {
      myPlatform.debugOff(doff.getDebugger(), doff.getCloneOfDebuggedAgents());
    } catch (NotFoundException nfe) {
      throw new InternalError("Agent not found. " + nfe.getMessage());
    } catch (UnreachableException ue) {
      throw new InternalError("Container unreachable. " + ue.getMessage());
    }
  }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.InternalError

      logger.log(Logger.FINE, "Agent " + requester + " requesting Where-is-agent");
    // FIXME: Permissions for this action are not yet defined
    try {
      return myPlatform.getContainerID(wia.getAgentIdentifier());
    } catch (NotFoundException nfe) {
      throw new InternalError("Agent not found. " + nfe.getMessage());
    }
  }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.InternalError

      logger.log(Logger.FINE, "Agent " + requester + " requesting Query-agents-on-location");
    // FIXME: Permissions for this action are not yet defined
    try {
      return myPlatform.containerAgents((ContainerID) qaol.getLocation());
    } catch (NotFoundException nfe) {
      throw new InternalError("Location not found. " + nfe.getMessage());
    }
  }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.InternalError

      if (logger.isLoggable(Logger.SEVERE))
        logger.log(Logger.SEVERE, "Agent " + requester.getName() + " does not have permission to perform action Register");
      throw new Unauthorised();
    } catch (Exception e) {
      e.printStackTrace();
      throw new InternalError("Unexpected exception. " + e.getMessage());
    }
  }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.InternalError

      if (logger.isLoggable(Logger.SEVERE))
        logger.log(Logger.SEVERE, "Agent " + requester.getName() + " does not have permission to perform action Deregister");
      throw new Unauthorised();
    } catch (Exception e) {
      e.printStackTrace();
      throw new InternalError("Unexpected exception. " + e.getMessage());
    }
  }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.InternalError

    try {
      myPlatform.amsModify(amsd);
    } catch (NotRegistered nr) {
      throw nr;
    } catch (UnreachableException ue) {
      throw new InternalError("Container not reachable. " + ue.getMessage());
    } catch (NotFoundException nfe) {
      throw new InternalError("Agent not found. " + nfe.getMessage());
    } catch (JADESecurityException ae) {
      if (logger.isLoggable(Logger.SEVERE))
        logger.log(Logger.SEVERE, "Agent " + requester.getName() + " does not have permission to perform action Modify");
      throw new Unauthorised();
    } catch (Exception e) {
      e.printStackTrace();
      throw new InternalError("Unexpected exception. " + e.getMessage());
    }
  }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.InternalError

          // before reaching the Messaging Souce Sink --> Issue
          // a NOTIFY_FAILURE VerticalCommand to notify the sender
          cmd = new GenericCommand(jade.core.messaging.MessagingSlice.NOTIFY_FAILURE, jade.core.messaging.MessagingSlice.NAME, null);
          cmd.addParam(gmsg);
          cmd.addParam(receiver);
          cmd.addParam(new InternalError("Message blocked: "+ret));
          ret = myCommandProcessor.processOutgoing(cmd);
          if (ret != null) {
            if (ret instanceof Throwable) {
              ((Throwable) ret).printStackTrace();
            }
View Full Code Here

Examples of jade.domain.FIPAAgentManagement.InternalError

            catch (MTPException mtpe) {
              if (myLogger.isLoggable(Logger.WARNING) && !isPersistentDeliveryRetry(msg))
                myLogger.log(Logger.WARNING, "Cannot deliver message to address: " + address + " [" + mtpe.toString() + "]. Trying the next one...");
            }
          }
          notifyFailureToSender(msg, receiverID, new InternalError(ACLMessage.AMS_FAILURE_FOREIGN_AGENT_UNREACHABLE + ": " + "No valid address contained within the AID " + receiverID.getName()));
        }
        else {
          notifyFailureToSender(msg, receiverID, new InternalError(ACLMessage.AMS_FAILURE_FOREIGN_AGENT_NO_ADDRESS));
        }
      }
    }
    catch (NotFoundException nfe) {
      // The receiver does not exist --> Send a FAILURE message
      if (msg.getTraceID() != null) {
        myLogger.log(Logger.WARNING, msg.getTraceID()+" - Receiver does not exist.", nfe);
      }
      notifyFailureToSender(msg, receiverID, new InternalError(ACLMessage.AMS_FAILURE_AGENT_NOT_FOUND + ": " + nfe.getMessage()));
    }
    catch (IMTPException imtpe) {
      // Can't reach the destination container --> Send a FAILURE message
      String id = (msg.getTraceID() != null ? msg.getTraceID() : MessageManager.stringify(msg));
      myLogger.log(Logger.WARNING, id+" - Receiver unreachable.", imtpe);
      notifyFailureToSender(msg, receiverID, new InternalError(ACLMessage.AMS_FAILURE_AGENT_UNREACHABLE + ": " + imtpe.getMessage()));
    }
    catch (ServiceException se) {
      // Service error during delivery --> Send a FAILURE message
      String id = (msg.getTraceID() != null ? msg.getTraceID() : MessageManager.stringify(msg));
      myLogger.log(Logger.WARNING, id+" - Service error delivering message.", se);
      notifyFailureToSender(msg, receiverID, new InternalError(ACLMessage.AMS_FAILURE_SERVICE_ERROR + ": " + se.getMessage()));
    }
    catch (JADESecurityException jse) {
      // Delivery not authorized--> Send a FAILURE message
      if (msg.getTraceID() != null) {
        myLogger.log(Logger.WARNING, msg.getTraceID()+" - Not authorized.", jse);
      }
      notifyFailureToSender(msg, receiverID, new InternalError(ACLMessage.AMS_FAILURE_UNAUTHORIZED + ": " + jse.getMessage()));
    }
  }
View Full Code Here

Examples of org.apache.jdo.impl.enhancer.util.InternalError

            case 'L':
            case '[':
                insn = insn.append(Insn.create(opc_aconst_null));
                break;
            default:
                throw new InternalError("Illegal field type: " + fieldSig);
            }

            // put default value to field
            insn = insn.append(
                Insn.create(opc_putfield,
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.