Package de.scoopgmbh.copper

Examples of de.scoopgmbh.copper.CopperRuntimeException


  }
 
  private void checkConstraints(Map<String, Class<?>> workflowClasses) throws CopperRuntimeException {
    for (Class<?> c : workflowClasses.values()) {
      if (c.getName().length() > 512) {
        throw new CopperRuntimeException("Workflow class names are limited to 256 characters");
      }
    }
  }
View Full Code Here


      if (files.size() > 0) {
        final Iterable<? extends JavaFileObject> compilationUnits1 = fileManager.getJavaFileObjectsFromFiles(files.values());
        final CompilationTask task = compiler.getTask(sw, fileManager, null, options, null, compilationUnits1);
        if (!task.call()) {
          logger.error(sw.toString());
          throw new CopperRuntimeException("Compilation failed, see logfile for details");
        }
      }
    }
    finally {
      fileManager.close();
View Full Code Here

  @SuppressWarnings("unchecked")
  protected <T> T clone(T obj) {
    if (obj instanceof PersistentEntity)
      return (T)((PersistentEntity)obj).clone();
    throw new CopperRuntimeException("No clone method override for "+obj.getClass());
  }
View Full Code Here

          @Override
          public Object get(Object obj) {
            try {
              return pf.get(obj);
            } catch (Exception e) {
              throw new CopperRuntimeException(e);
            }
          }
         
        });
      }
View Full Code Here

          ppp.doNotify();
        }
      }
    }
    catch (Exception e) {
      throw new CopperRuntimeException("notify failed",e);
    }

  }
View Full Code Here

    }
    catch(RuntimeException e) {
      throw e;
    }
    catch(Exception e) {
      throw new CopperRuntimeException("startup failed",e);
    }
  }
View Full Code Here

    }
    catch(RuntimeException e) {
      throw e;
    }
    catch(Exception e) {
      throw new CopperRuntimeException(e);
    }
  }
View Full Code Here

    if (wfInstanceId == null) throw new NullPointerException();
    if (waitHook == null) throw new NullPointerException();
   
    synchronized (waitHookMap) {
      if (!workflowMap.containsKey(wfInstanceId)) {
        throw new CopperRuntimeException("Unkown workflow instance with id '"+wfInstanceId+"'");
      }
      List<WaitHook> l = waitHookMap.get(wfInstanceId);
      if (l == null) {
        l = new ArrayList<WaitHook>();
        waitHookMap.put(wfInstanceId, l);
View Full Code Here

    cmd.executor().doExec(commands, con);
  }
 
  public List<String> checkDbConsistency(Connection con) throws Exception {
    if (multiEngineMode)
      throw new CopperRuntimeException("Cannot check DB consistency when multiEngineMode is turned on!");
   
    final PreparedStatement dequeueStmt = con.prepareStatement("select id,priority,creation_ts,data,long_data,object_state,long_object_state,PPOOL_ID from COP_WORKFLOW_INSTANCE where state not in (?,?)");
    try {
      final List<String> idsOfBadWorkflows = new ArrayList<String>();
      dequeueStmt.setInt(1, DBProcessingState.INVALID.ordinal());
View Full Code Here

      }
      catch(RuntimeException ex) {
        throw ex;
      }
      catch(Exception ex) {
        throw new CopperRuntimeException(ex);
      }
    }
  }
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.CopperRuntimeException

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.