Examples of SessionException


Examples of com.asakusafw.windgate.core.session.SessionException

            State state = getSessionState(id, path, file);
            switch (state) {
            case INIT:
                if (create == false) {
                    delete = true;
                    throw new SessionException(id, Reason.NOT_EXIST);
                } else {
                    createSession(path, file);
                }
                break;
            case CREATED:
                if (create) {
                    throw new SessionException(id, Reason.ALREADY_EXIST);
                }
                break;
            case INVALID:
                if (force == false) {
                    WGLOG.error("W01001",
                            id,
                            path);
                    throw new SessionException(id, Reason.BROKEN);
                }
                break;
            default:
                throw new AssertionError(MessageFormat.format(
                        "Invalid state: {2} (id={0}, path={1})",
View Full Code Here

Examples of com.asakusafw.windgate.core.session.SessionException

            // fall through
            LOG.debug(MessageFormat.format(
                    "Failed to acquire lock: {0}",
                    id), e);
        }
        throw new SessionException(id, Reason.ACQUIRED);
    }
View Full Code Here

Examples of com.dbxml.labrador.sessions.SessionException

            }
         }
         dirty = false;
      }
      catch ( Exception e ) {
         throw new SessionException(e.getMessage());
      }
   }
View Full Code Here

Examples of com.im.imjutil.exception.SessionException

      add(session);
     
      return session;
     
    } catch (Exception e) {
      throw new SessionException("Erro ao criar sessao", e);
    }
  }
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.exceptions.SessionException

    // get a copy of the session so we can touch projects.
    Session current = this.getSession(sessionId);
    if(current == null)
    {
      logger.log(Level.WARNING, "Project Session switch attempted with invalid SSID");
      throw new SessionException("Session matching the givenId does not exist");
    }
   
    User u = current.getUser();
   
    // find the project
    ManagerLayer manager = ManagerLayer.getInstance();
    ProjectManager projects = manager.getProjects();
    Project p = null;
   
    try
    {
      p = projects.getEntityByName(current, projectName)[0];
   
      if(p == null)
      {
        throw new NotFoundException("Could not find project with given name to switch to.");
      }
    }
    catch(NotFoundException e)
    {
      logger.log(Level.WARNING, "Project Session switch attempted with nonexistent project");
      throw new SessionException("Session-project switch failed because requested project does not exist.");
    }
   
    this.removeSession(sessionId);
   
    logger.log(Level.INFO, "User Project Session Switch successful!");
View Full Code Here

Examples of net.sf.cindy.session.SessionException

                        encodedPacket.getContent().release();
                }
                engine.closeInbound();
            }
        } catch (SSLException ssle) {
            throw new SessionException(ssle);
        } finally {
            handshakeCompleted = false;
            engine = null;
            QueuedPacket packet = null;
            while ((packet = (QueuedPacket) tempQueue.poll()) != null) {
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.jms.SessionException

                        final ExceptionListener exceptionListener = _connection.getExceptionListener();
                        if(exceptionListener != null)
                        {
                            if(error != null)
                            {
                                SessionException se = new SessionException(
                                        error.getDescription(),
                                        error.getCondition().getValue().toString());

                                exceptionListener.onException(se);
                            }
                            else
                            {
                                exceptionListener.onException(new SessionException("Session remotely closed"));
                            }
                        }
                    }
                    catch (JMSException e)
                    {
View Full Code Here

Examples of org.apache.qpid.transport.SessionException

    private int getErrorCode(TransportException e)
    {
        int code = AMQConstant.INTERNAL_ERROR.getCode();
        if (e instanceof SessionException)
        {
            SessionException se = (SessionException) e;
            if(se.getException() != null && se.getException().getErrorCode() != null)
            {
                code = se.getException().getErrorCode().getValue();
            }
        }
        return code;
    }
View Full Code Here

Examples of org.apache.qpid.transport.SessionException

    private int getErrorCode(TransportException e)
    {
        int code = AMQConstant.INTERNAL_ERROR.getCode();
        if (e instanceof SessionException)
        {
            SessionException se = (SessionException) e;
            if(se.getException() != null && se.getException().getErrorCode() != null)
            {
                code = se.getException().getErrorCode().getValue();
            }
        }
        return code;
    }
View Full Code Here

Examples of org.apache.qpid.transport.SessionException

    private int getErrorCode(TransportException e)
    {
        int code = AMQConstant.INTERNAL_ERROR.getCode();
        if (e instanceof SessionException)
        {
            SessionException se = (SessionException) e;
            if(se.getException() != null && se.getException().getErrorCode() != null)
            {
                code = se.getException().getErrorCode().getValue();
            }
        }
        return code;
    }
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.