@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! } } } });
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}! "
private void internalHandleSubmit(final MALMessage msg, final Address address) throws MALInteractionException { SubmitInteractionImpl interaction = new SubmitInteractionImpl(sender, address, msg); try { try { MALContextFactoryImpl.LOGGER.log(Level.FINE, "internalHandleSubmit for {0} type {1}", new Object[] { msg.getHeader().getTransactionId(), address.handler }); address.handler.handleSubmit(interaction, msg.getBody()); } catch (MALInteractionException ex) { interaction.sendError(ex.getStandardError()); } } catch (MALException ex) { sender.returnError(address, msg.getHeader(), MALSubmitOperation.SUBMIT_ACK_STAGE, ex); } }
private void internalHandleRequest(final MALMessage msg, final Address address) throws MALInteractionException { RequestInteractionImpl interaction = new RequestInteractionImpl(sender, address, msg); try { try { MALContextFactoryImpl.LOGGER.log(Level.FINE, "internalHandleRequest for {0} type {1}", new Object[] { msg.getHeader().getTransactionId(), address.handler }); address.handler.handleRequest(interaction, msg.getBody()); } catch (MALInteractionException ex) { interaction.sendError(ex.getStandardError()); } } catch (MALException ex) { sender.returnError(address, msg.getHeader(), MALRequestOperation.REQUEST_RESPONSE_STAGE, ex); } }
private void internalHandleProgress(final MALMessage msg, final Address address) throws MALInteractionException { ProgressInteractionImpl interaction = new ProgressInteractionImpl(sender, address, msg); try { try { MALContextFactoryImpl.LOGGER.log(Level.FINE, "internalHandleProgresss for {0} type {1}", new Object[] { msg.getHeader().getTransactionId(), address.handler }); address.handler.handleProgress(interaction, msg.getBody()); } catch (MALInteractionException ex) { interaction.sendError(ex.getStandardError()); } } catch (MALException ex) { try { interaction.sendError(new MALStandardError(MALHelper.INTERNAL_ERROR_NUMBER, new Union(ex.getLocalizedMessage()))); } catch (MALException noex) { // this exception cannot actually be thrown in this implmentation, therefore we can safely ignore it } } }
private void internalHandleInvoke(final MALMessage msg, final Address address) throws MALInteractionException { InvokeInteractionImpl interaction = new InvokeInteractionImpl(sender, address, msg); try { try { MALContextFactoryImpl.LOGGER.log(Level.FINE, "internalHandleInvoke for {0} type {1}", new Object[] { msg.getHeader().getTransactionId(), address.handler }); address.handler.handleInvoke(interaction, msg.getBody()); } catch (MALInteractionException ex) { interaction.sendError(ex.getStandardError()); } } catch (MALException ex) { try { interaction.sendError(new MALStandardError(MALHelper.INTERNAL_ERROR_NUMBER, new Union(ex.getLocalizedMessage()))); } catch (MALException noex) { // this exception cannot actually be thrown in this implmentation, therefore we can safely ignore it } } }
msg.getHeader(), MALPubSubOperation.PUBLISH_STAGE, ex.getStandardError());
msg.getHeader(), rspnInteractionStage, ex.getStandardError());