Package java.lang

Examples of java.lang.IllegalStateException


    }

    public ServletOutputStream getOutputStream()
  throws java.io.IOException
    {
  throw new IllegalStateException();
    }
View Full Code Here


            //GJCINT
            resource.setConnectionErrorOccurred();
        }
       
        public void localTransactionStarted(ConnectionEvent evt) {
            throw new IllegalStateException("local transaction not supported");
        }
View Full Code Here

        public void localTransactionStarted(ConnectionEvent evt) {
            throw new IllegalStateException("local transaction not supported");
        }
       
        public void localTransactionCommitted(ConnectionEvent evt) {
            throw new IllegalStateException("local transaction not supported");
        }
View Full Code Here

        public void localTransactionCommitted(ConnectionEvent evt) {
            throw new IllegalStateException("local transaction not supported");
        }
       
        public void localTransactionRolledback(ConnectionEvent evt) {
            throw new IllegalStateException("local transaction not supported");
        }
View Full Code Here

    public PrintWriter getWriter() throws IOException {
  return printWriter;
    }

    public ServletOutputStream getOutputStream() throws IOException {
  throw new IllegalStateException();
    }
View Full Code Here

   *          if the route is empty
   */
  @Nonnull
  public Node getLastNode() throws IllegalStateException {
    if ( nodes.isEmpty() ) {
      throw new IllegalStateException( "Path has no nodes" );
    }
    return nodes.get( nodes.size() - 1 );
  }
View Full Code Here

    public PrintWriter getWriter() throws IOException {
  return printWriter;
    }

    public ServletOutputStream getOutputStream() throws IOException {
  throw new IllegalStateException();
    }
View Full Code Here

    mTestName = (String) m.get(Constants.TEST_NAME);

    if (mTestGroup == null || mTestName == null)
    {
      throw new IllegalStateException("Couldn't locate the TestGroup or TestName in the request.  Did you use the GenericFacesTestSuitePortlet?");
    }
   
    // Now lookup the object that implements the test.  There should be a managedBean with the same name as
    // the testGroup.
    mTest = context.getELContext()
        .getELResolver().getValue(context.getELContext(), null, mTestGroup);
   
    if (mTest == null)
      {
        throw new IllegalStateException("Couldn't locate managed bean containing the test: " + mTestGroup);
     
   
    // The test is annotated by a method annotation with a parameter value = mTestName -- so
    // look it up.
    mTestMethod = getAnnotatedTestMethod(mTestName, mTest);
   

   
    if (mTestMethod == null)
      throw new IllegalStateException("Couldn't locate (annotation for) test: " + mTestName + "Test in the test object.");
  }
View Full Code Here

            copyDataSourceFile(outFile, "connectionfactory-activemq.xml", properties);
        } else {
            // webspheremq
            String[] splitted = url.split("/");
            if (splitted.length != 4) {
                throw new IllegalStateException("WebsphereMQ URI should be in the following format: host/port/queuemanager/channel");
            }
            HashMap<String, String> properties = new HashMap<String, String>();
            properties.put("${name}", name);
            properties.put("${host}", splitted[0]);
            properties.put("${port}", splitted[1]);
View Full Code Here

    public void delete(String name) throws Exception {
        File karafBase = new File(System.getProperty("karaf.base"));
        File deployFolder = new File(karafBase, "deploy");
        File connectionFactoryFile = new File(deployFolder, "connectionfactory-" + name + ".xml");
        if (!connectionFactoryFile.exists()) {
            throw new IllegalStateException("The JMS connection factory file " + connectionFactoryFile.getPath() + " doesn't exist");
        }
        connectionFactoryFile.delete();
    }
View Full Code Here

TOP

Related Classes of java.lang.IllegalStateException

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.