Package betsy.bpel.virtual.common.exceptions

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


            Object o = ois.readObject();
            log.debug("Message Received: " + o);
            return o;
        } catch (ClassNotFoundException exception) {
            // send invalid request message
            throw new CommunicationException("class not found", exception);
        }
    }
View Full Code Here

            deployer.setProcessName(request.getProcessName());
            deployer.setPackageFilePath(pathToPackageFile);
            deployer.setCli(cli);
            deployer.deploy();
        } else {
            throw new CommunicationException("invalid engine given");
        }

        log.info("Deployment successful -> sending response");
        return new DeployResponse();
    }
View Full Code Here

                String filename = file.getName();
                try {
                    List<String> lines = Files.readAllLines(file.toPath(), StandardCharsets.UTF_8);
                    list.add(new LogFile(filename, lines));
                } catch (IOException e) {
                    throw new CommunicationException("Log file " + filename + " could not be read", e);
                }
            }
        }

        if (list.isEmpty()) {
View Full Code Here

                }
            }
            LOGGER.info("Received Message: " + object);
            return object;
        } catch (ClassNotFoundException e) {
            throw new CommunicationException("Invalid response received", e);
        } catch (IOException e) {
            throw new ConnectionException("Could not receive a message", e);
        }
    }
View Full Code Here

        } else if (o instanceof CommunicationException) {
            throw (CommunicationException) o;
        } else if (o instanceof Exception) {
            throw (Exception) o;
        } else {
            throw new CommunicationException("Invalid response received: " + o);
        }
    }
View Full Code Here

        } else if (o instanceof CommunicationException) {
            throw (CommunicationException) o;
        } else if (o instanceof Exception) {
            throw (Exception) o;
        } else {
            throw new CommunicationException("Invalid response received: " + o);
        }
    }
View Full Code Here

TOP

Related Classes of betsy.bpel.virtual.common.exceptions.CommunicationException

Copyright © 2018 www.massapicom. 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.