Examples of MsgErrorInfo


Examples of org.xmlBlaster.util.error.MsgErrorInfo

      }
      catch (Throwable e) {
         if (sessionInfo != null && !sessionInfo.getConnectQos().allowExceptionsThrownToClient()) {
             if (msgUnit == null)
                msgUnit = new MsgUnit(glob, msgUnitRaw, methodName);
             return sessionInfo.getMsgErrorHandler().handleErrorSync(new MsgErrorInfo(glob, sessionInfo.getSessionName(), msgUnit, e));
         }
         throw this.availabilityChecker.checkException(methodName, e);
      }
   }
View Full Code Here

Examples of org.xmlBlaster.util.error.MsgErrorInfo

        if (sessionInfo.getConnectQos().allowExceptionsThrownToClient()) {
             throw e; // normal use case
        }
        else {
             // e.g. if a dumb device (phone) can't cope with exception, handle it server side
             MsgErrorInfo msgErrorInfo = new MsgErrorInfo(glob, sessionInfo.getSessionName(), msgUnitRaw, e);
             sessionInfo.getMsgErrorHandler().handleError(msgErrorInfo);
        }
      }
      QosData qosData = msgUnit.getQosData();
View Full Code Here

Examples of org.xmlBlaster.util.error.MsgErrorInfo

            if (log.isLoggable(Level.FINE)) log.fine("Queueing holdback message " + entry.getLogId());
            try {
               putToHoldbackQueue(managerEntry, entry);
            }
            catch (XmlBlasterException e) {
               dispatchManager.getMsgErrorHandler().handleError(new MsgErrorInfo(glob, entry, dispatchManager, e));
            }
            if (log.isLoggable(Level.FINE)) log.fine("Removing from callback queue " + entry.getLogId() + " (is now a holdback message)");
            try {
               dispatchManager.getQueue().removeRandom(entry);
               if (log.isLoggable(Level.FINE)) log.fine("Callback queue size is now " + dispatchManager.getQueue().getNumOfEntries());
View Full Code Here

Examples of org.xmlBlaster.util.error.MsgErrorInfo

                  dispatchManager.getQueue().put(queueEntries, false);
               }
               catch (XmlBlasterException e) {
                  log.warning("flushHoldbackQueue() failed: " + e.getMessage());
                  // errorCode == "ONOVERFLOW"
                  dispatchManager.getMsgErrorHandler().handleError(new MsgErrorInfo(glob, queueEntries, dispatchManager, e));
               }

               try {
                  long num = holdbackQueue.removeNum(list.size());
                  if (num != list.size()) {
View Full Code Here

Examples of org.xmlBlaster.util.error.MsgErrorInfo

      removeBurstModeTimer();

      boolean userThread = this.dispatchConnectionsHandler.isUserThread();
      if (!userThread) { // If the client user thread it will receive the exception and handle it self
         // The error handler flushed the queue and does error handling with them
         getMsgErrorHandler().handleError(new MsgErrorInfo(glob, (MsgQueueEntry)null, this, ex));
      }
     
      shutdown();
   }
View Full Code Here

Examples of org.xmlBlaster.util.error.MsgErrorInfo

      if (xmlBlasterException.isUser()) {
         // Exception from remote client from update(), pass it to error handler and carry on ...?
         // A PublishPlugin could throw it
         MsgQueueEntry[] entries = (MsgQueueEntry[])entryList.toArray(new MsgQueueEntry[entryList.size()]);
         getMsgErrorHandler().handleErrorSync(new MsgErrorInfo(glob, entries, this, xmlBlasterException));
         return;
      }
      else if (xmlBlasterException.isCommunication()) {

         if (this.msgInterceptor != null && isPolling()) { // If we have a plugin it shall handle it
            try {
               entryList = this.msgInterceptor.handleNextMessages(this, entryList);
               if (entryList != null && entryList.size() > 0) {
                  MsgQueueEntry[] entries = (MsgQueueEntry[])entryList.toArray(new MsgQueueEntry[entryList.size()]);
                  getMsgErrorHandler().handleError(new MsgErrorInfo(glob, entries, this, xmlBlasterException));
               }
            }
            catch (XmlBlasterException xmlBlasterException2) {
               internalError(xmlBlasterException2);
            }
            if (entryList != null && entryList.size() > 0) {
               MsgQueueEntry[] entries = (MsgQueueEntry[])entryList.toArray(new MsgQueueEntry[entryList.size()]);
               getMsgErrorHandler().handleError(new MsgErrorInfo(glob, entries, this, xmlBlasterException));
            }
            return;
         }

         // Exception from connection to remote client (e.g. from Corba layer)
View Full Code Here

Examples of org.xmlBlaster.util.error.MsgErrorInfo

            MsgQueueEntry[] entries = (MsgQueueEntry[])entryList.toArray(new MsgQueueEntry[entryList.size()]);
            boolean isHandled = sendingFailedNotification(entries, ex);
            if (isHandled)
               removeFromQueue(entries, false);
            else
               getMsgErrorHandler().handleError(new MsgErrorInfo(glob, entries, this, ex));
         }
         else if (ex.isCommunication()) {

            if (this.msgInterceptor != null) { // If we have a plugin it shall handle it
               if (isPolling()) { // is this code really invoked ? Note of Michele Laghi on 2007-12-19
                  try {
                     entryList = this.msgInterceptor.handleNextMessages(this, entryList);
                     if (entryList != null && entryList.size() > 0) {
                        MsgQueueEntry[] entries = (MsgQueueEntry[])entryList.toArray(new MsgQueueEntry[entryList.size()]);
                        getMsgErrorHandler().handleError(new MsgErrorInfo(glob, entries, this, ex));
                     }
                  }
                  catch (XmlBlasterException ex2) {
                     internalError(ex2);
                  }
                  if (entryList != null && entryList.size() > 0) {
                     MsgQueueEntry[] entries = (MsgQueueEntry[])entryList.toArray(new MsgQueueEntry[entryList.size()]);
                     getMsgErrorHandler().handleError(new MsgErrorInfo(glob, entries, this, ex));
                  }
               }
               if (msgInterceptor != null) { // we want the exception notification at least
                  msgInterceptor.onDispatchWorkerException(this, ex);
               }
View Full Code Here

Examples of org.xmlBlaster.util.error.MsgErrorInfo

                     newQueue.put(queueEntries, false);
                  }
                  catch (XmlBlasterException e) {
                     log.warning(ME+": flushHoldbackQueue() failed: " + e.getMessage());
                     // errorCode == "ONOVERFLOW"
                     getMsgErrorHandler().handleError(new MsgErrorInfo(glob, queueEntries, null, e));
                  }

                  try {
                     long num = this.subjectQueue.removeNum(list.size());
                     if (num != list.size()) {
View Full Code Here

Examples of org.xmlBlaster.util.error.MsgErrorInfo

               }
            }
         }
         catch(Throwable e) {
            MsgQueueEntry[] msgQueueEntries = new MsgQueueEntry[] { entry };
            MsgErrorInfo msgErrorInfo = new MsgErrorInfo(glob, msgQueueEntries, null, e)// this.subjectQueue
            getMsgErrorHandler().handleError(msgErrorInfo);

            try {
               this.subjectQueue.removeRandom(entry); // Remove the entry
            }
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.