Examples of SessionFailedException


Examples of org.apache.beehive.netui.tools.testrecorder.server.state.SessionFailedException

            }
            respData.setStatusCode( wrapper.getStatusCode() );
            data = wrapper.getOutputString();
        }
        catch ( Exception e ) {
            throw new SessionFailedException( "ERROR: failed to get output stream from wrapper" );
        }
        if ( log.isDebugEnabled() ) {
//            log.debug( "data( " + data + " )" );
        }
        // data may be null
View Full Code Here

Examples of org.apache.beehive.netui.tools.testrecorder.server.state.SessionFailedException

            if ( log.isDebugEnabled() ) {
                log.debug( "instance of ResponseWrapper" );
            }
            if ( isNewRequest() ) {
                // sanity check, new requests should not have an existing response wrapper
                throw new SessionFailedException(
                        "test recorder failure, requests deemed 'new' should not have previous response wrapper" );
            }
            setNewResponse( response );
        }
        else {
            if ( log.isDebugEnabled() ) {
                log.debug( "NOT instance of ResponseWrapper" );
            }
            if ( !isNewRequest() ) {
                // sanity check, only new requests should need to have the response wrapped
                throw new SessionFailedException( "test recorder failure, only new requests should be wrapped" );
            }
            setNewResponse( new ResponseWrapper( (HttpServletResponse) response ) );
        }
    }
View Full Code Here

Examples of org.apache.beehive.netui.tools.testrecorder.server.state.SessionFailedException

            if ( data.isNewRequest() ) {
                PlaybackSession session = getState().getPlaybackSession( data.getTestId() );
                if ( session == null ) {
                    String msg = "ERROR: no playback session found for test id( " + data.getTestId() + " )";
                    log.error( msg );
                    throw new SessionFailedException( msg );
                }
                data.setPlaybackSession( session );
                if ( data.isTestException() ) {
                    if ( log.isDebugEnabled() ) {
                        log.debug( "skipping playback start, isTestException(" + data.isTestException() + ")" );
                    }
                }
                else {
                    boolean started = session.startTest();
                    // may throw SessionFailedException
                    if ( !started ) {
                        throw new SessionFailedException( "Playback session failed to start, session( " +
                                session.getSessionName() + " )" );
                    }
                }
            }
            else {
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.