Package org.dspace.services

Examples of org.dspace.services.RequestService.endRequest()


                        Method main = target.getMethod("main", argTypes);
                        Object output = main.invoke(null, arguments);

                        // ensure we close out the request (happy request)
                        requestService.endRequest(null);


                    }
                    catch (Exception e)
                    {
View Full Code Here


                    }
                    catch (Exception e)
                    {
                        // Failure occurred in the request so we destroy it
                        requestService.endRequest(e);

                      if (kernelImpl != null)
                        {
                            kernelImpl.destroy();
                            kernelImpl = null;
View Full Code Here

        }
        try {
            this.toExecute.run();
            if (newRequest) {
                // end the request here if it was a new one
                requestService.endRequest(null);
            }
        } catch (Exception e) {
            requestService.endRequest(e);
            throw new RequestInterceptor.RequestInterruptionException("Failure during execution of Runnable (" + toExecute + ") in request ("+requestId+"):" + e.getMessage(), e);
        }
View Full Code Here

            if (newRequest) {
                // end the request here if it was a new one
                requestService.endRequest(null);
            }
        } catch (Exception e) {
            requestService.endRequest(e);
            throw new RequestInterceptor.RequestInterruptionException("Failure during execution of Runnable (" + toExecute + ") in request ("+requestId+"):" + e.getMessage(), e);
        }
    }

    /* (non-Javadoc)
 
View Full Code Here

            try {
                // invoke the next filter
                chain.doFilter(request, response);

                // ensure we close out the request (happy request)
                requestService.endRequest(null);
            } catch (Exception e) {
                // failure occurred in the request so we destroy it
                requestService.endRequest(e);
                throw new ServletException(e); // rethrow the exception
            }
View Full Code Here

                // ensure we close out the request (happy request)
                requestService.endRequest(null);
            } catch (Exception e) {
                // failure occurred in the request so we destroy it
                requestService.endRequest(e);
                throw new ServletException(e); // rethrow the exception
            }
            /*
        } catch (Exception e) {
            String message = "Failure in the DSpaceWebappServletFilter: " + e.getMessage();
View Full Code Here

                Method main = target.getMethod("main", argTypes);
                main.invoke(null, arguments);

                // ensure we close out the request (happy request)
                requestService.endRequest(null);
            }
            catch (Exception e)
            {
                // Failure occurred in the request so we destroy it
                requestService.endRequest(e);
View Full Code Here

                requestService.endRequest(null);
            }
            catch (Exception e)
            {
                // Failure occurred in the request so we destroy it
                requestService.endRequest(e);

                // Exceptions from the script are reported as a 'cause'
                Throwable cause = e.getCause();
                System.err.println("Exception: " + cause.getMessage());
                cause.printStackTrace();
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.