Package Framework

Examples of Framework.DistributedAccessException


        if (((Object) session) instanceof HTTPSession) {
            this.session = (HTTPSession) session;
            session.setbaseMessage(this);
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData className = new TextData();

            if (session != null) {
                className.setValue(FrameworkUtils.getClassName(((Object) session).getClass()));
            }
            String message = Application.getMsgCatalog().getString(
                  Constants.HTTP_SET,
                  Constants.HTTP_MSG_NOT_HTTP_SESSION);
            ex.setWithParams( Framework.Constants.SP_ER_USER, message, className);
            throw ex;
        }
    }
View Full Code Here


        if (this.majorVersion == 1
                && (this.minorVersion == 1 || this.minorVersion == 0)) {
            this.minorVersion = minor;
            this.majorVersion = major;
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData txtVersion = new TextData(this.majorVersion,
                    TextData.qq_Resolver.cINTEGERVALUE);

            txtVersion.concat(".");
            txtVersion.concat(this.minorVersion);

            String message = Application.getMsgCatalog().getString(
              Constants.HTTP_SET,
              Constants.HTTP_MSG_VERSION_NOT_SUPPORTED);
            ex.setWithParams( Framework.Constants.SP_ER_USER, message, txtVersion);
            throw ex;
        }
    }
View Full Code Here

                t.setDaemon(true);
                t.start();

            }
        } catch (SocketException e) {
            DistributedAccessException errorVar = new DistributedAccessException("Failed to avertise using " + pParam, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        } catch (IOException e) {
            DistributedAccessException errorVar = new DistributedAccessException("Failed to avertise using " + pParam, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }

    }
View Full Code Here

                    break;
                }
            }

            if (error == true) {
                DistributedAccessException ex = new DistributedAccessException();
                txt = new TextData(FrameworkUtils.getClassName(type,false));

                ex.setWithParams(Framework.Constants.SP_ER_USER, new TextData(Application.getMsgCatalog().getString(Constants.HTTP_SET, Constants.HTTP_MSG_FACTORY_NOT_HTTP_MESSAGE)), txt, txt2, (DataValue)null, (DataValue)null, (DataValue)null, (DataValue)null, (DataValue)null, (DataValue)null, (DataValue)null);
                throw ex;
            }
        }

        if (typeInstance instanceof HTTPBaseRequest) {
View Full Code Here

            }
        }

        if (invalidType) {
            // Lost the session - throw
            DistributedAccessException ex = new DistributedAccessException();
            TextData txt1 = new TextData();
            TextData txt2 = new TextData();

            txt1.setValue(this.sessionToString(this.applicationSession));
            txt2.setValue(this.sessionToString(type));

            if (LogMgr.getInstance().test(
                    Framework.Constants.SP_MT_DEBUG,
                    Constants.HTTP_SVC,
                    Constants.HTTP_TRACE, 5)) {
                Logger
                        .getLogger("task.part.logmgr")
                        .info(
                                "HTTPSession.setApplicationSession - current sesion type is ");
                Logger.getLogger("task.part.logmgr").info(
                        txt1.toString());
                Logger.getLogger("task.part.logmgr").info(
                        "therefore it cannot be changed to ");
                Logger.getLogger("task.part.logmgr").info(
                        txt2.toString());
            }

            ex
                    .setWithParams(
                            Framework.Constants.SP_ER_USER,
                            new TextData(
                                    Application
                                            .getMsgCatalog()
View Full Code Here

        if (message == null) {
            this.baseMessage = null;
        } else if (((Object) message) instanceof HTTPBaseMessage) {
            this.baseMessage = (HTTPBaseMessage) message;
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData txt = new TextData();

            if (message != null) {
                txt.setValue(((Object) message).getClass().getName());
            }
            ex
                    .setWithParams(
                            Framework.Constants.SP_ER_USER,
                            new TextData(
                                    Application
                                            .getMsgCatalog()
View Full Code Here

        if (type == Constants.HTTP_TCPSESSION_MESSAGE
                || type == Constants.HTTP_TCPSESSION_PERSISTENT) {
            this.networkSession = type;
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData txt = new TextData();

            txt.setValue(this.sessionToString(type));
            ex
                    .setWithParams(
                            Framework.Constants.SP_ER_USER,
                            new TextData(
                                    Application
                                            .getMsgCatalog()
View Full Code Here

            }
        }

        if (invalidType) {
            // Lost the session - throw
            DistributedAccessException ex = new DistributedAccessException();
            TextData txt1 = new TextData();
            TextData txt2 = new TextData();

            txt1.setValue(this.sessionToString(this.applicationSession));
            txt2.setValue(this.sessionToString(type));

            if (LogMgr.getInstance().test(
                    Framework.Constants.SP_MT_DEBUG,
                    Constants.HTTP_SVC,
                    Constants.HTTP_TRACE, 5)) {
                Logger
                        .getLogger("task.part.logmgr")
                        .info(
                                "HTTPSession.setApplicationSession - current sesion type is ");
                Logger.getLogger("task.part.logmgr").info(
                        txt1.toString());
                Logger.getLogger("task.part.logmgr").info(
                        "therefore it cannot be changed to ");
                Logger.getLogger("task.part.logmgr").info(
                        txt2.toString());
            }

            ex
                    .setWithParams(
                            Framework.Constants.SP_ER_USER,
                            new TextData(
                                    Application
                                            .getMsgCatalog()
View Full Code Here

        if (message == null) {
            this.baseMessage = null;
        } else if (((Object) message) instanceof HTTPBaseMessage) {
            this.baseMessage = (HTTPBaseMessage) message;
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData txt = new TextData();

            if (message != null) {
                txt.setValue(((Object) message).getClass().getName());
            }
            ex
                    .setWithParams(
                            Framework.Constants.SP_ER_USER,
                            new TextData(
                                    Application
                                            .getMsgCatalog()
View Full Code Here

        if (type == Constants.HTTP_TCPSESSION_MESSAGE
                || type == Constants.HTTP_TCPSESSION_PERSISTENT) {
            this.networkSession = type;
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData txt = new TextData();

            txt.setValue(this.sessionToString(type));
            ex
                    .setWithParams(
                            Framework.Constants.SP_ER_USER,
                            new TextData(
                                    Application
                                            .getMsgCatalog()
View Full Code Here

TOP

Related Classes of Framework.DistributedAccessException

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.