Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWGenericException


        return _encodedString;
    }

    public void setValue (Object value, Object object)
    {
        throw new AWGenericException("*** Error: attempt to set value on constant binding with value: " + _constantObject);
    }
View Full Code Here


    public void init ()
    {
        super.init();
        AWBaseObject.LogHandling = this;
        if (SharedInstance != null) {
            throw new AWGenericException(getClass().getName() +
                    ": Attempt to create more than one AWConcreteServerApplication.");
        }
        SharedInstance = this;
        AllowsConcurrentRequestHandling = allowsConcurrentRequestHandling();
View Full Code Here

        AWRequestHandler requestHandler;
        String requestHandlerKey = request.requestHandlerKey();
        if (requestHandlerKey == null) {
            requestHandler = defaultRequestHandler();
            if (requestHandler == null) {
                throw new AWGenericException("*** DefaultRequestHandler was not initialized.");
            }
        }
        else {
            requestHandler = requestHandlerForKey(requestHandlerKey);
        }
View Full Code Here

        FastStringBuffer fastStringBuffer = new FastStringBuffer(256);
        if (_httpProtocol != null) {
            fastStringBuffer.append(_httpProtocol);
            fastStringBuffer.append("://");
            if (_hostName == null) {
                throw new AWGenericException("Invalid AWDirectActionUrl: missing hostName.");
            }
            fastStringBuffer.append(_hostName);
            if (_portNumber != null) {
                fastStringBuffer.append(":");
                fastStringBuffer.append(_portNumber);
View Full Code Here

                typesList =
                    StringUtil.stringToStringsListUsingBreakChars((String)types,
                                                                  TypesDelimiter);
            }
            else {
                throw new AWGenericException("Types binding must be either a List or a " +
                                             "comma delimited String.");
            }

            cssClass = StringUtil.strcat(cssClass == null ? "" : cssClass, prefix,
                                         StringUtil.fastJoin(typesList, prefix));
View Full Code Here

        if (application == null) {
            try {
                application = (AWConcreteApplication)applicationClass.newInstance();
            }
            catch (InstantiationException instantiationException) {
                throw new AWGenericException("Unable to create instance of class: \"" +
                                             applicationClass.getName() + "\"");
            }
            catch (IllegalAccessException illegalAccessException) {
                throw new AWGenericException(illegalAccessException);
            }
            application.init();
        }

        if (!application._didCompleteInit) {
View Full Code Here

    public AWComponent createPageWithName (String componentName,
                                           AWRequestContext requestContext)
    {
        AWComponentDefinition componentDefinition = componentDefinitionForName(componentName);
        if (componentDefinition == null) {
            throw new AWGenericException("Unable to locate page with name \"" + componentName + "\"");
        }
        AWComponentReference sharedComponentReference = componentDefinition.sharedComponentReference();
        AWComponent newComponent = componentDefinition.createComponent(sharedComponentReference, null, requestContext);
        AWPage page = newComponent.page();
        newComponent.ensureAwake(page);
View Full Code Here

        Class sessionClass = sessionClass();
        try {
            newSession = (AWSession)sessionClass.newInstance();
        }
        catch (IllegalAccessException illegalAccessException) {
            throw new AWGenericException(illegalAccessException);
        }
        catch (InstantiationException exception) {
            String message = Fmt.S("Error: cannot create instance of httpSession class \"%s\"", sessionClass.getName());
            throw new AWGenericException(message, exception);
        }
        newSession.init(this, requestContext);

        // default the timezone
        if (newSession.clientTimeZone() == null) newSession.setClientTimeZone(TimeZone.getDefault());
View Full Code Here

        AWRequestContext requestContext = null;
        try {
            requestContext = (AWRequestContext)requestContextClass().newInstance();
        }
        catch (IllegalAccessException exception) {
            throw new AWGenericException(exception);
        }
        catch (InstantiationException exception) {
            throw new AWGenericException("Error: cannot create instance of AWRequestContext class: " + RequestContextClass + " exception: ", exception);
        }
        requestContext.init(this, request);
        if (_Staticizer != null) _Staticizer.didCreateRequestContext(requestContext);
        return requestContext;
    }
View Full Code Here

        AWSessionValidator sessionValidator = getSessionValidator();
        if (sessionValidator != null) {
            response = sessionValidator.handleSessionValidationError(requestContext, exception);
        }
        else {
            throw new AWGenericException("AWSessionValidator must be registered " +
                                         "to handle session validation error.");
        }
        return response;
    }
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.