@Override public MALStandardError getError() throws MALException { decodeMessageBody(); if (1 < messageParts.length) { return new MALStandardError((UInteger) messageParts[0], messageParts[1]); } else { return new MALStandardError((UInteger) messageParts[0], null); } } }
@Override public void run() { try { archiveService.store( false, ActivityTrackingHelper.OPERATIONACTIVITY_OBJECT_TYPE, interaction.getMessageHeader().getDomain(), archiveDetails, opActivityList, interaction); // requirement: 3.5.2.3 & 3.5.2.5 } catch (MALException ex) { Logger.getLogger(ActivityTrackingProviderServiceImpl.class.getName()).log(Level.SEVERE, null, ex); } catch (MALInteractionException ex) { // A duplicate might happen if the the consumer stored the Operation Activity object if(ex.getStandardError().getErrorNumber().getValue() != COMHelper.DUPLICATE_ERROR_NUMBER.getValue()){ Logger.getLogger(ActivityTrackingProviderServiceImpl.class.getName()).log(Level.SEVERE, null, ex); }else{ // It's a Duplicate error, the object already exists... Do nothing! } } } });
@Override public void monitorEventNotifyErrorReceived(MALMessageHeader msgHeader, MALStandardError error, Map qosProperties) { Logger.getLogger(CheckLinkMonitorAdapter.class.getName()).log(Level.SEVERE, "monitorEvents notification failed with error {0}", error.getErrorName()); super.monitorEventNotifyErrorReceived(msgHeader, error, qosProperties); }
return new GENMessage(false, JMSEndpoint.createReturnHeader(msg, true, MALPubSubOperation._PUBLISH_STAGE), null, null, ex.getStandardError().getErrorNumber(), ex.getStandardError().getExtraInformation()); throw new MALTransmitErrorException(msg.getHeader(), new MALStandardError(MALHelper.BAD_ENCODING_ERROR_NUMBER, new Union(ex.getLocalizedMessage())), msg.getQoSProperties());
Boolean.TRUE, notifyQosProps, error.getErrorNumber(), error.getExtraInformation()); MALPubSubOperation.NOTIFY_STAGE, notifyQosProps, error.getErrorNumber(), error.getExtraInformation()); Boolean.TRUE, qosProps, error.getErrorNumber(), error.getExtraInformation()); MALPubSubOperation.PUBLISH_STAGE, qosProps, error.getErrorNumber(), error.getExtraInformation());
true, new HashMap(), error.getErrorNumber(), error.getExtraInformation());
@Override public void free(Long transactionTicket, MALInteraction interaction) throws MALInteractionException, MALException { final Dispatcher dispatcher = dispatchers.get(transactionTicket); if (dispatcher == null) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, null)); } dispatcher.clear(); dispatchers.remove(transactionTicket); }
Logger.getLogger(AppsLauncherManager.class.getName()).log(Level.SEVERE, null, ex); } catch (MALInteractionException ex) { if (ex.getStandardError().getErrorNumber().equals(COMHelper.DUPLICATE_ERROR_NUMBER)) { Logger.getLogger(AppsLauncherManager.class.getName()).log(Level.WARNING, "Error while adding new App: {0}! "
@Override public void monitorValueRegisterErrorReceived(MALMessageHeader msgHeader, MALStandardError error, Map qosProperties) { Logger.getLogger(CheckProviderServiceImpl.class.getName()).log(Level.SEVERE, "registration for monitorvalue failed with error {0}", new Object[]{error.getErrorName()}); super.monitorValueRegisterErrorReceived(msgHeader, error, qosProperties); }
@Override public Boolean preCheckAction(ActionInstanceDetails actionDetails, MALInteraction interaction) throws MALInteractionException, MALException { UIntegerList invIndexList = new UIntegerList(); // requirement: 3.2.10.3.2 if (!manager.existsDef(actionDetails.getDefInstId())) { throw new MALInteractionException(new MALStandardError(MALHelper.UNKNOWN_ERROR_NUMBER, null)); } // requirement: 3.2.10.2.a, 3.2.10.2.b //TODO: check the checkActionInstanceDetails-mehod after spec-update -> issue #99 boolean accepted = manager.checkActionInstanceDetails(actionDetails, invIndexList); // Errors if (!invIndexList.isEmpty()) { // requirement: 3.2.10.3.1 throw new MALInteractionException(new MALStandardError(COMHelper.INVALID_ERROR_NUMBER, invIndexList)); } return accepted; }
@Override public void monitorValueNotifyErrorReceived(MALMessageHeader msgHeader, MALStandardError error, Map qosProperties ) { Logger.getLogger(CheckProviderServiceImpl.class.getName()).log(Level.SEVERE, "monitorvalue notification failed with error {0}", new Object[]{error.getErrorName()}); super.monitorValueNotifyErrorReceived(msgHeader, error, qosProperties); }
protected void internalHandlePublish(final GENMessage msg, Session lqs) throws MALException, MALInteractionException, MALTransmitErrorException { JMSTransport.RLOGGER.fine("Starting PUBLISH"); JMSPublishHandler details = publishHandlerMap.get(createProviderKey(msg.getHeader())); if (null == details) { JMSTransport.RLOGGER.warning("JMS : ERR Provider not known"); throw new MALInteractionException(new MALStandardError(MALHelper.INCORRECT_STATE_ERROR_NUMBER, null)); } GENMessage rMsg = details.publish(msg, lqs); if (null != rMsg) { receiveMessage(rMsg); } }
@Override public void monitorEventRegisterErrorReceived(MALMessageHeader msgHeader, MALStandardError error, Map qosProperties) { Logger.getLogger(CheckLinkMonitorAdapter.class.getName()).log(Level.SEVERE, "registration for monitorEvents failed with error {0}", error.getErrorName()); super.monitorEventRegisterErrorReceived(msgHeader, error, qosProperties); }
protected MessageHandlerDetails(boolean isAckStage, MALMessage src, UInteger errNum) { this.ackStage = isAckStage; src.getHeader().setIsErrorMessage(true); this.message = new DummyMessage(src.getHeader(), new DummyErrorBody(new MALStandardError(errNum, null)), src.getQoSProperties()); this.needToReturnAnException = true; }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleSend(org.ccsds.moims.mo.mal.provider.MALInteraction interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: throw new org.ccsds.moims.mo.mal.MALInteractionException(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleSend(org.ccsds.moims.mo.mal.provider.MALInteraction interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: throw new org.ccsds.moims.mo.mal.MALInteractionException(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleSend(org.ccsds.moims.mo.mal.provider.MALInteraction interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: throw new org.ccsds.moims.mo.mal.MALInteractionException(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleSend(org.ccsds.moims.mo.mal.provider.MALInteraction interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: throw new org.ccsds.moims.mo.mal.MALInteractionException(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleSend(org.ccsds.moims.mo.mal.provider.MALInteraction interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: throw new org.ccsds.moims.mo.mal.MALInteractionException(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }
/** * Called by the provider MAL layer on reception of a message to handle the interaction. * @param interaction interaction the interaction object. * @param body body the message body. * @throws org.ccsds.moims.mo.mal.MALException if there is a internal error. * @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error. */ public void handleSend(org.ccsds.moims.mo.mal.provider.MALInteraction interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException { switch (interaction.getOperation().getNumber().getValue()) { default: throw new org.ccsds.moims.mo.mal.MALInteractionException(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation"))); } }