Examples of ContextException


Examples of org.apache.avalon.framework.context.ContextException

        // set up file
        m_persistentFile = new File(
                    ctx.getRealPath("/WEB-INF"),
                        DefaultEventRegistryImpl.PERSISTENT_FILE);
        if (m_persistentFile == null) {
            throw new ContextException("Could not obtain persistent file. " +
                "The cache event registry cannot be " +
                "used inside an unexpanded WAR file.");
        }
    }
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

          }
        }
      }

      if(null==targetWsdlFile)
        throw new ContextException("Unable to find target WSDL file for "+ serviceName);

      return targetWsdlFile;
    }
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

    private Definition getWSDLDefinition(BPELEngineImpl engine, QName processId, QName serviceName)
    {
      ProcessConf pconf = engine._store.getProcessConfiguration(processId);
      Definition wsdl = pconf.getDefinitionForService(serviceName);
      if (wsdl == null)
        throw new ContextException("Unable to access WSDL definition to activate MyRole endpoint for service " + serviceName
            + " on process "+ processId);

      return wsdl;
    }
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

                du.compile();
              } catch (CompilationException ce) {
                String errmsg = "Failed to compile deployment unit '"+
                    bdu.getDeploymentDescriptor().getParentFile()+"'";
                __log.error(errmsg, ce);
                throw new ContextException(errmsg, ce);
              }

              loaded.addAll(load(dudao));
            }
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

        try {
            extService = new ExternalService(def, serviceName, portName, _executorService, _axisConfig, _scheduler, _server);
        } catch (Exception ex) {
            __log.error("Could not create external service.", ex);
            throw new ContextException("Error creating external service.", ex);
        }

        if (_odeConfig.isReplicateEmptyNS()) {
            __log.debug("Setting external service with empty namespace replication");
            extService.setReplicateEmptyNS(true);
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

    public <T> T execTransaction(Callable<T> transaction) throws Exception, ContextException {
        try {
            _txm.begin();
        } catch (Exception ex) {
            String errmsg = "Internal Error, could not begin transaction.";
            throw new ContextException(errmsg, ex);
        }
        boolean success = false;
        try {
            T retval = transaction.call();
            success = true;
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

                    synch.afterCompletion(status == Status.STATUS_COMMITTED);
                }

            });
        } catch (Exception e) {
            throw new ContextException("Unable to register synchronizer.", e);
        }
    }
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

        try {
            if (immediate) {
                // If we have too many jobs in the queue, we don't allow any new ones
                if (_todo.size() > _todoLimit)
                    throw new ContextException("The execution queue is backed up... Forcing ContextException");

                // Immediate scheduling means we put it in the DB for safe keeping
                _db.insertJob(job, _nodeId, true);
                // And add it to our todo list .
                addTodoOnCommit(job);

                __log.debug("scheduled immediate job: " + job.jobId);
            } else if (nearfuture) {
                // Near future, assign the job to ourselves (why? -- this makes it very unlikely that we
                // would get two nodes trying to process the same instance, which causes unsightly rollbacks).
                _db.insertJob(job, _nodeId, false);
                __log.debug("scheduled near-future job: " + job.jobId);
            } else /* far future */{
                // Not the near future, we don't assign a node-id, we'll assign it later.
                _db.insertJob(job, null, false);
                __log.debug("scheduled far-future job: " + job.jobId);
            }
        } catch (DatabaseException dbe) {
            __log.error("Database error.", dbe);
            throw new ContextException("Database error.", dbe);
        }
        return job.jobId;

    }
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

                }

            });
        } catch (Exception ex) {
            __log.error("Error retrieving node list.", ex);
            throw new ContextException("Error retrieving node list.", ex);
        }

        // Pretend we got a heartbeat...
        for (String s : _knownNodes)
            _lastHeartBeat.put(s, System.currentTimeMillis());
View Full Code Here

Examples of org.apache.ode.bpel.iapi.ContextException

    public boolean isTransacted() {
        try {
            Transaction tx = _txm.getTransaction();
            return (tx != null && tx.getStatus() != Status.STATUS_NO_TRANSACTION);
        } catch (SystemException e) {
            throw new ContextException("Internal Error: Could not obtain transaction status.");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.