Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSForwardException


        try {
            String controllerClassName = (String)d2wContext.valueForKey("controllerClassName");
            if(controllerClassName != null)
                c = (ERD2WController)ERXPatcher.classForName(controllerClassName).newInstance();
        } catch(Exception ex) {
            throw new NSForwardException(ex);
        }
        if(c != null) {
            c.setD2WContext(d2wContext);
            c.setSession((WOSession)d2wContext.valueForKey("session"));
            c.setControllerName((String)d2wContext.valueForKey("controllerName"));
View Full Code Here


                Class cl = ERXPatcher.classForName(className);
                Constructor co = cl.getConstructor(new Class [] {Object.class});
                Object o = co.newInstance(new Object[] {info});
                q = (EOQualifierEvaluation)o;
            } catch(Exception ex) {
                throw new NSForwardException(ex);
            }
            _validationQualiferCache.setObjectForKey(q, cacheKey);
        }
        if(values.value() == null && "true".equals(info.objectForKey("ignoreIfNull")))
           return true;
View Full Code Here

   
    private static Method methodInSharedGSVEngineInstanceWithName(String name) {
        try {
            return sharedGSVEngineInstance().getClass().getMethod(name, new Class[]{EOEnterpriseObject.class});
        } catch (IllegalArgumentException e2) {
            throw new NSForwardException(e2);
        } catch (NullPointerException e3) {
            throw new NSForwardException(e3);
        } catch (NoSuchMethodException e4) {
            throw new NSForwardException(e4);
        }
    }
View Full Code Here

                Class gsvEngineClass = Class.forName("com.gammastream.validity.GSVEngine");
                Method m = gsvEngineClass.getMethod("sharedValidationEngine", new Class[]{});
                Object dummy = null;
                sharedGSVEngineInstance = m.invoke(dummy, new Object[]{});
            } catch (ClassNotFoundException e1) {
                throw new NSForwardException(e1);
            } catch (NoSuchMethodException e2) {
                throw new NSForwardException(e2);
            } catch (IllegalAccessException e3) {
                throw new NSForwardException(e3);
            } catch (InvocationTargetException e4) {
                throw new NSForwardException(e4);
            }
        }
        return sharedGSVEngineInstance;
    }
View Full Code Here

    if (formatter != null && value instanceof String) {
      try {
        value = formatter.parseObject((String) value);
      }
      catch (ParseException e) {
        throw new NSForwardException(e);
      }
    }
    row().takeValueForKey(value, currentKeyPath());
  }
View Full Code Here

                // DEFERRABLE
                // INITIALLY
                // IMMEDIATE");
                con.commit();
              } catch (SQLException ee) {
                throw new NSForwardException(ee, "could not create pk table");
              }
            } else {
              throw new NSForwardException(ex, "Error fetching PK");
            }
          }
        }
      } finally {
        broker.freeConnection(con);
View Full Code Here

                try {
                    Method m = getClass().getMethod(branchName, WOComponentClassArray);
                    nextPage = (WOComponent)m.invoke(this, new Object[] { sender });
                } catch (InvocationTargetException ite) {
                    log.error("Invocation exception occurred in ERBranchDelegate: " + ite.getTargetException() + " for branch name: " + branchName, ite.getTargetException());
                    throw new NSForwardException(ite.getTargetException());
                } catch (Exception e) {
                    log.error("Exception occurred in ERBranchDelegate: " + e.toString() + " for branch name: " + branchName);
                    throw new NSForwardException(e);
                }
            }
        } else {
            log.warn("Branch delegate being used with a component that does not implement the ERBranchInterface");
        }
View Full Code Here

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

            OutputFormat format = new OutputFormat(doc); // Serialize DOM
            XMLSerializer serial = new XMLSerializer(stringOut, format);
            serial.asDOMSerializer(); // As a DOM serializer
            serial.serialize(doc.getDocumentElement());
        } catch (IOException e) {
            throw new NSForwardException(e);
        }
        return stringOut.toString();
    }
View Full Code Here

      Object ognlFactory = ognlFactoryMethod.invoke(null, (Object[]) null);
      Method getValueMethod = ognlClass.getMethod("getValue", new Class[] { String.class, Object.class });
      return getValueMethod.invoke(ognlFactory, new Object[] { (String) value(), c });
    }
    catch (Throwable e) {
      throw new NSForwardException(e);
    }
  }
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.