Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWGenericException


                                + "This usually occurs when an AWIf or AWFor was altered"
                                + " during applyValues or invokeAction.");
                    }
                }
                else {
                    throw new AWGenericException(numberFormatException);
                }
            }
        }
        else {
            setSelection(null);
View Full Code Here


            String scriptFileName = (String)valueForBinding(binding);
            scriptString = (String)ScriptFileHashtable.get(scriptFileName);
            if (scriptString == null) {
                AWResource resource = resourceManager().resourceNamed(scriptFileName);
                if (resource == null) {
                    throw new AWGenericException("Unable to locate script file named: " + scriptFileName);
                }
                InputStream scriptInputStream = resource.inputStream();
                scriptString = AWUtil.stringWithContentsOfInputStream(scriptInputStream);
                AWUtil.close(scriptInputStream);
                if (!AWConcreteApplication.IsRapidTurnaroundEnabled) {
View Full Code Here

        }
        else {
            actionResults = AWGenericActionTag.evaluateActionBindings(this, pageNameBinding, actionBinding);
        }
        if (actionResults == null) {
            throw new AWGenericException("Frame page evaluated to null -- results in infinte recursion if this exception weren't thrown.");
        }

        if (!booleanValueForBinding(DisableFramePageCache)) {
            requestContext().setFrameName(frameName());
        }
View Full Code Here

            session.httpSession().setAttribute(fileUploadName(),maxLength);
        }
        if (parent().hasBinding(BindingNames.encrypt)) {
            boolean encrypt = booleanValueForBinding(BindingNames.encrypt);
            if (encrypt && parent().hasBinding(BindingNames.file)) {
                throw new AWGenericException("File binding not supported when encrypt is requested. Use inputStream binding instead.");
            }
            session.httpSession().setAttribute(BindingNames.encrypt +"."+fileUploadName(),
                                               encrypt);
        }
        // stash the user's preferred locale for use to construct localized messages
View Full Code Here

            // Only one binding for file data is honored. Precedence order: file, input stream, byte array.
            if (parent().hasBinding(BindingNames.file)) {
                File file = fileData.file();
                if ((file == null) && (fileData.data() != null)) {
                    throw new AWGenericException("File binding not supported for in memory file uploads");
                }
                setValueForBinding(file, BindingNames.file);
            }
            else {
                if (parent().hasBinding(BindingNames.inputStream)) {
View Full Code Here

                AWUtil.writeToFile(bytes, uploadFile);
                return new AWFileData(fileName, uploadFile, contentType, false, bytes.length, false);
            }
            return new AWFileData(fileName, bytes);
        } catch (IOException e) {
            throw new AWGenericException(Fmt.S("Exception in processing playback simulated file upload on URL: %s", urlString), e);
        }
    }
View Full Code Here

        super.init(characterEncoding);
        try {
            _outputStream = servletResponse.getOutputStream();
        }
        catch (IOException ioexception) {
            throw new AWGenericException(ioexception);
        }
    }
View Full Code Here

        throwUnsuported();
    }

    private void throwUnsuported ()
    {
        throw new AWGenericException("Unsupported");
    }
View Full Code Here

            // set _servletResponse to null to avoid anything being done with this after this point.
            _servletResponse = null;
            _outputStream.write(bytes, 0, bytes.length);
        }
        catch (IOException ioexception) {
            throw new AWGenericException(ioexception);
        }
    }
View Full Code Here

    {
        try {
            _outputStream.write(contentChar);
        }
        catch (IOException ioexception) {
            throw new AWGenericException(ioexception);
        }
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.util.AWGenericException

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.