Package net.fp.rp.common.exception

Examples of net.fp.rp.common.exception.RpException


      Statement dbStatement = cachedConnection.createStatement();
      dbStatement.execute(sql);
      cachedConnection.commit();
      //dbStatement.close();
    } catch (SQLException sqle) {
      throw new RpException(sqle);
    }

  }
View Full Code Here


    try {
      Statement dbStatement = cachedConnection.createStatement();
      dbStatement.execute(sql);
      return dbStatement.getResultSet();
    } catch (SQLException sqle) {
      throw new RpException(sqle);
    }
  }
View Full Code Here

                logger.debug("There are no configured plugins interested in Feedback");
              return new IInterestedInFeedback[0];
             
            }
        } else {
            throw new RpException("pluginmanager.noinit");
        }
    }
View Full Code Here

                return list;
            } else {
               logger.warn("No plugins are interested in Add events (apart from the Indexer)");
            //  return new IInterestedInAdd[0];
              throw new RpException("pluginmanager.plugins.noadd");
            }
        } else {
            throw new RpException("pluginmanager.noinit");
        }
    }
View Full Code Here

                IInterestedInSearch[] list = new IInterestedInSearch[m_listPluginsInSearch.size()];
                m_listPluginsInSearch.toArray(list);

                return list;
            } else {
                throw new RpException("pluginmanager.plugins.nosearch");
            }
        } else {
            throw new RpException("pluginmanager.noinit");
        }
    }
View Full Code Here

                IInterestedInResultsFilter[] list = new IInterestedInResultsFilter[m_listPluginsInFilter.size()];
                m_listPluginsInFilter.toArray(list);

                return list;
            } else {
                throw new RpException("pluginmanager.plugins.nofilter");
            }
        } else {
            throw new RpException("pluginmanager.noinit");
        }
    }
View Full Code Here

                IDataExtractor[] list = new IDataExtractor[m_listPluginsInExtract.size()];
                m_listPluginsInExtract.toArray(list);

                return list;
            } else {
                throw new RpException("pluginmanager.plugins.noextractor");
            }
        } else {
            throw new RpException("pluginmanager.noinit");
        }
    }
View Full Code Here

       
       
      }catch (Exception fnfe2){
        log.warn("Could not find resource as file",fnfe1);
        log.warn("Could not find resource on classpath",fnfe2);
        throw new RpException(fnfe2);
      }
    }
      processDefinition = ProcessDefinition.parseXmlReader(myReader);
    ProcessInstance processInstance = new ProcessInstance(processDefinition);
   
    // Add the variables that we passed in to the execution context
    processInstance.getContextInstance().addVariables(valuesToSetOnExecutionContext);
   
       
    // Check that we have a strategy object
    if(strategy==null){
      throw new RpException("No IStarterStrategy Object was set to process workflow");
    }
   
   
   
    // Delegate the execution of the workflow to the strategy object
View Full Code Here

      env.put("java.naming.factory.url.pkgs", namingUrlPackages);

      jndiContext = new InitialContext(env);
    } catch (NamingException e) {
      log.debug("Could not create JNDI API " + "context: ", e);
      throw new RpException(e);
    }

    /*
     * Get queue connection factory and queue objects from JNDI context.
     */
    try {

      queueConnectionFactory = jndiContext
          .lookup("UIL2ConnectionFactory");

      queue = jndiContext.lookup(queueName);

    } catch (NamingException e) {
      log.debug("JNDI API lookup failed: ", e);
      throw new RpException(e);
    }

    /*
     * Create connection, session, sender objects. Send the message. Cleanup
     * JMS connection.
View Full Code Here

      returnObject = tmpMethod.invoke(qSession, invokeMethodArray);

    } catch (IllegalAccessException iae) {
      log.warn(iae);
      throw new RpException(iae);
    } catch (InvocationTargetException ite) {
      log.warn(ite);
      throw new RpException(ite);
    } catch (NoSuchMethodException nsme) {
      log.warn(nsme);
      throw new RpException(nsme);
    }

    return returnObject;

  }
View Full Code Here

TOP

Related Classes of net.fp.rp.common.exception.RpException

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.