Examples of RequestProcessingException


Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

                    byte[] hash = HashUtil.hexStringToByteArray(filePath);
                    localPath = localFileRepository.getDeploymentRoot(hash);
                    break;
                }
                default: {
                    throw new RequestProcessingException(String.format("Invalid root id [%d]", rootId));
                }
            }
        }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

                        i = attachmentInput.read();
                    }
                }
                bytes = bout.toByteArray();
            } catch (IOException e) {
                throw new RequestProcessingException(e);
            } finally {
                //Think the caller is responsible for closing these
                //IoUtils.safeClose(attachmentInput);
            }
        }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

                    byte[] hash = HashUtil.hexStringToByteArray(filePath);
                    localPath = localFileRepository.getDeploymentRoot(hash);
                    break;
                }
                default: {
                    throw new RequestProcessingException(String.format("Invalid root id [%d]", rootId));
                }
            }
        }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

                        i = attachmentInput.read();
                    }
                }
                bytes = bout.toByteArray();
            } catch (IOException e) {
                throw new RequestProcessingException(e);
            } finally {
                //Think the caller is responsible for closing these
                //IoUtils.safeClose(attachmentInput);
            }
        }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

            try {
                executeRequestContext.awaitPreparedOrFailed();
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
                executeRequestContext.setError(e.getMessage());
                throw new RequestProcessingException("Thread was interrupted waiting for the operation to prepare/fail");
            }
        }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

        @Override
        protected void processRequest() throws RequestProcessingException {
            ExecuteRequestContext executeRequestContext = activeTransactions.get(getHeader().getBatchId());
            if (executeRequestContext == null) {
                throw new RequestProcessingException("No active tx found for id " + getHeader().getBatchId());
            }
            executeRequestContext.setTxCompleted(commitOrRollback == ModelControllerProtocol.PARAM_COMMIT);
        }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

        }

        protected void processRequest() throws RequestProcessingException {
            ExecuteRequestContext requestContext = activeRequests.get(batchId);
            if (requestContext == null) {
                throw new RequestProcessingException("No active request found for handling report " + batchId);
            }
            requestContext.getMessageHandler().handleReport(severity, message);
        }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

                        bout.write(i);
                        i = attachmentInput.read();
                    }
                }
            } catch (IOException e) {
                throw new RequestProcessingException(e);
            } finally {
                //Think the caller is responsible for closing these
                //IoUtils.safeClose(attachmentInput);
            }
            bytes = bout.toByteArray();
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

        }

        protected void processRequest() throws RequestProcessingException {
            requestContext = activeRequests.get(batchId);
            if (requestContext == null) {
                throw new RequestProcessingException("No active request found for proxy operation control " + batchId);
            }
            handle(batchId, requestContext.getControl(), response);
        }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.RequestProcessingException

                        throw (RequestProcessingException)cause;
                    }
                    if (cause instanceof RuntimeException) {
                        throw (RuntimeException)cause;
                    }
                    throw new RequestProcessingException(cause);
                } catch (InterruptedException e) {
                    Thread t = asynchRequests.get(batchId);
                    if (t != null) {
                        t.interrupt();
                    }
                    Thread.currentThread().interrupt();
                    throw new RequestProcessingException("Thread was interrupted waiting for a response for asynch operation");
                }
            }
        }
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.