compile(var); } catch (CompilationException ce) { recoveredFromError(var, ce); compile(cset); } catch (CompilationException ce) { recoveredFromError(cset, ce); compile(plink); } catch (CompilationException ce) { recoveredFromError(plink, ce); compile(onEvent); } catch (CompilationException ce) { recoveredFromError(src, ce); compile(onAlarm); } catch (CompilationException ce) { recoveredFromError(src, ce); init.run(); } catch (CompilationException ce) { recoveredFromError(src, ce); compile(src.getCompensationHandler()); } catch (CompilationException bce) { recoveredFromError(src.getCompensationHandler(), bce); compile(src.getTerminationHandler());
public void addXsdImport(URI from, URI location, SourceLocation sloc) { URI resFrom = _resourceFinder.resolve(from, location); if (__log.isDebugEnabled()) __log.debug("Adding XSD import from " + resFrom + " location " + location); XMLEntityResolver resolver = new WsdlFinderXMLEntityResolver(_resourceFinder, location, new HashMap<URI,byte[]>(), true); try { InputStream xsdStream = _resourceFinder.openResource(resFrom); byte[] data; try { data = StreamUtils.read(xsdStream); } finally { xsdStream.close(); } Map<URI, byte[]> schemas = XSUtils.captureSchema(resFrom, data, resolver); _wsdlRegistry.addSchemas(schemas); } catch (XsdException e) { CompilationException ce = new CompilationException(__cmsgs.errInvalidImport(location.toString())); recoveredFromError(sloc, ce); } catch (MalformedURLException e) { CompilationException ce = new CompilationException(__cmsgs.errInvalidImport(location.toString())); recoveredFromError(sloc, ce); } catch (IOException e) { CompilationException ce = new CompilationException(__cmsgs.errInvalidImport(location.toString())); recoveredFromError(sloc, ce); } }
public void addWsdlImport(URI from, URI wsdlImport, SourceLocation sloc) { Definition4BPEL def; try { WSDLReader r = _wsdlFactory.newWSDLReader(); WSDLLocatorImpl locator = new WSDLLocatorImpl(_resourceFinder, _resourceFinder.resolve(from, wsdlImport)); def = (Definition4BPEL) r.readWSDL(locator); } catch (WSDLException e) { recoveredFromError(sloc, new CompilationException(__cmsgs.errWsdlParseError(e .getFaultCode(), e.getLocation(), e.getMessage()))); throw new CompilationException(__cmsgs.errWsdlImportFailed(wsdlImport.toASCIIString(), e.getFaultCode()) .setSource(sloc), e); } try { _wsdlRegistry.addDefinition(def, _resourceFinder, _resourceFinder.resolve(from, wsdlImport)); if (__log.isDebugEnabled()) __log.debug("Added WSDL Definition: " + wsdlImport); } catch (CompilationException ce) { recoveredFromError(sloc, ce); } }
throw new CompilationException(__cmsgs.errLinkCrossesEventHandlerBoundary(link.name)); } catch (CompilationException ce) { recoveredFromError(onEvent, ce); throw new CompilationException(__cmsgs.errLinkCrossesEventHandlerBoundary(link.name)); } catch (CompilationException ce) { recoveredFromError(onEvent, ce);
recoveredFromError(process, new CompilationException(__cmsgs.errProcessNamespaceNotSpecified())); } else { _oprocess.targetNamespace = _processDef.getTargetNamespace(); recoveredFromError(process, new CompilationException(__cmsgs.errProcessNameNotSpecified())); } else { _oprocess.processName = _processDef.getName(); } catch (CompilationException bce) { recoveredFromError(imprt, bce);
throw new CompilationException(__cmsgs.errLinkCrossesEventHandlerBoundary(link.name).setSource(onAlarm)); } catch (CompilationException ce) { recoveredFromError(onAlarm, ce); throw new CompilationException(__cmsgs.errLinkCrossesEventHandlerBoundary(link.name).setSource(onAlarm)); } catch (CompilationException ce) { recoveredFromError(onAlarm, ce);