Examples of SessionException


Examples of org.beangle.security.core.session.SessionException

    String principal = auth.getName();
    // 是否为重复注册
    if (null != existed && ObjectUtils.equals(existed.getUsername(), principal)) return;
    // 争取名额
    boolean success = controller.onRegister(auth, sessionId, this);
    if (!success) throw new SessionException("security.OvermaxSession");
    // 注销同会话的其它账户
    if (null != existed) {
      remove(sessionId, " expired with replacement.");
    }
    // 新生
View Full Code Here

Examples of org.eclipse.jetty.spdy.SessionException

    }

    private void checkSlotValid()
    {
        if (slot <= 0)
            throw new SessionException(SessionStatus.PROTOCOL_ERROR,
                    "Invalid slot " + slot + " for " + ControlFrameType.CREDENTIAL + " frame");
    }
View Full Code Here

Examples of org.eurekastreams.commons.exceptions.SessionException

        {
            // get real session
            HttpSession session = request.getSession();
            if (session == null)
            {
                return new SessionException("Request has no session.");
            }
            String realSessionId = session.getId();
            if (StringUtils.isBlank(realSessionId))
            {
                return new SessionException("Request session has no valid ID.");
            }

            // compare with claimed session
            if (!realSessionId.equals(claimedSessionId))
            {
                log.error("Provided session ID '{}' does not match request session ID '{}'.", claimedSessionId,
                        realSessionId);
                return new SessionException("Provided session ID does not match request session ID.");
            }
        }

        // get the principal (throws if none available)
        Principal principal = getPrincipal(request);
View Full Code Here

Examples of org.hibernate.SessionException

  //Copied from org.hibernate.internal.AbstractSessionImpl.errorIfClosed()
  //to mimic same behaviour
  protected void errorIfClosed() {
    if ( delegate.isClosed() ) {
      throw new SessionException( "Session is closed!" );
    }
  }
View Full Code Here

Examples of org.hibernate.SessionException

  //Copied from org.hibernate.internal.AbstractSessionImpl.errorIfClosed()
  //to mimic same behaviour
  protected void errorIfClosed() {
    if ( delegate.isClosed() ) {
      throw new SessionException( "Session is closed!" );
    }
  }
View Full Code Here

Examples of org.hibernate.SessionException

    return connectionManager.borrowConnection();
  }
 
  public Connection connection() throws HibernateException {
    if ( owner.isClosed() ) {
      throw new SessionException( "Session is closed" );
    }

    return connectionManager.getConnection();
  }
View Full Code Here

Examples of org.hibernate.SessionException

    UnresolvableObjectException.throwIfNull( result, id, persister.getEntityName() );
  }

  public Object immediateLoad(String entityName, Serializable id)
      throws HibernateException {
    throw new SessionException("proxies cannot be fetched by a stateless session");
  }
View Full Code Here

Examples of org.hibernate.SessionException

  }

  public void initializeCollection(
      PersistentCollection collection,
          boolean writing) throws HibernateException {
    throw new SessionException("collections cannot be fetched by a stateless session");
  }
View Full Code Here

Examples of org.hibernate.SessionException

    return false;
  }

  public void managedClose() {
    if ( isClosed() ) {
      throw new SessionException( "Session was already closed!" );
    }
    jdbcContext.getConnectionManager().close();
    setClosed();
  }
View Full Code Here

Examples of org.hibernate.SessionException

  }

  public Connection close() throws HibernateException {
    log.trace( "closing session" );
    if ( isClosed() ) {
      throw new SessionException( "Session was already closed" );
    }
   

    if ( factory.getStatistics().isStatisticsEnabled() ) {
      factory.getStatisticsImplementor().closeSession();
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.