Examples of IllegalStateException


Examples of javax.resource.spi.IllegalStateException

        connectionSet.add(cciCon);
    }

    private void checkIfDestroyed() throws ResourceException {
        if (destroyed) {
            throw new IllegalStateException("Managed connection is closed");
        }
    }
View Full Code Here

Examples of javax.resource.spi.IllegalStateException

        // TODO
        // cnx.sessions.add((org.objectweb.joram.client.jms.Session) session);
      } else if (! (session instanceof javax.jms.XASession)) {
          if (out != null)
              out.print("Managed connection not involved in a local transaction.");
        throw new IllegalStateException("Managed connection not involved "
                                        + "in a local transaction.");
      }


      if (AdapterTracing.dbgAdapter.isLoggable(BasicLevel.DEBUG))
View Full Code Here

Examples of javax.resource.spi.IllegalStateException

      if (session == null)
        session = cnx.createSession(true, 0);
      else if (session instanceof javax.jms.XASession) {
          if (out != null)
              out.print("Managed connection already involved in a distributed transaction.");
        throw new IllegalStateException("Managed connection already involved "
                                        + "in a distributed transaction.");
      }

      return this;
    }
View Full Code Here

Examples of npanday.vendor.IllegalStateException

    {
        VendorInfoState startState = VendorInfoState.START.getState( vendorInfo );
        VendorInfoTransitionRule rule = transitionRules.get( startState );
        if ( rule == null )
        {
            throw new IllegalStateException(
                "NPANDAY-102-002: Could not find rule for state: State = " + startState.name() );
        }
        for ( VendorInfoState state = VendorInfoState.START; !state.equals( VendorInfoState.EXIT ); )
        {
            logger.debug( "NPANDAY-102-003: Apply rule:" + rule );
            state = rule.process( vendorInfo );
            logger.debug( "NPANDAY-102-004: Vendor info after rule:" + vendorInfo );
            rule = transitionRules.get( state );
            if ( rule == null && !state.equals( VendorInfoState.EXIT ) )
            {
                throw new IllegalStateException(
                    "NPANDAY-102-005: Could not find rule for state: State = " + state.name() );
            }
        }
    }
View Full Code Here

Examples of org.apache.hadoop.mapred.JobTracker.IllegalStateException

                                         + totalCapacity);
    }
   
    // Sanity check: there should be at least one queue.
    if (0 == mapScheduler.getNumQueues()) {
      throw new IllegalStateException("System has no queue configured");
    }
   
    // check if there's a queue with the default name. If not, we quit.
    if (!mapScheduler.isQueuePresent(DEFAULT_QUEUE_NAME)) {
      throw new IllegalStateException("System has no default queue configured");
    }
   
    // listen to job changes
    taskTrackerManager.addJobInProgressListener(jobQueuesManager);
View Full Code Here

Examples of org.exolab.jms.net.connector.IllegalStateException

     * @throws ResourceException     for any error
     */
    public void setInvocationHandler(InvocationHandler handler)
            throws ResourceException {
        if (_invoker != null) {
            throw new IllegalStateException(
                    "An invocation handler is already registered");
        }
        _invoker = handler;
        try {
            _endpoint = createEndpoint();
View Full Code Here

Examples of org.jboss.weld.exceptions.IllegalStateException

    protected static Type getFacadeType(InjectionPoint injectionPoint) {
        Type genericType = injectionPoint.getType();
        if (genericType instanceof ParameterizedType) {
            return ((ParameterizedType) genericType).getActualTypeArguments()[0];
        } else {
            throw new IllegalStateException(BeanLogger.LOG.typeParameterMustBeConcrete(injectionPoint));
        }
    }
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.