public ExternalVariableConf(List<Element> els) { for (Element el : els) { String varId = el.getAttribute("id"); if (varId == null || "".equals(varId)) throw new BpelEngineException("Invalid external variable configuration; id not specified."); if (_vars.containsKey(varId)) throw new BpelEngineException("Invalid external variable configuration; duplicate id \""+ varId + " \"."); Element child = DOMUtils.getFirstChildElement(el); if (child == null) throw new BpelEngineException("Invalid external variable configuration for id \"" + varId + "\"; no engine configuration!"); QName engineQName = new QName(child.getNamespaceURI(), child.getLocalName()); Variable var = new Variable(varId, engineQName, child); _vars.put(varId,var); } }
__log.error("The message exchange seems to be in an unconsistent state, you're " + "probably missing a reply on a request/response interaction."); _self.parent.failure(e.toString(), null); return;
} catch (BpelEngineException ex) { String failureCause = "Process registration failed for:" + pConf.getProcessId() + ". " + ex.getMessage();
private void registerExprLang(OProcess oprocess) { for (OExpressionLanguage elang : oprocess.expressionLanguages) { try { _expLangRuntimeRegistry.registerRuntime(elang); } catch (ConfigurationException e) { String msg = __msgs.msgExpLangRegistrationError(elang.expressionLanguageUri, elang.properties); __log.error(msg, e); throw new BpelEngineException(msg, e); } } }
/** * Read an external variable. */ public Value read(Variable variable, Node reference, Long iid) throws ExternalVariableModuleException{ EVar evar = _externalVariables.get(variable.extVar.externalVariableId); if (evar == null) { // Should not happen if constructor is working. throw new BpelEngineException("InternalError: reference to unknown external variable " + variable.extVar.externalVariableId); } Locator locator = new Locator(variable.extVar.externalVariableId, _pid,iid, reference); Value newval; newval = evar._engine.readValue(((OElementVarType) variable.type).elementType, locator ); if (newval == null) return null; return newval; }
public Value write(Variable variable, Node reference, Node val, Long iid) throws ExternalVariableModuleException { EVar evar = _externalVariables.get(variable.extVar.externalVariableId); if (evar == null) { // Should not happen if constructor is working. throw new BpelEngineException("InternalError: reference to unknown external variable " + variable.extVar.externalVariableId); } Locator locator = new Locator(variable.extVar.externalVariableId,_pid,iid,reference); Value newval = new Value(locator,val,null); newval = evar._engine.writeValue(((OElementVarType) variable.type).elementType, newval); return newval; }
throw new BpelEngineException(msg); throw new BpelEngineException(msg); throw new BpelEngineException(msg); + status; __log.fatal(msg); throw new BpelEngineException(msg);
public void unregister(QName pid) throws BpelEngineException { if (__log.isTraceEnabled()) __log.trace("unregister: " + pid); try { _mngmtLock.writeLock().lockInterruptibly(); } catch (InterruptedException ie) { __log.debug("unregister() interrupted.", ie); throw new BpelEngineException(__msgs.msgOperationInterrupted()); } try { BpelProcess p = null; if (_engine != null) { p = _engine.unregisterProcess(pid); if (p != null) { _registeredProcesses.remove(p); XslTransformHandler.getInstance().clearXSLSheets(p.getProcessType()); __log.info(__msgs.msgProcessUnregistered(pid)); } } } catch (Exception ex) { __log.error(__msgs.msgProcessUnregisterFailed(pid), ex); throw new BpelEngineException(ex); } finally { _mngmtLock.writeLock().unlock(); } }
String errmsg = __msgs.msgOdeInitHibernateDialectDetectFailed(); __log.error(errmsg, ex); throw new BpelEngineException(errmsg, ex);
throw new BpelEngineException(msg); throw new BpelEngineException(msg); throw new BpelEngineException(msg); + status; __log.fatal(msg); throw new BpelEngineException(msg);
} catch (ExternalVariableModuleException eve) { __log.error("External variable subsystem configuration error.", eve); throw new BpelEngineException("External variable subsystem configuration error.",eve); String errmsg = "Error initializing external variables. See log for details."; __log.error(errmsg); throw new BpelEngineException(errmsg);
throw new BpelEngineException("NoSuchService: " + targetService);
+ provide.getKey(); __log.error(errmsg); throw new BpelEngineException(errmsg); + invoke.getKey(); __log.error(errmsg); throw new BpelEngineException(errmsg);
} catch (Exception dce) { __log.error("DbError", dce); throw new BpelEngineException("DbError", dce);
} catch (InterruptedException ie) { __log.debug("register(...) interrupted.", ie); throw new BpelEngineException(__msgs.msgOperationInterrupted());
void initMyRoleMex(MyRoleMessageExchangeImpl mex) { markused(); PartnerLinkMyRoleImpl target = null; PortType portType = null; Operation operation = null; for (Map.Entry<PartnerLinkMyRoleImpl,Endpoint> e : getEndpointToMyRoleMap().entrySet()) { if (e.getValue().serviceName.equals(mex.getServiceName())) { // First one is fine as we're only interested in the portType and operation here and // even if a process has 2 myrole partner links target = e.getKey(); if (target != null) { portType = target._plinkDef.myRolePortType; operation = target._plinkDef.getMyRoleOperation(mex.getOperationName()); if (operation != null) { mex.setPortOp(portType, operation); break; } } } } if (target != null) { if (operation == null) { throw new BpelEngineException("Operation[" + mex.getOperationName() + "] could not be found on the portType [" + portType.getQName() + "]"); } } else { __log.warn("Couldn't find endpoint from service " + mex.getServiceName() + " when initializing a myRole mex."); } }
String errmsg = "The process " + _pid + " is no longer available."; __log.error(errmsg, e); throw new BpelEngineException(errmsg, e);
} catch (ContextException e) { __log.error("Failed to schedule resume task.", e); throw new BpelEngineException(e);
"the following key compoenents were missing:" + ike.getMissing()); } catch (ExternalVariableModuleException e) { throw new BpelEngineException(e);
throw new BpelEngineException(errmsg); String errmsg = "BpelEngineImpl: internal error, invalid MexDAO direction: " + mexId; __log.fatal(errmsg); throw new BpelEngineException(errmsg);