Examples of CommunicationException


Examples of betsy.bpel.virtual.common.exceptions.CommunicationException

                        LogFilesResponse response = protocol.collectLogFilesOperation(request);
                        this.sendMessage(response);
                    } else if (Constants.EXIT_REQUEST.equals(o)) {
                        this.shutdown();
                    } else {
                        throw new CommunicationException("Invalid request");
                    }
                } catch (Exception e) {
                    this.sendMessage(e);
                }
            }
View Full Code Here

Examples of com.alibaba.otter.shared.communication.core.exception.CommunicationException

    /**
     * 指定manager,进行event调用
     */
    public Object callManager(final Event event) {
        CommunicationException ex = null;
        Object object = null;
        for (int i = index; i < index + managerAddress.size(); i++) { // 循环一次manager的所有地址
            String address = managerAddress.get(i % managerAddress.size());
            try {
                object = delegate.call(address, event);
View Full Code Here

Examples of com.mes.sdk.exception.CommunicationException

        reader.close();
        if(settings.isVerbose())
          LOG.log(Level.INFO, resp);
      }
    } catch (SocketTimeoutException e) {
      throw new CommunicationException("Request timed out after "+settings.getTimeout()+"ms.");
    } catch (IOException e) {
      throw new MesRuntimeException(e);
    } finally {
      if(connection != null)
        connection.disconnect();
View Full Code Here

Examples of com.opera.core.systems.scope.exceptions.CommunicationException

      sleep(sleepDuration);
      recover();
      return eval(using, variables);
    } else if (retries >= SCRIPT_RETRIES) {
      resetCounters();
      throw new CommunicationException("No response on ECMAScript evaluation command");
    }

    resetCounters();
    return parseEvalData(response);
  }
View Full Code Here

Examples of com.sun.jdmk.comm.CommunicationException

        try {
            this.socket = this.serverSocket.accept();
            this.socket.setSoTimeout(SOCKET_TIMEOUT);
        } catch (IOException e) {
            logger.log(e);
            throw new CommunicationException(e, "Error while accepting connection on server socket");
        }
    }
View Full Code Here

Examples of javax.naming.CommunicationException

      }//end of for (int i=0; i<recordID.length; i++)
    }//end of try block
    catch( CreateException ce )
    {
      logger.error("[Exception] PurchaseOrderList.deleteElement( int indvID, String rowId[] ) ", ce);
      throw new CommunicationException(ce.getMessage());
    }//end of catch( CreateException ce )
    this.setDirtyFlag(true);

    return resultDeleteLog;
  }// end of deleteElement 
View Full Code Here

Examples of javax.naming.CommunicationException

          }
        } //end of if(rowId[i] != null && !rowId[i].equals(""))
      } //end of for (int i=0; i<rowId.length; i++)
    } catch(CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
    }
    if (!deleteLog.isEmpty())
    {
      ActionErrors allErrors = new ActionErrors();
      allErrors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.freeForm", "You do not have permission to delete one or more of the records you selected."));
View Full Code Here

Examples of javax.naming.CommunicationException

          }
        } //end of if(rowId[i] != null && !rowId[i].equals(""))
      } //end of for (int i=0; i<rowId.length; i++)
    } catch(CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
    }
    if (!deleteLog.isEmpty())
    {
      ActionErrors allErrors = new ActionErrors();
      allErrors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.freeForm", "You do not have permission to delete one or more of the records you selected."));
View Full Code Here

Examples of javax.naming.CommunicationException

      }//end of for (int i=0; i<recordID.length; i++)
    }//end of try block
    catch( CreateException e )
    {
      logger.error("[Exception] EventList.deleteElement( int indvID, String rowId[] ) ", e);
      throw new CommunicationException(e.getMessage());
    }//end of catch( CreateException e )
    this.setDirtyFlag(true);

    return resultDeleteLog;
  }// end of deleteElement( int indvID, String rowId[] ) throws CommunicationException,NamingException
View Full Code Here

Examples of javax.naming.CommunicationException

      }//end of for (int i=0; i<recordID.length; i++)
    }//end of try block
    catch( CreateException e )
    {
      logger.error("[Exception] TimeSheetList.deleteElement( int indvID, String rowId[] ) ", e);
      throw new CommunicationException(e.getMessage());
    }//end of catch( CreateException e )
    this.setDirtyFlag(true);

    return resultDeleteLog;
  }// end of deleteElement( int indvID, String rowId[] ) throws CommunicationException,NamingException
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.