Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSForwardException


      Cipher cipher = Cipher.getInstance("Blowfish/ECB/NoPadding");
      cipher.init(mode, secretBlowfishKey());
      return cipher;
    }
    catch (java.security.NoSuchAlgorithmException ex) {
      throw new NSForwardException(ex, "Couldn't find the Blowfish algorithm; perhaps you do not have the SunJCE security provider installed properly?");
    }
    catch (Exception e) {
      throw new NSForwardException(e);
    }
  }
View Full Code Here


        // we filled a block
        try {
          clearText = decryptCipher().doFinal(encryptedBytes);
        }
        catch (Exception e) {
          throw new NSForwardException(e);
        }
        for (int k = 0; k < _blockSize; k++) {
          if (clearText[k] != 0) {
            result.write(clearText[k]);
          }
        }
        i = 0;
      }
    }

    if (i != 0) {
      for (int j = i; j < _blockSize; j++) {
        encryptedBytes[j] = 0;
      }
      try {
        clearText = decryptCipher().doFinal(encryptedBytes);
      }
      catch (Exception e) {
        throw new NSForwardException(e);
      }
      for (int k = 0; k < _blockSize; k++) {
        result.write(clearText[k]);
      }
    }
View Full Code Here

      try {
        encryptedBytes = encryptCipher().doFinal(bytesToEncrypt);
      }
      catch (Exception e) {
        throw new NSForwardException(e);
      }
      for (k = 0; k < _blockSize; k++) {
        result.append(ERXStringUtilities.HEX_CHARS[(encryptedBytes[k] >>> 4) & 0xf]);
        result.append(ERXStringUtilities.HEX_CHARS[encryptedBytes[k] & 0xf]);
      }
View Full Code Here

  public EOSynchronizationFactory createSynchronizationFactory() {
    try {
      return new DB2SynchronizationFactory(adaptor());
    }
    catch (Exception e) {
      throw new NSForwardException(e, "Couldn't create synchronization factory");
    }
  }
View Full Code Here

  public EOSynchronizationFactory createSynchronizationFactory() {
      try {
        return new DB2ForISeriesSynchronizationFactory(adaptor());
      }
      catch (Exception e) {
        throw new NSForwardException(e, "Couldn't create synchronization factory");
      }
    }
View Full Code Here

    try {
      value = WOOgnl.factory().getValue(keyPath(), component);
    }
    catch (Exception e) {
      if (shouldThrowException()) {
        throw new NSForwardException(e);
      }
      log.error("Exception invoking valueInComponent on WOOgnlAssociation with keyPath '" + keyPath() + "'", e);
    }
    if (event != null) {
      EOEventCenter.markEndOfEvent(event);
View Full Code Here

      // implementation is enough...
      WOOgnl.factory().setValue(keyPath(), component, object);
    }
    catch (Exception e) {
      if (shouldThrowException()) {
        throw new NSForwardException(e);
      }
      log.error("Exception invoking setValue on WOOgnlAssociation: '" + keyPath() + "'.", e);
    }
    if (event != null) {
      EOEventCenter.markEndOfEvent(event);
View Full Code Here

                  if (isCreationError(ex)) {
                       try {
                         con.rollback();
                         createTable(con);
                       } catch (SQLException ee) {
                         throw new NSForwardException(ee, "could not create erx_sequence_table");
                       }
                     } else {
                    throw new NSForwardException(ex, "Error fetching sequence: " + name());
                  }
                }
              }
          } finally {
            broker().freeConnection(con);
View Full Code Here

  protected boolean conditionInComponent(WOComponent component) {
    Object o = _object.valueInComponent(component);
    String className = (String) _className.valueInComponent(component);
    Class c = ERXPatcher.classForName(className);
    if (c == null) {
      throw new NSForwardException(new ClassNotFoundException(className));
    }
    return c.isInstance(o);
  }
View Full Code Here

                ERXMutableURL u = new ERXMutableURL(href);
                u.addQueryParameter(String.valueOf(System.currentTimeMillis()), null);
                href = u.toExternalForm();
              }
              catch (MalformedURLException e) {
                throw new NSForwardException(e);
              }
              finally {
                if (!generatingCompleteURLs) {
                  context.generateRelativeURLs();
                }
View Full Code Here

TOP

Related Classes of com.webobjects.foundation.NSForwardException

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.