Exception Fact Sheet for "FraSCAti"

The goal of an Exception Fact Sheet is to reveal the design of exception handling in an application.

--Maxence, Martin

For feedback, please contact Martin

Table of contents

Basic Statistics

Number of Classes 574
Number of Domain Exception Types (Thrown or Caught) 15
Number of Domain Checked Exception Types 14
Number of Domain Runtime Exception Types 0
Number of Domain Unknown Exception Types 1
nTh = Number of Throw 229
nTh = Number of Throw in Catch 139
Number of Catch-Rethrow (may not be correct) 5
nC = Number of Catch 806
nCTh = Number of Catch with Throw 139
Number of Empty Catch (really Empty) 5
Number of Empty Catch (with comments) 31
Number of Empty Catch 36
nM = Number of Methods 2623
nbFunctionWithCatch = Number of Methods with Catch 409 / 2623
nbFunctionWithThrow = Number of Methods with Throw 128 / 2623
nbFunctionWithThrowS = Number of Methods with ThrowS 500 / 2623
nbFunctionTransmitting = Number of Methods with "Throws" but NO catch, NO throw (only transmitting) 329 / 2623
P1 = nCTh / nC 17.2% (0.172)
P2 = nMC / nM 15.6% (0.156)
P3 = nbFunctionWithThrow / nbFunction 4.9% (0.049)
P4 = nbFunctionTransmitting / nbFunction 12.5% (0.125)
P5 = nbThrowInCatch / nbThrow 60.7% (0.607)
R2 = nCatch / nThrow 3.52
A1 = Number of Caught Exception Types From External Libraries 61
A2 = Number of Reused Exception Types From External Libraries (thrown from application code) 33

W1 is a rough estimation of the richness of the exception model. It does not take into account the inheritance relationships between domain exceptions.

Proportion P1 measures the overall exception flow. According to our experience, it varies from 5% to 70%. Early-catch design generally yields a low P1, libraries that must warn clients about errors (e.g. databases) generally have a high P1.

Proportion P2 measures the dispersion of catch blocks in the application. According to our experience, it varies from 2% to 15%. A small P2 indicates a rather centralized management of errors.

R1 shows how many exceptions types from libraries (incl. JDK) are thrown from application code. For instance, IllegalArgumentException comes from the JDK but is used in many applications.

A1 measures the awareness of the application to library exceptions. A high value of A1 means either that the application is polluted with checked exceptions or that it is able to apply specific recovery depending on the library exception.

Exception Hierachy

Exception Map

Each exception that is used at least once in the project is a dot. A orange dot represents a domain exception that is defined in the application. A blue dot exception is defined in the JDK or in a library. The x-axis represents the number of times an exception is caught, the y-axis the number of times an exception is thrown.

Exceptions With State

State means fields. Number of exceptions with state: 3
ParserException
              package org.ow2.frascati.parser.api;public class ParserException extends FrascatiException {

  // TODO set version uid
  private static final long serialVersionUID = 0L;

  /**
   * QName associated to the exception.
   */
  private QName qname;

  /**
   * @see FrascatiException#FrascatiException()
   */
  public ParserException() {
      super();
  }

  /**
   * @see FrascatiException#FrascatiException(String)
   */
  public ParserException(String message) {
      super(message);
  }

  /**
   * @see FrascatiException#FrascatiException(String, Throwable)
   */
  public ParserException(String message, Throwable cause) {
      super(message, cause);
  }

  /**
   * @see FrascatiException#FrascatiException(Throwable)
   */
  public ParserException(Throwable cause) {
      super(cause);
  }

  /**
   * Constructs a new ParserException instance.
   */
  public ParserException(QName qname, String message) {
      super(message);
      setQName(qname);
  }

  /**
   * Constructs a new ParserException instance.
   */
  public ParserException(QName qname, String message, Throwable cause) {
      super(message, cause);
      setQName(qname);
  }

 /**
   * Gets the qname associated to the exception.
   */
  public final QName getQName() {
      return this.qname;
  }

  /**
   * Sets the qname associated to the exception.
   */
  public final void setQName(QName qname) {
      this.qname = qname;
  }

}
            
ProcessorException
              package org.ow2.frascati.assembly.factory.api;public class ProcessorException extends FrascatiException {

  private static final long serialVersionUID = 1369416319243909331L;

  /**
   * The element associated to this exception.
   */
  private Object element;

  /**
   * Get the element associated to this exception.
   *
   * @return the element associated to this exception.
   */
  public final Object getElement() {
    return this.element;
  }

  /**
   * Construct a processor exception instance.
   *
   * @param element the element associated to this exception.
   */
  public ProcessorException(Object element) {
    super();
    this.element = element;
  }

  /**
   * Construct a processor exception instance.
   *
   * @param element the element associated to this exception.
   * @param message the message of this exception.
   */
  public ProcessorException(Object element, String message) {
    super(message);
    this.element = element;
  }

  /**
   * Constructs a processor exception instance.
   *
   * @param element the element associated to this exception.
   * @param message the message of this exception.
   * @param cause the cause of this exception.
   */
  public ProcessorException(Object element, String message, Throwable cause) {
    super(message, cause);
    this.element = element;
  }

  /**
   * Construct a processor exception instance.
   *
   * @param element the element associated to this exception.
   * @param cause the cause of this exception.
   */
  public ProcessorException(Object element, Throwable cause) {
    super(cause);
    this.element = element;
  }

}
            
MyWebApplicationException
              package org.ow2.frascati.remote.introspection.exception;public class MyWebApplicationException extends WebApplicationException
{

    private static final long serialVersionUID = -6209569322081835480L;

    /**
     * The default HTTP status to send
     */
    private final static int DEFAULT_RESPONSE = 400;

    /**
     * The logger
     */
    protected final static Logger LOG = Logger.getLogger(MyWebApplicationException.class.getCanonicalName());

    /**
     * @param status HTTP status to send
     * @param message The message to send
     */
    public MyWebApplicationException(int status, String message)
    {
        super(Response.status(status).entity(message).type(MediaType.TEXT_PLAIN).build());
        LOG.severe("Error " + status + " " + MyWebApplicationException.class.getSimpleName() + " : " + message);
    }

    /**
     * @param exception The original Exception use to compose the message to send
     * @param status HTTP status to send
     * @param message A part of the message to send
     */
    public MyWebApplicationException(Exception exception, int status, String message)
    {
        super(exception, Response.status(status).entity(message).type(MediaType.TEXT_PLAIN).build());
        LOG.severe("Error " + status + " " + exception.getClass().getSimpleName() + " : " + message);
    }

    /**
     * @param message The message to send
     */
    public MyWebApplicationException(Exception exception)
    {
        this(exception,exception.getMessage());
    }
    
    /**
     * @param message The message to send
     */
    public MyWebApplicationException(String message)
    {
        this(DEFAULT_RESPONSE, message);
    }

    /**
     * @param exception The original Exception use to compose the message to send
     * @param message A part of the message to send
     */
    public MyWebApplicationException(Exception exception, String message)
    {
        this(exception, DEFAULT_RESPONSE, message);
    }

}
            

Thrown Exceptions Summary

A (Domain) exception is defined in the application. A (Lib) exception is defined in the JDK or in a library. An exception can be thrown, thrown from within a catch, or declared in the signature of a method (usually for checked exceptions). Hovering over a number triggers showing code snippets from the application code.

Type Exception Thrown Thrown
from Catch
Declared
- Unknown 14
              
//in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
throw throwable;

              
//in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
throw throwable;

              
//in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
throw instantiationException;

              
//in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
throw instantiationException;

              
//in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
throw exc;

              
//in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
throw cnfe;

              
//in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
throw fe;

              
//in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
throw instantiationException;

              
//in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
throw instantiationException;

              
//in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractLoggeable.java
throw exception;

              
//in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractLoggeable.java
throw exception;

              
//in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
throw exc;

              
//in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
throw instantiationException;

              
//in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
throw instantiationException;

            
- -
- Builder 0 - -
- Variable 14
              
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
throw throwable;

              
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
throw throwable;

              
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
throw instantiationException;

              
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
throw instantiationException;

              
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
throw exc;

              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
throw cnfe;

              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
throw fe;

              
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
throw instantiationException;

              
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
throw instantiationException;

              
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractLoggeable.java
throw exception;

              
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractLoggeable.java
throw exception;

              
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
throw exc;

              
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
throw instantiationException;

              
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
throw instantiationException;

            
- -
(Domain) MyWebApplicationException 37
              
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public boolean startComponent(String fullComponentId) { org.objectweb.fractal.api.Component comp = getFractalComponent(fullComponentId); if(comp==null) { throw new MyWebApplicationException("Cannot find Fractal component for id "+fullComponentId); } startComponent(comp); return true; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private void startComponent(org.objectweb.fractal.api.Component owner) { try { LifeCycleController lcc = Fractal.getLifeCycleController(owner); lcc.startFc(); } catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); } catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public boolean stopComponent(String fullComponentId) { org.objectweb.fractal.api.Component comp = getFractalComponent(fullComponentId); if(comp==null) { throw new MyWebApplicationException("Cannot find Fractal component for id "+fullComponentId); } stopComponent(comp); return true; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private void stopComponent(org.objectweb.fractal.api.Component owner) { try { LifeCycleController lcc = Fractal.getLifeCycleController(owner); lcc.stopFc(); } catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); } catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); } catch (Exception e) { throw new MyWebApplicationException(e); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private org.objectweb.fractal.api.Interface findInterfaceByItfId(org.objectweb.fractal.api.Component owner, String itfId) { String itfName = itfId.substring(itfId.lastIndexOf('/') + 1); try { return (org.objectweb.fractal.api.Interface) owner.getFcInterface(itfName); } catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public Property getProperty(String componentPath, String propertyName) { // Obtain the Fractal component. org.objectweb.fractal.api.Component component = getFractalComponent(componentPath); // Obtain its SCA property controller. SCAPropertyController propertyController; try { propertyController = (SCAPropertyController) component.getFcInterface(SCAPropertyController.NAME); } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); } // Create the Property to return. Property property = new Property(); property.setName(propertyName); property.setValue(propertyController.getValue(propertyName).toString()); property.setType(propertyController.getType(propertyName).getName()); return property; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public void setProperty(String componentPath, String propertyName, String value) { // Obtain the Fractal component. org.objectweb.fractal.api.Component component = getFractalComponent(componentPath); // Obtain its SCA property controller. SCAPropertyController propertyController; try { propertyController = (SCAPropertyController) component.getFcInterface(SCAPropertyController.NAME); } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); } // Get the type of the property. Class<?> propertyType = propertyController.getType(propertyName); // Convert the value string as an object instance of the property type. Object propertyValue; try { propertyValue = ScaPropertyTypeJavaProcessor.stringToValue(propertyType.getCanonicalName(), value, this.getClass().getClassLoader()); } catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); } stopComponent(component); // Update the property. propertyController.setType(propertyName, propertyValue.getClass()); propertyController.setValue(propertyName, propertyValue); startComponent(component); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public void addBinding(String itfId, MultivaluedMap<String, String> params) { String clearItfId=clearId(itfId); org.objectweb.fractal.api.Component owner = findComponentByItfId(clearItfId); org.objectweb.fractal.api.Interface itf = findInterfaceByItfId(owner, clearItfId); String itfName = itf.getFcItfName(); stopComponent(owner); String kind = params.getFirst("kind"); Map<String, Object> hints = getHints(kind, params); if(hints==null) { throw new MyWebApplicationException("cannot create binding for kind parameter : "+kind); } hints.put(CLASSLOADER, itf.getClass().getClassLoader()); boolean isScaReference = itf instanceof TinfiComponentOutInterface<?>; try { LOG.fine("Calling binding factory\n bind: " + Fractal.getNameController(owner).getFcName() + " -> " + itfName); if (isScaReference) { bindingFactory.bind(owner, itfName, hints); } else { bindingFactory.export(owner, itfName, hints); } } catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); } startComponent(owner); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private org.objectweb.fractal.api.Component getBindingFromService(org.objectweb.fractal.api.Component owner, org.objectweb.fractal.api.Interface itf, int position) { int index = 0; try { List<org.objectweb.fractal.api.Component> children = ResourceUtil.getChildren(owner); for (org.objectweb.fractal.api.Component child : children) { String childName = Fractal.getNameController(child).getFcName(); if (childName.endsWith("-skeleton") || childName.endsWith("-connector")) { BindingController bindingController = Fractal.getBindingController(child); Interface servant = (Interface) bindingController.lookupFc(AbstractSkeleton.SERVANT_CLIENT_ITF_NAME); if (servant.equals(itf)) { if (index != position) { index++; } else { return child; } } } } } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); } throw new MyWebApplicationException("No binding found for interface : " + itf.getFcItfName() + " at position " + position); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private org.objectweb.fractal.api.Component getBindingFromReference(org.objectweb.fractal.api.Component owner, org.objectweb.fractal.api.Interface itf) { try { BindingController bindingController = Fractal.getBindingController(owner); org.objectweb.fractal.api.Interface boundInterface = (org.objectweb.fractal.api.Interface) bindingController.lookupFc(itf.getFcItfName()); if (boundInterface != null) { return boundInterface.getFcItfOwner(); } } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); } throw new MyWebApplicationException("No binding found for interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public void removeBinding(String itfId, int position) { String clearItfId=clearId(itfId); org.objectweb.fractal.api.Component owner = findComponentByItfId(clearItfId); org.objectweb.fractal.api.Interface itf = findInterfaceByItfId(owner, clearItfId); boolean isScaReference = itf instanceof TinfiComponentOutInterface<?>; try { org.objectweb.fractal.api.Component boundedInterfaceOwner; if (isScaReference) { boundedInterfaceOwner = getBindingFromReference(owner, itf); bindingFactory.unbind(owner, itf.getFcItfName(), boundedInterfaceOwner); } else { boundedInterfaceOwner = getBindingFromService(owner, itf, position); bindingFactory.unexport(owner, boundedInterfaceOwner, new HashMap<String, Object>()); } } catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private ProcessingContext getProcessingContext(File destFile) { ZipFile contribution = null; try { contribution = new ZipFile(destFile); } catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); } catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); } Enumeration<? extends ZipEntry> entries = contribution.entries(); String contributionName = null; // Search for the name of the contribution in the META-INF folder inside // contribution file while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); if ((entry.getName().startsWith("/META-INF/") || entry.getName().startsWith("META-INF/")) && !entry.getName().endsWith("/")) { int entryNameIndex = entry.getName().lastIndexOf('/'); contributionName = entry.getName().substring(entryNameIndex + 1); if (!"sca-contribution.xml".equals(contributionName)) { break; } } } if (contributionName == null) { LOG.log(Level.INFO, "No contribution name found. The contribution will be loaded in a new Processing Context."); } // If it doesn't exist a processing context corresponding to this // contribution, create a new one ProcessingContext processingContext = map.get(contributionName); if (processingContext == null) { LOG.log(Level.INFO, "No processing context found for " + contributionName + ". The contribution will be loaded in a new Processing Context."); processingContext = compositeManager.newProcessingContext(); map.put(contributionName, processingContext); } else { LOG.log(Level.INFO, "Processing context found for " + contributionName + ". The contribution will be loaded in an existing Processing Context."); } return processingContext; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public int deployContribution(String encodedContribution) { File destFile = null; File destDir = null; try { destFile = FileUtil.decodeFile(encodedContribution, "zip"); destDir = FileUtil.unZipHere(destFile); } catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); } catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); } try { ProcessingContext processingContext=getProcessingContext(destFile); compositeManager.processContribution(destFile.getAbsolutePath(), processingContext); } catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); } finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } FileUtil.deleteDirectory(destDir); } return 0; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public int deployComposite(String compositeName, String encodedComposite) { File destFile = null; try { destFile = FileUtil.decodeFile(encodedComposite,"jar"); } catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); } catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); } try { compositeManager.getComposite(compositeName, new URL[] { destFile.toURI().toURL() }); } catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); } catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); } finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } } return 0; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public int undeployComposite(String fullCompositeId) { try { compositeManager.removeComposite(fullCompositeId); } catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); } return 0; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public String getCompositeEntriesFromJar(String encodedComposite) { JarFile jarFile = null; try { File destFile = FileUtil.decodeFile(encodedComposite,"jar"); jarFile=new JarFile(destFile); } catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); } catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); } Enumeration<JarEntry> entries=jarFile.entries(); JarEntry entry; List<String> composites=new LinkedList<String>(); String entryName,extension; while(entries.hasMoreElements()) { entry=entries.nextElement(); entryName=entry.getName(); if(entryName.contains(".")) { extension=entryName.substring(entryName.lastIndexOf('.')+1); if("composite".equals(extension)) { composites.add(entryName.substring(0, entryName.lastIndexOf('.'))); } } } if(composites.size()==0) { return ""; } String result=""; int index; for(index=0;index<composites.size()-1;index++) { result.concat(composites.get(index)); result.concat("%S%"); } result+=composites.get(index); return result; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static Port getPortResource(org.objectweb.fractal.api.Interface itf) { Port port = new Port(); port.setName(itf.getFcItfName()); String signature = ((org.objectweb.fractal.api.type.InterfaceType) itf.getFcItfType()).getFcItfSignature(); org.ow2.frascati.remote.introspection.resources.Interface rItf = new org.ow2.frascati.remote.introspection.resources.Interface(); rItf.setClazz(signature); List<org.ow2.frascati.remote.introspection.resources.Method> methods = rItf.getMethods(); List<org.ow2.frascati.remote.introspection.resources.Parameter> parameters; org.ow2.frascati.remote.introspection.resources.Parameter parameter; int index; try { Class<?> interfaceClass = itf.getClass().getClassLoader().loadClass(signature); java.lang.reflect.Method[] jMethods = interfaceClass.getMethods(); for (java.lang.reflect.Method m : jMethods) { org.ow2.frascati.remote.introspection.resources.Method method = new Method(); method.setName(m.getName()); parameters = method.getParameters(); index = 0; for (Class<?> param : m.getParameterTypes()) { parameter = new Parameter(); parameter.setName("Parameter" + index); parameter.setType(param.getName()); parameters.add(parameter); index++; } methods.add(method); } } catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); } // SCA Interface port.setImplementedInterface(rItf); // SCA bindings addBindingsResource(itf, port.getBindings()); // SCA intents return port; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static void addBindingsResource(org.objectweb.fractal.api.Interface itf, Collection<Binding> bindings) { org.objectweb.fractal.api.Interface boundInterface = null; org.objectweb.fractal.api.Component owner = itf.getFcItfOwner(); Binding binding=null; BindingController bindingController=null; NameController ownerNameController = null; try { ownerNameController = Fractal.getNameController(owner); bindingController = Fractal.getBindingController(owner); boundInterface = (org.objectweb.fractal.api.Interface) bindingController.lookupFc(itf.getFcItfName()); if (boundInterface != null) { org.objectweb.fractal.api.Component boundInterfaceOwner = boundInterface.getFcItfOwner(); binding = getServiceBindingKind(boundInterfaceOwner); addAttributesResource(boundInterfaceOwner, binding.getAttributes()); bindings.add(binding); binding = new Binding(); } } catch (Exception exception) { if (ownerNameController != null) { log.info("no binding found for fractal component : " + ownerNameController.getFcName()); } } try { List<org.objectweb.fractal.api.Component> children = getChildren(owner); for (org.objectweb.fractal.api.Component child : children) { String childName = Fractal.getNameController(child).getFcName(); if (childName.endsWith("-skeleton") || childName.endsWith("-connector")) { // check that the skeleton is bound to owner bindingController = Fractal.getBindingController(child); try { Interface servant = (Interface) bindingController.lookupFc(AbstractSkeleton.SERVANT_CLIENT_ITF_NAME); if (itf.equals(servant)) { binding=getReferenceBindingKind(childName); if (binding != null) { addAttributesResource(child, binding.getAttributes()); bindings.add(binding); binding = new Binding(); } } } catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } } } } } catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); } }
30
              
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch(BadParameterTypeException bpte) { throw new MyWebApplicationException(bpte); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Error while invoking " + method.getName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); }
0
(Lib) Error 13
              
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
public static Element toElement(String xmlMessage) { try { final ByteArrayInputStream bais = new ByteArrayInputStream(xmlMessage.getBytes()); // TODO : the SAXBuilder can be create once and reuse? final SAXBuilder saxBuilder = new SAXBuilder(); final Document jdomDocument = saxBuilder.build(bais); return jdomDocument.getRootElement(); } catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); } catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); } }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
public static void refreshFrascatiExplorerGUI() { // As refreshAll() is not thread-safe, then synchronizes via Swing. try { SwingUtilities.invokeAndWait( new Runnable() { /** * @see java.lang.Runnable#run() */ public final void run() { FraSCAtiExplorer.SINGLETON.get() .getFraSCAtiExplorerService(Tree.class) .refreshAll(); } } ); } catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
public static void main(String[] args) { // The SCA composite for FraSCAti Explorer uses <frascati:implementation.fractal> // so a FraSCAti Fractal bootstrap is required. String bootstrap = System.getProperty(BOOTSTRAP_PROPERTY); if ((bootstrap == null)) { // || !bootstrap.contains("Fractal") ) { System.setProperty(BOOTSTRAP_PROPERTY, "org.ow2.frascati.bootstrap.FraSCAtiFractal"); } try { FraSCAti frascati = FraSCAti.newFraSCAti(); for (String argument : args) { if (argument.endsWith(".zip")) { File file = new File(argument); if (file.exists()) frascati.getContribution(argument); else { System.err.println("Cannot found " + file.getAbsolutePath()); System.exit(0); } } else frascati.getComposite(argument); } } catch(Exception e) { e.printStackTrace(); throw new Error(e); } // Refresh the FraSCAti Explorer GUI. RefreshExplorerTreeThread.refreshFrascatiExplorerGUI(); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
public Class<?> getMembraneClass() { // TODO: Don't use current thread's context class loader. try { return org.ow2.frascati.util.FrascatiClassLoader.getCurrentThreadContextClassLoader().loadClass(this.membraneClass); } catch(ClassNotFoundException cnfe) { throw new Error(cnfe); } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
protected final BPELInternalMessage invoke(String operationName, BPELInternalMessage message) { log.fine("Invoke Java delegate of the BPEL partner link output '" + easyBpelPartnerLink.getName() + "'"); log.fine(" operationName=" + operationName); log.fine(" message.endpoint=" + message.getEndpoint()); log.fine(" message.operationName=" + message.getOperationName()); log.fine(" message.qname=" + message.getQName()); log.fine(" message.service=" + message.getService()); log.fine(" message.content=" + message); Method method = this.delegate.getMethod(operationName); log.fine("Target Java method is " + method); try { Element response = this.delegate.invoke(method, message.getContent()); // TODO: CrŽer un nouveau InternalMessage plutot que d'utiliser le message en entrŽe message.setContent(response); } catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); } return message; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Type getFcType() { log.finest("getFcType() called"); try { return new BasicComponentType(new InterfaceType[0]); } catch(InstantiationException ie) { throw new Error(ie); } }
13
              
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
catch(Exception e) { e.printStackTrace(); throw new Error(e); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
catch(ClassNotFoundException cnfe) { throw new Error(cnfe); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
catch(NoSuchInterfaceException nsie) { // Must never happen!!! throw new Error("Internal FraSCAti error!", nsie); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
catch(IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
catch(InstantiationException ie) { throw new Error(ie); }
0
(Lib) IOException 12
              
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static boolean compileAll(String sourcePath, String targetPath, List<File> classPath) throws IOException, ParseException{ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>(); StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); List<String> pathNameList= new ArrayList<String>(); List<String> options = new ArrayList<String>(); boolean success = true; File target = new File(targetPath); if (!target.exists() && !target.mkdirs()) { throw new IOException("Impossible to create directory " + targetPath); } File src = new File(sourcePath); if (!src.exists() && ! src.mkdirs()) { throw new IOException("Impossible to create directory " + sourcePath); } //Setting the directory for .class files options.add("-d"); options.add(targetPath); String libList = ""; for(int i = 0 ; i < classPath.size(); i++) { File classPathItem = classPath.get(i); if (i > 0) { if(SCAJavaCompilerImpl.isWindows()){ libList = libList.concat(";"); } else{ libList = libList.concat(":"); } } libList = libList.concat(classPathItem.getCanonicalPath()); } options.add("-classpath"); options.add(libList); if(checkFolder(src, pathNameList) == false){ success = false; } Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, compilationUnits); LOG.info("Compiling..."); if (task.call() == false){ success = false; LOG.severe("Fail!"); String errorMessage = "Compilation fail!\n\n"; for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) { LOG.severe(diagnostic.getMessage(null)); errorMessage = errorMessage.concat(diagnostic.getMessage(null) + "\n"); } throw new ParseException(errorMessage, 0); } else { LOG.info("Ok"); LOG.info("Compiled files:"); for (String filePath : pathNameList) { LOG.info(filePath); } } fileManager.close(); return success; }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static List<File> getClassPath(String libPath) throws IOException { File libDirectory = new File(libPath); List<File> jarFileList = new ArrayList<File>(); if (libDirectory.isDirectory()) { for (File jarFile : libDirectory.listFiles()) { jarFileList.add(jarFile); } }else{ throw new IOException("Classpath not found"); } return jarFileList; }
// in frascati-studio/src/main/java/org/easysoa/utils/JarGenerator.java
public static File generateJarFromAll(String contentJarPath, String outputJarPath) throws Exception{ BufferedOutputStream out = null; out = new BufferedOutputStream(new FileOutputStream(outputJarPath)); File src = new File(contentJarPath); JarUtils.jar(out, src); File jarFile = new File(outputJarPath); if (jarFile.exists()) { return jarFile; }else{ throw new IOException("Jar File " + jarFile.getCanonicalPath() + " NOT FOUND!"); } }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
Override public void copyFilesRecursively(File sourceFile, File sourcePath, File targetPath, FileFilter fileFilter) throws IOException { try { copy(sourceFile, new File(targetPath.getCanonicalPath() + sourceFile.getCanonicalPath().replace(sourcePath.getCanonicalPath(),""))); } catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); } if (sourceFile.isDirectory()) { for (File child : sourceFile.listFiles(fileFilter)) { copyFilesRecursively(child, sourcePath, targetPath, fileFilter); } } }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void unjar(InputStream input, File dest) throws IOException { if (!dest.exists()) { dest.mkdirs(); } if (!dest.isDirectory()) { throw new IOException("Destination must be a directory."); } JarInputStream jin = new JarInputStream(input); byte[] buffer = new byte[1024]; ZipEntry entry = jin.getNextEntry(); while (entry != null) { String fileName = entry.getName(); if (fileName.charAt(fileName.length() - 1) == '/') { fileName = fileName.substring(0, fileName.length() - 1); } if (fileName.charAt(0) == '/') { fileName = fileName.substring(1); } if (File.separatorChar != '/') { fileName = fileName.replace('/', File.separatorChar); } File file = new File(dest, fileName); if (entry.isDirectory()) { // make sure the directory exists file.mkdirs(); jin.closeEntry(); } else { // make sure the directory exists File parent = file.getParentFile(); if (parent != null && !parent.exists()) { parent.mkdirs(); } // dump the file OutputStream out = new FileOutputStream(file); int len = 0; while ((len = jin.read(buffer, 0, buffer.length)) != -1) { out.write(buffer, 0, len); } out.flush(); out.close(); jin.closeEntry(); file.setLastModified(entry.getTime()); } entry = jin.getNextEntry(); } /* Explicity write out the META-INF/MANIFEST.MF so that any headers such as the Class-Path are see for the unpackaged jar */ Manifest manifest = jin.getManifest(); if (manifest != null) { File file = new File(dest, "META-INF/MANIFEST.MF"); File parent = file.getParentFile(); if( parent.exists() == false ) { parent.mkdirs(); } OutputStream out = new FileOutputStream(file); manifest.write(out); out.flush(); out.close(); } jin.close(); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
private boolean deploy(String server,File contribFile) throws Exception { LOG.info("Cloud url : "+server); deployment = JAXRSClientFactory.create(server, Deployment.class); //Deploy contribution String contrib = null; try { contrib = FileUtil.getStringFromFile(contribFile); } catch (IOException e) { throw new IOException("Cannot read the contribution!"); } LOG.info("** Trying to deploy a contribution ..."); try { if (deployment.deployContribution(contrib) >= 0) { LOG.info("** Contribution deployed!"); return true; }else{ LOG.severe("Error trying to deploy contribution in: " + server); return false; } } catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static byte[] getBytesFromFile(File file) throws IOException { InputStream inputStream = new FileInputStream(file); try { // Get the size of the file long length = file.length(); if (length > Integer.MAX_VALUE) { throw new IOException("The file you are trying to read is too large, length :"+length+", length max : "+Integer.MAX_VALUE); } // Create the byte array to hold the data byte[] bytes = new byte[(int) length]; int offset = 0; int numRead = inputStream.read(bytes, offset, bytes.length - offset); while (offset < bytes.length && numRead >= 0) { offset += numRead; numRead = inputStream.read(bytes, offset, bytes.length - offset); } // Ensure all the bytes have been read in if (offset < bytes.length) { throw new IOException("Could not completely read file " + file.getName()); } return bytes; } finally { // Close the input stream and return bytes inputStream.close(); } }
3
              
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { throw new IOException("Cannot read the contribution!"); }
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
catch (Exception e) { throw new IOException("Can not parse " + adl, e); }
50
              
// in osgi/frascati-in-osgi/osgi/concierge_r3/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer=null; //Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port","8888"); main.run((args==null || args.length==0 || (clientOrServer=args[0])==null)?"":clientOrServer); }
// in osgi/frascati-in-osgi/osgi/equinox/src/main/java/org/ow2/frascati/osgi/frameworks/equinox/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54460"); System.out.println("try to run"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/knopflerfish/src/main/java/org/ow2/frascati/osgi/frameworks/knopflerfish/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54463"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { int a = 1; if (args != null && args.length >= 1) { for (; a < args.length; a++) { String arg = args[a]; String[] argEls = arg.split("="); if (argEls.length == 2) { System.setProperty(argEls[0], argEls[1]); } } } Main main = new Main(); String clientOrServer = null; main.launch(((clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/felix/src/main/java/org/ow2/frascati/osgi/frameworks/felix/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54461"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/concierge_r4/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer=null; //Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port","8888"); main.run((args==null || args.length==0 || (clientOrServer=args[0])==null)?"":clientOrServer); }
// in osgi/fractal/juliac/runtime-light/src/main/java/org/objectweb/fractal/juliac/osgi/PlatformImpl.java
public BundleContext getBundleContext() throws IOException, BundleException { return context; }
// in osgi/fractal/juliac/runtime-light/src/main/java/org/objectweb/fractal/juliac/osgi/PlatformImpl.java
public void stop() throws IOException, BundleException { // do nothing }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
public static File createBundleDataStore(File context, Bundle bundle) throws IOException { String root = new StringBuilder("bundle_").append(bundle.getBundleId()) .toString(); File file = new File(new StringBuilder(context.getAbsolutePath()) .append(File.separator).append(root).toString()); if (!file.exists() && !file.mkdir()) { file = IOUtils.createTmpDir(root); } return file; }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
public static void copyFromURL(URL url, String path) throws IOException { InputStream is = url.openStream(); copyFromStream(is, path); }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static boolean compileAll(String sourcePath, String targetPath, List<File> classPath) throws IOException, ParseException{ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>(); StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); List<String> pathNameList= new ArrayList<String>(); List<String> options = new ArrayList<String>(); boolean success = true; File target = new File(targetPath); if (!target.exists() && !target.mkdirs()) { throw new IOException("Impossible to create directory " + targetPath); } File src = new File(sourcePath); if (!src.exists() && ! src.mkdirs()) { throw new IOException("Impossible to create directory " + sourcePath); } //Setting the directory for .class files options.add("-d"); options.add(targetPath); String libList = ""; for(int i = 0 ; i < classPath.size(); i++) { File classPathItem = classPath.get(i); if (i > 0) { if(SCAJavaCompilerImpl.isWindows()){ libList = libList.concat(";"); } else{ libList = libList.concat(":"); } } libList = libList.concat(classPathItem.getCanonicalPath()); } options.add("-classpath"); options.add(libList); if(checkFolder(src, pathNameList) == false){ success = false; } Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, compilationUnits); LOG.info("Compiling..."); if (task.call() == false){ success = false; LOG.severe("Fail!"); String errorMessage = "Compilation fail!\n\n"; for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) { LOG.severe(diagnostic.getMessage(null)); errorMessage = errorMessage.concat(diagnostic.getMessage(null) + "\n"); } throw new ParseException(errorMessage, 0); } else { LOG.info("Ok"); LOG.info("Compiled files:"); for (String filePath : pathNameList) { LOG.info(filePath); } } fileManager.close(); return success; }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
private static boolean checkFolder(File src, List<String> pathNameList) throws IOException { File[] files = src.listFiles(filterJavaFiles); boolean success = true; for (File file : files) { if(file.isDirectory()){ checkFolder(file, pathNameList); } else { pathNameList.add(file.getCanonicalPath()); } } return success; }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static List<File> getClassPath(String libPath) throws IOException { File libDirectory = new File(libPath); List<File> jarFileList = new ArrayList<File>(); if (libDirectory.isDirectory()) { for (File jarFile : libDirectory.listFiles()) { jarFileList.add(jarFile); } }else{ throw new IOException("Classpath not found"); } return jarFileList; }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
Override public void copyFilesRecursively(File sourceFile, File sourcePath, File targetPath) throws IOException{ //Defines no filter FileFilter noFilter = new FileFilter() { public boolean accept(File file) { return true; } }; copyFilesRecursively(sourceFile, sourcePath, targetPath, noFilter); }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
Override public void copyFilesRecursively(File sourceFile, File sourcePath, File targetPath, FileFilter fileFilter) throws IOException { try { copy(sourceFile, new File(targetPath.getCanonicalPath() + sourceFile.getCanonicalPath().replace(sourcePath.getCanonicalPath(),""))); } catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); } if (sourceFile.isDirectory()) { for (File child : sourceFile.listFiles(fileFilter)) { copyFilesRecursively(child, sourcePath, targetPath, fileFilter); } } }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
Override public void deleteRecursively(File src) throws IOException { if (src.isDirectory()) { for (File file : src.listFiles()) { deleteRecursively(file); } } if (src.delete() == false){ LOG.info("The file named " + src.getName() + " was not deleted"); } }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
public static void copy(File src, File dst) throws IOException { //Don't copy if it's a directory if (src.isDirectory()) { dst.mkdir(); return; } InputStream inputStream = new FileInputStream(src); OutputStream outputStream = new FileOutputStream(dst); byte[] buf = new byte[1024]; int len; while ((len = inputStream.read(buf)) > 0) { outputStream.write(buf, 0, len); } inputStream.close(); outputStream.close(); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File src) throws IOException { jar(out, new File[] { src }, null, null, null); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File[] src) throws IOException { jar(out, src, null, null, null); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File[] src, FileFilter filter) throws IOException { jar(out, src, filter, null, null); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File[] src, FileFilter filter, String prefix, Manifest man) throws IOException { for (int i = 0; i < src.length; i++) { if (!src[i].exists()) { throw new FileNotFoundException(src.toString()); } } JarOutputStream jout; if (man == null) { jout = new JarOutputStream(out); } else { jout = new JarOutputStream(out, man); } if (prefix != null && prefix.length() > 0 && !prefix.equals("/")) { // strip leading '/' if (prefix.charAt(0) == '/') { prefix = prefix.substring(1); } // ensure trailing '/' if (prefix.charAt(prefix.length() - 1) != '/') { prefix = prefix + "/"; } } else { prefix = ""; } JarInfo info = new JarInfo(jout, filter); for (int i = 0; i < src.length; i++) { //Modified: The root is not put in the jar file if (src[i].isDirectory()){ File[] files = src[i].listFiles(info.filter); for (int j = 0; j < files.length; j++) { jar(files[j], prefix, info); } } } jout.close(); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
private static void jar(File src, String prefix, JarInfo info) throws IOException { JarOutputStream jout = info.out; if (src.isDirectory()) { // create / init the zip entry prefix = prefix + src.getName() + "/"; ZipEntry entry = new ZipEntry(prefix); entry.setTime(src.lastModified()); entry.setMethod(JarOutputStream.STORED); entry.setSize(0L); entry.setCrc(0L); jout.putNextEntry(entry); jout.closeEntry(); // process the sub-directories File[] files = src.listFiles(info.filter); for (int i = 0; i < files.length; i++) { jar(files[i], prefix, info); } } else if (src.isFile()) { // get the required info objects byte[] buffer = info.buffer; // create / init the zip entry ZipEntry entry = new ZipEntry(prefix + src.getName()); entry.setTime(src.lastModified()); jout.putNextEntry(entry); // dump the file FileInputStream input = new FileInputStream(src); int len; while ((len = input.read(buffer, 0, buffer.length)) != -1) { jout.write(buffer, 0, len); } input.close(); jout.closeEntry(); } }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void unjar(InputStream input, File dest) throws IOException { if (!dest.exists()) { dest.mkdirs(); } if (!dest.isDirectory()) { throw new IOException("Destination must be a directory."); } JarInputStream jin = new JarInputStream(input); byte[] buffer = new byte[1024]; ZipEntry entry = jin.getNextEntry(); while (entry != null) { String fileName = entry.getName(); if (fileName.charAt(fileName.length() - 1) == '/') { fileName = fileName.substring(0, fileName.length() - 1); } if (fileName.charAt(0) == '/') { fileName = fileName.substring(1); } if (File.separatorChar != '/') { fileName = fileName.replace('/', File.separatorChar); } File file = new File(dest, fileName); if (entry.isDirectory()) { // make sure the directory exists file.mkdirs(); jin.closeEntry(); } else { // make sure the directory exists File parent = file.getParentFile(); if (parent != null && !parent.exists()) { parent.mkdirs(); } // dump the file OutputStream out = new FileOutputStream(file); int len = 0; while ((len = jin.read(buffer, 0, buffer.length)) != -1) { out.write(buffer, 0, len); } out.flush(); out.close(); jin.closeEntry(); file.setLastModified(entry.getTime()); } entry = jin.getNextEntry(); } /* Explicity write out the META-INF/MANIFEST.MF so that any headers such as the Class-Path are see for the unpackaged jar */ Manifest manifest = jin.getManifest(); if (manifest != null) { File file = new File(dest, "META-INF/MANIFEST.MF"); File parent = file.getParentFile(); if( parent.exists() == false ) { parent.mkdirs(); } OutputStream out = new FileOutputStream(file); manifest.write(out); out.flush(); out.close(); } jin.close(); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public String convertStreamToString(Reader reader) throws IOException { if (reader != null) { Writer writer = new StringWriter(); char[] buffer = new char[1024]; try { int n; while ((n = reader.read(buffer)) != -1) { writer.write(buffer, 0, n); } } finally { reader.close(); } return writer.toString(); } else { return ""; } }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
protected final void writeComposite(Composite composite) throws IOException { String outputDirectoryPropertyValue = System.getProperty(OUTPUT_DIRECTORY_PROPERTY_NAME, OUTPUT_DIRECTORY_PROPERTY_DEFAULT_VALUE); File compositeOuputDirectory = new File(outputDirectoryPropertyValue + '/').getAbsoluteFile(); compositeOuputDirectory.mkdirs(); File compositeOuput = new File(compositeOuputDirectory, composite.getName() + ".composite"); FileOutputStream fsout = new FileOutputStream(compositeOuput); // Remove <include> elements as there were already included by component IncludeResolver. composite.getInclude().clear(); Map<Object, Object> options = new HashMap<Object, Object>(); options.put(XMLResource.OPTION_ROOT_OBJECTS, Collections.singletonList(composite)); ((XMLResource) composite.eResource()).save(fsout, options); log.warning("Write debug composite " + compositeOuput.getCanonicalPath()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
public static void main(String[] args) throws IOException { // mainComposite : the name of the main composite file // mainService: the name of the main service // mainMethod: the name of the method to call /* * different approaches in reading the jar's manifest are possible, but * they all have limitations when multiple jar files are in the * classpath and each of them provides a MANIFEST.MF file. This * technique seems to be the simplest solution that works. */ String jarFileName = System.getProperty("java.class.path").split( System.getProperty("path.separator"))[0]; JarFile jar = new JarFile(jarFileName); // create a Manifest obj Manifest mf = jar.getManifest(); if (mf == null) { throw new IllegalStateException("Cannot read " + jarFileName + ":!META-INF/MANIFEST.MF from " + jarFileName); } final Attributes mainAttributes = mf.getMainAttributes(); // get the mainComposite attribute value final String mainComposite = mainAttributes.getValue("mainComposite"); if (mainComposite == null) { throw new IllegalArgumentException( "Manifest file " + jarFileName + ":!META-IN/MANIFEST.MF does not provide attribute 'mainComposite'"); } // mainService and mainMethod are optional String mainService = mainAttributes.getValue("mainService"); String mainMethod = mainAttributes.getValue("mainMethod"); try { final Launcher launcher = new Launcher(mainComposite); if (mainService != null && mainMethod != null) { // TODO how to get the return type? @SuppressWarnings("unchecked") Object[] params = (Object[])args; launcher.call(mainService, mainMethod, null, params); } else { launcher.launch(); } } catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); } }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Check if this request is for this handler. if(target.startsWith(getName())) { // Remove the path from the path info of this request. String old_path_info = baseRequest.getPathInfo(); baseRequest.setPathInfo(old_path_info.substring(getName().length())); // Dispatch the request to the servlet. this.servlet.service(request, response); // Restore the previous path info. baseRequest.setPathInfo(old_path_info); // This request was handled. baseRequest.setHandled(true); } }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
Override public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; String pathInfo = httpRequest.getPathInfo(); if(pathInfo != null) { // Search a deployed servlet that could handle this request. for(Entry<String, Servlet> entry : servlets.entrySet()) { if(pathInfo.startsWith(entry.getKey())) { entry.getValue().service(new MyHttpServletRequestWrapper(httpRequest, pathInfo.substring(entry.getKey().length())), response); return; } } } // If no deployed servlet for this request then dispatch this request via Apache CXF. super.service(request, response); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // The requested resource. String pathInfo = request.getPathInfo(); if(pathInfo == null) { pathInfo = ""; } int idx = pathInfo.lastIndexOf('.'); String extension = (idx != -1) ? pathInfo.substring(idx) : ""; // Search the requested resource into the class loader. InputStream is = this.classloader.getResourceAsStream(this.location + pathInfo); if(is == null) { // Requested resource not found. super.doGet(request, response); return; } // Requested resource found. response.setStatus(HttpServletResponse.SC_OK); String mimeType = extensions2mimeTypes.getProperty(extension); if(mimeType == null) { mimeType = "text/plain"; } response.setContentType(mimeType); // Copy the resource stream to the servlet output stream. Stream.copy(is, response.getOutputStream()); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // The requested resource. String requestedResource = request.getPathInfo(); // System.out.println("Requested " + requestedResource); // If no requested resource then redirect to '/'. if (requestedResource == null || requestedResource.equals("")) { response.sendRedirect(request.getRequestURL().append('/') .toString()); return; } // If the requested resource is '/' then use the default resource. if (requestedResource.equals("/")) { requestedResource = '/' + this.defaultResource; } // Compute extension of the requested resource. int idx = requestedResource.lastIndexOf('.'); String extension = (idx != -1) ? requestedResource.substring(idx) : ".txt"; // Set response status to OK. response.setStatus(HttpServletResponse.SC_OK); // Set response content type. response.setContentType(extensions2mimeTypes.getProperty(extension)); // Is a templatable requested resource? if (templatables.contains(extension)) { // Get the requested resource as a Velocity template. Template template = null; try { template = this.velocityEngine.getTemplate(requestedResource .substring(1)); } catch (Exception exc) { exc.printStackTrace(System.err); // Requested resource not found. super.service(request, response); return; } // Create a Velocity context connected to the component's Velocity // context. VelocityContext context = new VelocityContext(this.velocityContext); // Put the HTTP request and response into the Velocity context. context.put("request", request); context.put("response", response); // inject HTTP parameters as Velocity variables. Enumeration<?> parameterNames = request.getParameterNames(); while (parameterNames.hasMoreElements()) { String parameterName = (String) parameterNames.nextElement(); context.put(parameterName, request.getParameter(parameterName)); } // TODO: should not be called but @Lifecycle does not work as // expected. registerScaProperties(); // Process the template. OutputStreamWriter osw = new OutputStreamWriter( response.getOutputStream()); template.merge(context, osw); osw.flush(); } else { // Search the requested resource into the class loader. InputStream is = this.classLoader.getResourceAsStream(this.location + requestedResource); if (is == null) { // Requested resource not found. super.service(request, response); return; } // Copy the requested resource to the HTTP response output stream. Stream.copy(is, response.getOutputStream()); is.close(); } }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/Stream.java
public static void copy(InputStream is, OutputStream os) throws IOException { byte[] buffer = new byte[BUFFER_SIZE]; int len; while ((len = is.read(buffer)) >= 0) { os.write(buffer, 0, len); } }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/JNAeratorCompiler.java
public final void compile(File file, File output) throws IOException { this.cfg.outputDir = output; if (!this.cfg.outputDir.exists()) { this.cfg.outputDir.mkdirs(); } this.cfg.addSourceFile(file, packageName(file), true); this.generator.jnaerate(this.feedback); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ParentApplicationContext.java
public final Resource[] getResources (final String locationPattern) throws IOException { log.finer("Spring parent context - getResources called"); return new Resource[0]; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static byte[] getBytesFromFile(File file) throws IOException { InputStream inputStream = new FileInputStream(file); try { // Get the size of the file long length = file.length(); if (length > Integer.MAX_VALUE) { throw new IOException("The file you are trying to read is too large, length :"+length+", length max : "+Integer.MAX_VALUE); } // Create the byte array to hold the data byte[] bytes = new byte[(int) length]; int offset = 0; int numRead = inputStream.read(bytes, offset, bytes.length - offset); while (offset < bytes.length && numRead >= 0) { offset += numRead; numRead = inputStream.read(bytes, offset, bytes.length - offset); } // Ensure all the bytes have been read in if (offset < bytes.length) { throw new IOException("Could not completely read file " + file.getName()); } return bytes; } finally { // Close the input stream and return bytes inputStream.close(); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static String getStringFromFile(File file) throws IOException { return Base64Utility.encode(getBytesFromFile(file)); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static File decodeFile(String encodedFile, String extension) throws Base64Exception, IOException { File destFile = null; BufferedOutputStream bos = null; byte[] content = Base64Utility.decode(encodedFile); String tempFileName = ""; if (extension != null && !"".equals(extension)) { tempFileName = "." + extension; } destFile = File.createTempFile("deploy", tempFileName); try { bos = new BufferedOutputStream(new FileOutputStream(destFile)); bos.write(content); bos.flush(); } finally { bos.close(); } return destFile; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static File unZipHere(File toUnzip) throws ZipException, IOException { String destFilePath = toUnzip.getAbsolutePath(); String destDirPath = destFilePath.substring(0, destFilePath.lastIndexOf('.')); File destDir = new File(destDirPath); boolean isDirMade=destDir.mkdirs(); if(isDirMade) { Log.info("build directory for file "+destDirPath); } ZipFile zfile = new ZipFile(toUnzip); Enumeration<? extends ZipEntry> entries = zfile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = entries.nextElement(); File file = new File(destDir, entry.getName()); if (entry.isDirectory()) { isDirMade=file.mkdirs(); if(isDirMade) { Log.info("build directory for zip entry "+entry.getName()); } } else { isDirMade=file.getParentFile().mkdirs(); if(isDirMade) { Log.info("build parent directory for zip entry "+entry.getName()); } InputStream inputStream; inputStream = zfile.getInputStream(entry); try { copy(inputStream, file); }finally { inputStream.close(); } } } return destDir; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static void copy(InputStream inputStream, OutputStream outputStream) throws IOException { byte[] buffer = new byte[1024]; while (true) { int readCount = inputStream.read(buffer); if (readCount < 0) { break; } outputStream.write(buffer, 0, readCount); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static void copy(File file, OutputStream out) throws IOException { InputStream inputStream = new FileInputStream(file); try { copy(inputStream, out); } finally { inputStream.close(); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static void copy(InputStream inputStream, File file) throws IOException { OutputStream out = new FileOutputStream(file); try { copy(inputStream, out); } finally { out.close(); } }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
public static void zip(File inFile, File outFile) throws IOException { final int buffer = 2048; FileOutputStream dest = new FileOutputStream(outFile); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(dest)); try { byte data[] = new byte[buffer]; Collection<String> list = listFiles(inFile, ""); for (String file : list) { FileInputStream fis = new FileInputStream(new File(inFile, file)); BufferedInputStream origin = new BufferedInputStream(fis, buffer); ZipEntry entry = new ZipEntry(file); out.putNextEntry(entry); try { int count; while ((count = origin.read(data, 0, buffer)) != -1) { out.write(data, 0, count); } } finally { origin.close(); fis.close(); } } } catch (Exception e) { log.log(Level.SEVERE, "Problem while zipping file!", e); } finally { out.close(); dest.close(); } }
(Lib) IllegalArgumentException 12
              
// in nuxeo/frascati-metamodel-nuxeo/src/main/java/org/ow2/frascati/nuxeo/impl/NuxeoFactoryImpl.java
public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case NuxeoPackage.DOCUMENT_ROOT: return createDocumentRoot(); case NuxeoPackage.NUXEO_BINDING: return createNuxeoBinding(); case NuxeoPackage.NUXEO_IMPLEMENTATION: return createNuxeoImplementation(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } }
// in frascati-studio/src/main/java/org/easysoa/model/Civility.java
public static Civility fromValue(String value) { if("Mr".equals(value)){ return Civility.MR; } if("Mrs".equals(value)){ return Civility.MRS; } if("Miss".equals(value)){ return Civility.MISS; } throw new IllegalArgumentException(value); }
// in frascati-studio/src/main/java/org/easysoa/model/SocialNetwork.java
public static SocialNetwork fromValue(String v) { v = v.toLowerCase(); if(v.equals("twitter")){ return SocialNetwork.TWITTER; } else if(v.equals("facebook")){ return SocialNetwork.FACEBOOK; } else if(v.equals("google")){ return SocialNetwork.GOOGLE; } throw new IllegalArgumentException(v); }
// in frascati-studio/src/main/java/org/easysoa/model/Role.java
public static Role fromValue(String value) { if("Admin".equals(value)){ return Role.ADMIN; } if("User".equals(value)){ return Role.USER; } throw new IllegalArgumentException(value); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/AbstractWsdlInvocationHandler.java
protected final String marshallInvocation(Method method, Object[] args) throws Exception { // TODO: Support for zero and several arguments must be added. if(args.length != 1) { throw new IllegalArgumentException("Only methods with one argument are supported, given method is " + method + " and argument length is " + args.length); } // Compute the qname of the first parameter. QName qname = getQNameOfFirstArgument(method); // Marshall the first argument into as an XML message. return JAXB.marshall(qname, args[0]); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
public static void main(String[] args) throws IOException { // mainComposite : the name of the main composite file // mainService: the name of the main service // mainMethod: the name of the method to call /* * different approaches in reading the jar's manifest are possible, but * they all have limitations when multiple jar files are in the * classpath and each of them provides a MANIFEST.MF file. This * technique seems to be the simplest solution that works. */ String jarFileName = System.getProperty("java.class.path").split( System.getProperty("path.separator"))[0]; JarFile jar = new JarFile(jarFileName); // create a Manifest obj Manifest mf = jar.getManifest(); if (mf == null) { throw new IllegalStateException("Cannot read " + jarFileName + ":!META-INF/MANIFEST.MF from " + jarFileName); } final Attributes mainAttributes = mf.getMainAttributes(); // get the mainComposite attribute value final String mainComposite = mainAttributes.getValue("mainComposite"); if (mainComposite == null) { throw new IllegalArgumentException( "Manifest file " + jarFileName + ":!META-IN/MANIFEST.MF does not provide attribute 'mainComposite'"); } // mainService and mainMethod are optional String mainService = mainAttributes.getValue("mainService"); String mainMethod = mainAttributes.getValue("mainMethod"); try { final Launcher launcher = new Launcher(mainComposite); if (mainService != null && mainMethod != null) { // TODO how to get the return type? @SuppressWarnings("unchecked") Object[] params = (Object[])args; launcher.call(mainService, mainMethod, null, params); } else { launcher.launch(); } } catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); } }
// in modules/frascati-metamodel-frascati-ext/src/org/ow2/frascati/model/impl/ModelFactoryImpl.java
Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case ModelPackage.DOCUMENT_ROOT: return createDocumentRoot(); case ModelPackage.OSGI_IMPLEMENTATION: return createOsgiImplementation(); case ModelPackage.SCRIPT_IMPLEMENTATION: return createScriptImplementation(); case ModelPackage.REST_BINDING: return createRestBinding(); case ModelPackage.RMI_BINDING: return createRMIBinding(); case ModelPackage.JSON_RPC_BINDING: return createJsonRpcBinding(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyNode.java
public final Object getProperty(String name) { if ("name".equals(name)) { return getName(); // } else if ("type".equals(name)) { // return getType(); } else if ("value".equals(name)) { return getValue(); } else { throw new IllegalArgumentException("Invalid property name '" + name + "'."); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
public Set<Node> selectFrom(Node source) { Component comp = null; if (source instanceof ComponentNode) { comp = ((ComponentNode) source).getComponent(); } else if (source instanceof InterfaceNode) { comp = ((InterfaceNode) source).getInterface().getFcItfOwner(); } else { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } SCAPropertyController ctl = null; Set<Node> result = new HashSet<Node>(); try { ctl = (SCAPropertyController) comp.getFcInterface(SCAPropertyController.NAME); for (String name : ctl.getPropertyNames() ) { Node node = new ScaPropertyNode((FraSCAtiModel) model, comp, ctl, name); result.add(node); } } catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); } return result; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
public Set<Node> selectFrom(Node source) { Component comp = null; Interface itf = null; SCABasicIntentController ic = null; try { comp = ((ComponentNode) source).getComponent(); } catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } } Set<Node> result = new HashSet<Node>(); try { ic = (SCABasicIntentController) comp.getFcInterface(SCABasicIntentController.NAME); } catch (NoSuchInterfaceException e) { // No intent controller => no intents on this component return Collections.emptySet(); } try { if (itf == null) { for (Object anItf : comp.getFcInterfaces() ) { result.addAll( getIntentNodes(ic, (Interface) anItf) ); } } else { result.addAll( getIntentNodes(ic, (Interface) itf) ); } } catch (NoSuchInterfaceException e) { log.warning("One interface cannot be retrieved on " + comp + "!"); e.printStackTrace(); } return result; }
2
              
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); }
3
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void set(Object value) throws IllegalArgumentException { try { writer.invoke(target, new Object[] { value }); } catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); } catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); } }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void setValue(String name, Object value) throws IllegalArgumentException { log.finest("setValue(\"" + name + "\", " + value + ") called"); }
(Lib) NoSuchInterfaceException 11
              
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Object getFcInterface(String interfaceName) throws NoSuchInterfaceException { log.finest("getFcInterface(\"" + interfaceName + "\") called"); Object result = interfaces.get(interfaceName); if(result == null) { throw new NoSuchInterfaceException(interfaceName); } return result; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Object getFcInternalInterface(String interfaceName) throws NoSuchInterfaceException { log.finest("getFcInternalInterface(\"" + interfaceName + "\") called"); throw new NoSuchInterfaceException(interfaceName); }
0 26
              
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
public static LifeCycleController getLifeCycleController (final Component component) throws NoSuchInterfaceException { return Fractal.getLifeCycleController(component); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
Override protected final void addIntentHandler(EObjectType baseReference, SCABasicIntentController intentController, IntentHandler intentHandler) throws NoSuchInterfaceException, IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler, baseReference.getName()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
Override protected final void addIntentHandler(EObjectType baseService, SCABasicIntentController intentController, IntentHandler intentHandler) throws NoSuchInterfaceException, IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler, baseService.getName()); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
Override protected final Component getParentComponent(Component comp) throws NoSuchInterfaceException { Component[] parents = Fractal.getSuperController(comp).getFcSuperComponents(); for (Component parent: parents) { if (Fractal.getNameController(parent).getFcName().endsWith("-container")) { return parent; } } return parents[0]; // No container found, keep the previous behavior: return the first parent }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public Object lookupFc(String clientItfName) throws NoSuchInterfaceException { if (BINDINGS[0].equals(clientItfName)) return this.servant; if (BINDINGS[1].equals(clientItfName)) return this.messageListener; if (BINDINGS[2].equals(clientItfName)) return this.membershipListener; return null; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { if (BINDINGS[0].equals(clientItfName)) this.servant = serverItf; if (BINDINGS[1].equals(clientItfName)) this.messageListener = (MessageListener) serverItf; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = (MembershipListener) serverItf; if ("component".equals(clientItfName)) this.comp = (Component) serverItf; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void unbindFc(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException{ if (BINDINGS[0].equals(clientItfName)) this.servant = null; if (BINDINGS[1].equals(clientItfName)) this.messageListener = null; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = null; if ("component".equals(clientItfName)) this.comp = null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
public Object lookupFc(String clItfName) throws NoSuchInterfaceException { if (COMPOSITE_MANAGER_ITF.equals(clItfName)) { return this.compositeManager; } else if (CLASSLOADER_MANAGER_ITF.equals(clItfName)) { return this.classLoderManager; } else if (BINDING_FACTORY_ITF.equals(clItfName)) { return this.bindingFactory; } else { return super.lookupFc(clItfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
public void bindFc(String clItfName, Object srvItf) throws NoSuchInterfaceException { if (COMPOSITE_MANAGER_ITF.equals(clItfName)) { this.compositeManager = (CompositeManager) srvItf; } else if (CLASSLOADER_MANAGER_ITF.equals(clItfName)) { this.classLoderManager = (ClassLoaderManager) srvItf; } else if (BINDING_FACTORY_ITF.equals(clItfName)) { this.bindingFactory = (BindingFactory) srvItf; } else { super.bindFc(clItfName, srvItf); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
public void unbindFc(String clItfName) throws NoSuchInterfaceException { if (COMPOSITE_MANAGER_ITF.equals(clItfName)) { this.compositeManager = null; } else if (CLASSLOADER_MANAGER_ITF.equals(clItfName)) { this.classLoderManager = null; } else if (BINDING_FACTORY_ITF.equals(clItfName)) { this.bindingFactory = null; } else { super.unbindFc(clItfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
private List<ScaIntentNode> getIntentNodes(SCABasicIntentController ic, Interface itf) throws NoSuchInterfaceException { List<ScaIntentNode> nodes = new ArrayList<ScaIntentNode>(); String itfName = itf.getFcItfName(); if ( !itfName.endsWith("-controller") && !itfName.equals("component")) { // no intents on controllers List<IntentHandler> intents = ic.listFcIntentHandler( itf.getFcItfName() ); for (IntentHandler intent : intents) { Component impl = ((Interface) intent).getFcItfOwner(); String name = Fractal.getNameController(impl).getFcName(); nodes.add( new ScaIntentNode((FraSCAtiModel) this.model, ic, name, impl, itf) ); } } return nodes; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public ObjectName register(MBeanServer mbs) throws NoSuchInterfaceException, IllegalLifeCycleException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "registering component " + moduleName + " in MBeanServer"); } try { for (Component child : getContentController(component) .getFcSubComponents()) { new JmxComponent(child, prefix).register(mbs); } } catch (NoSuchInterfaceException e) { // current component is not container } mbs.registerMBean(this, moduleName); return moduleName; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static List<org.objectweb.fractal.api.Component> getChildren(org.objectweb.fractal.api.Component owner) throws NoSuchInterfaceException { List<org.objectweb.fractal.api.Component> children = new LinkedList<org.objectweb.fractal.api.Component>(); org.objectweb.fractal.api.Component[] parents = Fractal.getSuperController(owner).getFcSuperComponents(); for (org.objectweb.fractal.api.Component c : parents) { ContentController contentController = Fractal.getContentController(c); org.objectweb.fractal.api.Component[] subComponents = contentController.getFcSubComponents(); for (org.objectweb.fractal.api.Component child : subComponents) { children.add(child); } } return children; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
private static Binding getServiceBindingKind(org.objectweb.fractal.api.Component boundInterfaceOwner) throws NoSuchInterfaceException { Binding binding = new Binding(); String boundInterfaceOwnerName = Fractal.getNameController(boundInterfaceOwner).getFcName(); /* * first check the name's end to avoid a null attribute * controller check */ // JGroups binding if (boundInterfaceOwnerName.endsWith("-jgroups-connector")) { binding.setKind(BindingKind.JGROUPS); } // JNA binding else if (boundInterfaceOwnerName.endsWith("-jna-proxy")) { binding.setKind(BindingKind.JNA); } // JMS binding else if (boundInterfaceOwnerName.endsWith("-jms-stub")) { binding.setKind(BindingKind.JMS); } // RMI binding else if (boundInterfaceOwnerName.endsWith("-rmi-stub")) { binding.setKind(BindingKind.RMI); } else { AttributeController attributeController = Fractal.getAttributeController(boundInterfaceOwner); // WS binding if ((attributeController instanceof WsSkeletonContentAttributes) || (attributeController instanceof WsStubContentAttributes)) { binding.setKind(BindingKind.WS); } // RESTful binding else if ((attributeController instanceof RestSkeletonContentAttributes) || (attributeController instanceof RestStubContentAttributes)) { binding.setKind(BindingKind.REST); } // JSON-RPC binding else if ((attributeController instanceof JsonRpcSkeletonContentAttributes) || (attributeController instanceof JsonRpcStubContentAttributes)) { binding.setKind(BindingKind.JSON_RPC); } // UPnP binding else if ((attributeController instanceof UPnPSkeletonContentAttributes) || (attributeController instanceof UPnPStubContentAttributes)) { binding.setKind(BindingKind.UPNP); } // rmi-skelton have no AttributeController // else if ((ac instanceof RmiSkeletonAttributes) // || (ac instanceof RmiStubAttributes) ) { // binding.setKind(BindingKind.RMI); // } } return binding; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Object getFcInterface(String interfaceName) throws NoSuchInterfaceException { log.finest("getFcInterface(\"" + interfaceName + "\") called"); Object result = interfaces.get(interfaceName); if(result == null) { throw new NoSuchInterfaceException(interfaceName); } return result; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Object getFcInternalInterface(String interfaceName) throws NoSuchInterfaceException { log.finest("getFcInternalInterface(\"" + interfaceName + "\") called"); throw new NoSuchInterfaceException(interfaceName); }
(Lib) IllegalStateException 10
              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
public static void main(String[] args) throws IOException { // mainComposite : the name of the main composite file // mainService: the name of the main service // mainMethod: the name of the method to call /* * different approaches in reading the jar's manifest are possible, but * they all have limitations when multiple jar files are in the * classpath and each of them provides a MANIFEST.MF file. This * technique seems to be the simplest solution that works. */ String jarFileName = System.getProperty("java.class.path").split( System.getProperty("path.separator"))[0]; JarFile jar = new JarFile(jarFileName); // create a Manifest obj Manifest mf = jar.getManifest(); if (mf == null) { throw new IllegalStateException("Cannot read " + jarFileName + ":!META-INF/MANIFEST.MF from " + jarFileName); } final Attributes mainAttributes = mf.getMainAttributes(); // get the mainComposite attribute value final String mainComposite = mainAttributes.getValue("mainComposite"); if (mainComposite == null) { throw new IllegalArgumentException( "Manifest file " + jarFileName + ":!META-IN/MANIFEST.MF does not provide attribute 'mainComposite'"); } // mainService and mainMethod are optional String mainService = mainAttributes.getValue("mainService"); String mainMethod = mainAttributes.getValue("mainMethod"); try { final Launcher launcher = new Launcher(mainComposite); if (mainService != null && mainMethod != null) { // TODO how to get the return type? @SuppressWarnings("unchecked") Object[] params = (Object[])args; launcher.call(mainService, mainMethod, null, params); } else { launcher.launch(); } } catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
public static void start() { if (started) { System.out.println("JORAM server has already been started."); return; } System.out.println("Starting JORAM..."); try { AgentServer.init(new String[] { "0", "target/s0" }); AgentServer.start(); AdminModule.connect("root", "root", 60); Queue queue = Queue.create("queue"); Topic topic = Topic.create("topic"); User.create("anonymous", "anonymous"); queue.setFreeReading(); topic.setFreeReading(); queue.setFreeWriting(); topic.setFreeWriting(); ConnectionFactory cf = TcpConnectionFactory.create("localhost", TCP_CONNECTION_FACTORY_PORT); Context jndiCtx = new InitialContext(); jndiCtx.bind("cf", cf); jndiCtx.bind("queue", queue); jndiCtx.bind("topic", topic); jndiCtx.close(); AdminModule.disconnect(); started = true; } catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
public static void start(String CorrelationScheme) { if (started) { System.out.println("JORAM server has already been started."); return; } System.out.println("Starting JORAM..."); try { AgentServer.init(new String[] { "0", "target/s0" }); AgentServer.start(); AdminModule.connect("root", "root", 60); Queue queue = Queue.create("queue"); Topic topic = Topic.create("topic"); User.create("anonymous", "anonymous"); queue.setFreeReading(); topic.setFreeReading(); queue.setFreeWriting(); topic.setFreeWriting(); // Innitaliase the connectionfactory ConnectionFactory cf = null; try { URI uri=URI.create(CorrelationScheme); cf = TcpConnectionFactory.create(uri.getHost(), TCP_CONNECTION_FACTORY_PORT); } catch(IllegalArgumentException e) { cf = TcpConnectionFactory.create("localhost", TCP_CONNECTION_FACTORY_PORT); } Context jndiCtx = new InitialContext(); jndiCtx.bind("cf", cf); jndiCtx.bind("queue", queue); jndiCtx.bind("topic", topic); jndiCtx.close(); AdminModule.disconnect(); started = true; } catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
public void start() throws JMSException, NamingException { log.info("******************************"); log.info("correlationScheme: " + jmsAttributes.getCorrelationScheme()); log.info("JndiURL: " + jmsAttributes.getJndiURL()); log.info("ConnFactName: " + jmsAttributes.getJndiConnectionFactoryName()); log.info("InitialContextFactory: " + jmsAttributes.getJndiInitialContextFactory()); log.info("DestinationName: " + jmsAttributes.getJndiDestinationName()); log.info("CreateDestinationMode: " + jmsAttributes.getCreateDestinationMode()); log.info("DestinationType: " + jmsAttributes.getDestinationType()); log.info("priority: " + jmsAttributes.getPriority()); log.info("ttl: " + jmsAttributes.getTimeToLive()); log.info("selector: " + jmsAttributes.getSelector()); log.info("persistent: " + jmsAttributes.getPersistent()); log.info("******************************"); // Retrieve initial context. Hashtable environment = new Hashtable(); if (!jmsAttributes.getJndiInitialContextFactory().equals(JmsConnectorConstants.NO_JNDI_INITCONTEXTFACT)) { environment.put(Context.INITIAL_CONTEXT_FACTORY, jmsAttributes.getJndiInitialContextFactory()); } if (!jmsAttributes.getJndiURL().equals(JmsConnectorConstants.NO_JNDI_URL)) { environment.put(Context.PROVIDER_URL, jmsAttributes.getJndiURL()); } Context ictx = new InitialContext(environment); // Lookup for elements in the JNDI. ConnectionFactory cf; try { cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } } try { destination = (Destination) ictx.lookup(jmsAttributes.getJndiDestinationName()); } catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } } // Create the connection jmsCnx = cf.createConnection(); session = jmsCnx.createSession(false, Session.AUTO_ACKNOWLEDGE); responseSession = jmsCnx.createSession(false, Session.AUTO_ACKNOWLEDGE); jmsCnx.start(); if (destination == null) { // Create destination if it doesn't exist in JNDI if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_QUEUE)) { destination = session.createQueue(jmsAttributes.getJndiDestinationName()); ictx.bind(jmsAttributes.getJndiDestinationName(), destination); } else if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_TOPIC)) { destination = session.createTopic(jmsAttributes.getJndiDestinationName()); ictx.bind(jmsAttributes.getJndiDestinationName(), destination); } else { throw new IllegalStateException("Unknown destination type: " + jmsAttributes.getDestinationType()); } } else { // Check that the object found in JNDI is correct if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_ALWAYS)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " already exists in JNDI."); } if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_QUEUE) && !(destination instanceof javax.jms.Queue)) { throw new IllegalStateException("Object found in JNDI " + jmsAttributes.getJndiDestinationName() + " does not match declared type 'queue'."); } if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_TOPIC) && !(destination instanceof javax.jms.Topic)) { throw new IllegalStateException("Object found in JNDI " + jmsAttributes.getJndiDestinationName() + " does not match declared type 'topic'."); } } try { responseDestination = (Destination) ictx.lookup(jmsAttributes.getJndiResponseDestinationName()); } catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); } ictx.close(); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
Override public final void startFc() { delegate = WsdlDelegateFactory.newWsdlDelegate(getServant(), getServiceClass(), getClass().getClassLoader()); try { jmsModule = new JmsModule(this); jmsModule.start(); // start listening to incoming messages MessageConsumer consumer = jmsModule.getSession().createConsumer(jmsModule.getDestination(), getSelector()); consumer.setMessageListener(this); } catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); } super.startFc(); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
Override public void startFc() throws IllegalLifeCycleException { try { jmsModule = new JmsModule(this); jmsModule.start(); producer = jmsModule.getSession().createProducer(jmsModule.getDestination()); } catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); } super.startFc(); }
5
              
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); }
0
(Domain) ProcessorException 9
              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doInstantiate(Composite composite, ProcessingContext processingContext) throws ProcessorException { // Instantiate the composite container. Component containerComponent = null; // Create a container for root composites only and // not for composites enclosed into composites. boolean isTheRootComposite = processingContext.getRootComposite() == composite; if(isTheRootComposite) { try { logDo(processingContext, composite, "instantiate the composite container"); containerComponent = componentFactory.createScaCompositeComponent(null); logDone(processingContext, composite, "instantiate the composite container"); } catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to create the composite container", fe)); return; } // Set the name for the composite container. setComponentName(composite, "composite container", containerComponent, composite.getName() + "-container", processingContext); } // Retrieve the composite type from the processing context. ComponentType compositeComponentType = getFractalComponentType(composite, processingContext); // Instantiate the composite component. Component compositeComponent; try { logDo(processingContext, composite, "instantiate the composite component"); compositeComponent = componentFactory.createScaCompositeComponent(compositeComponentType); logDone(processingContext, composite, "instantiate the composite component"); } catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); } // Keep the composite component into the processing context. processingContext.putData(composite, Component.class, compositeComponent); // Set the name for this assembly. setComponentName(composite, "composite", compositeComponent, composite.getName(), processingContext); // Add the SCA composite into the composite container. if(isTheRootComposite) { addFractalSubComponent(containerComponent, compositeComponent); } // Instantiate the composite components. instantiate(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Instantiate the composite services. instantiate(composite, SCA_SERVICE, composite.getService(), serviceProcessor, processingContext); // Instantiate composite references. instantiate(composite, SCA_REFERENCE, composite.getReference(), referenceProcessor, processingContext); // Instantiate composite properties. instantiate(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Instantiate the composite wires. instantiate(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
private Component createProxyComponent(JnaBinding binding, ProcessingContext ctx) throws ProcessorException { Class<?> cls = getBaseReferenceJavaInterface(binding, ctx); try { Object library = Native.loadLibrary(binding.getLibrary(), cls); ComponentType proxyType = tf .createComponentType(new InterfaceType[] { tf .createInterfaceType(JNA_ITF, cls.getName(), false, false, false) }); return cf.createComponent(proxyType, "primitive", library); } catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); } catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); } }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doInstantiate(JnaBinding binding, ProcessingContext ctx) throws ProcessorException { Component proxy = createProxyComponent(binding, ctx); Component port = getFractalComponent(binding, ctx); try { getNameController(proxy).setFcName( getNameController(port).getFcName() + "-jna-proxy"); for (Component composite : getSuperController(port) .getFcSuperComponents()) { addFractalSubComponent(composite, proxy); } BaseReference reference = getBaseReference(binding); bindFractalComponent(port, reference.getName(), proxy.getFcInterface(JNA_ITF)); } catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); } logFine(ctx, binding, "importing done"); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
Override protected final void doCheck(JMSBinding jmsBinding, ProcessingContext processingContext) throws ProcessorException { // Check if getUri() is well-formed. if (jmsBinding.getUri() != null && !jmsBinding.getUri().equals("")) { Matcher matcher = JMS_URI_PATTERN.matcher(jmsBinding.getUri()); if (!matcher.matches()) { throw new ProcessorException(jmsBinding, "JMS URI is not well formed."); } String jmsvariant = matcher.group(1); try { jmsvariant = URLDecoder.decode(jmsvariant, "UTF-8"); } catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); } if (!jmsvariant.equals("jndi")) { throw new ProcessorException(jmsBinding, "Only jms:jndi: variant is supported."); } // When the @uri attribute is specified, the destination element // MUST NOT be present if (jmsBinding.getDestination() != null) { throw new ProcessorException(jmsBinding, "Binding can't have both a JMS URI and a destination element."); } } // Default checking done on any SCA binding. super.doCheck(jmsBinding, processingContext); }
6
              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(Exception e) { // Should never happen but we never know! throw new ProcessorException(e); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
catch (Exception e) { throw new ProcessorException(binding, e); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); }
124
              
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
Override protected final void doCheck(OsgiImplementation osgiImplementation, ProcessingContext processingContext) throws ProcessorException { String osgiImplementationBundle = osgiImplementation.getBundle(); if(isNullOrEmpty(osgiImplementationBundle)) { error(processingContext, osgiImplementation, "The attribute 'bundle' must be set"); } else { // TODO check that bundles are available? } // check attributes 'policySets' and 'requires'. checkImplementation(osgiImplementation, processingContext); }
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
Override protected final void doGenerate(OsgiImplementation osgiImplementation, ProcessingContext processingContext) throws ProcessorException { try { getComponentFactory().generateMembrane(getFractalComponentType(osgiImplementation, processingContext), "osgiPrimitive", osgiImplementation.getBundle()); } catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); } }
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
Override protected final void doInstantiate(OsgiImplementation osgiImplementation, ProcessingContext processingContext) throws ProcessorException { // get instance of an OSGI primitive component Component component; try { component = getComponentFactory().createComponent(getFractalComponentType(osgiImplementation, processingContext), "osgiPrimitive", osgiImplementation.getBundle()); } catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); return; } // Store the created component into the processing context. processingContext.putData(osgiImplementation, Component.class, component); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
Override protected final void doCheck(HTTPBinding httpBinding, ProcessingContext processingContext) throws ProcessorException { checkAttributeMustBeSet(httpBinding, "uri", httpBinding.getUri(), processingContext); checkAttributeNotSupported(httpBinding, "name", httpBinding.getName() != null, processingContext); if(!hasBaseService(httpBinding)) { error(processingContext, httpBinding, "Can only be child of <sca:service>"); } else { // Get the Java class of the interface of the service. Class<?> interfaceClass = getBaseServiceJavaInterface(httpBinding, processingContext); if(interfaceClass != null) { if(!Servlet.class.isAssignableFrom(interfaceClass)) { error(processingContext, httpBinding, "The service's interface '", interfaceClass.getCanonicalName(), "' must be compatible with '", Servlet.class.getCanonicalName(), "'"); } } } checkBinding(httpBinding, processingContext); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
Override protected final void doGenerate(HTTPBinding httpBinding, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, httpBinding, "nothing to generate"); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
Override protected final void doInstantiate(HTTPBinding httpBinding, ProcessingContext processingContext) throws ProcessorException { // The following is safe as it was checked in the method check(). BaseService service = getBaseService(httpBinding); Servlet servlet; try { // Get the component from the processing context. Component componentToBind = getFractalComponent(httpBinding, processingContext); // The following cast is safe as it was checked in the method check(). servlet = (Servlet)componentToBind.getFcInterface(service.getName()); } catch(NoSuchInterfaceException nsie) { // Should not happen! severe(new ProcessorException(httpBinding, "Internal Fractal error!", nsie)); return; } // TODO Here use Tinfi or Assembly Factory to create the binding component. final HttpBinding bindingHttp = new HttpBinding(); bindingHttp.uri = completeBindingURI(httpBinding); bindingHttp.servlet = servlet; bindingHttp.servletManager = servletManager; // TODO: Following could be moved into complete() or @Init method of the binding component. // // It seems to be not needed to run a Thread to initialize the new binding. // Moreover Google App Engine does not allow us to create threads. // // new Thread() { // public void run() { try { bindingHttp.initialize(); } catch(Exception exc) { log.throwing("", "", exc); } // } // }.start(); logFine(processingContext, httpBinding, "exporting done"); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
Override protected final void doComplete(HTTPBinding httpBinding, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, httpBinding, "nothing to complete"); }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
Override protected final void doCheck(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // Obtain the property type for the given property. QName propertyType = processingContext.getData(property, QName.class); // When no propertyType set then return immediatly as this processor has nothing to do. if(propertyType == null) { return; } // Retrieve the package name associated to this property type. String packageName = NameConverter.standard.toPackageName(propertyType.getNamespaceURI()); try { // try to retrieve the JAXB package info. log.fine("Try to load " + packageName + ".package-info.class"); processingContext.loadClass(packageName + ".package-info"); log.fine(packageName + ".package-info.class found."); // This property type processor is attached to the given property. processingContext.putData(property, Processor.class, this); // Compute the property value. doComplete(property, processingContext); } catch(ClassNotFoundException cnfe) { log.fine("No " + packageName + ".package-info.class found."); return; } }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
Override protected final void doComplete(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // Obtain the property type for the given property. QName propertyType = processingContext.getData(property, QName.class); // Set the property object as a root XML element. Map<Object, Object> options = new HashMap<Object, Object>(); options.put(XMLResource.OPTION_ROOT_OBJECTS, Collections.singletonList(property)); // Save the property resource in a new XML document. Document document = ((XMLResource) property.eResource()).save(null, options, null); // The XML node defining this SCA property value. Node node = document.getChildNodes().item(0).getChildNodes().item(0); // Search the first XML element. while(node != null && node.getNodeType() != Node.ELEMENT_NODE) { node = node.getNextSibling(); } // No XML element found. if(node == null) { error(processingContext, property, "No XML element"); return; } // Retrieve the package name. String packageName = NameConverter.standard.toPackageName(propertyType.getNamespaceURI()); // Retrieve the JAXB package info class. Class<?> packageInfoClass; try { packageInfoClass = processingContext.loadClass(packageName + ".package-info"); } catch (ClassNotFoundException cnfe) { // Should never happen but we never know. severe(new ProcessorException(property, "JAXB package info for " + toString(property) + " not found", cnfe)); return; } // Retrieve the JAXB Unmarshaller for the cache. Unmarshaller unmarshaller = cacheOfUnmarshallers.get(packageInfoClass); // If not found, then create the JAXB unmarshaller. if(unmarshaller == null) { // Create the JAXB context for the Java package of the property type. JAXBContext jaxbContext; try { jaxbContext = JAXBContext.newInstance(packageName, processingContext.getClassLoader()); } catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB context failed for " + toString(property), je)); return; } // Create the JAXB unmarshaller. try { unmarshaller = jaxbContext.createUnmarshaller(); // Turn on XML validation. // Not supported by sun's JAXB implementation. // unmarshaller.setValidating(true); } catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB unmarshaller failed for " + toString(property), je)); return; } // Store the unmarshaller into the cache. cacheOfUnmarshallers.put(packageInfoClass, unmarshaller); } // Unmarshal the property node with JAXB. Object computedPropertyValue; try { computedPropertyValue = unmarshaller.unmarshal((Element) node); } catch (JAXBException je) { error(processingContext, property, "XML unmarshalling error: " + je.getMessage()); return; } // Attach the computed property value to the given property. processingContext.putData(property, Object.class, computedPropertyValue); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
Override protected final void doCheck(ScriptImplementation scriptImplementation, ProcessingContext processingContext) throws ProcessorException { String scriptImplementationScript = scriptImplementation.getScript(); if(isNullOrEmpty(scriptImplementationScript)) { error(processingContext, scriptImplementation, "The attribute 'script' must be set"); } else { if(processingContext.getResource(scriptImplementationScript) == null) { error(processingContext, scriptImplementation, "Script '", scriptImplementationScript, "' not found"); } } // TODO check that the required script engine is available? // TODO evaluate the script to see it is correct // check attributes 'policySets' and 'requires'. checkImplementation(scriptImplementation, processingContext); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
Override protected final void doInstantiate(ScriptImplementation scriptImplementation, ProcessingContext processingContext) throws ProcessorException { // Initialize the script engine manager if not already done. // At this moment the FraSCAti assembly factory runtime classloader // is initialized. // // TODO: Perhaps the script engine manager should be instantiated // each time a ScriptEngine is instantiated in order to be sure that // all script engines present in the runtime classloader are useable. // For instance, we could imagine a reconfiguration scenario where // we dynamically add a new script engine at runtime. if(scriptEngineManager == null) { initializeScriptEngineManager(processingContext.getClassLoader()); } // Get the script. String script = scriptImplementation.getScript(); log.info("Create an SCA component for <frascati:implementation.script script=\"" + script + "\" language=\"" + scriptImplementation.getLanguage() + "\"> and the Fractal component type " + getFractalComponentType(scriptImplementation, processingContext).toString()); // Obtain an input stream reader to the script. // TODO: Could 'script' contain a url or filename, and not just a resource in the classpath? // TODO move into check() URL scriptUrl = processingContext.getResource(script); if(scriptUrl == null) { severe(new ProcessorException(scriptImplementation, "Script '" + script + "' not found")); return; } InputStream scriptInputStream = null; try { scriptInputStream = scriptUrl.openStream(); } catch (IOException ioe) { severe(new ProcessorException(scriptImplementation, "Script '" + script + "' not found", ioe)); return; } InputStreamReader scriptReader = new InputStreamReader(scriptInputStream); // Obtain a scripting engine for evaluating the script. // TODO: Use scriptImplementation.getLanguage() if not null // TODO move into check String scriptExtension = script.substring(script.lastIndexOf('.') + 1); ScriptEngine scriptEngine = scriptEngineManager.getEngineByExtension(scriptExtension); if(scriptEngine == null) { severe(new ProcessorException(scriptImplementation, "ScriptEngine for '" + script + "' not found")); return; } // Add a reference to the SCA domain into the script engine scriptEngine.put("domain", compositeManager.getTopLevelDomainComposite()); // Switch the current thread's context class loader to the processing context class loader // in order to be sure that the script will be evaluated into the right class loader. ClassLoader previousClassLoader = FrascatiClassLoader.getAndSetCurrentThreadContextClassLoader(processingContext.getClassLoader()); // Evaluate the script. try { scriptEngine.eval(scriptReader); } catch(ScriptException se) { severe(new ProcessorException(scriptImplementation, "Error when evaluating '" + script + "'", se)); return; } finally { // Restore the previous class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousClassLoader); } // Create the Fractal component as a composite. Component component = doInstantiate(scriptImplementation, processingContext, scriptEngine); // Create a primitive component encapsulating the scripting engine. try { ScriptEngineComponent scriptEngineContent = new ScriptEngineComponent(component, scriptEngine); ComponentType scriptEngineType = tf.createComponentType(new InterfaceType[] { // type for attribute-controller tf.createInterfaceType("attribute-controller", ScriptEngineAttributes.class.getCanonicalName(), false, false, false) }); Component scriptEngineComponent = getComponentFactory().createComponent(scriptEngineType, "primitive", scriptEngineContent); // add the scripting engine component as a sub component of the SCA composite. addFractalSubComponent(component, scriptEngineComponent); } catch(Exception exc) { // This should not happen! severe(new ProcessorException(scriptImplementation, "Internal Fractal error!", exc)); return; } }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
Override protected final void doCheck(WSDLPortType wsdlPortType, ProcessingContext processingContext) throws ProcessorException { // Check the attribute 'interface'. String wsdlInterface = wsdlPortType.getInterface(); if(wsdlInterface == null || wsdlInterface.equals("") ) { error(processingContext, wsdlPortType, "The attribute 'interface' must be set"); } else { PortType portType = getPortType(wsdlPortType, processingContext, "interface", wsdlInterface); if(portType != null) { QName qname = portType.getQName(); // Compute the Java interface name for the WSDL port type. String localPart = qname.getLocalPart(); String javaInterface = NameConverter.standard.toPackageName(qname.getNamespaceURI()) + '.' + Character.toUpperCase(localPart.charAt(0)) + localPart.substring(1); log.info("The Java interface for '" + wsdlInterface + "' is " + javaInterface); // Load the Java interface. Class<?> clazz = null; try { clazz = processingContext.loadClass(javaInterface); } catch (ClassNotFoundException cnfe) { // If the Java interface is not found then this requires to compile WSDL to Java. } // TODO: check that this is a Java interface and not a Java class. // Store the Java class into the processing context. storeJavaInterface(wsdlPortType, processingContext, javaInterface, clazz); } } // Check the attribute 'callbackInterface'. wsdlInterface = wsdlPortType.getCallbackInterface(); if(wsdlInterface != null) { getPortType(wsdlPortType, processingContext, "callback interface", wsdlInterface); } }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
private PortType getPortType(WSDLPortType wsdlPortType, ProcessingContext processingContext, String what, String scaWsdlInterface) throws ProcessorException { logDo(processingContext, wsdlPortType, "check the WSDL " + what + " " + scaWsdlInterface); PortType portType = null; // Compute uri and portTypeName from the SCA WSDL interface. String wsdlUri = null; String portTypeName = null; int idx = scaWsdlInterface.indexOf("#wsdl.interface("); if(idx != -1 && scaWsdlInterface.endsWith(")")) { wsdlUri = scaWsdlInterface.substring(0, idx); portTypeName = scaWsdlInterface.substring(idx + ("#wsdl.interface(").length(), scaWsdlInterface.length() - 1); } if(wsdlUri == null || portTypeName == null) { error(processingContext, wsdlPortType, "Invalid 'interface' value, must be uri#wsdl.interface(portType)"); } else { // Search the WSDL file from the processing context's class loader. URL url = processingContext.getResource(wsdlUri); if(url != null) { wsdlUri = url.toString(); } // Read the requested WSDL definition. Definition definition = null; try { definition = this.wsdlCompiler.readWSDL(wsdlUri); } catch(WSDLException we) { processingContext.error(toString(wsdlPortType) + " " + wsdlUri + ": " + we.getMessage()); return null; } // Search the requested port type. portType = definition.getPortType(new QName(definition.getTargetNamespace(), portTypeName)); if(portType == null) { error(processingContext, wsdlPortType, "Unknown port type name '", portTypeName, "'"); return null; } } logDone(processingContext, wsdlPortType, "check the WSDL " + what + " " + scaWsdlInterface); return portType; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
Override protected final void doGenerate(WSDLPortType wsdlPortType, ProcessingContext processingContext) throws ProcessorException { // If no Java interface computed during doCheck() then compile the WDSL file. if(getClass(wsdlPortType, processingContext) == null) { String scaWsdlInterface = wsdlPortType.getInterface(); int idx = scaWsdlInterface.indexOf("#wsdl.interface("); String wsdlUri = scaWsdlInterface.substring(0, idx); // Search the WSDL file from the processing context's class loader. URL url = processingContext.getResource(wsdlUri); if(url != null) { wsdlUri = url.toString(); } // Compile the WSDL description. try { this.wsdlCompiler.compileWSDL(wsdlUri, processingContext); } catch(Exception exc) { severe(new ProcessorException("Error when compiling WSDL", exc)); return; } } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaWireProcessor.java
Override protected final void doCheck(Wire wire, ProcessingContext processingContext) throws ProcessorException { // Get the map of components stored into the processing context. ComponentMap mapOfComponents = processingContext.getData(wire.eContainer(), ComponentMap.class); if(wire.getSource() == null) { error(processingContext, wire, "The attribute 'source' must be set"); } else { if(wire.getSource2() == null) { // Retrieve both source component and reference. String source[] = wire.getSource().split("/"); if(source.length != 2) { error(processingContext, wire, "The attribute 'source' must be 'componentName/referenceName'"); } else { Component sourceComponent = mapOfComponents.get(source[0]); if(sourceComponent == null) { error(processingContext, wire, "Unknown source component '", source[0], "'"); } else { ComponentReference sourceReference = null; for(ComponentReference reference : sourceComponent.getReference()) { if(source[1].equals(reference.getName())) { sourceReference = reference; break; // the for loop } } if(sourceReference == null) { error(processingContext, wire, "Unknown source reference '", source[1], "'"); } else { wire.setSource2(sourceReference); } } } } } if(wire.getTarget() == null) { error(processingContext, wire, "The attribute 'target' must be set"); } else { if(wire.getTarget2() == null) { // Retrieve both target component and service. String target[] = wire.getTarget().split("/"); if(target.length != 2) { error(processingContext, wire, "The attribute 'target' must be 'componentName/serviceName'"); } else { org.eclipse.stp.sca.Component targetComponent = mapOfComponents.get(target[0]); if(targetComponent == null) { error(processingContext, wire, "Unknown target component '", target[0], "'"); } else { ComponentService targetService = null; for(ComponentService service : targetComponent.getService()) { if(target[1].equals(service.getName())) { targetService = service; break; // the for loop } } if(targetService == null) { error(processingContext, wire, "Unknown target service '", target[1], "'"); } else { wire.setTarget2(targetService); } } } } } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaWireProcessor.java
Override protected final void doComplete(Wire wire, ProcessingContext processingContext) throws ProcessorException { // Retrieve source reference, source reference name, source reference multiplicity, // source component, and source Fractal component. ComponentReference sourceReference = wire.getSource2(); String sourceReferenceName = sourceReference.getName(); Component sourceComponent = (Component)sourceReference.eContainer(); Multiplicity sourceReferenceMultiplicity = sourceReference.getMultiplicity(); org.objectweb.fractal.api.Component sourceComponentInstance = getFractalComponent(sourceComponent, processingContext); // Retrieve target service, target service name, target component, and target Fractal component. ComponentService targetService = wire.getTarget2(); String targetServiceName = targetService.getName(); Component targetComponent = (Component)targetService.eContainer(); org.objectweb.fractal.api.Component targetComponentInstance = getFractalComponent(targetComponent, processingContext); // when the source reference multiplicity is 0..n or 1..n // then add the target component name to the reference source name. // In this way, each Fractal collection client interface has a unique name. if(Multiplicity._0N.equals(sourceReferenceMultiplicity) || Multiplicity._1N.equals(sourceReferenceMultiplicity)) { sourceReferenceName = sourceReferenceName + '-' + targetComponent.getName(); } // etablish a Fractal binding between source reference and target service. try { bindFractalComponent( sourceComponentInstance, sourceReferenceName, getFractalInterface(targetComponentInstance, targetServiceName)); } catch (Exception e) { severe(new ProcessorException(wire, "Cannot etablish " + toString(wire), e)); return; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeServiceProcessor.java
Override protected final void doCheck(Service service, ProcessingContext processingContext) throws ProcessorException { // Check the attribute 'promote'. if(service.getPromote() == null) { error(processingContext, service, "The attribute 'promote' must be set"); } else { if(service.getPromote2() == null) { // Retrieve both target component and service. String promote[] = service.getPromote().split("/"); if(promote.length != 2) { error(processingContext, service, "The attribute 'promote' must be 'componentName/serviceName'"); } else { org.eclipse.stp.sca.Component promotedComponent = processingContext.getData(service.eContainer(), ComponentMap.class).get(promote[0]); if(promotedComponent == null) { error(processingContext, service, "Unknown promoted component '", promote[0], "'"); } else { ComponentService promotedService = null; for(ComponentService cs : promotedComponent.getService()) { if(promote[1].equals(cs.getName())) { promotedService = cs; break; // the for loop } } if(promotedService == null) { error(processingContext, service, "Unknown promoted service '", promote[1], "'"); } else { service.setPromote2(promotedService); } } } } } // Check the composite service as a base service. checkBaseService(service, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeServiceProcessor.java
Override protected final void doComplete(Service service, ProcessingContext processingContext) throws ProcessorException { // Retrieve the component from the processing context. Component component = getFractalComponent(service.eContainer(), processingContext); // Retrieve the promoted component service, and the promoted Fractal component. ComponentService promotedComponentService = service.getPromote2(); Component promotedComponentInstance = getFractalComponent(promotedComponentService.eContainer(), processingContext); // Etablish a Fractal binding between the composite service and the promoted component service. try { bindFractalComponent( component, service.getName(), getFractalInterface(promotedComponentInstance, promotedComponentService.getName())); } catch (Exception e) { severe(new ProcessorException(service, "Can't promote " + toString(service), e)); return ; } // Complete the composite service as a base service. completeBaseService(service, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
Override protected void doGenerate(ImplementationType implementation, ProcessingContext processingContext) throws ProcessorException { try { getComponentFactory().generateMembrane( getFractalComponentType(implementation, processingContext), getMembrane(), null); } catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while generating " + toString(implementation), te)); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
protected final Component doInstantiate(ImplementationType implementation, ProcessingContext processingContext, ContentType content) throws ProcessorException { // Create the SCA composite for the implementation. Component component = createFractalComposite(implementation, processingContext); // Connect the Fractal composite to the content. connectFractalComposite(implementation, processingContext, content); return component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
protected final Component createFractalComposite(ImplementationType implementation, ProcessingContext processingContext) throws ProcessorException { // Create the SCA composite for the implementation. Component component; try { component = getComponentFactory().createComponent( getFractalComponentType(implementation, processingContext), getMembrane(), null); } catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while creating " + toString(implementation), te)); return null; } // Store the created composite into the processing context. processingContext.putData(implementation, Component.class, component); return component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
protected final void connectFractalComposite(ImplementationType implementation, ProcessingContext processingContext, ContentType content) throws ProcessorException { // Get the binding and content controller of the component. Component component = getFractalComponent(implementation, processingContext); BindingController bindingController = getFractalBindingController(component); ContentController contentController = getFractalContentController(component); // Traverse all the interface types of the component type. for (InterfaceType interfaceType : getFractalComponentType(implementation, processingContext).getFcInterfaceTypes()) { String interfaceName = interfaceType.getFcItfName(); String interfaceSignature = interfaceType.getFcItfSignature(); Class<?> interfaze; try { interfaze = processingContext.loadClass(interfaceSignature); } catch(ClassNotFoundException cnfe) { severe(new ProcessorException(implementation, "Java interface '" + interfaceSignature + "' not found", cnfe)); return; } if (!interfaceType.isFcClientItf()) { // When this is a server interface type. // Get a service instance. Object service = null; try { service = getService(content, interfaceName, interfaze); } catch(Exception exc) { severe(new ProcessorException(implementation, "Can not obtain the SCA service '" + interfaceName + "'", exc)); return; } // Bind the SCA composite to the service instance. bindFractalComponent(bindingController, interfaceName, service); } else { // When this is a client interface type. Object itf = getFractalInternalInterface(contentController, interfaceName); try { setReference(content, interfaceName, itf, interfaze); } catch(Exception exc) { severe(new ProcessorException(implementation, "Can not set the SCA reference '" + interfaceName + "'", exc)); return; } } } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositePropertyProcessor.java
Override protected final void doCheck(Property property, ProcessingContext processingContext) throws ProcessorException { // Check the property attribute 'name'. checkAttributeMustBeSet(property, "name", property.getName(), processingContext); // Check the property value. // // Until FraSCAti 1.4, the value of a composite property is mandatory. // // logDo(processingContext, property, "check the property value"); // if(property.getValue() == null) { // error(processingContext, property, "The property value must be set"); // } // logDone(processingContext, property, "check the property value"); // // Since FraSCAti 1.5, the value of a composite property is optional // in order to pass the OASIS CSA Assembly Model Test Suite. // // Check the property attribute 'many'. checkAttributeNotSupported(property, "many", property.isSetMany(), processingContext); // Check the property attribute 'mustSupply'. checkAttributeNotSupported(property, "mustSupply", property.isSetMustSupply(), processingContext); // TODO: check attribute 'promote': Has the enclosing composite a property of this name? // Check the component property type and value. QName propertyType = (property.getElement() != null) ? property.getElement() : property.getType(); checkProperty(property, propertyType, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositePropertyProcessor.java
Override protected final void doComplete(Property property, ProcessingContext processingContext) throws ProcessorException { // Since FraSCAti 1.5, the value of a composite property is optional // in order to pass the OASIS CSA Assembly Model Test Suite. if(property.getValue() != null) { // Set the composite property value. setProperty(property, property.getName(), processingContext); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
protected final void generateScaPrimitiveComponent(ImplementationType implementation, ProcessingContext processingContext, String className) throws ProcessorException { try { logDo(processingContext, implementation, "generate the implementation"); ComponentType componentType = getFractalComponentType(implementation, processingContext); getComponentFactory().generateScaPrimitiveMembrane(componentType, className); logDone(processingContext, implementation, "generate the implementation"); } catch(FactoryException fe) { severe(new ProcessorException(implementation, "generation failed", fe)); return; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
protected final Component instantiateScaPrimitiveComponent(ImplementationType implementation, ProcessingContext processingContext, String className) throws ProcessorException { Component component; try { logDo(processingContext, implementation, "instantiate the implementation"); ComponentType componentType = getFractalComponentType(implementation, processingContext); // create instance of an SCA primitive component for this implementation. component = getComponentFactory().createScaPrimitiveComponent(componentType, className); logDone(processingContext, implementation, "instantiate the implementation"); } catch(FactoryException fe) { severe(new ProcessorException(implementation, "instantiation failed", fe)); return null; } processingContext.putData(implementation, Component.class, component); return component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doCheck(Composite composite, ProcessingContext processingContext) throws ProcessorException { // The OW2 FraSCAti Parser already manages: // - attribute 'autowire' // - attribute 'constrainingType' // - list of <sca:include> // So we needn't to redo these checkings. // Check the composite name. checkAttributeMustBeSet(composite, "name", composite.getName(), processingContext); // Check the composite local. checkAttributeNotSupported(composite, "local", composite.isSetLocal(), processingContext); // Check the composite target namespace. checkAttributeNotSupported(composite, "targetNamespace", composite.getTargetNamespace() != null, processingContext); // Check the composite policy sets. checkAttributeNotSupported(composite, "policySets", composite.getPolicySets() != null, processingContext); // TODO: 'requires' must be checked here. // Does each intent composite exist? // Is each composite an intent (service Intent of interface IntentHandler)? // Check that each component has a unique name and // store all <component name, component> tuples into a map of components. ComponentMap mapOfComponents = new ComponentMap(); for(org.eclipse.stp.sca.Component component : composite.getComponent()) { String name = component.getName(); if(name != null) { if(mapOfComponents.containsKey(name)) { error(processingContext, composite, "<component name='", name, "'> is already defined"); } else { mapOfComponents.put(name, component); } } } // Store the map of components into the processing context. processingContext.putData(composite, ComponentMap.class, mapOfComponents); // Check the composite components. check(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Check the composite services. check(composite, SCA_SERVICE, composite.getService(), serviceProcessor, processingContext); // Check the composite references. check(composite, SCA_REFERENCE, composite.getReference(), referenceProcessor, processingContext); // Check the composite properties. check(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Check the composite wires. check(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doGenerate(Composite composite, ProcessingContext processingContext) throws ProcessorException { // Generate the composite container. try { logDo(processingContext, composite, "generate the composite container"); componentFactory.generateScaCompositeMembrane(null); logDone(processingContext, composite, "generate the composite container"); } catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite container", fe)); return; } // Generate the component type for this composite. // Also generate the composite services and references. ComponentType compositeComponentType = generateComponentType(composite, composite.getService(), serviceProcessor, composite.getReference(), referenceProcessor, processingContext); // Generating the composite. try { logDo(processingContext, composite, "generate the composite component"); componentFactory.generateScaCompositeMembrane(compositeComponentType); logDone(processingContext, composite, "generate the composite component"); } catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite component", fe)); return; } // Generate the composite components. generate(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Generate the composite properties. generate(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Generate the composite wires. generate(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doInstantiate(Composite composite, ProcessingContext processingContext) throws ProcessorException { // Instantiate the composite container. Component containerComponent = null; // Create a container for root composites only and // not for composites enclosed into composites. boolean isTheRootComposite = processingContext.getRootComposite() == composite; if(isTheRootComposite) { try { logDo(processingContext, composite, "instantiate the composite container"); containerComponent = componentFactory.createScaCompositeComponent(null); logDone(processingContext, composite, "instantiate the composite container"); } catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to create the composite container", fe)); return; } // Set the name for the composite container. setComponentName(composite, "composite container", containerComponent, composite.getName() + "-container", processingContext); } // Retrieve the composite type from the processing context. ComponentType compositeComponentType = getFractalComponentType(composite, processingContext); // Instantiate the composite component. Component compositeComponent; try { logDo(processingContext, composite, "instantiate the composite component"); compositeComponent = componentFactory.createScaCompositeComponent(compositeComponentType); logDone(processingContext, composite, "instantiate the composite component"); } catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); } // Keep the composite component into the processing context. processingContext.putData(composite, Component.class, compositeComponent); // Set the name for this assembly. setComponentName(composite, "composite", compositeComponent, composite.getName(), processingContext); // Add the SCA composite into the composite container. if(isTheRootComposite) { addFractalSubComponent(containerComponent, compositeComponent); } // Instantiate the composite components. instantiate(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Instantiate the composite services. instantiate(composite, SCA_SERVICE, composite.getService(), serviceProcessor, processingContext); // Instantiate composite references. instantiate(composite, SCA_REFERENCE, composite.getReference(), referenceProcessor, processingContext); // Instantiate composite properties. instantiate(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Instantiate the composite wires. instantiate(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doComplete(Composite composite, ProcessingContext processingContext) throws ProcessorException { // Complete the composite components. complete(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Complete the composite services. complete(composite, SCA_SERVICE, composite.getService(), serviceProcessor, processingContext); // Complete the composite references. complete(composite, SCA_REFERENCE, composite.getReference(), referenceProcessor, processingContext); // Complete the composite properties. complete(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Complete the composite wires. complete(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); // Retrieve the composite component from the processing context. Component compositeComponent = getFractalComponent(composite, processingContext); // Complete required intents for the composite. completeRequires(composite, composite.getRequires(), compositeComponent, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
protected final void completeRequires(EObjectType element, List<QName> requires, Component component, ProcessingContext processingContext) throws ProcessorException { logDo(processingContext, element, "complete required intents"); if(requires == null) { return; } // Get the intent controller of the given component. SCABasicIntentController intentController; try { intentController = (SCABasicIntentController) component.getFcInterface(SCABasicIntentController.NAME); } catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(element, "Cannot get to the FraSCAti intent controller", nsie)); return; } for (QName require : requires) { // Try to retrieve intent service from cache. Component intentComponent; try { intentComponent = intentLoader.getComposite(require); } catch(ManagerException me) { warning(new ProcessorException("Error while getting intent '" + require + "'", me)); return; } IntentHandler intentHandler; try { // Get the intent handler of the intent composite. intentHandler = (IntentHandler)intentComponent.getFcInterface("intent"); } catch (NoSuchInterfaceException nsie) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service", nsie)); return; } catch (ClassCastException cce) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service of interface " + IntentHandler.class.getCanonicalName(), cce)); return; } try { // Add the intent handler. logDo(processingContext, element, "adding intent handler"); addIntentHandler(element, intentController, intentHandler); logDone(processingContext, element, "adding intent handler"); } catch (Exception e) { severe(new ProcessorException(element, "Intent '" + require + "' cannot be added", e)); return; } } logDone(processingContext, element, "complete required intents"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationCompositeProcessor.java
Override protected final void doCheck(SCAImplementation scaImplementation, ProcessingContext processingContext) throws ProcessorException { // Check the implementation composite name. checkAttributeMustBeSet(scaImplementation, "name", scaImplementation.getName(), processingContext); if(scaImplementation.getName() != null) { // Retrieve the parsed composite from the processing context. // This data was put by the FraSCAti SCA Parser ImplementationCompositeResolver. Composite composite = processingContext.getData(scaImplementation, Composite.class); compositeProcessor.check(composite, processingContext); } // TODO: 'requires' must be checked here. // Does the intent composite exist? // Is this composite an intent (service Intent of interface IntentHandler)? // check attributes 'policySets' and 'requires'. checkImplementation(scaImplementation, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationCompositeProcessor.java
Override protected final void doGenerate(SCAImplementation scaImplementation, ProcessingContext processingContext) throws ProcessorException { // Retrieve the composite from the processing context. Composite composite = processingContext.getData(scaImplementation, Composite.class); // Generating the composite. compositeProcessor.generate(composite, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationCompositeProcessor.java
Override protected final void doInstantiate(SCAImplementation scaImplementation, ProcessingContext processingContext) throws ProcessorException { // Retrieve the composite from the processing context. Composite composite = processingContext.getData(scaImplementation, Composite.class); // Instantiating the composite component. compositeProcessor.instantiate(composite, processingContext); // store the component into the processing context. processingContext.putData(scaImplementation, Component.class, getFractalComponent(composite, processingContext)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationCompositeProcessor.java
Override protected final void doComplete(SCAImplementation scaImplementation, ProcessingContext processingContext) throws ProcessorException { // Retrieve the composite from the processing context. Composite composite = processingContext.getData(scaImplementation, Composite.class); // Completing the composite. compositeProcessor.complete(composite, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractImplementationProcessor.java
protected final void checkImplementation(ImplementationType implementation, ProcessingContext processingContext) throws ProcessorException { // Check the implementation policy sets. checkAttributeNotSupported(implementation, "policySets", implementation.getPolicySets() != null, processingContext); // Check the composite requires. checkAttributeNotSupported(implementation, "requires", implementation.getRequires() != null, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
Override protected final void doCheck(SCABinding scaBinding, ProcessingContext processingContext) throws ProcessorException { String uri = scaBinding.getUri(); if(hasBaseService(scaBinding)) { // The parent of this binding is a <service>. if(uri != null) { warning(processingContext, scaBinding, "The attribute 'uri' on a SCA service is not supported by OW2 FraSCAti"); } } else { // The parent of this binding is a <reference>. if(isNullOrEmpty(uri)) { error(processingContext, scaBinding, "The attribute 'uri' must be 'compositeName/componentName*/serviceName'"); } else { String[] parts = uri.split("/"); if(parts.length < 2) { error(processingContext, scaBinding, "The attribute 'uri' must be 'compositeName/componentName*/serviceName'"); } else { // Obtain the composite. String compositeName = parts[0]; if(compositeName.equals(processingContext.getRootComposite().getName())) { // The searched composite is the currently processed root SCA composite. // TODO Check if the SCA service exists. } else { // The searched composite is another composite loaded into the domain, so get it. Component component = null; try { component = compositeManager.getComposite(compositeName); } catch(ManagerException me) { error(processingContext, scaBinding, "Composite '", compositeName, "' not found"); } if(component != null) { // Find the service from the uri. Object service = findService(scaBinding, processingContext, component, parts); if(service != null) { // Store the found service into the processing context. processingContext.putData(scaBinding, Object.class, service); } } } } } } // Check other attributes of the binding. checkBinding(scaBinding, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
protected final Object findService(SCABinding scaBinding, ProcessingContext processingContext, Component initialComponent, String[] parts) throws ProcessorException { Component component = initialComponent; boolean found = true; // Traverse the componentName parts of the uri. for(int i=1; i<parts.length-1; i++) { found = false; // Search the sub component having the searched component name. for(Component subComponent : getFractalSubComponents(component)) { if(parts[i].equals(getFractalComponentName(subComponent))) { component = subComponent; found = true; break; // the for loop. } } if(!found) { error(processingContext, scaBinding, "Component '", parts[i], "' not found"); return null; } } if(found) { // Get the service of the last found component. String serviceName = parts[parts.length - 1]; try { return component.getFcInterface(serviceName); } catch(NoSuchInterfaceException nsie) { error(processingContext, scaBinding, "Service '", serviceName, "' not found"); return null; } } return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
Override protected final void doComplete(SCABinding scaBinding, ProcessingContext processingContext) throws ProcessorException { if(hasBaseService(scaBinding)) { // Nothing to do. return; } // Obtain the service computed during doCheck() Object service = processingContext.getData(scaBinding, Object.class); if(service == null) { // The uri should refer to a service of the currently processed SCA composite. String[] parts = scaBinding.getUri().split("/"); if(parts[0].equals(processingContext.getRootComposite().getName())) { Component component = getFractalComponent(processingContext.getRootComposite(), processingContext); service = findService(scaBinding, processingContext, component, parts); } if(service == null) { // This case should never happen because it should be checked by doCheck() severe(new ProcessorException(scaBinding, "Should never happen!!!")); return; } } // Create a dynamic proxy invocation handler. BindingScaInvocationHandler bsih = new BindingScaInvocationHandler(); // Its delegates to the service found. bsih.setDelegate(service); // Create a dynamic proxy with the created invocation handler. Object proxy = Proxy.newProxyInstance( processingContext.getClassLoader(), new Class<?>[] { getBaseReferenceJavaInterface(scaBinding, processingContext) }, bsih); // Bind the proxy to the component owning this <binding.sca>. bindFractalComponent( getFractalComponent(scaBinding, processingContext), getBaseReference(scaBinding).getName(), proxy); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentProcessor.java
Override protected final void doCheck(Component component, ProcessingContext processingContext) throws ProcessorException { // Check the component's name. checkAttributeMustBeSet(component, "name", component.getName(), processingContext); // Check the component's policy sets. checkAttributeNotSupported(component, "policySets", component.getPolicySets() != null, processingContext); // Check the component's implementation. checkMustBeDefined(component, SCA_IMPLEMENTATION, component.getImplementation(), implementationProcessor, processingContext); // Check the component's services. check(component, SCA_SERVICE, component.getService(), serviceProcessor, processingContext); // Check the component's references. check(component, SCA_REFERENCE, component.getReference(), referenceProcessor, processingContext); // Check the component's properties. check(component, SCA_PROPERTY, component.getProperty(), propertyProcessor, processingContext); // TODO: 'requires' must be checked here. // Does the intent composite exist? // Is this composite an intent (service Intent of interface IntentHandler)? }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentProcessor.java
Override protected final void doGenerate(Component component, ProcessingContext processingContext) throws ProcessorException { // Generate the component type. // Also generate the component services and references. ComponentType componentType = generateComponentType(component, component.getService(), serviceProcessor, component.getReference(), referenceProcessor, processingContext); // Keep the component type into the processing context. processingContext.putData(component.getImplementation(), ComponentType.class, componentType); // Generate the component's implementation. generate(component, SCA_IMPLEMENTATION, component.getImplementation(), implementationProcessor, processingContext); // Generate the component's properties. generate(component, SCA_PROPERTY, component.getProperty(), propertyProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentProcessor.java
Override protected final void doInstantiate(Component component, ProcessingContext processingContext) throws ProcessorException { // Instantiate the component's implementation. instantiate(component, SCA_IMPLEMENTATION, component.getImplementation(), implementationProcessor, processingContext); org.objectweb.fractal.api.Component componentInstance = getFractalComponent(component.getImplementation(), processingContext); // Add the new component to its enclosing composite. org.objectweb.fractal.api.Component enclosingComposite = getFractalComponent(component.eContainer(), processingContext); addFractalSubComponent(enclosingComposite, componentInstance); // set the name for this component. setComponentName(component, "component", componentInstance, component.getName(), processingContext); // Keep the component instance into the processing context. processingContext.putData(component, org.objectweb.fractal.api.Component.class, componentInstance); // Instantiate the component's services. instantiate(component, SCA_SERVICE, component.getService(), serviceProcessor, processingContext); // Instantiate the component's references. instantiate(component, SCA_REFERENCE, component.getReference(), referenceProcessor, processingContext); // Instantiate the component's properties. instantiate(component, SCA_PROPERTY, component.getProperty(), propertyProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentProcessor.java
Override protected final void doComplete(Component component, ProcessingContext processingContext) throws ProcessorException { // Complete the component's implementation. complete(component, SCA_IMPLEMENTATION, component.getImplementation(), implementationProcessor, processingContext); // Complete the component's services. complete(component, SCA_SERVICE, component.getService(), serviceProcessor, processingContext); // Complete the component's references. complete(component, SCA_REFERENCE, component.getReference(), referenceProcessor, processingContext); // Complete the component's properties. complete(component, SCA_PROPERTY, component.getProperty(), propertyProcessor, processingContext); // Retrieve the component from the processing context. org.objectweb.fractal.api.Component componentInstance = getFractalComponent(component, processingContext); // Complete required intents for the component. completeRequires(component, component.getRequires(), componentInstance, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
Override protected final void doCheck(JavaImplementation javaImplementation, ProcessingContext processingContext) throws ProcessorException { // Test if the Java class is present in the current classloader. try { processingContext.loadClass(javaImplementation.getClass_()); } catch (ClassNotFoundException cnfe) { error(processingContext, javaImplementation, "class '", javaImplementation.getClass_(), "' not found"); return; } // check attributes 'policySets' and 'requires'. checkImplementation(javaImplementation, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
Override protected final void doGenerate(JavaImplementation javaImplementation, ProcessingContext processingContext) throws ProcessorException { // Generate a FraSCAti SCA primitive component. generateScaPrimitiveComponent(javaImplementation, processingContext, javaImplementation.getClass_()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
Override protected final void doInstantiate(JavaImplementation javaImplementation, ProcessingContext processingContext) throws ProcessorException { // Instantiate a FraSCAti SCA primitive component. instantiateScaPrimitiveComponent(javaImplementation, processingContext, javaImplementation.getClass_()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
Override protected final void doCheck(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // Obtain the property type for the given property. QName propertyType = processingContext.getData(property, QName.class); if(isMatchingOneJavaType(propertyType)) { // This property type processor is attached to the given property. processingContext.putData(property, Processor.class, this); if(propertyType != null) { // if the property type is set then compute the property value. doComplete(property, processingContext); } } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
Override protected final void doComplete(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // The property value as given in a .composite file. String propertyValue = property.getValue(); // Obtain the property type for the given property. QName propertyType = processingContext.getData(property, QName.class); // Search which the Java type is. JavaType javaType = JavaType.VALUES.get(propertyType.getLocalPart()); if(javaType == null) { // Should never happen but we never know! severe(new ProcessorException(property, "Java type '" + propertyType.getLocalPart() + "' not supported")); return; } // Compute the property value. Object computedPropertyValue; try { computedPropertyValue = stringToValue(javaType, propertyValue, processingContext.getClassLoader()); } catch(ClassNotFoundException cnfe) { error(processingContext, property, "Java class '", propertyValue, "' not found"); return; } catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; } catch(MalformedURLException exc) { error(processingContext, property, "Malformed URL '", propertyValue, "'"); return; } catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; } if (computedPropertyValue == null) { // Should never happen but we never know! severe(new ProcessorException("Java type known but not dealt by OW2 FraSCAti: " + propertyType)); return; } // Attach the computed property value to the given property. processingContext.putData(property, Object.class, computedPropertyValue); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
protected final Processor<ElementType> getProcessor(ElementType eObj) throws ProcessorException { if(processorsByID == null) { initializeProcessorsByID(); } // retrieve registered processor associated to eObj. Processor<ElementType> processor = processorsByID.get(getID(eObj)); if(processor == null) { severe(new ProcessorException(eObj, "No processor for " + getID(eObj))); return null; } return processor; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
Override protected final void doCheck(ElementType element, ProcessingContext processingContext) throws ProcessorException { getProcessor(element).check(element, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
Override protected final void doGenerate(ElementType element, ProcessingContext processingContext) throws ProcessorException { getProcessor(element).generate(element, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
Override protected final void doInstantiate(ElementType element, ProcessingContext processingContext) throws ProcessorException { getProcessor(element).instantiate(element, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
Override protected final void doComplete(ElementType element, ProcessingContext processingContext) throws ProcessorException { getProcessor(element).complete(element, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentReferenceProcessor.java
Override protected final void doCheck(ComponentReference componentReference, ProcessingContext processingContext) throws ProcessorException { // Check the attribute 'target'. if(componentReference.getTarget() == null) { // Let's note that this is not an error as a wire could have this reference as source. // TODO: perhaps a trace should be reported, or better // all component references without target must be stored in an array, and // check at the end of ScaCompositeProcessor.check() if these are promoted // by composite references or the source of a wire. // An error must be thrown for component references not promoted or wired. } else { if(componentReference.getTarget2() == null) { // Retrieve both target component and service. String target[] = componentReference.getTarget().split("/"); if(target.length != 2) { error(processingContext, componentReference, "The attribute 'target' must be 'componentName/serviceName'"); } else { // retrieve the map of components associated to the composite of the component of this reference. ComponentMap mapOfComponents = processingContext.getData(componentReference.eContainer().eContainer(), ComponentMap.class); org.eclipse.stp.sca.Component targetComponent = mapOfComponents.get(target[0]); if(targetComponent == null) { error(processingContext, componentReference, "Unknown target component '", target[0], "'"); } else { ComponentService targetComponentService = null; for(ComponentService service : targetComponent.getService()) { if(target[1].equals(service.getName())) { targetComponentService = service; break; // the for loop } } if(targetComponentService == null) { error(processingContext, componentReference, "Unknown target service '", target[1], "'"); } else { componentReference.setTarget2(targetComponentService); } } } } } // Check this component reference as a base reference. checkBaseReference(componentReference, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentReferenceProcessor.java
Override protected final void doComplete(ComponentReference componentReference, ProcessingContext processingContext) throws ProcessorException { // Retrieve the component from the processing context. Component component = getFractalComponent(componentReference.eContainer(), processingContext); // Etablish the binding to the target. if(componentReference.getTarget() != null) { // Retrieve the target component service, and the target Fractal component. BaseService targetComponentService = componentReference.getTarget2(); org.eclipse.stp.sca.Component targetComponent = (org.eclipse.stp.sca.Component)targetComponentService.eContainer(); String targetComponentServiceName = targetComponentService.getName(); Component targetComponentInstance = getFractalComponent(targetComponent, processingContext); // Etablish a Fractal binding between the reference and the target component service. try { bindFractalComponent( component, componentReference.getName(), getFractalInterface(targetComponentInstance, targetComponentServiceName)); } catch (Exception e) { severe(new ProcessorException(componentReference, "Can't promote " + toString(componentReference), e)); return; } } // Complete this component reference as a base reference. completeBaseReference(componentReference, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBindingProcessor.java
protected final void checkBinding(BindingType binding, ProcessingContext processingContext) throws ProcessorException { checkAttributeNotSupported(binding, "policySets", binding.getPolicySets() != null, processingContext); checkAttributeNotSupported(binding, "requires", binding.getRequires() != null, processingContext); checkChildrenNotSupported(binding, "sca:operation", binding.getOperation().size() > 0, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentServiceProcessor.java
Override protected final void doCheck(ComponentService componentService, ProcessingContext processingContext) throws ProcessorException { // Check the component service as a base service. checkBaseService(componentService, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentServiceProcessor.java
Override protected final void doComplete(ComponentService componentService, ProcessingContext processingContext) throws ProcessorException { // Complete the component service as a base service. completeBaseService(componentService, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void checkMustBeDefined(EObjectType element, String childName, T item, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "check <" + childName + '>'; logDo(processingContext, element, message); if(item == null) { error(processingContext, element, "<", childName, "> must be defined"); } else { processor.check(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void check(EObjectType element, String childName, List<T> list, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "check list of <" + childName + '>'; logDo(processingContext, element, message); for (T item : list) { processor.check(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void generate(EObjectType element, String childName, T item, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "generate <" + childName + '>'; logDo(processingContext, element, message); processor.generate(item, processingContext); logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void generate(EObjectType element, String childName, List<T> list, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "generate list of <" + childName + '>'; logDo(processingContext, element, message); for (T item : list) { processor.generate(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void instantiate(EObjectType element, String childName, T item, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "instantiate <" + childName + '>'; logDo(processingContext, element, message); processor.instantiate(item, processingContext); logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void instantiate(EObjectType element, String childName, List<T> list, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "instantiate list of <" + childName + '>'; logDo(processingContext, element, message); for (T item : list) { processor.instantiate(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void complete(EObjectType element, String childName, T item, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "complete <" + childName + '>'; logDo(processingContext, element, message); processor.complete(item, processingContext); logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void complete(EObjectType element, String childName, List<T> list, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "complete list of <" + childName + '>'; logDo(processingContext, element, message); for (T item : list) { processor.complete(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected void doCheck(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "nothing to check"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected void doGenerate(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "nothing to generate"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected void doInstantiate(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "nothing to instantiate"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected void doComplete(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "nothing to complete"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
public final void check(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "check..."); doCheck(element, processingContext); logFine(processingContext, element, "checked."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
public final void generate(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "generate..."); doGenerate(element, processingContext); logFine(processingContext, element, "successfully generated."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
public final void instantiate(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "instantiate..."); doInstantiate(element, processingContext); logFine(processingContext, element, "successfully instantiated."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
public final void complete(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "complete..."); doComplete(element, processingContext); logFine(processingContext, element, "successfully completed."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
Override protected final void doCheck(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // Get the property type of the given property. QName propertyType = processingContext.getData(property, QName.class); // Check that this property type is an XSD datatype. if(getXsdType(propertyType) != null) { // Affect this property type processor to the given property. processingContext.putData(property, Processor.class, this); // Compute the property value to set. doComplete(property, processingContext); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
Override protected final void doComplete(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // The property value as given in a .composite file. String propertyValue = property.getValue(); // Get the property type of the given property. QName propertyType = processingContext.getData(property, QName.class); // Search which the XSD datatype is. XsdType xsdType = getXsdType(propertyType); if(xsdType == null) { // Should never happen but we never know! severe(new ProcessorException("Error while converting XSD property datatype: unknown XML type '" + propertyType + "'")); return; } // Compute the property value. Object computedPropertyValue; try { switch (xsdType) { case ANYURI: try { computedPropertyValue = new URI(propertyValue); } catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; } break; case ANYSIMPLETYPE: computedPropertyValue = propertyValue; break; case BASE64BINARY: // TODO: is it the right thing to do? computedPropertyValue = propertyValue.getBytes(); break; case BOOLEAN: computedPropertyValue = Boolean.valueOf(propertyValue); break; case BYTE: computedPropertyValue = Byte.valueOf(propertyValue); break; case DATE: case DATETIME: case TIME: case G: try { computedPropertyValue = datatypeFactory.newXMLGregorianCalendar(propertyValue); } catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; } break; case DECIMAL: computedPropertyValue = new BigDecimal(propertyValue); break; case DOUBLE: computedPropertyValue = Double.valueOf(propertyValue); break; case DURATION: try { computedPropertyValue = datatypeFactory.newDuration(propertyValue); } catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; } break; case FLOAT: computedPropertyValue = Float.valueOf(propertyValue); break; case HEXBINARY: // TODO: is it the right thing to do? computedPropertyValue = propertyValue.getBytes(); break; case INT: computedPropertyValue = Integer.valueOf(propertyValue); break; case INTEGER: case LONG: computedPropertyValue = Long.valueOf(propertyValue); break; case NEGATIVEINTEGER: case NONPOSITIVEINTEGER: Long negativeInteger = Long.valueOf(propertyValue); if(negativeInteger.longValue() > 0) { error(processingContext, property, "The value must be a negative integer"); return; } computedPropertyValue = negativeInteger; break; case NONNEGATIVEINTEGER: Long nonNegativeInteger = Long.valueOf(propertyValue); if(nonNegativeInteger.longValue() < 0) { error(processingContext, property, "The value must be a non negative integer"); return; } computedPropertyValue = nonNegativeInteger; break; case POSITIVEINTEGER: BigInteger positiveInteger = new BigInteger(propertyValue); if(positiveInteger.longValue() < 0) { error(processingContext, property, "The value must be a positive integer"); return; } computedPropertyValue = positiveInteger; break; case NOTATION: computedPropertyValue = QName.valueOf(propertyValue); break; case UNSIGNEDBYTE: Short unsignedByte = Short.valueOf(propertyValue); if(unsignedByte.shortValue() < 0) { error(processingContext, property, "The value must be a positive byte"); return; } computedPropertyValue = unsignedByte; break; case UNSIGNEDINT: Long unsignedInt = Long.valueOf(propertyValue); if(unsignedInt.longValue() < 0) { error(processingContext, property, "The value must be a positive integer"); return; } computedPropertyValue = unsignedInt; break; case UNSIGNEDLONG: Long unsignedLong = Long.valueOf(propertyValue); if(unsignedLong.longValue() < 0) { error(processingContext, property, "The value must be a positive long"); return; } computedPropertyValue = unsignedLong; break; case UNSIGNEDSHORT: Integer unsignedShort = Integer.valueOf(propertyValue); if(unsignedShort.intValue() < 0) { error(processingContext, property, "The value must be a positive short"); return; } computedPropertyValue = unsignedShort; break; case SHORT: computedPropertyValue = Short.valueOf(propertyValue); break; case STRING: computedPropertyValue = propertyValue; break; case QNAME: computedPropertyValue = QName.valueOf(propertyValue); break; default: // Should never happen but we never know! severe(new ProcessorException(property, "The XSD-based '" + propertyType + "' property datatype is known but not dealt by OW2 FraSCAti!")); return ; } } catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; } // Attach the computed property value to the given property. processingContext.putData(property, Object.class, computedPropertyValue); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
protected final void checkBaseReference(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Check the base reference name. checkAttributeMustBeSet(baseReference, "name", baseReference.getName(), processingContext); // Check the base reference policy sets. checkAttributeNotSupported(baseReference, "policySets", baseReference.getPolicySets() != null, processingContext); // Check the base reference wiredByImpl. checkAttributeNotSupported(baseReference, "wiredByImpl", baseReference.isSetWiredByImpl(), processingContext); // TODO: 'requires' must be checked here. // Does the intent composite exist? // Is this composite an intent (service Intent of interface IntentHandler)? // Check the base reference interface. checkMustBeDefined(baseReference, SCA_INTERFACE, baseReference.getInterface(), getInterfaceProcessor(), processingContext); // TODO check callback // interfaceProcessor.check(baseReference.getCallback(), processingContext); // Check the base reference bindings. check(baseReference, SCA_BINDING, baseReference.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
private void generateInterfaceType(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Generate the base reference interface. generate(baseReference, SCA_INTERFACE, baseReference.getInterface(), getInterfaceProcessor(), processingContext); // Corresponding Java interface class name. String interfaceClassName = processingContext.getData(baseReference.getInterface(), JavaClass.class) .getClassName(); // Name for the generated interface type. String interfaceName = baseReference.getName(); Multiplicity multiplicity = baseReference.getMultiplicity(); // Indicates if the interface is mandatory or optional. boolean contingency = CONTINGENCIES.get(multiplicity); // indicates if component interface is single or collection. boolean cardinality = CARDINALITIES.get(multiplicity); // Create the Fractal interface type. InterfaceType interfaceType; String logMessage = "create a Fractal client interface type " + interfaceClassName + " for " + interfaceName + " with contingency = " + contingency + " and cardinality = " + cardinality; try { logDo(processingContext, baseReference, logMessage); interfaceType = getTypeFactory().createInterfaceType(interfaceName, interfaceClassName, TypeFactory.CLIENT, contingency, cardinality); logDone(processingContext, baseReference, logMessage); } catch (FactoryException te) { severe(new ProcessorException(baseReference, "Could not " + logMessage, te)); return; } // Keep the Fractal interface type into the processing context. processingContext.putData(baseReference, InterfaceType.class, interfaceType); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
protected final void completeBaseReference(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Complete the composite reference interface. complete(baseReference, SCA_INTERFACE, baseReference.getInterface(), getInterfaceProcessor(), processingContext); // Complete the composite reference bindings. complete(baseReference, SCA_BINDING, baseReference.getBinding(), getBindingProcessor(), processingContext); // Retrieve the component from the processing context. Component component = getFractalComponent(baseReference.eContainer(), processingContext); // Complete the composite reference required intents. completeRequires(baseReference, baseReference.getRequires(), component, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
Override protected final void doGenerate(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Generate the base reference interface type. generateInterfaceType(baseReference, processingContext); // Generate the base reference bindings. generate(baseReference, SCA_BINDING, baseReference.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
Override protected final void doInstantiate(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Instantiate the base reference interface. instantiate(baseReference, SCA_INTERFACE, baseReference.getInterface(), getInterfaceProcessor(), processingContext); // Instantiate the base reference bindings. instantiate(baseReference, SCA_BINDING, baseReference.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractPropertyProcessor.java
protected final void checkProperty(PropertyType property, QName propertyType, ProcessingContext processingContext) throws ProcessorException { // Associate the property type to the property. processingContext.putData(property, QName.class, propertyType); // Search which property type processor matches the given property type. boolean isPropertyTypeMatchedByOnePropertyTypeProcessor = false; for(Processor<PropertyType> propertyTypeProcessor : propertyTypeProcessors) { // check the property type and value. propertyTypeProcessor.check(property, processingContext); if(processingContext.getData(property, Processor.class) != null) { // the current property type processor matched the property type. isPropertyTypeMatchedByOnePropertyTypeProcessor = true; break; // the for loop. } } // Produce an error when no property processor type matches the property type. if(!isPropertyTypeMatchedByOnePropertyTypeProcessor) { error(processingContext, property, "Unknown property type '", propertyType.toString(), "'"); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractPropertyProcessor.java
protected final void setProperty(PropertyType property, String propertyName, ProcessingContext processingContext) throws ProcessorException { // Retrieve the Fractal component associated to the SCA composite/component of the given property. Component component = getFractalComponent(property.eContainer(), processingContext); // Retrieve the SCA property controller of this Fractal component. SCAPropertyController propertyController; try { propertyController = (SCAPropertyController)component.getFcInterface(SCAPropertyController.NAME); } catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Can't get the SCA property controller", nsie)); return; } // Retrieve the property value set by the property type processor. Object propertyValue = processingContext.getData(property, Object.class); if(propertyValue == null) { // The property type processor didn't compute a property value during check() // Then it is needed to call complete() to compute this property value. // Retrieve the property type associated to this property. QName propertyType = processingContext.getData(property, QName.class); if(propertyType == null) { // When no property type then get the property type via the property controller. Class<?> clazz = propertyController.getType(propertyName); if(clazz == null) { // When no property type defined then consider that it is String clazz = String.class; } // Reput the property type into the processing context. processingContext.putData(property, QName.class, new QName(ScaPropertyTypeJavaProcessor.OW2_FRASCATI_JAVA_NAMESPACE, clazz.getCanonicalName())); } // Retrieve the property type processor set during the method checkProperty() @SuppressWarnings("unchecked") Processor<PropertyType> propertyTypeProcessor = (Processor<PropertyType>) processingContext.getData(property, Processor.class); // Compute the property value. propertyTypeProcessor.complete(property, processingContext); // Retrieve the property value set by the property type processor. propertyValue = processingContext.getData(property, Object.class); } // set the property value and type via the property controller. propertyController.setValue(propertyName, propertyValue); propertyController.setType(propertyName, propertyValue.getClass()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeReferenceProcessor.java
Override protected final void doCheck(Reference reference, ProcessingContext processingContext) throws ProcessorException { // List for storing the promoted component references. List<ComponentReference> promotedComponentReferences = new ArrayList<ComponentReference>(); // Check the attribute 'promote'. String promoteAttribute = reference.getPromote(); if(promoteAttribute == null) { warning(processingContext, reference, "The attribute 'promote' is not set"); } else { // Retrieve the map of components for the composite of this reference. ComponentMap mapOfComponents = processingContext.getData(reference.eContainer(), ComponentMap.class); for (String promoteValue : promoteAttribute.split("\\s")) { // Retrieve both promoted component and reference. String promoted[] = promoteValue.split("/"); if(promoted.length != 2) { error(processingContext, reference, "The value '", promoteValue, "' must be 'componentName/referenceName'"); } else { org.eclipse.stp.sca.Component promotedComponent = mapOfComponents.get(promoted[0]); if(promotedComponent == null) { error(processingContext, reference, "Unknown promoted component '", promoted[0], "'"); } else { ComponentReference promotedComponentReference = null; for(ComponentReference cr : promotedComponent.getReference()) { if(promoted[1].equals(cr.getName())) { promotedComponentReference = cr; break; // the for loop } } if(promotedComponentReference == null) { error(processingContext, reference, "Unknown promoted reference '", promoted[1], "'"); } else { promotedComponentReferences.add(promotedComponentReference); } } } } } // store the promoted component references to be dealt later in method complete(). processingContext.putData(reference, ComponentReference[].class, promotedComponentReferences.toArray(new ComponentReference[promotedComponentReferences.size()])); // Check this composite reference as a base reference. checkBaseReference(reference, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeReferenceProcessor.java
Override protected final void doComplete(Reference reference, ProcessingContext processingContext) throws ProcessorException { // Retrieve the component from the processing context. Component component = getFractalComponent(reference.eContainer(), processingContext); // Promote component references. for(ComponentReference componentReference : processingContext.getData(reference, ComponentReference[].class)) { Component promotedComponent = getFractalComponent(componentReference.eContainer(), processingContext); bindFractalComponent( promotedComponent, componentReference.getName(), getFractalInternalInterface(component, reference.getName())); } // Complete this composite reference as a base reference. completeBaseReference(reference, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
protected final void checkBaseService(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Check the base service name. checkAttributeMustBeSet(baseService, "name", baseService.getName(), processingContext); // Check the base service policy sets. checkAttributeNotSupported(baseService, "policySets", baseService.getPolicySets() != null, processingContext); // TODO: 'requires' must be checked here. // Does the intent composite exist? // Is this composite an intent (service Intent of interface IntentHandler)? // Check the base service interface. checkMustBeDefined(baseService, SCA_INTERFACE, baseService.getInterface(), getInterfaceProcessor(), processingContext); // TODO interfaceProcessor.check(baseService.getCallback(), processingContext); // Check the base service operations. checkChildrenNotSupported(baseService, SCA_OPERATION, baseService.getOperation().size() > 0, processingContext); // TODO operationProcessor.check(baseService.getOperation(), processingContext); // Check the base service bindings. check(baseService, SCA_BINDING, baseService.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
private void generateInterfaceType(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Generate the base service interface. generate(baseService, SCA_INTERFACE, baseService.getInterface(), getInterfaceProcessor(), processingContext); // Corresponding Java interface class name. String interfaceClassName = processingContext.getData(baseService.getInterface(), JavaClass.class) .getClassName(); // Name for the generated interface type. String interfaceName = baseService.getName(); // Indicates if the interface is mandatory or optional. boolean contingency = TypeFactory.MANDATORY; // indicates if component interface is single or collection. boolean cardinality = TypeFactory.SINGLE; // Create the Fractal interface type. InterfaceType interfaceType; String logMessage = "create a Fractal server interface type " + interfaceClassName + " for " + interfaceName + " with contingency = " + contingency + " and cardinality = " + cardinality; try { logDo(processingContext, baseService, logMessage); interfaceType = getTypeFactory().createInterfaceType(interfaceName, interfaceClassName, TypeFactory.SERVER, contingency, cardinality); logDone(processingContext, baseService, logMessage); } catch (FactoryException te) { severe(new ProcessorException(baseService, "Could not " + logMessage, te)); return; } // Keep the Fractal interface type into the processing context. processingContext.putData(baseService, InterfaceType.class, interfaceType); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
protected final void completeBaseService(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Complete the base service interface. complete(baseService, SCA_INTERFACE, baseService.getInterface(), getInterfaceProcessor(), processingContext); // Complete the base service bindings. complete(baseService, SCA_BINDING, baseService.getBinding(), getBindingProcessor(), processingContext); // Retrieve the component from the processing context. Component component = getFractalComponent(baseService.eContainer(), processingContext); // Complete the base service required intents. completeRequires(baseService, baseService.getRequires(), component, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
Override protected final void doGenerate(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Generate the base service interface type. generateInterfaceType(baseService, processingContext); // Generate the base service bindings. generate(baseService, SCA_BINDING, baseService.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
Override protected final void doInstantiate(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Instantiate the base service interface. instantiate(baseService, SCA_INTERFACE, baseService.getInterface(), getInterfaceProcessor(), processingContext); // Instantiate the base service bindings. instantiate(baseService, SCA_BINDING, baseService.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
protected final ComponentType generateComponentType( ElementType element, List<ServiceType> services, Processor<ServiceType> serviceProcessor, List<ReferenceType> references, Processor<ReferenceType> referenceProcessor, ProcessingContext processingContext) throws ProcessorException { logDo(processingContext, element, "generate the component type"); // Create a list of Fractal interface types. List<InterfaceType> interfaceTypes = new ArrayList<InterfaceType>(); // Create interface types for services. for (ServiceType cs : services) { serviceProcessor.generate(cs, processingContext); interfaceTypes.add(processingContext.getData(cs, InterfaceType.class)); } // Create interface types for references. for (ReferenceType cr : references) { referenceProcessor.generate(cr, processingContext); interfaceTypes.add(processingContext.getData(cr, InterfaceType.class)); } InterfaceType[] itftype = interfaceTypes.toArray(new InterfaceType[interfaceTypes.size()]); ComponentType componentType; try { logDo(processingContext, element, "generate the associated component type"); componentType = typeFactory.createComponentType(itftype); logDone(processingContext, element, "generate the associated component type"); } catch(FactoryException te) { severe(new ProcessorException(element, "component type creation for " + toString(element) + " failed", te)); return null; } // Keep the component type into the processing context. processingContext.putData(element, ComponentType.class, componentType); logDone(processingContext, element, "generate the component type"); return componentType; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
protected final void setComponentName(ElementType element, String whatComponent, Component component, String name, ProcessingContext processingContext) throws ProcessorException { String message = "set the component name of the " + whatComponent + " to '" + name + "'"; logDo(processingContext, element, message); // set the name of the component. setFractalComponentName(component, name); logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
Override protected final void doCheck(PropertyValue property, ProcessingContext processingContext) throws ProcessorException { // Check the property name. checkAttributeMustBeSet(property, "name", property.getName(), processingContext); // Check the property value or source. String propertyValue = property.getValue(); String propertySource = property.getSource(); logDo(processingContext, property, "check the attributes 'value' or 'source'"); if( ( propertyValue == null && propertySource == null ) || ( propertyValue != null && propertySource != null ) ) { error(processingContext, property, "The property value or the attribute 'source' must be set"); } logDone(processingContext, property, "check the attributes 'value' or 'source'"); // Check the attribute 'source'. if(propertySource != null && propertyValue == null) { if(propertySource.equals("")) { error(processingContext, property, "The attribute 'source' must be set"); } else { if (propertySource.startsWith("$")) { propertySource = propertySource.substring(1); } // Has the enclosing composite a property of this name? Property compositeProperty = null; for(Property cp : ((Composite)property.eContainer().eContainer()).getProperty()) { if(propertySource.equals(cp.getName())) { compositeProperty = cp; break; // the for loop. } } if(compositeProperty == null) { error(processingContext, property, "The source composite property '", propertySource, "' is not defined"); } } } // Check the property attribute 'many'. checkAttributeNotSupported(property, "many", property.isSetMany(), processingContext); // Check the property attribute 'file'. checkAttributeNotSupported(property, "file", property.getFile() != null, processingContext); // Check the component property type and value. QName propertyType = (property.getElement() != null) ? property.getElement() : property.getType(); checkProperty(property, propertyType, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
Override protected final void doComplete(PropertyValue property, ProcessingContext processingContext) throws ProcessorException { // Setting the property value. String propertySource = property.getSource(); if (propertySource != null) { if (propertySource.startsWith("$")) { propertySource = propertySource.substring(1); } // Retrieve the component from the processing context. Component component = getFractalComponent(property.eContainer(), processingContext); // Retrieve the SCA property controller of the component. SCAPropertyController propertyController; try { propertyController = (SCAPropertyController)component.getFcInterface(SCAPropertyController.NAME); } catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller", nsie)); return; } // Retrieve the SCA property controller of the enclosing composite. Component enclosingComposite = getFractalComponent(property.eContainer().eContainer(), processingContext); SCAPropertyController enclosingCompositePropertyController; try { enclosingCompositePropertyController = (SCAPropertyController) enclosingComposite.getFcInterface(SCAPropertyController.NAME); } catch(NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller of the enclosing composite", nsie)); return; } try { enclosingCompositePropertyController.setPromoter(propertySource, propertyController, property.getName()); } catch (IllegalPromoterException ipe) { severe(new ProcessorException(property, "Property '" + property.getName() + "' cannot be promoted by the enclosing composite", ipe)); return; } } else { // Set the component property. setProperty(property, property.getName(), processingContext); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
Override protected final void doCheck(JavaInterface javaInterface, ProcessingContext processingContext) throws ProcessorException { if(javaInterface.getInterface() == null) { error(processingContext, javaInterface, "the attribute 'interface' must be set"); } else { try { logDo(processingContext, javaInterface, "check the Java interface"); Class<?> clazz = processingContext.loadClass(javaInterface.getInterface()); logDone(processingContext, javaInterface, "check the Java interface"); // Store the Java class into the processing context. storeJavaInterface(javaInterface, processingContext, javaInterface.getInterface(), clazz); } catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java interface '", javaInterface.getInterface(), "' not found"); } } if(javaInterface.getCallbackInterface() != null) { try { logDo(processingContext, javaInterface, "check the Java callback interface"); processingContext.loadClass(javaInterface.getCallbackInterface()); logDone(processingContext, javaInterface, "check the Java callback interface"); } catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java callback interface '", javaInterface.getCallbackInterface(), "' not found"); } } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
Override protected final void doCheck(FractalImplementation fractalImplementation, ProcessingContext processingContext) throws ProcessorException { String fractalImplementationDefinition = fractalImplementation.getDefinition(); if(isNullOrEmpty(fractalImplementationDefinition)) { error(processingContext, fractalImplementation, "The attribute 'definition' must be set"); } else { int index = fractalImplementationDefinition.indexOf('('); String fractalFile = (index == -1) ? fractalImplementationDefinition : fractalImplementationDefinition.substring(0, index); if(processingContext.getResource(fractalFile.replace(".", "/") + ".fractal") == null) { error(processingContext, fractalImplementation, "Fractal definition '", fractalFile, "' not found"); } } // check attributes 'policySets' and 'requires'. checkImplementation(fractalImplementation, processingContext); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
Override protected final void doGenerate(FractalImplementation fractalImplementation, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, fractalImplementation, "nothing to generate"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
Override protected final void doInstantiate(FractalImplementation fractalImplementation, ProcessingContext processingContext) throws ProcessorException { String definition = fractalImplementation.getDefinition(); Component component; try { // Try loading from definition generated with Juliac Class<?> javaClass = processingContext.loadClass(definition); Factory object = (Factory) javaClass.newInstance(); // Create the component instance. component = object.newFcInstance(); } catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } } catch (InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building instance for class " + definition, ie)); return; } catch (IllegalAccessException iae) { severe(new ProcessorException(fractalImplementation, "Can't access class " + definition, iae)); return; } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building component instance: " + definition, ie)); return; } // Store the created component into the processing context. processingContext.putData(fractalImplementation, Component.class, component); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
Override protected void doCheck(BindingType binding, ProcessingContext processingContext) throws ProcessorException { checkBinding(binding, processingContext); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
Override protected final void doComplete(BindingType binding, ProcessingContext processingContext) throws ProcessorException { Component component = getFractalComponent(binding, processingContext); Map<String, Object> hints = createBindingFactoryHints(binding, processingContext.getClassLoader()); if(hasBaseReference(binding)) { BaseReference reference = getBaseReference(binding); String referenceName = reference.getName(); // Following deal with references having a 0..N or 1..N multiplicity and several bindings. Multiplicity multiplicity = reference.getMultiplicity(); if(Multiplicity._0N.equals(multiplicity) || Multiplicity._1N.equals(multiplicity)) { // Add a unique suffix to the reference name. int index = reference.getBinding().indexOf(binding); referenceName = referenceName + '-' + index; } try { log.fine("Calling binding factory\n bind: " + getFractalComponentName(component) + " -> " + referenceName); bindingFactory.bind(component, referenceName, hints); } catch (BindingFactoryException bfe) { severe(new ProcessorException(binding, "Error while binding reference: " + referenceName, bfe)); return; } return; } if(hasBaseService(binding)) { BaseService service = getBaseService(binding); String serviceName = service.getName(); try { log.fine("Calling binding factory\n export : " + getFractalComponentName(component) + " -> " + serviceName); bindingFactory.export(component, serviceName, hints); } catch (BindingFactoryException bfe) { severe(new ProcessorException("Error while binding service: " + serviceName, bfe)); return; } } }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/FrascatiImplementationResourceProcessor.java
Override protected final void doCheck(ResourceImplementation resourceImplementation, ProcessingContext processingContext) throws ProcessorException { String location = resourceImplementation.getLocation(); checkAttributeMustBeSet(resourceImplementation, "location", location, processingContext); // Check that location is present in the class path. if(!isNullOrEmpty(location) && processingContext.getClassLoader().getResourceAsStream(location) == null) { // Location not found. error(processingContext, resourceImplementation, "Location '" + location + "' not found"); } // Get the enclosing SCA component. Component component = getParent(resourceImplementation, Component.class); if(component.getProperty().size() != 0) { error(processingContext, resourceImplementation, "<implementation.resource> can't have SCA properties"); } if(component.getReference().size() != 0) { error(processingContext, resourceImplementation, "<implementation.resource> can't have SCA references"); } List<ComponentService> services = component.getService(); if(services.size() > 1) { error(processingContext, resourceImplementation, "<implementation.resource> can't have more than one SCA service"); } else { ComponentService service = null; if(services.size() == 0) { // The component has zero service then add a service to the component. service = ScaFactory.eINSTANCE.createComponentService(); service.setName("Resource"); services.add(service); } else { // The component has one service. service = services.get(0); } // Get the service interface. Interface itf = service.getInterface(); if(itf == null) { // The component service has no interface than add a Java Servlet interface. JavaInterface javaInterface = ScaFactory.eINSTANCE.createJavaInterface(); javaInterface.setInterface(Servlet.class.getName()); service.setInterface(javaInterface); } else { // Check if this is a Java Servlet interface. boolean isServletInterface = (itf instanceof JavaInterface) ? Servlet.class.getName().equals(((JavaInterface)itf).getInterface()) : false; if(!isServletInterface) { error(processingContext, resourceImplementation, "<service name=\"" + service.getName() + "\"> must have an <interface.java interface=\"" + Servlet.class.getName() + "\">"); } } } // check attributes 'policySets' and 'requires'. checkImplementation(resourceImplementation, processingContext); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/FrascatiImplementationResourceProcessor.java
Override protected final void doGenerate(ResourceImplementation resourceImplementation, ProcessingContext processingContext) throws ProcessorException { // Generate a FraSCAti SCA primitive component. generateScaPrimitiveComponent(resourceImplementation, processingContext, ImplementationResourceComponent.class.getName()); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/FrascatiImplementationResourceProcessor.java
Override protected final void doInstantiate(ResourceImplementation resourceImplementation, ProcessingContext processingContext) throws ProcessorException { // Instantiate a FraSCAti SCA primitive component. org.objectweb.fractal.api.Component component = instantiateScaPrimitiveComponent(resourceImplementation, processingContext, ImplementationResourceComponent.class.getName()); // Retrieve the SCA property controller of this Fractal component. SCAPropertyController propertyController = (SCAPropertyController)getFractalInterface(component, SCAPropertyController.NAME); // Set the classloader property. propertyController.setValue("classloader", processingContext.getClassLoader()); // Set the location property. propertyController.setValue("location", resourceImplementation.getLocation()); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
Override protected final void doCheck(VelocityImplementation velocityImplementation, ProcessingContext processingContext) throws ProcessorException { String location = velocityImplementation.getLocation(); checkAttributeMustBeSet(velocityImplementation, "location", location, processingContext); boolean checkDefaultInClassLoader = true; // Check that location is present in the class path. if(!isNullOrEmpty(location) && processingContext.getClassLoader().getResourceAsStream(location) == null) { // Location not found. error(processingContext, velocityImplementation, "Location '" + location + "' not found"); checkDefaultInClassLoader = false; } String default_ = velocityImplementation.getDefault(); checkAttributeMustBeSet(velocityImplementation, "default", default_, processingContext); // Check that default is present in the class path. if(checkDefaultInClassLoader && !isNullOrEmpty(default_) && processingContext.getClassLoader().getResourceAsStream(location + '/' + default_) == null) { // Default not found. error(processingContext, velocityImplementation, "Default '" + default_ + "' not found"); } // Get the enclosing SCA component. Component component = getParent(velocityImplementation, Component.class); List<ComponentService> services = component.getService(); if(services.size() > 1) { error(processingContext, velocityImplementation, "<implementation.velocity> cannot have more than one SCA service"); } else { ComponentService service = null; if(services.size() == 0) { // The component has zero service then add a service to the component. service = ScaFactory.eINSTANCE.createComponentService(); service.setName("Velocity"); services.add(service); } else { // The component has one service. service = services.get(0); } // Get the service interface. Interface itf = service.getInterface(); if(itf == null) { // The component service has no interface then add a Java Servlet interface. JavaInterface javaInterface = ScaFactory.eINSTANCE.createJavaInterface(); javaInterface.setInterface(Servlet.class.getName()); service.setInterface(javaInterface); itf = javaInterface; } // Stores if the component provides the Servlet interface or not processingContext.putData(velocityImplementation, String.class, ((JavaInterface)itf).getInterface()); processingContext.putData(velocityImplementation, Boolean.class, (itf instanceof JavaInterface) ? Servlet.class.getName().equals(((JavaInterface)itf).getInterface()) : false); } // check attributes 'policySets' and 'requires'. checkImplementation(velocityImplementation, processingContext); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
Override protected final void doGenerate(VelocityImplementation velocityImplementation, ProcessingContext processingContext) throws ProcessorException { // Get the parent component. Component component = getParent(velocityImplementation, Component.class); boolean isServletItf = processingContext.getData(velocityImplementation, Boolean.class); // Name of the content class. String contentFullClassName = null; if(isServletItf && component.getProperty().size() == 0 && component.getReference().size() == 0) { // if no property and no reference then use default ImplementationVelocity class. contentFullClassName = ServletImplementationVelocity.class.getName(); } else { String basename = isServletItf ? velocityImplementation.getLocation() : velocityImplementation.getLocation()+velocityImplementation.getDefault(); int hashCode =basename.hashCode(); if(hashCode < 0) hashCode = -hashCode; // if some property or some reference then generate an ImplementationVelocity class. String contentClassName = "ImplementationVelocity" + hashCode; // Add the package to the content class name. contentFullClassName = this.packageGeneration + '.' + contentClassName; try { processingContext.loadClass(contentFullClassName); } catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } } } // Generate a FraSCAti SCA primitive component. generateScaPrimitiveComponent(velocityImplementation, processingContext, contentFullClassName); // Store the content class name to retrieve it from next doInstantiate method. processingContext.putData(velocityImplementation, String.class, contentFullClassName); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
Override protected final void doInstantiate(VelocityImplementation velocityImplementation, ProcessingContext processingContext) throws ProcessorException { // Instantiate a FraSCAti SCA primitive component. org.objectweb.fractal.api.Component component = instantiateScaPrimitiveComponent(velocityImplementation, processingContext, processingContext.getData(velocityImplementation, String.class)); // Retrieve the SCA property controller of this Fractal component. SCAPropertyController propertyController = (SCAPropertyController)getFractalInterface(component, SCAPropertyController.NAME); // Set the classloader property. propertyController.setValue("classloader", processingContext.getClassLoader()); // Set the location property. propertyController.setValue("location", velocityImplementation.getLocation()); // Set the default property. propertyController.setValue("default", velocityImplementation.getDefault()); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
Override protected final void doCheck(JGroupsBinding binding, ProcessingContext ctx) throws ProcessorException { checkBinding(binding, ctx); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
Override protected final void doGenerate(JGroupsBinding binding, ProcessingContext ctx) throws ProcessorException { logFine(ctx, binding, "nothing to generate"); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
Override protected final void doInstantiate(JGroupsBinding binding, ProcessingContext ctx) throws ProcessorException { try { String cluster = binding.getCluster(); Class<?> itf = null; if (hasBaseReference(binding)) { // Client side itf = getBaseReferenceJavaInterface(binding, ctx); } if (hasBaseService(binding)) { // Server side itf = getBaseServiceJavaInterface(binding, ctx); } if (cluster == null || cluster.equals("")) cluster = itf.getName(); // TODO: Share connector instances for a given cluster @SuppressWarnings({ "rawtypes", "unchecked" }) JGroupsRpcConnector content = new JGroupsRpcConnector(itf); ComponentType connectorType = content.getComponentType(tf); Component connector = cf.createComponent(connectorType, "primitive", content); Component port = getFractalComponent(binding, ctx); getNameController(connector).setFcName( getNameController(port).getFcName() + "-jgroups-connector"); JGroupsRpcAttributes ac = (JGroupsRpcAttributes) getAttributeController(connector); ac.setCluster(cluster); ac.setProperties(binding.getConfiguration()); for (Component composite : getSuperController(port) .getFcSuperComponents()) { addFractalSubComponent(composite, connector); } if (hasBaseService(binding)) { // Server side BaseService service = getBaseService(binding); bindFractalComponent(connector, "servant", port.getFcInterface(service.getName())); } if (hasBaseReference(binding)) { // Client side BaseReference reference = getBaseReference(binding); bindFractalComponent(port, reference.getName(),content.getProxy(ctx.getClassLoader())); } }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
Override protected final void doComplete(JGroupsBinding binding, ProcessingContext ctx) throws ProcessorException { logFine(ctx, binding, "nothing to complete"); }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
Override protected final void doCheck(NativeInterface nativeItf, ProcessingContext processingContext) throws ProcessorException { // Check the attribute 'descriptor' String desc = nativeItf.getDescriptor(); if (desc == null || desc.equals("")) { error(processingContext, nativeItf, "The attribute 'descriptor' must be set"); return; } File file = new File(desc); if (!file.exists()) { log.severe("The descriptor '" + desc + "' does not exist on the system."); } else if (!file.canRead()) { log.severe("The descriptor '" + desc + "' is not readable."); } String javaInterface = this.compiler.packageName(file) + "." + this.compiler.interfaceName(file); Class<?> clazz = null; try { clazz = processingContext.loadClass(javaInterface); } catch (ClassNotFoundException cnfe) { // If the Java interface is not found then this requires to compile Native to Java. } storeJavaInterface(nativeItf, processingContext, javaInterface, clazz); }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
Override protected final void doGenerate(NativeInterface nativeItf, ProcessingContext processingContext) throws ProcessorException { // If no Java interface computed during doCheck() then compile if (getClass(nativeItf, processingContext) != null) { return; } final String filename = nativeItf.getDescriptor(); if (this.log.isLoggable(INFO)) { this.log.info("Compiling the descriptor '" + filename + "'..."); } File output = new File(this.membraneGen.getOutputDirectory() + "/" + targetDir); try { this.compiler.compile(new File(filename), output); } catch (IOException exc) { severe(new ProcessorException("Error when compiling descriptor", exc)); } // Ask OW2 FraSCAti Juliac to compile generated sources. this.membraneGen.addJavaSource(output.getAbsolutePath()); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doCheck(JnaBinding jnaBinding, ProcessingContext processingContext) throws ProcessorException { checkAttributeMustBeSet(jnaBinding, "library", jnaBinding.getLibrary(), processingContext); if (!hasBaseReference(jnaBinding)) { error(processingContext, jnaBinding, "<binding.jna> can only be child of <sca:reference>"); } checkBinding(jnaBinding, processingContext); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doGenerate(JnaBinding jnaBinding, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, jnaBinding, "nothing to generate"); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
private Component createProxyComponent(JnaBinding binding, ProcessingContext ctx) throws ProcessorException { Class<?> cls = getBaseReferenceJavaInterface(binding, ctx); try { Object library = Native.loadLibrary(binding.getLibrary(), cls); ComponentType proxyType = tf .createComponentType(new InterfaceType[] { tf .createInterfaceType(JNA_ITF, cls.getName(), false, false, false) }); return cf.createComponent(proxyType, "primitive", library); } catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); } catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); } }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doInstantiate(JnaBinding binding, ProcessingContext ctx) throws ProcessorException { Component proxy = createProxyComponent(binding, ctx); Component port = getFractalComponent(binding, ctx); try { getNameController(proxy).setFcName( getNameController(port).getFcName() + "-jna-proxy"); for (Component composite : getSuperController(port) .getFcSuperComponents()) { addFractalSubComponent(composite, proxy); } BaseReference reference = getBaseReference(binding); bindFractalComponent(port, reference.getName(), proxy.getFcInterface(JNA_ITF)); } catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); } logFine(ctx, binding, "importing done"); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doComplete(JnaBinding jnaBinding, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, jnaBinding, "nothing to complete"); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ScaImplementationSpringProcessor.java
Override protected final void doCheck(SpringImplementation springImplementation, ProcessingContext processingContext) throws ProcessorException { String springImplementationLocation = springImplementation.getLocation(); if(springImplementationLocation == null || springImplementationLocation.equals("")) { error(processingContext, springImplementation, "The attribute 'location' must be set"); } else { if(processingContext.getResource(springImplementationLocation) == null) { error(processingContext, springImplementation, "Location '", springImplementationLocation, "' not found"); } } // check attributes 'policySets' and 'requires'. checkImplementation(springImplementation, processingContext); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ScaImplementationSpringProcessor.java
Override protected final void doInstantiate(SpringImplementation springImplementation, ProcessingContext processingContext) throws ProcessorException { // Get the Spring location. String springLocation = springImplementation.getLocation(); log.finer("Create an SCA component with the Spring implementation " + springLocation + " and the Fractal component type " + getFractalComponentType(springImplementation, processingContext).toString()); // TODO: Must handle location as described in the SCA specification. // location could be a Jar file or a directory. // Currently, location is considered to refer a Spring XML file in the class path. // Create the SCA composite. Component component = createFractalComposite(springImplementation, processingContext); // Create the Spring application context. // TODO: Must use another ApplicationContext to read XML files from JAR // files or directories. ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( new String[] { springLocation }, new ParentApplicationContext(component)); // It must use the current thread class loader to load Java classes. context.setClassLoader(processingContext.getClassLoader()); // Connect the Fractal composite to Spring beans. connectFractalComposite(springImplementation, processingContext, context); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
Override protected final void doCheck(JMSBinding jmsBinding, ProcessingContext processingContext) throws ProcessorException { // Check if getUri() is well-formed. if (jmsBinding.getUri() != null && !jmsBinding.getUri().equals("")) { Matcher matcher = JMS_URI_PATTERN.matcher(jmsBinding.getUri()); if (!matcher.matches()) { throw new ProcessorException(jmsBinding, "JMS URI is not well formed."); } String jmsvariant = matcher.group(1); try { jmsvariant = URLDecoder.decode(jmsvariant, "UTF-8"); } catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); } if (!jmsvariant.equals("jndi")) { throw new ProcessorException(jmsBinding, "Only jms:jndi: variant is supported."); } // When the @uri attribute is specified, the destination element // MUST NOT be present if (jmsBinding.getDestination() != null) { throw new ProcessorException(jmsBinding, "Binding can't have both a JMS URI and a destination element."); } } // Default checking done on any SCA binding. super.doCheck(jmsBinding, processingContext); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
Override protected final void doCheck(BpelImplementation bpelImplementation, ProcessingContext processingContext) throws ProcessorException { // Check the 'process' attribute. QName bpelImplementationProcess = bpelImplementation.getProcess(); if(bpelImplementationProcess == null) { error(processingContext, bpelImplementation, "The attribute 'process' must be set"); } else { String processNamespace = bpelImplementationProcess.getNamespaceURI(); String processUri = null; // When the process namespace starts by "classpath:" if(processNamespace.startsWith(CLASSPATH_NS)) { StringBuffer sb = new StringBuffer(); sb.append(processNamespace.substring(CLASSPATH_NS.length())); if(sb.length() > 0) { sb.append('/'); } sb.append(bpelImplementationProcess.getLocalPart()); // Search the process file into the processing context's class loader. URL resource = processingContext.getResource(sb.toString()); if(resource != null) { processUri = resource.toString(); } } if(processUri == null) { processUri = processNamespace + '/' + bpelImplementationProcess.getLocalPart(); } try { BPELProcess bpelProcess = bpelEngine.newBPELProcess(processUri); // Register of JAXB Object Factories. JAXB.registerObjectFactoryFromClassLoader(processingContext.getClassLoader()); // System.out.println(bpelProcess); // Store the created BPELProcess into the processing context. processingContext.putData(bpelImplementation, BPELProcess.class, bpelProcess); } catch(FrascatiException exc) { // exc.printStackTrace(); error(processingContext, bpelImplementation, "Can't read BPEL process ", bpelImplementationProcess.toString()); } catch(Exception exc) { severe(new ProcessorException(bpelImplementation, "Can not read BPEL process " + bpelImplementationProcess, exc)); return; } } // check attributes 'policySets' and 'requires'. checkImplementation(bpelImplementation, processingContext); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
Override protected final void doGenerate(BpelImplementation bpelImplementation, ProcessingContext processingContext) throws ProcessorException { // Obtain the BPELProcess stored during doCheck() BPELProcess bpelProcess = processingContext.getData(bpelImplementation, BPELProcess.class); // Compile all WSDL imported by the BPEL process. for(String wsdlUri : bpelProcess.getAllImportedWsdlLocations()) { // Check if the WSDL file is present in the processing context's class loader. URL url = processingContext.getResource(wsdlUri); if(url != null) { wsdlUri = url.toString(); } // Compile the WSDL file. try { this.wsdlCompiler.compileWSDL(wsdlUri, processingContext); } catch(Exception exc) { error(processingContext, bpelImplementation, "Can't compile WSDL '", wsdlUri, "'"); } } super.doGenerate(bpelImplementation, processingContext); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
Override protected final void doInstantiate(BpelImplementation bpelImplementation, ProcessingContext processingContext) throws ProcessorException { Component containerOfProcesses = null; // Obtain the BPELProcess stored during doCheck() BPELProcess bpelProcess = processingContext.getData(bpelImplementation, BPELProcess.class); try { containerOfProcesses = bpelProcess.deploy(); } catch(Exception e) { warning(new ProcessorException("Error during deployment of the BPEL process '" + bpelImplementation.getProcess() + "'", e)); return; } // Instantiate the SCA composite containing the process. doInstantiate(bpelImplementation, processingContext, bpelProcess); // Set the name of the EasyBPEL container component. setFractalComponentName(containerOfProcesses, "implementation.bpel"); // Add the EasyBPEL process component to the SCA BPEL composite. addFractalSubComponent( getFractalComponent(bpelImplementation, processingContext), containerOfProcesses); }
(Lib) ReflectionException 9 9
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (ClassNotFoundException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchMethodException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalAccessException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (InvocationTargetException e) { throw new ReflectionException(e); }
2
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); propertyController.setValue(attribute.getName(), attribute.getValue()); } catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); } try { attributes.setAttribute(attribute.getName(), attribute.getValue()); } catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); } }
(Domain) FrascatiException 8
              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public static FraSCAti newFraSCAti(ClassLoader classLoader) throws FrascatiException { FraSCAti frascati; // Uncomment next line for debugging class loader. // FrascatiClassLoader.print(classLoader); // Get the current thread's context class loader and set it. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getAndSetCurrentThreadContextClassLoader(classLoader); try { try { frascati = loadAndInstantiate( System.getProperty(FRASCATI_CLASS_PROPERTY_NAME, FRASCATI_CLASS_DEFAULT_VALUE), classLoader); } catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); } frascati.initFrascatiComposite(classLoader); } finally { // Reset the previous current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousCurrentThreadContextClassLoader); } return frascati; }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
protected String[] getComposites() throws FrascatiException { if (!isEmpty(composite)) { // composite tag is filled if (composites.length > 0) { throw new FrascatiException( "You have to choose ONE (and only one) one way to specify composite name(s): " + "either <composite> or <composites> tag."); } else { String[] tmp = new String[1]; tmp[0] = composite; return tmp; } } else { if (composites.length > 0) { return composites; } else { // else no composite specified return new String[0]; } } }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
private String[] getMethodParams() throws FrascatiException { if( !isEmpty(methodParams) ) { // params tag is filled if (methodParameters.length > 0) { throw new FrascatiException( "You have to choose ONE (and only one) one way to specify parameters: " + "either <params> or <parameters> tag."); } else { return methodParams.split(" "); } } else { if (methodParameters.length > 0) { return methodParameters; } else { // else no parameters nor params return new String[0]; } } }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
Override protected final ClassLoader initCurrentClassLoader(ClassLoader currentClassLoader) throws FrascatiException { // // When Maven 3.x.y // if(currentClassLoader instanceof org.codehaus.plexus.classworlds.realm.ClassRealm) { org.codehaus.plexus.classworlds.realm.ClassRealm classRealm = (org.codehaus.plexus.classworlds.realm.ClassRealm)currentClassLoader; // Add the current project artifact JAR into the ClassRealm instance. try { classRealm.addURL( newFile( "target" + File.separator + project.getArtifactId() + "-" + project.getVersion() + ".jar") .toURL() ); } catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); } // Get the urls to project artifacts not present in the current class loader. List<URL> urls = getProjectArtifactsNotPresentInCurrentClassLoader(currentClassLoader); for(URL url : urls) { getLog().debug("Add into the MOJO class loader: " + url); classRealm.addURL(url); } return currentClassLoader; } // // When Maven 2.x.y // // Maven uses the org.codehaus.classworlds framework for managing its class loaders. // ClassRealm is a class loading space. org.codehaus.classworlds.ClassRealm classRealm = null; // Following allows to obtain the ClassRealm instance of the current MOJO class loader. // Here dynamic invocation is used as 'getRealm' is a protected method of a protected class!!! try { Method getRealmMethod = currentClassLoader.getClass().getDeclaredMethod("getRealm", new Class[0]); getRealmMethod.setAccessible(true); classRealm = (org.codehaus.classworlds.ClassRealm)getRealmMethod.invoke(currentClassLoader); } catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); } // Add the current project artifact JAR into the ClassRealm instance. try { classRealm.addConstituent( newFile( "target" + File.separator + project.getArtifactId() + "-" + project.getVersion() + ".jar") .toURL() ); } catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); } // Get the urls to project artifacts not present in the current class loader. List<URL> urls = getProjectArtifactsNotPresentInCurrentClassLoader(currentClassLoader); for(URL url : urls) { getLog().debug("Add into the MOJO class loader: " + url); classRealm.addConstituent(url); } return currentClassLoader; }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
Override protected final void executeMojo() throws FrascatiException { // Configure Java system properties. System.setProperty( "fscript-factory", "org.ow2.frascati.fscript.jsr223.FraSCAtiScriptEngineFactory" ); String[] parameters = getMethodParams(); FraSCAti frascati = FraSCAti.newFraSCAti(); Launcher launcher = new Launcher(composite, frascati); if ( isEmpty(service) ) { // Run in a server mode getLog().info("FraSCAti is running in a server mode..."); getLog().info("Press Ctrl+C to quit..."); try { System.in.read(); } catch (IOException e) { throw new FrascatiException(e); } } else { getLog().info("Calling the '" + service + "' service: "); getLog().info("\tMethod '" + method + "'" + ((parameters.length == 0) ? "" : " with params: " + Arrays.toString(parameters))); Object result = launcher.call(service, method, Object.class, parameters); getLog().info("Call done!"); if (result != null) { getLog().info("Service response:"); getLog().info(result.toString()); } } launcher.close(); }
6
              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelEngine.java
catch(BPELException bexc) { throw new FrascatiException("EasyBPEL can not read the BPEL process '" + processUri + "'", bexc);
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (IOException e) { throw new FrascatiException(e); }
33
              
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
public static void main(String[] args) throws FrascatiException { // The factory command line used to retrieve options value. FactoryCommandLine cmd = null; // List of URLs used to define the classpath URL[] urls = null; System.out.println("\nOW2 FraSCAti Standalone Runtime"); // => Parse arguments cmd = new FactoryCommandLine(); cmd.parse(args); String compositeName = args[0]; String[] paths = cmd.getLibPath(); urls = new URL[paths.length]; for (int i = 0; i < urls.length; i++) { try { urls[i] = new File(paths[i]).toURI().toURL(); } catch (MalformedURLException e) { System.err.println("Error while getting URL for : " + urls[i]); e.printStackTrace(); } } Launcher launcher = null; try { // TODO must be configurable from pom.xml files. if(cmd.isFscriptEnabled()) { System.setProperty("fscript-factory", "org.ow2.frascati.fscript.jsr223.FraSCAtiScriptEngineFactory"); } if (System.getProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME) == null) { System.setProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME, FraSCAtiFractal.class.getCanonicalName()); } // TODO // TODO Reactive this feature. // f.getService(f.getFactory(), "juliac", JuliacConfiguration.class).setOutputDir(new File(cmd.getBaseDir())); FraSCAti frascati = FraSCAti.newFraSCAti(); launcher = new Launcher(compositeName, frascati, urls); } catch (FrascatiException e) { e.printStackTrace(); System.err.println("Cannot instantiate the FraSCAti factory!"); System.err.println("Exiting ..."); System.exit(-1); } String service = cmd.getServiceName(); if(service == null) { // Run in a server mode System.out.println("FraSCAti is running in a server mode..."); System.out.println("Press Ctrl+C to quit..."); Thread.yield(); } else { Object result = launcher.call(service, cmd.getMethodName(), Object.class, (Object[]) cmd.getParams()); System.out.println("Call done!"); if(result != null) { System.out.println("Service response:"); System.out.println(result); } } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void unload() throws FrascatiException { String[] compositeNames = registry.unregisterAll(); int n = 0; for (; n < compositeNames.length; n++) { String compositeName = compositeNames[n]; unloadSCA(compositeName); } foContext.getBundleContext().ungetService( fServiceRegistration.getReference()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
protected final void initFrascatiComposite(ClassLoader classLoader) throws FrascatiException { // Instantiate the OW2 FraSCAti bootstrap factory. Factory bootstrapFactory; try { bootstrapFactory = loadAndInstantiate( System.getProperty(FRASCATI_BOOTSTRAP_PROPERTY_NAME, FRASCATI_BOOTSTRAP_DEFAULT_VALUE), classLoader); } catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap class", exc)); return; } // Instantiate the OW2 FraSCAti bootstrap composite. try { this.frascatiComposite = bootstrapFactory.newFcInstance(); } catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap composite", exc)); return; } // Start the OW2 FraSCAti bootstrap composite. try { startFractalComponent(this.frascatiComposite); } catch (Exception exc) { severe(new FrascatiException("Cannot start the OW2 FraSCAti Assembly Factory bootstrap composite", exc)); return; } // At this time, variable 'frascati' refers to the OW2 FraSCAti generated with Juliac. // Now reload the OW2 FraSCAti composite with the OW2 FraSCAti bootstrap composite. try { this.frascatiComposite = getCompositeManager().getComposite( System.getProperty(FRASCATI_COMPOSITE_PROPERTY_NAME, FRASCATI_COMPOSITE_DEFAULT_VALUE) .replace('.', '/')); } catch (Exception exc) { severe(new FrascatiException("Cannot load the OW2 FraSCAti composite", exc)); return; } // At this time, variable 'frascati' refers to the OW2 FraSCAti composite // dynamically loaded by the OW2 FraSCAti bootstrap composite. try { // Add OW2 FraSCAti into its top level domain composite. getCompositeManager().addComposite(this.frascatiComposite); } catch(Exception exc) { severe(new FrascatiException("Cannot add the OW2 FraSCAti composite", exc)); return; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
protected final <T> T getFrascatiService(String serviceName, Class<T> clazz) throws FrascatiException { return getService(this.frascatiComposite, serviceName, clazz); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public static FraSCAti newFraSCAti() throws FrascatiException { return newFraSCAti(FrascatiClassLoader.getCurrentThreadContextClassLoader()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public static FraSCAti newFraSCAti(ClassLoader classLoader) throws FrascatiException { FraSCAti frascati; // Uncomment next line for debugging class loader. // FrascatiClassLoader.print(classLoader); // Get the current thread's context class loader and set it. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getAndSetCurrentThreadContextClassLoader(classLoader); try { try { frascati = loadAndInstantiate( System.getProperty(FRASCATI_CLASS_PROPERTY_NAME, FRASCATI_CLASS_DEFAULT_VALUE), classLoader); } catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); } frascati.initFrascatiComposite(classLoader); } finally { // Reset the previous current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousCurrentThreadContextClassLoader); } return frascati; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final CompositeManager getCompositeManager() throws FrascatiException { return getFrascatiService(COMPOSITE_MANAGER, CompositeManager.class); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component getComposite(String composite) throws FrascatiException { return getCompositeManager().getComposite(composite); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component getComposite(String composite, URL[] libs) throws FrascatiException { return getCompositeManager().getComposite(composite, libs); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component getComposite(String composite, ClassLoader classLoader) throws FrascatiException { return getCompositeManager().getComposite(composite, classLoader); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component[] getContribution(String contribution) throws FrascatiException { return getCompositeManager().getContribution(contribution); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ProcessingContext newProcessingContext() throws FrascatiException { return newProcessingContext(ProcessingMode.all); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ProcessingContext newProcessingContext(ProcessingMode processingMode) throws FrascatiException { ProcessingContext processingContext = getCompositeManager().newProcessingContext(); processingContext.setProcessingMode(processingMode); return processingContext; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ProcessingContext newProcessingContext(ClassLoader classLoader) throws FrascatiException { return getCompositeManager().newProcessingContext(classLoader); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component processComposite(String composite, ProcessingContext processingContext) throws FrascatiException { return getCompositeManager().processComposite(new QName(composite), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final void close(Component composite) throws FrascatiException { // Closing the SCA domain. try { log.info("Closing the SCA composite '" + composite + "'."); TinfiDomain.close(composite); } catch (Exception exc) { severe(new FrascatiException("Impossible to stop the SCA composite '" + composite + "'!", exc)); return; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final void close() throws FrascatiException { // Closing the FraSCAti composite. close(this.frascatiComposite); this.frascatiComposite = null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ClassLoaderManager getClassLoaderManager() throws FrascatiException { return getFrascatiService(CLASSLOADER_MANAGER, ClassLoaderManager.class); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final void setClassLoader(ClassLoader classloader) throws FrascatiException { getClassLoaderManager().setClassLoader(classloader); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ClassLoader getClassLoader() throws FrascatiException { return getClassLoaderManager().getClassLoader(); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final MembraneGeneration getMembraneGeneration() throws FrascatiException { return getFrascatiService(MEMBRANE_GENERATION, MembraneGeneration.class); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
Init public final void initialize() throws FrascatiException { // init the FraSCAti class loader used. this.mainClassLoader = new FrascatiClassLoader("OW2 FraSCAti Assembly Factory"); // create the top level domain composite. this.topLevelDomainComposite = componentFactory.createScaContainer(); setFractalComponentName(topLevelDomainComposite, "Top Level Domain Composite"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
private void severe(String compositeName, FrascatiException fe) throws FrascatiException { scaComposite = null; log.severe("Unable to launch composite '" + compositeName + "': " + fe.getMessage()); throw fe; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
public final void launch() throws FrascatiException { if (compositeName != null) { try { scaComposite = FraSCAti.newFraSCAti().getComposite(compositeName); } catch (FrascatiException fe) { severe(compositeName, fe); } } else { log.severe("FraSCAti launcher: composite name must be set!"); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
public final void launch(String compositeName) throws FrascatiException { this.compositeName = compositeName; launch(); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
protected String[] getComposites() throws FrascatiException { if (!isEmpty(composite)) { // composite tag is filled if (composites.length > 0) { throw new FrascatiException( "You have to choose ONE (and only one) one way to specify composite name(s): " + "either <composite> or <composites> tag."); } else { String[] tmp = new String[1]; tmp[0] = composite; return tmp; } } else { if (composites.length > 0) { return composites; } else { // else no composite specified return new String[0]; } } }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
Override protected final void executeMojo() throws FrascatiException { // Set the OW2 FraSCAti output directory. System.setProperty("org.ow2.frascati.output.directory", this.projectBaseDirAbsolutePath + File.separator + "target"); // No Security Manager with FraSCAti Java RMI binding else an issue with // Sonar obscurs. System.setProperty("org.ow2.frascati.binding.rmi.security-manager", "no"); // Create a new OW2 FraSCAti instance. FraSCAti frascati = FraSCAti.newFraSCAti(); // Take into account the default Maven Java source directory if exists. File fs = newFile("src/main/java"); if (fs.exists()) { srcs.add(fs.getAbsolutePath()); } completeBuildSources(); // Declare all Java sources to compile. MembraneGeneration membraneGeneration = frascati.getMembraneGeneration(); for (String src : srcs) { membraneGeneration.addJavaSource(src); } // Get the OW2 FraSCAti class loader manager. ClassLoaderManager classLoaderManager = frascati.getClassLoaderManager(); // Add project resource directory if any into the class loader. File fr = newFile("src/main/resources"); if (fr.exists()) { try { try { classLoaderManager.loadLibraries(fr.toURI().toURL()); } catch (ManagerException e) { e.printStackTrace(); } } catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); } } completeBuildResources(classLoaderManager); // Add srcs into the class loader. for (int i = 0; i < srcs.size(); i++) { try { classLoaderManager.loadLibraries( new File(srcs.get(i)).toURI().toURL()); } catch (MalformedURLException mue) { getLog().error("Invalid file: " + srcs.get(i)); } } // Process SCA composites. for (String compositeName : getComposites()) { getLog().info("Compiling the SCA composite '" + compositeName + "'"); // Prepare the processing context ProcessingContext processingContext = frascati.newProcessingContext( ProcessingMode.compile); frascati.processComposite(compositeName, processingContext); getLog().info("SCA composite '" + compositeName + "' compiled successfully."); // Add Java sources generated by FraSCAti to the Maven project. // Then Maven will compile these Java sources. for (String directory : membraneGeneration.getJavaDirectories()) { getLog().info("Add " + directory + " as Maven compile source root."); addSource(directory); } } // Add Java sources, given as parameters to the OW2 FraSCAti compiler, // to the Maven project. // Then Maven will compile these Java sources too. for (String src : srcs) { addSource(src); } }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
private String[] getMethodParams() throws FrascatiException { if( !isEmpty(methodParams) ) { // params tag is filled if (methodParameters.length > 0) { throw new FrascatiException( "You have to choose ONE (and only one) one way to specify parameters: " + "either <params> or <parameters> tag."); } else { return methodParams.split(" "); } } else { if (methodParameters.length > 0) { return methodParameters; } else { // else no parameters nor params return new String[0]; } } }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
Override protected final ClassLoader initCurrentClassLoader(ClassLoader currentClassLoader) throws FrascatiException { // // When Maven 3.x.y // if(currentClassLoader instanceof org.codehaus.plexus.classworlds.realm.ClassRealm) { org.codehaus.plexus.classworlds.realm.ClassRealm classRealm = (org.codehaus.plexus.classworlds.realm.ClassRealm)currentClassLoader; // Add the current project artifact JAR into the ClassRealm instance. try { classRealm.addURL( newFile( "target" + File.separator + project.getArtifactId() + "-" + project.getVersion() + ".jar") .toURL() ); } catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); } // Get the urls to project artifacts not present in the current class loader. List<URL> urls = getProjectArtifactsNotPresentInCurrentClassLoader(currentClassLoader); for(URL url : urls) { getLog().debug("Add into the MOJO class loader: " + url); classRealm.addURL(url); } return currentClassLoader; } // // When Maven 2.x.y // // Maven uses the org.codehaus.classworlds framework for managing its class loaders. // ClassRealm is a class loading space. org.codehaus.classworlds.ClassRealm classRealm = null; // Following allows to obtain the ClassRealm instance of the current MOJO class loader. // Here dynamic invocation is used as 'getRealm' is a protected method of a protected class!!! try { Method getRealmMethod = currentClassLoader.getClass().getDeclaredMethod("getRealm", new Class[0]); getRealmMethod.setAccessible(true); classRealm = (org.codehaus.classworlds.ClassRealm)getRealmMethod.invoke(currentClassLoader); } catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); } // Add the current project artifact JAR into the ClassRealm instance. try { classRealm.addConstituent( newFile( "target" + File.separator + project.getArtifactId() + "-" + project.getVersion() + ".jar") .toURL() ); } catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); } // Get the urls to project artifacts not present in the current class loader. List<URL> urls = getProjectArtifactsNotPresentInCurrentClassLoader(currentClassLoader); for(URL url : urls) { getLog().debug("Add into the MOJO class loader: " + url); classRealm.addConstituent(url); } return currentClassLoader; }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
Override protected final void executeMojo() throws FrascatiException { // Configure Java system properties. System.setProperty( "fscript-factory", "org.ow2.frascati.fscript.jsr223.FraSCAtiScriptEngineFactory" ); String[] parameters = getMethodParams(); FraSCAti frascati = FraSCAti.newFraSCAti(); Launcher launcher = new Launcher(composite, frascati); if ( isEmpty(service) ) { // Run in a server mode getLog().info("FraSCAti is running in a server mode..."); getLog().info("Press Ctrl+C to quit..."); try { System.in.read(); } catch (IOException e) { throw new FrascatiException(e); } } else { getLog().info("Calling the '" + service + "' service: "); getLog().info("\tMethod '" + method + "'" + ((parameters.length == 0) ? "" : " with params: " + Arrays.toString(parameters))); Object result = launcher.call(service, method, Object.class, parameters); getLog().info("Call done!"); if (result != null) { getLog().info("Service response:"); getLog().info(result.toString()); } } launcher.close(); }
(Lib) RuntimeException 8
              
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
protected final void registerCommands() { // Internal commands register(new HelpCommand()); Properties commandsConfig = new Properties(); try { String resourceName = "org/ow2/frascati/fscript/console/commands.properties"; ClassLoader cl = FraSCAtiFScript.getSingleton().getClassLoaderManager().getClassLoader(); InputStream commandsStream = cl.getResourceAsStream(resourceName); if (commandsStream == null) { showError("Could not find configuration file " + resourceName + "."); throw new RuntimeException("Could not find configuration file " + resourceName + "."); } commandsConfig.load(commandsStream); } catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); } for (Object o : commandsConfig.keySet()) { String key = (String) o; if (key.endsWith(".class")) { String name = key.substring("command.".length(), key.lastIndexOf('.')); String klass = commandsConfig.getProperty(key); String shortDesc = commandsConfig.getProperty("command." + name + ".shortDesc"); String longDesc = commandsConfig.getProperty("command." + name + ".longDesc"); Command cmd = createCommand(name, klass, shortDesc, longDesc); if (cmd != null) { register(cmd); } } } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object get() { try { return reader.invoke(target, new Object[0]); } catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); } catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void set(Object value) throws IllegalArgumentException { try { writer.invoke(target, new Object[] { value }); } catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); } catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); } }
7
              
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException mue) { throw new RuntimeException(mue); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch(Exception exc) { throw new RuntimeException(exc); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); }
0
(Domain) FraSCAtiServiceException 7
              
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public String processComposite(String composite, URL... urls) throws FraSCAtiServiceException { FrascatiClassLoader compositeClassLoader = new FrascatiClassLoader( classLoaderManager.getClassLoader()); if(urls != null) { for(URL url : urls) { compositeClassLoader.addUrl(url); } } try { compositeManager.getComposite(composite,compositeClassLoader); } catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); } catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); } return registry.getProcessedComponentList().get(0); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public void remove(String compositeName) throws FraSCAtiServiceException { stop(compositeName); try { compositeManager.removeComposite(compositeName); } catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); } }
7
              
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' does not exist in " + componentName); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
3
              
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public String processComposite(String composite, URL... urls) throws FraSCAtiServiceException { FrascatiClassLoader compositeClassLoader = new FrascatiClassLoader( classLoaderManager.getClassLoader()); if(urls != null) { for(URL url : urls) { compositeClassLoader.addUrl(url); } } try { compositeManager.getComposite(composite,compositeClassLoader); } catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); } catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); } return registry.getProcessedComponentList().get(0); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public void remove(String compositeName) throws FraSCAtiServiceException { stop(compositeName); try { compositeManager.removeComposite(compositeName); } catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); } }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public <T> T getService(String compositeName, String serviceName, Class<T> serviceClass) throws FraSCAtiServiceException { return registry.getService(compositeName, serviceName, serviceClass); }
(Lib) Exception 6
              
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void main(String[] args) throws Exception { if (args.length == 0) { //usage: <x or c> <jar-archive> <files...> System.exit(0); } if (args[0].equals("x")) { BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(args[1])); File dest = new File(args[2]); unjar(inputStream, dest); } else if (args[0].equals("c")) { BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(args[1])); File[] src = new File[args.length - 2]; for (int i = 0; i < src.length; i++) { src[i] = new File(args[2 + i]); } jar(out, src); } else { throw new Exception("Need x or c as first argument"); } }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
Override public boolean undeploy(String[] ids, Application application) throws Exception { boolean deploymentResult = true; for (int i = 0; i < ids.length; i++) { String server = ids[i]; deployment = JAXRSClientFactory.create(server, Deployment.class); LOG.info("Undeploying " + Integer.toString(i+1) + " of " + Integer.toString(ids.length)); if (deployment.undeployComposite(application.getName()) >= 0) { LOG.info("Application undeployed"); } else { LOG.info("Error deploying application"); deploymentResult = false; } } if (deploymentResult == false) { throw new Exception("Fail in one or more undeployments. See the log error or contact the administrator."); } return deploymentResult; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
Override public boolean deploy(String[] ids, Application application) throws Exception { boolean deploymentResult = true; File contribFile = scaCompiler.compile(application.retrieveAbsoluteRoot(), application.getName(), application.getLibPath()); if (contribFile == null) { throw new Exception("No contribution file generated."); } String serversFaulty = "Errors in servers: "; for (int i = 0; i < ids.length; i++) { String server = ids[i]; LOG.info("Deploying " + Integer.toString(i+1) + " of " + Integer.toString(ids.length)); if(deploy(server, contribFile) == false){ serversFaulty = serversFaulty.concat(server+", "); deploymentResult = false; } } if (deploymentResult == false) { throw new Exception("Fail in one or more deployments.\n"+serversFaulty+"verify log errors or contact the administrator."); } return deploymentResult; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
private boolean deploy(String server,File contribFile) throws Exception { LOG.info("Cloud url : "+server); deployment = JAXRSClientFactory.create(server, Deployment.class); //Deploy contribution String contrib = null; try { contrib = FileUtil.getStringFromFile(contribFile); } catch (IOException e) { throw new IOException("Cannot read the contribution!"); } LOG.info("** Trying to deploy a contribution ..."); try { if (deployment.deployContribution(contrib) >= 0) { LOG.info("** Contribution deployed!"); return true; }else{ LOG.severe("Error trying to deploy contribution in: " + server); return false; } } catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
private void invokeMethod(Method method, Message msg) throws Exception { log.fine("invokeMethod " + method); Class<?>[] parameterTypes = method.getParameterTypes(); Object response = null; if (parameterTypes.length == 0) { response = method.invoke(getServant(), (Object[]) null); } else if (parameterTypes.length == 1 && Message.class.isAssignableFrom(parameterTypes[0])) { /* If there is a single parameter that is a JMSMessage, then the JMSMessage is * passed as is.*/ log.fine("Pass the JMSMessage as is."); response = method.invoke(getServant(), msg); } else { if (msg instanceof BytesMessage) { BytesMessage bytesMsg = (BytesMessage) msg; byte[] data = new byte[(int) bytesMsg.getBodyLength()]; bytesMsg.readBytes(data); Method m = delegate.getMethod(method.getName()); response = delegate.invoke(m, new String(data)); } else if (msg instanceof TextMessage) { TextMessage txtMsg = (TextMessage) msg; Method m = delegate.getMethod(method.getName()); response = delegate.invoke(m, txtMsg.getText()); } else { /* Otherwise, if the JMSMessage is not a JMS text message or bytes message * containing XML, it is invalid. */ log.severe("Received message is invalid."); } } if (method.getReturnType().equals(void.class) && method.getExceptionTypes().length == 0) { // One-way message exchange: nothing to do log.fine("One-way message exchange"); } else { // Request/response message exchange log.fine("Request/response message exchange"); TextMessage responseMsg = jmsModule.getResponseSession().createTextMessage(); if (getCorrelationScheme().equals(JmsConnectorConstants.CORRELATION_ID_SCHEME)) { responseMsg.setJMSCorrelationID(msg.getJMSCorrelationID()); } else if (getCorrelationScheme().equals(JmsConnectorConstants.MESSAGE_ID_SCHEME)) { responseMsg.setJMSCorrelationID(msg.getJMSMessageID()); } if (responseMsg != null) { responseMsg.setText(response.toString()); } // the request message included a non-null JMSReplyTo destination, the SCA runtime // MUST send the response message to that destination Destination responseDest = msg.getJMSReplyTo(); log.fine("ReplyTo field: " + responseDest); if (responseDest == null) { // the JMS binding includes a response/destination element the SCA runtime MUST // send the response message to that destination responseDest = jmsModule.getResponseDestination(); } if (responseDest == null) { throw new Exception("No response destination found."); } MessageProducer responseProducer = jmsModule.getResponseSession().createProducer(responseDest); responseProducer.send(responseMsg); responseProducer.close(); } log.fine("invokeMethod done"); }
1
              
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); }
77
              
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/factory/FraSCAtiNuxeoFactory.java
Override public Application createApplication(ApplicationDescriptor desc) throws java.lang.Exception { log.log(Level.INFO, "Create FraSCAtiNuxeo Application"); char sep = File.separatorChar; URLClassLoader cl = (URLClassLoader) Thread.currentThread() .getContextClassLoader(); log.log(Level.INFO, "ContextClassLoader found : " + cl); String home = Environment.getDefault().getHome().getAbsolutePath(); log.log(Level.INFO, "Frascati home dir : " + home); String outputDir = new StringBuilder(home).append(sep).append( "tmp").toString(); System.setProperty(FRASCATI_OUTPUT_DIRECTORY_PROPERTY, outputDir); System.setProperty(FraSCAtiIsolated.ISOLATED_FRASCATI_LIBRARIES_BASEDIR, new StringBuilder(home).append(sep).append("frascati") .append(sep).append("lib").toString()); log.log(Level.INFO, "Define FraSCAti default output dir : " + outputDir); String propertyBootFilePath = new StringBuilder(home).append(sep) .append("config").append(sep) .append("frascati_boot.properties").toString(); log.log(Level.INFO, "Read frascati_boot.properties file at " + propertyBootFilePath); try { Properties props = new Properties(); props.loadFromXML(new FileInputStream( new File(propertyBootFilePath))); Enumeration<Object> keys = props.keys(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); String value = props.getProperty(key); System.setProperty(key, value); } } catch (Exception e) { log.log(Level.INFO, "no boot properties found"); } URL[] urls = cl.getURLs(); if (urls == null || urls.length == 0) { log.log(Level.INFO, "No classpath entry found for the IsolatedClassLoader"); } else if (log.getLevel() == Level.CONFIG) { for (URL url : urls) { log.log(Level.INFO, "Added classpath entry :" + url.toExternalForm()); } } if (desc != null) { log.log(Level.INFO, "ApplicationDescriptor found - required isolated status : " + desc.isIsolated()); } else { log.log(Level.WARNING, "No ApplicationDescriptor found"); } FraSCAtiNuxeo serviceProvider = new FraSCAtiNuxeo(); return serviceProvider; }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
private Object getComponent(Object currentComponent, String componentPath) throws Exception { String[] componentPathElements = componentPath.split("/"); String lookFor = componentPathElements[0]; String next = null; //define the part before the first '/' in the path as being the name //of the next component to find if (componentPathElements.length > 1) { int n = 1; StringBuilder nextSB = new StringBuilder(); for (; n < componentPathElements.length; n++) { nextSB.append(componentPathElements[n]); if (n < componentPathElements.length - 1) { nextSB.append("/"); } } next = nextSB.toString(); } //Retrieve the ContentController Class to enumerate sub-components Class<?> contentControllerClass = isolatedCl .loadClass("org.objectweb.fractal.api.control.ContentController"); //Retrieve the NameController Class to check the name of sub-components Class<?> nameControllerClass = isolatedCl .loadClass("org.objectweb.fractal.api.control.NameController"); //Retrieve the ContentController object for the currentComponent Object contentController = componentClass.getDeclaredMethod( "getFcInterface", new Class<?>[] { String.class }).invoke( currentComponent, "content-controller"); //Retrieve the list of sub-components of the currentComponent Object[] subComponents = (Object[]) contentControllerClass .getDeclaredMethod("getFcSubComponents", (Class<?>[]) null) .invoke(contentController, (Object[]) null); //If there is no subComponents ... if (subComponents == null) { //then return null return null; } //For each sub-component found... for (Object object : subComponents) { //retrieve its NameController ... Object nameController = componentClass.getDeclaredMethod( "getFcInterface", new Class<?>[] { String.class }).invoke( object, "name-controller"); //get its name ... String name = (String) nameControllerClass.getDeclaredMethod( "getFcName", (Class<?>[]) null).invoke(nameController, (Object[]) null); //check whether it is the one we are looking for if (lookFor.equals(name)) { //if there is no more path element to go through... if (next == null || next.length() == 0) { //return the sub-component return object; } else { //define the sub-component as the currentComponent //in a new getComponent method call return getComponent(object, next); } } } return null; }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
public <T> T getService(Class<T> serviceClass,String serviceName, String servicePath) throws Exception { Object component = managerClass.getDeclaredMethod( "getTopLevelDomainComposite").invoke(compositeManager); Object container = getComponent(component,servicePath); T service = (T) frascatiClass.getDeclaredMethod( "getService", new Class<?>[] { componentClass, String.class, Class.class }) .invoke(frascati, new Object[] { container, serviceName, serviceClass}); return service; }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
public void stop() throws Exception { Object lifeCycleController = componentClass.getDeclaredMethod( "getFcInterface", new Class<?>[] { String.class }).invoke( assemblyFactory, new Object[] { "lifecycle-controller" }); Class<?> lifecycleClass = isolatedCl.loadClass( "org.objectweb.fractal.api.control.LifeCycleController"); lifecycleClass.getDeclaredMethod("stopFc").invoke(lifeCycleController); assemblyFactory = null; compositeManager = null; frascati = null; isolatedCl = null; }
// in osgi/frascati-in-osgi/osgi/pojosr/src/main/java/org/ow2/frascati/osgi/frameworks/pojosr/Main.java
public static void main(String[] args) throws Exception { Main main = new Main(); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiActivator.java
public void start(BundleContext context) throws Exception { frascatiLauncher = new FraSCAtiLauncher(context); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiActivator.java
public void stop(BundleContext context) throws Exception { frascatiLauncher.stop(); }
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/Activator.java
public void start(BundleContext context) throws Exception { loader = new CompositeListener(); context.addBundleListener(loader); customizerFrascatiTracker = new FrascatiServiceTracker(loader); fraSCAtiTracker = new ServiceTracker(context, FraSCAtiOSGiService.class.getCanonicalName(), customizerFrascatiTracker); fraSCAtiTracker.open(); // needed for equinox /* * ServiceReference[] references = context.getAllServiceReferences(null, * null); for (ServiceReference reference : references) { Object service * = null; try { service = context.getService(reference); * FraSCAtiOSGiService.class.cast(service); * customizerFrascatiTracker.addingService(reference); * log.log(Level.INFO, service + " // " + FraSCAtiOSGiService.class); } * catch (ClassCastException e) { // System.out.println(service + * " is not a FraSCAtiOSGiService"); } } */ }
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/Activator.java
public void stop(BundleContext context) throws Exception { customizerFrascatiTracker.deactivate(); fraSCAtiTracker.close(); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
protected Object resolveReference() throws Exception { ServiceReference[] references = bundleContext.getAllServiceReferences( getServiceClass().getCanonicalName(), filter); if (references != null && references.length > 0) { serviceObject = bundleContext.getService(references[0]); log.info("Service found " + serviceObject); } return serviceObject; }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final Bundle[] getBundles() throws Exception { return context.getBundles(); }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final BundleContext getBundleContext() throws Exception { return context; }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final String getFramework() throws Exception { StringBuilder builder = new StringBuilder(); builder.append(context.getProperty(Constants.FRAMEWORK_VENDOR)); builder.append(" - "); builder.append(context.getProperty(Constants.FRAMEWORK_VERSION)); framework = builder.toString(); return builder.toString(); }
// in osgi/bundles/log/src/main/java/org/ow2/frascati/osgi/log/Activator.java
public void start(BundleContext context) throws Exception { logIntermediate = new LogIntermediate(); registrationListener = context.registerService( "org.osgi.service.log.LogListener", logIntermediate, null); registrationDispatcher = context.registerService( "org.ow2.frascati.osgi.log.api.LogDispatcherService", logIntermediate, null); customizerReaderTracker = new LogReaderTracker(logIntermediate); logInTracker = new ServiceTracker(context, "org.osgi.service.log.LogReaderService", customizerReaderTracker); logInTracker.open(); customizerWriterTracker = new LogWriterTracker(logIntermediate); logOutTracker = new ServiceTracker(context, "org.ow2.frascati.osgi.log.api.LogWriterService", customizerWriterTracker); logOutTracker.open(); registrationWriter = context.registerService( "org.ow2.frascati.osgi.log.api.LogWriterService", new LogSystemOut(), null); }
// in osgi/bundles/log/src/main/java/org/ow2/frascati/osgi/log/Activator.java
public void stop(BundleContext context) throws Exception { customizerReaderTracker.deactivate(); customizerWriterTracker.deactivate(); logInTracker.close(); logOutTracker.close(); if (context.ungetService(registrationListener.getReference())) { registrationListener.unregister(); } if (context.ungetService(registrationDispatcher.getReference())) { registrationDispatcher.unregister(); } if (context.ungetService(registrationWriter.getReference())) { registrationWriter.unregister(); } }
// in frascati-studio/src/main/java/org/easysoa/jpa/DeploymentAccessImpl.java
Override public synchronized void redeploy(String server) throws Exception { LOG.info("redeploy : "+server); EntityManager entityManager = database.get(); DeploymentServer deploymentServer = this.getDeploymentServer(server); for(DeployedApplication deployedApplication : deploymentServer.getDeployedApplications(entityManager, deploymentServer)){ Application application = new Application(); application.setLibPath(preferences.getLibPath()); application.setCurrentWorskpacePath(preferences.getWorkspacePath()); deploy.deploy(new String[]{server}, deployedApplication.getApplication()); } }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
Override public File compile(String root, String applicationName, String libPath) throws Exception { String srcPath = root+File.separator+ sourceDirectory; String binPath = root+File.separator+ binDirectory; fileManager.deleteRecursively(new File( binPath)); List<File> classPath = getClassPath( libPath); if(compileAll(srcPath, binPath, classPath) == false){ return null; } //Copy resources(s) to bin directory to generate jar File dirResources = new File(root +File.separator+ resourcesDirectory); for (File fileToCopy : dirResources.listFiles()) { fileManager.copyFilesRecursively(fileToCopy, dirResources, new File(binPath)); } File jarGenerated = null; jarGenerated = JarGenerator.generateJarFromAll(binPath, binPath + File.separator + ".." + File.separator + applicationName + ".jar"); return generateContribution(applicationName, binPath, jarGenerated); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarGenerator.java
public static File generateJarFromAll(String contentJarPath, String outputJarPath) throws Exception{ BufferedOutputStream out = null; out = new BufferedOutputStream(new FileOutputStream(outputJarPath)); File src = new File(contentJarPath); JarUtils.jar(out, src); File jarFile = new File(outputJarPath); if (jarFile.exists()) { return jarFile; }else{ throw new IOException("Jar File " + jarFile.getCanonicalPath() + " NOT FOUND!"); } }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void main(String[] args) throws Exception { if (args.length == 0) { //usage: <x or c> <jar-archive> <files...> System.exit(0); } if (args[0].equals("x")) { BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(args[1])); File dest = new File(args[2]); unjar(inputStream, dest); } else if (args[0].equals("c")) { BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(args[1])); File[] src = new File[args.length - 2]; for (int i = 0; i < src.length; i++) { src[i] = new File(args[2 + i]); } jar(out, src); } else { throw new Exception("Need x or c as first argument"); } }
// in frascati-studio/src/main/java/org/easysoa/model/Application.java
public void cleanLastDeployedVersion(EntityManager entityManager) throws Exception { Query query = entityManager .createQuery("UPDATE DeployedApplication " + "SET isLastDeployedVersion = false " + "WHERE application = :app"); query.setParameter("app", this); query.executeUpdate(); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
Override public boolean undeploy(String[] ids, Application application) throws Exception { boolean deploymentResult = true; for (int i = 0; i < ids.length; i++) { String server = ids[i]; deployment = JAXRSClientFactory.create(server, Deployment.class); LOG.info("Undeploying " + Integer.toString(i+1) + " of " + Integer.toString(ids.length)); if (deployment.undeployComposite(application.getName()) >= 0) { LOG.info("Application undeployed"); } else { LOG.info("Error deploying application"); deploymentResult = false; } } if (deploymentResult == false) { throw new Exception("Fail in one or more undeployments. See the log error or contact the administrator."); } return deploymentResult; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
Override public boolean deploy(String[] ids, Application application) throws Exception { boolean deploymentResult = true; File contribFile = scaCompiler.compile(application.retrieveAbsoluteRoot(), application.getName(), application.getLibPath()); if (contribFile == null) { throw new Exception("No contribution file generated."); } String serversFaulty = "Errors in servers: "; for (int i = 0; i < ids.length; i++) { String server = ids[i]; LOG.info("Deploying " + Integer.toString(i+1) + " of " + Integer.toString(ids.length)); if(deploy(server, contribFile) == false){ serversFaulty = serversFaulty.concat(server+", "); deploymentResult = false; } } if (deploymentResult == false) { throw new Exception("Fail in one or more deployments.\n"+serversFaulty+"verify log errors or contact the administrator."); } return deploymentResult; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
private boolean deploy(String server,File contribFile) throws Exception { LOG.info("Cloud url : "+server); deployment = JAXRSClientFactory.create(server, Deployment.class); //Deploy contribution String contrib = null; try { contrib = FileUtil.getStringFromFile(contribFile); } catch (IOException e) { throw new IOException("Cannot read the contribution!"); } LOG.info("** Trying to deploy a contribution ..."); try { if (deployment.deployContribution(contrib) >= 0) { LOG.info("** Contribution deployed!"); return true; }else{ LOG.severe("Error trying to deploy contribution in: " + server); return false; } } catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/ZoomOut.java
Override protected void execute(Trace selected) throws Exception { double zoomvalue = TracePanel.zoom.get() * .9; if (zoomvalue > MIN_ZOOM) TracePanel.zoom.set(zoomvalue); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/SaveTraceMenuItem.java
protected final void execute(Trace trace) throws Exception { // At the first call, creates the file chooser. if (fileChooser == null) { fileChooser = new JFileChooser(); // Sets to the user's current directory. fileChooser.setCurrentDirectory(new File(System .getProperty("user.dir"))); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); // Filters all files. fileChooser.setFileFilter(new FileFilter() { /** Whether the given file is accepted by this filter. */ public final boolean accept(File f) { return f.isDirectory() || f.getName().endsWith(".png"); } /** The description of this filter. */ public final String getDescription() { return "PNG image"; } }); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/ZoomIn.java
Override protected void execute(Trace selected) throws Exception { double zoomvalue = TracePanel.zoom.get() * 1.1; if (zoomvalue < MAX_ZOOM) TracePanel.zoom.set(zoomvalue * 1.1); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/AbstractWsdl.java
protected static QName getQNameOfFirstArgument(Method method) throws Exception { // Compute the qname of the @WebParam attached to the first method parameter. Annotation[][] pa = method.getParameterAnnotations(); WebParam wp = (WebParam)pa[0][0]; return toQName(wp, method); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/DocumentWsdlDelegate.java
protected static Object invokeGetter(Object object, String getterName) throws Exception { Method getter = object.getClass().getMethod("get" + firstCharacterUpperCase(getterName), (Class<?>[])null); return getter.invoke(object); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/DocumentWsdlDelegate.java
protected static void invokeSetter(Object object, String setterName, Object value) throws Exception { Method setter = getMethod(object.getClass(), "set" + firstCharacterUpperCase(setterName)); setter.invoke(object, value); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/DocumentWsdlDelegate.java
public String invoke(Method method, String xmlMessage) throws Exception { log.fine("xmlMessage = " + xmlMessage); Class<?>[] methodParameterTypes = method.getParameterTypes(); Annotation[][] pa = method.getParameterAnnotations(); Object[] parameters = new Object[methodParameterTypes.length]; RequestWrapper rw = method.getAnnotation(RequestWrapper.class); if(rw != null) { log.fine("@RequestWrapper for " + method); QName qname = new QName(rw.targetNamespace(), rw.localName()); Object request = JAXB.unmarshall(qname, xmlMessage, null); log.fine("request = " + request); for(int i=0; i<methodParameterTypes.length; i++) { WebParam wp = (WebParam)pa[i][0]; WebParam.Mode wpMode = wp.mode(); if(wpMode == WebParam.Mode.IN) { parameters[i] = invokeGetter(request, wp.name()); } else if(wpMode == WebParam.Mode.OUT) { parameters[i] = new Holder(); } else if(wpMode == WebParam.Mode.INOUT) { Holder<Object> holder = new Holder<Object>(); holder.value = invokeGetter(request, wp.name()); parameters[i] = holder; } } } else { log.fine("no @RequestWrapper for " + method); QName qname = getQNameOfFirstArgument(method); if(methodParameterTypes[0] == Holder.class) { parameters[0] = new Holder(); } parameters[0] = JAXB.unmarshall(qname, xmlMessage, parameters[0]); } Object result = method.invoke(this.delegate, parameters); log.fine("result = " + result); if(method.getAnnotation(Oneway.class) != null) { log.fine("@Oneway for " + method); return null; } ResponseWrapper rrw = method.getAnnotation(ResponseWrapper.class); if(rrw != null) { log.fine("@ResponseWrapper for " + method); Class<?> responseClass = classLoader.loadClass(rrw.className()); Object response = responseClass.newInstance(); WebResult wr = method.getAnnotation(WebResult.class); if(wr != null) { log.fine("@WebResult(name=" + wr.name() + ") for " + method); invokeSetter(response, wr.name(), result); } for(int i=0; i<methodParameterTypes.length; i++) { WebParam wp = (WebParam)pa[i][0]; // if (wpMode == WebParam.Mode.IN) then nothing to do. if(wp.mode() != WebParam.Mode.IN) { // i.e. OUT or INOUT log.fine("@WebParam(mode=" + wp.mode() + ") for " + method); Object value = ((Holder)parameters[i]).value; invokeSetter(response, wp.name(), value); } } log.fine("response = " + response); String reply = JAXB.marshall(new QName(rrw.targetNamespace(), rrw.localName()), response); log.fine("reply = " + reply); return reply; } else { log.fine("No @ResponseWrapper for " + method); QName qname = null; WebResult wr = method.getAnnotation(WebResult.class); if(wr != null) { qname = new QName(wr.targetNamespace(), wr.name()); } else { if(methodParameterTypes[0] == Holder.class) { qname = getQNameOfFirstArgument(method); result = ((Holder)parameters[0]).value; } } if(qname != null) { String reply = JAXB.marshall(qname, result); log.fine("reply = " + reply); return reply; } return null; } }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/DocumentWsdlDelegate.java
public Element invoke(Method method, Element element) throws Exception { String request = JDOM.toString(element); String response = invoke(method, request); return (response != null) ? JDOM.toElement(response) : null; }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/AbstractWsdlInvocationHandler.java
protected final String marshallInvocation(Method method, Object[] args) throws Exception { // TODO: Support for zero and several arguments must be added. if(args.length != 1) { throw new IllegalArgumentException("Only methods with one argument are supported, given method is " + method + " and argument length is " + args.length); } // Compute the qname of the first parameter. QName qname = getQNameOfFirstArgument(method); // Marshall the first argument into as an XML message. return JAXB.marshall(qname, args[0]); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/AbstractWsdlInvocationHandler.java
protected final Object unmarshallResult(Method method, Object[] args, Element element) throws Exception { // Unmarshall the given XML message. SOAPBinding soapBinding = method.getDeclaringClass().getAnnotation(SOAPBinding.class); if(soapBinding != null) { log.fine("@SOAPBinding for " + method); if(soapBinding.style() == SOAPBinding.Style.DOCUMENT) { log.fine("@SOAPBinding(style=SOAPBinding.Style.DOCUMENT) for " + method); if(soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) { log.fine("@SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE) for " + method); WebResult wr = method.getAnnotation(WebResult.class); if(wr != null) { Object result = JDOM.unmarshallContent0(element, method.getReturnType()); if(result != null) { return result; } QName qname = new QName(wr.targetNamespace(), wr.name()); String xmlMessage = JDOM.toString(element); return JAXB.unmarshall(qname, xmlMessage, null); } if(args[0].getClass() == Holder.class) { QName qname = getQNameOfFirstArgument(method); String xmlMessage = JDOM.toString(element); Object result = JAXB.unmarshall(qname, xmlMessage, args[0]); return null; } } log.fine("@SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED) for " + method); // Compute the qname of the @WebResult attached to the method. String targetNamespace = null; String name = ""; WebResult wr = method.getAnnotation(WebResult.class); if(wr != null) { log.fine("@WebResult for " + method); targetNamespace = wr.targetNamespace(); name = wr.name(); } if(targetNamespace == null || targetNamespace.equals("")) { targetNamespace = getTargetNamespace(method); } String xmlMessage = JDOM.toString(element); log.fine("xmlMessage = " + xmlMessage); return JAXB.unmarshall(new QName(targetNamespace, name), xmlMessage, args[0]); } if(soapBinding.style() == SOAPBinding.Style.RPC) { log.fine("@SOAPBinding(style=SOAPBinding.Style.RPC) for " + method); return JDOM.unmarshallElement0(element, method.getReturnType()); } } return null; }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/RpcWsdlDelegate.java
public String invoke(Method method, String xmlMessage) throws Exception { Element request = JDOM.toElement(xmlMessage); Element response = invoke(method, request); return JDOM.toString(response); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/RpcWsdlDelegate.java
public Element invoke(Method method, Element element) throws Exception { Object arg = JDOM.unmarshallElement0(element, method.getParameterTypes()[0]); Object result = method.invoke(delegate, arg); log.fine("result = " + result); String name = element.getName(); Element response = new Element(name); response.setNamespace(element.getNamespace()); Element child = new Element(name + "Response"); child.setText(result.toString()); response.addContent(child); return response; }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
public static Object unmarshallElement0(final Element element, Class<?> type) throws Exception { Element element0 = (Element)element.getContent().get(0); return unmarshallContent0(element0, type); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
public static Object unmarshallContent0(final Element element, Class<?> type) throws Exception { Content content0 = (Content)element.getContent().get(0); if(content0 instanceof Element) { QName qname = new QName(element.getNamespace().getURI(), element.getName()); return JAXB.unmarshall(qname, toString(element), null); } if(content0 instanceof Text) { String value = ((Text)content0).getText(); if(type.equals(String.class)) { return value; } else if(type.equals(int.class)) { return Integer.valueOf(value); } else if(type.equals(boolean.class)) { return Boolean.valueOf(value); } // TODO manage other data types } return null; }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/AbstractMenuItemPlugin.java
protected void execute(T selected, final MenuItemTreeView e) throws Exception { execute(selected); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/AbstractMenuItemPlugin.java
protected void execute(T selected) throws Exception { }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/action/FscriptAction.java
public final void actionPerformed(final MenuItemTreeView tree) throws Exception { FraSCAtiScriptEngineFactory factory = new FraSCAtiScriptEngineFactory(); InvocableScriptEngine engine = FraSCAtiFScript.getSingleton().getScriptEngine(); Bindings bindings = engine.createBindings(); factory.addDomainToContext( engine.getBindings(ScriptContext.GLOBAL_SCOPE) ); factory.updateContext( bindings, "root", (Component) tree.getSelectedObject()); new Console(bindings).setVisible(true); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
public final void actionPerformed(MenuItemTreeView e) throws Exception { reference = (Interface) e.getSelectedObject(); treeBox = new TreeBox(e.getTree().duplicate()); treeBox.setPreferredSize(new Dimension(450, 350)); DialogBox dialog = new DefaultDialogBox("Select the service to wire"); dialog.setValidateAction(this); dialog.addElementBox(treeBox); dialog.show(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
public final void executeAction() throws Exception { Object o = treeBox.getObject(); Interface service = (Interface) o; FcExplorer.getBindingController(reference.getFcItfOwner()).bindFc(reference.getFcItfName(),service); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
public final void execute(DropTreeView dropTreeView) throws Exception { if (dropTreeView != null) { Component intent = null, owner = null; Interface itf = null; SCABasicIntentController ic = null; String intentName = null; try { intent = (Component) dropTreeView.getDragSourceObject(); } catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "An intent must be an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; } try { // SCA components owner = (Component) dropTreeView.getSelectedObject(); } catch (ClassCastException cce) { // SCA services & references try { itf = (Interface) dropTreeView.getSelectedObject(); owner = itf.getFcItfOwner(); } catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; } } // Get intent controller try { ic = (SCABasicIntentController) owner.getFcInterface(SCABasicIntentController.NAME); } catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; } if (intent != null) { String itfName = null; try { intentName = Fractal.getNameController(intent).getFcName(); } catch (NoSuchInterfaceException nsie) { LOG.log(Level.SEVERE, "Cannot find the Name Controller!", nsie); } try { // Stop owner component Fractal.getLifeCycleController(owner).stopFc(); // Get intent handler IntentHandler h = TinfiDomain.getService(intent, IntentHandler.class, "intent"); // Add intent if ( itf != null ) { itfName = itf.getFcItfName(); ic.addFcIntentHandler(h, itfName); } else { ic.addFcIntentHandler(h); } // Start owner component Fractal.getLifeCycleController(owner).startFc(); } catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; JOptionPane.showMessageDialog(null,"Intent '" + intentName + "' cannot be added to " + errorMsg); LOG.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); } } } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
public final void execute(DropTreeView dropTreeView) throws Exception { if (dropTreeView != null) { Component src = null, dest = null; ContentController contentCtl = null; // Check source component try { src = (Component) dropTreeView.getDragSourceObject(); } catch (ClassCastException cce) { // Should not happen JOptionPane.showMessageDialog(null, "Can only add an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; } // Check destination composite try { dest = (Component) dropTreeView.getSelectedObject(); contentCtl = Fractal.getContentController(dest); } catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; } catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; } // Add component contentCtl.addFcSubComponent(src); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddToClasspathAction.java
protected final void execute(final CompositeManager compositeManager) throws Exception { // At the first call, creates the file chooser. if (fileChooser == null) { fileChooser = new JFileChooser(); // Sets to the user's current directory. fileChooser.setCurrentDirectory(new File(System.getProperty("user.dir"))); // Filters JAR files. fileChooser.setFileFilter( new FileFilter() { /** Whether the given file is accepted by this filter. */ public final boolean accept(File f) { String extension = f.getName().substring(f.getName().lastIndexOf('.') + 1); return extension.equalsIgnoreCase("jar") || f.isDirectory(); } /** The description of this filter. */ public final String getDescription() { return "JAR files / Class Folder"; } } ); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/LoadMenuItem.java
protected final void execute(final CompositeManager domain) throws Exception { // At the first call, creates the file chooser. if(fileChooser == null) { fileChooser = new JFileChooser(); // Sets to the user's current directory. fileChooser.setCurrentDirectory(new File(System.getProperty("user.dir"))); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); // Filters SCA files. fileChooser.setFileFilter( new FileFilter() { /** Whether the given file is accepted by this filter. */ public final boolean accept(File f) { String extension = f.getName().substring(f.getName().lastIndexOf('.') + 1); return extension.equalsIgnoreCase("composite") || extension.equalsIgnoreCase("zip") || f.isDirectory(); } /** The description of this filter. */ public final String getDescription() { return "SCA .composite or .zip files"; } } ); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/UnwireAction.java
public final void actionPerformed(MenuItemTreeView e) throws Exception { Interface ir = (Interface) e.getSelectedObject(); Component ci = ir.getFcItfOwner(); BindingController bc = FcExplorer.getBindingController(ci); bc.unbindFc(ir.getFcItfName()); StringBuffer message = new StringBuffer(); message.append("\"" + ir.getFcItfName() + "\" reference has been successfully unbound !\n"); Type t = ci.getFcType(); if(ComponentType.class.isAssignableFrom(t.getClass())) { InterfaceType it = (InterfaceType) ir.getFcItfType(); if(!it.isFcOptionalItf()&&!it.isFcCollectionItf()) { message.append("This service is mandatory, so, rebind it before starting the component again."); } } JOptionPane.showMessageDialog(null,message.toString(),"Unbind success",JOptionPane.INFORMATION_MESSAGE); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
Override protected final Object getService(ScriptEngine scriptEngine, String name, Class<?> interfaze) throws Exception { // Get a typed proxy from the script engine. return ((Invocable)scriptEngine).getInterface(interfaze); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
Override protected final void setReference(ScriptEngine scriptEngine, String name, Object delegate, Class<?> interfaze) throws Exception { // Put the reference into the script engine. scriptEngine.put(name, delegate); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
public final void compileWSDL(String wsdlUri, ProcessingContext processingContext) throws Exception { // Check if the given WSDL file was already compiled. if(this.alreadyCompiledWsdlFiles.get(wsdlUri) != null) { log.info("WSDL '" + wsdlUri + "' already compiled."); return; } // Keep that this wsdl file is compiled to avoid to recompile it several times. this.alreadyCompiledWsdlFiles.put(wsdlUri, wsdlUri); try { // Read the WSDL definition. Definition definition = readWSDL(wsdlUri); // Try to load the ObjectFactory class of the Java package corresponding to the WSDL targetNamespace. String objectFactoryClassName = NameConverter.standard.toPackageName(definition.getTargetNamespace()) + ".ObjectFactory"; processingContext.loadClass(objectFactoryClassName); // If found then the WSDL file was already compiled. log.info("WSDL '" + wsdlUri + "' already compiled."); return; } catch(ClassNotFoundException cnfe) { // ObjectFactory class not found then compile the WSDL file. } // TODO: Could be optimized to avoid to read the WSDL file twice. // Require to study the Apache CXF WSDL2Java class to find a more appropriate entry point. String outputDirectory = this.membraneGeneration.getOutputDirectory() + '/' + targetDirectory; // Search if a global JAXB binding file is present into the processing context. URL bindingFileURL = processingContext.getResource(bindingFileName); // Create WSDL compiler parameters, including -b option if the JAXB binding file is present in the classpath. String[] params = null; if(bindingFileURL != null) { params = new String[]{this.wsdl2javaOptions, "-b" , bindingFileURL.toExternalForm(), "-d", outputDirectory , wsdlUri }; } else { params = new String[]{this.wsdl2javaOptions, "-d", outputDirectory , wsdlUri }; } log.info("Compiling WSDL '" + wsdlUri + "' into '" + outputDirectory + "'..."); try { // Compile the WSDL description with Apache CXF WSDL2Java Tool. new WSDLToJava(params).run(new ToolContext(), System.out); } catch (Exception exc) { log.warning("Impossible to compile WSDL '" + wsdlUri + "'."); throw exc; } log.info("WSDL '" + wsdlUri + "' compiled."); // Add WSDL2Java output directory to the Juliac compiler at the first time needed. this.membraneGeneration.addJavaSource(outputDirectory); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
public final void execute(String args) throws Exception { TextConsole.this.finished = true; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
public final void execute(String args) throws Exception { if (args.length() == 0) { listAvailableCommands(); } else { String name = args.startsWith(":") ? args.substring(1) : args; Command cmd = commands.get(name); if (cmd != null) { showMessage(cmd.getLongDescription()); } else { showError("No such command: " + name); } } }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
public final void execute() throws Exception { if (command != null) { command.execute(arguments); } else { showError("Invalid request."); } }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
public final void processRequest(String line) throws Exception { if (line != null && line.length() == 0) { return; } Request request = parseRequest(line); if (request != null) { request.execute(); } }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/Main.java
public static void main(String[] args) throws Exception { FraSCAtiScriptEngineFactory factory = new FraSCAtiScriptEngineFactory(); // Instantiate the engine Component fscriptCmpt = ((Interface) factory.getScriptEngine()).getFcItfOwner(); // Update the engine context InvocableScriptEngine engine = FraSCAtiFScript.getSingleton().getScriptEngine(); factory.addDomainToContext( engine.getBindings(ScriptContext.GLOBAL_SCOPE) ); // Load std lib FScript.loadStandardLibrary(fscriptCmpt); // Launch the console new TextConsole( FraSCAtiFScript.getSingleton().getFraSCAtiScriptComposite() ).run(); System.exit(0); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
public final void execute(String name) throws Exception { URL url = null; try { url = new URL(name); } catch (MalformedURLException e) { showError("Invalid URL (" + name + "): " + e.getMessage()); return; } Map<String, Object> ctx = getInstanciationContext(); ClassLoader parent = null; if (ctx.containsKey("classloader")) { parent = (ClassLoader) ctx.get("classloader"); } else { parent = Thread.currentThread().getContextClassLoader(); } URL[] urls = new URL[] { url }; ClassLoader cl = new URLClassLoader(urls, parent); ctx.put("classloader", cl); fscript.getClassLoaderManager().loadLibraries(urls); urls = ((URLClassLoader) cl).getURLs(); for(URL u : urls) { showMessage(u.toString()); } showMessage("Classpath updated."); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
protected final Map<String, Object> getInstanciationContext() throws Exception { ContentController cc = Fractal.getContentController( fscript.getFraSCAtiScriptComposite() ); for (Component child : cc.getFcSubComponents()) { try { NameController nc = Fractal.getNameController(child); if ("model".equals(nc.getFcName())) { FractalModelAttributes fma = (FractalModelAttributes) Fractal.getAttributeController(child); return fma.getInstanciationContext(); } } catch (NoSuchInterfaceException nsie) { continue; } } return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/EvalCommand.java
public final void execute(String expression) throws Exception { Object result = engine.eval(expression, getContext()); showResult(result); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/InfoCommand.java
public final void execute(String procName) throws Exception { Component lib = ContentControllerHelper.getSubComponentByName(fscript.getFraSCAtiScriptComposite(), "library"); if (lib == null) { showWarning("Unable to locate the library component."); showWarning("The engine used is not compatible with this command."); return; } Procedure proc = ((Library) lib.getFcInterface("library")).lookup(procName); if (proc == null) { showWarning("Unknown procedure '" + procName + "'."); return; } String impl = (proc instanceof NativeProcedure) ? "Native" : "User-defined"; String kind = proc.isPureFunction() ? "function" : "action"; String def = null; if (proc instanceof NativeProcedure) { def = proc.getClass().getName(); } else { def = ((UserProcedure) proc).getSourceLocation().toString(); } showMessage(format("{0} {1} \"" + proc.getName() + "\" is defined in " + def, impl, kind, def)); showMessage("Signature: " + proc.getName() + proc.getSignature().toString()); if (proc instanceof UserProcedure) { UserProcedure up = (UserProcedure) proc; showMessage("AST: " + up.toString()); } }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ExecCommand.java
public final void execute(String statement) throws Exception { long start = System.currentTimeMillis(); Object result = engine.eval(statement, getContext()); long duration = System.currentTimeMillis() - start; if (result != null) { showResult(result); } showMessage("Success (took " + duration + " ms)."); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/VarsCommand.java
public final void execute(String args) throws Exception { List<String> names = new ArrayList<String>(engine.getBindings(ScriptContext.ENGINE_SCOPE).keySet()); for (String key: names) { // Ignore special variables if (key.startsWith("*")) { names.remove(key); } } Collections.sort(names); String[][] data = new String[names.size() + 1][2]; data[0][0] = "Name"; data[0][1] = "Value"; for (int i = 0; i < names.size(); i++) { String var = names.get(i); Object val = engine.get(var); data[i+1][0] = var; data[i+1][1] = printString(val); } showTitle("Global variables"); showTable(data); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ListCommand.java
public final void execute(String args) throws Exception { Component lib = ContentControllerHelper.getSubComponentByName(fscript.getFraSCAtiScriptComposite(), "library"); if (lib == null) { showWarning("Unable to locate the library component."); showWarning("The engine used is not compatible with this command."); return; } Library library = (Library) lib.getFcInterface("library"); List<String> names = new ArrayList<String>(library.getProceduresNames()); for (Iterator<String> iter = names.iterator(); iter.hasNext();) { String name = iter.next(); if (name.startsWith("axis:")) { iter.remove(); } } Collections.sort(names); String[][] data = new String[names.size() + 1][3]; data[0][0] = "Signature"; data[0][1] = "Kind"; data[0][2] = "Definition"; for (int i = 0; i < names.size(); i++) { fillProcData(library.lookup(names.get(i)), data[i+1]); } showTitle("Available procedures"); showTable(data); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
public final void execute(String args) throws Exception { Reader reader = null; if (args.startsWith("classpath:")) { reader = getResourceReader(args.substring("classpath:".length())); } else if (args.matches("^[a-z]+:.*")) { reader = getURLReader(args); } else { reader = getFileReader(args); } if (reader == null) { return; } engine.eval(reader); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/RunCommand.java
public final void execute(String args) throws Exception { Object result = engine.eval(args); InterfaceNode itfNode = (InterfaceNode) FScript.getSingleNode(result); if (itfNode == null) { showError("Invalid expression value. Should return a Runnable interface node."); showResult(result); return; } Interface itf = itfNode.getInterface(); if (!(itf instanceof Runnable)) { showError("This interface node is not a Runnable."); showResult(result); showMessage("Interface signature: " + itfNode.getSignature()); return; } ensureComponentIsStarted(((InterfaceNode) itfNode).getInterface().getFcItfOwner()); showMessage("Launching interface " + result + "."); Thread th = new Thread((Runnable) itf, "Service " + itfNode); th.setDaemon(true); th.start(); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ScaImplementationSpringProcessor.java
Override protected final Object getService(ClassPathXmlApplicationContext context, String name, Class<?> interfaze) throws Exception { // Get the Spring bean having the same name as the interface name. return context.getBean(name); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ScaImplementationSpringProcessor.java
Override protected final void setReference(ClassPathXmlApplicationContext context, String name, Object delegate, Class<?> interfaze) throws Exception { // Nothing to do as the context will obtain the references by calling the ContentController directly. }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsBroker.java
protected final void send(JmsMessage msg) throws Exception { // Push the given message to each listener of this queue. for(JmsListener listener : this.listeners) { listener.receive(msg); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsBroker.java
protected final void receive(JmsMessage msg) throws Exception { Method method = this.delegate.getMethod(msg.methodName); if(msg.xmlMessage == null) { // If no XML message then invoke the servant directly. method.invoke(this.delegate.getDelegate(), null); } else { // If an XML message then uses the WSDL delegate to decode the XML message and invoke the servant. this.delegate.invoke(method, msg.xmlMessage); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubInvocationHandler.java
protected static QName getQNameOfFirstArgument(Method method) throws Exception { // Compute the qname of the @WebParam attached to the first method parameter. Annotation[][] pa = method.getParameterAnnotations(); WebParam wp = (WebParam) pa[0][0]; return toQName(wp, method); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
public static void stop() throws Exception { AgentServer.stop(); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
private void invokeMethod(Method method, Message msg) throws Exception { log.fine("invokeMethod " + method); Class<?>[] parameterTypes = method.getParameterTypes(); Object response = null; if (parameterTypes.length == 0) { response = method.invoke(getServant(), (Object[]) null); } else if (parameterTypes.length == 1 && Message.class.isAssignableFrom(parameterTypes[0])) { /* If there is a single parameter that is a JMSMessage, then the JMSMessage is * passed as is.*/ log.fine("Pass the JMSMessage as is."); response = method.invoke(getServant(), msg); } else { if (msg instanceof BytesMessage) { BytesMessage bytesMsg = (BytesMessage) msg; byte[] data = new byte[(int) bytesMsg.getBodyLength()]; bytesMsg.readBytes(data); Method m = delegate.getMethod(method.getName()); response = delegate.invoke(m, new String(data)); } else if (msg instanceof TextMessage) { TextMessage txtMsg = (TextMessage) msg; Method m = delegate.getMethod(method.getName()); response = delegate.invoke(m, txtMsg.getText()); } else { /* Otherwise, if the JMSMessage is not a JMS text message or bytes message * containing XML, it is invalid. */ log.severe("Received message is invalid."); } } if (method.getReturnType().equals(void.class) && method.getExceptionTypes().length == 0) { // One-way message exchange: nothing to do log.fine("One-way message exchange"); } else { // Request/response message exchange log.fine("Request/response message exchange"); TextMessage responseMsg = jmsModule.getResponseSession().createTextMessage(); if (getCorrelationScheme().equals(JmsConnectorConstants.CORRELATION_ID_SCHEME)) { responseMsg.setJMSCorrelationID(msg.getJMSCorrelationID()); } else if (getCorrelationScheme().equals(JmsConnectorConstants.MESSAGE_ID_SCHEME)) { responseMsg.setJMSCorrelationID(msg.getJMSMessageID()); } if (responseMsg != null) { responseMsg.setText(response.toString()); } // the request message included a non-null JMSReplyTo destination, the SCA runtime // MUST send the response message to that destination Destination responseDest = msg.getJMSReplyTo(); log.fine("ReplyTo field: " + responseDest); if (responseDest == null) { // the JMS binding includes a response/destination element the SCA runtime MUST // send the response message to that destination responseDest = jmsModule.getResponseDestination(); } if (responseDest == null) { throw new Exception("No response destination found."); } MessageProducer responseProducer = jmsModule.getResponseSession().createProducer(responseDest); responseProducer.send(responseMsg); responseProducer.close(); } log.fine("invokeMethod done"); }
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
private Parser<Composite> getCompositeParser() throws Exception { // Create a factory of SCA parsers. org.ow2.frascati.parser.Parser parserFactory = new org.ow2.frascati.parser.Parser(); // Create a parser component. Component parser = parserFactory.newFcInstance(); // Start the parser component. Fractal.getLifeCycleController(parser).startFc(); // Get the composite parser interface. return (Parser<Composite>)parser.getFcInterface("composite-parser"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
public final Component deploy() throws Exception { log.fine("Deploy an EasyBPEL process '" + processUri + "'"); ProcessContextDefinitionImpl context = new ProcessContextDefinitionImpl(); context.setPoolSize(1); // TODO: 1 or more ??? this.core.getModel().getRegistry().storeProcessDefinition(new URI(this.processUri), context); return new BpelProcessContainer(); }
(Lib) NoSuchElementException 5
              
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyNode.java
public final void setProperty(String name, Object value) { checkSetRequest(name, value); if ("value".equals(name)) { setValue(value); } else { throw new NoSuchElementException(name); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object getAttributeValue(String name) throws NoSuchElementException, UnsupportedOperationException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isReadable()) { return attr.get(); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Attribute getAttribute(String name) throws NoSuchElementException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } return attr; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Class<?> getAttributeType(String name) throws NoSuchElementException { Attribute attr = (Attribute) attributes.get(name); if (attr != null) { return attr.getType(); } else { throw new NoSuchElementException("No attribute named " + name + "."); } }
0 4
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object getAttributeValue(String name) throws NoSuchElementException, UnsupportedOperationException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isReadable()) { return attr.get(); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Attribute getAttribute(String name) throws NoSuchElementException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } return attr; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Class<?> getAttributeType(String name) throws NoSuchElementException { Attribute attr = (Attribute) attributes.get(name); if (attr != null) { return attr.getType(); } else { throw new NoSuchElementException("No attribute named " + name + "."); } }
(Lib) UnsupportedOperationException 5
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object getAttributeValue(String name) throws NoSuchElementException, UnsupportedOperationException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isReadable()) { return attr.get(); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ParentApplicationContext.java
public final boolean isTypeMatch (final String name, final Class targetType) { log.finer("Spring parent context - isTypeMatch called for name: " + name); throw new UnsupportedOperationException(); }
0 2
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object getAttributeValue(String name) throws NoSuchElementException, UnsupportedOperationException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isReadable()) { return attr.get(); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
(Lib) AssertionError 4
              
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
private CompositeManager getDomain() { try { return (CompositeManager) model.lookupFc(FraSCAtiModel.COMPOSITE_MANAGER_ITF); } catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
Override protected void createAdditionalProcedures() { super.createAdditionalProcedures(); List<ScaNativeProcedure> procedures = new ArrayList<ScaNativeProcedure>(); procedures.add( new ScaNewAction() ); procedures.add( new ScaRemoveAction() ); procedures.add( new AddWsBinding() ); procedures.add( new AddRestBinding() ); for (ScaNativeProcedure proc : procedures) { try { proc.bindFc(proc.MODEL_ITF_NAME, this); } catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); } addProcedure(proc); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
private CompositeManager getDomain() { try { return (CompositeManager) model.lookupFc(FraSCAtiModel.COMPOSITE_MANAGER_ITF); } catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
protected Node getServerInterface(BindingController bc, String clItfName) { try { Interface serverItf = (Interface) bc.lookupFc(clItfName); if (serverItf != null) { NodeFactory nf = (NodeFactory) model; return nf.createScaServiceNode(serverItf); } else { return null; } } catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); } }
4
              
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); }
0
(Lib) ClassNotFoundException 4
              
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { // First, check if the class has already been loaded boolean regular = false; Class<?> clazz = findLoadedClass(name); if (clazz != null) { return clazz; } if (name.startsWith("java.") || name.startsWith("javax.") || name.startsWith("org.w3c.") || name.startsWith("org.apache.log4j")) { regular = true; if (getParent() != null) { try { clazz = getParent().loadClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the parent classloader"); } } } if (clazz == null) { try { clazz = findClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the classloader classpath"); } if (clazz == null && !regular && getParent() != null) { clazz = getParent().loadClass(name); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { if (iHaveMadeThisCall) { return null; } if (name == null) { throw new NullPointerException(); } if (name.indexOf("/") != -1) { throw new ClassNotFoundException(name); } Class<?> clazz = findLoadedClass(name); if (clazz == null) { clazz = fManager.getLoaded(name); } if (clazz == null) { FraSCAtiOSGiClassLoader root = fManager.getClassLoader(); clazz = root.findClass(name); if (clazz == null) { try { iHaveMadeThisCall = true; ClassLoader parent = root.getParent(); if (parent == null) { clazz = ClassLoader.getSystemClassLoader().loadClass( name); } else { clazz = parent.loadClass(name); } } catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); } finally { iHaveMadeThisCall = false; } } if (clazz == null) { clazz = fManager.loadClass(name); } if (clazz != null) { fManager.registerClass(name, clazz); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/FrascatiClassLoader.java
Override protected Class<?> findClass(String name) throws ClassNotFoundException { // Delegate to the URLClassLoader class. try { return super.findClass(name); } catch(ClassNotFoundException cnfe) { // ignore and pass to other parent class loaders. } // Search into parent class loaders. for(ClassLoader parentClassLoader : this.parentClassLoaders) { try { return parentClassLoader.loadClass(name); } catch(ClassNotFoundException cnfe) { // ignore and pass to the next parent class loader. } } // class not found. throw new ClassNotFoundException(name); }
0 10
              
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { // First, check if the class has already been loaded boolean regular = false; Class<?> clazz = findLoadedClass(name); if (clazz != null) { return clazz; } if (name.startsWith("java.") || name.startsWith("javax.") || name.startsWith("org.w3c.") || name.startsWith("org.apache.log4j")) { regular = true; if (getParent() != null) { try { clazz = getParent().loadClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the parent classloader"); } } } if (clazz == null) { try { clazz = findClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the classloader classpath"); } if (clazz == null && !regular && getParent() != null) { clazz = getParent().loadClass(name); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { if (iHaveMadeThisCall) { return null; } if (name == null) { throw new NullPointerException(); } if (name.indexOf("/") != -1) { throw new ClassNotFoundException(name); } Class<?> clazz = findLoadedClass(name); if (clazz == null) { clazz = fManager.getLoaded(name); } if (clazz == null) { FraSCAtiOSGiClassLoader root = fManager.getClassLoader(); clazz = root.findClass(name); if (clazz == null) { try { iHaveMadeThisCall = true; ClassLoader parent = root.getParent(); if (parent == null) { clazz = ClassLoader.getSystemClassLoader().loadClass( name); } else { clazz = parent.loadClass(name); } } catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); } finally { iHaveMadeThisCall = false; } } if (clazz == null) { clazz = fManager.loadClass(name); } if (clazz != null) { fManager.registerClass(name, clazz); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
Override public synchronized Class<?> loadClass(String name) throws ClassNotFoundException { if (iHaveMadeThisCall) { // if the current instance has been called to load a class // avoid circular error return null; } return loadClass(name, true); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
Override public synchronized Class<?> loadClass(String name) throws ClassNotFoundException { return loadClass(name, false); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
Override public synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { Class<?> clazz = null; if (manager != null) { clazz = manager.getLoaded(name); } if(clazz == null) { clazz = getLoaded(name); } if (clazz == null) { clazz = findLoadedClass(name); } if (clazz == null) { ClassLoader parent = getParent(); if (parent == null) { parent = ClassLoader.getSystemClassLoader(); } try{ clazz = parent.loadClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] getParent().loadClass("+ name+") has thrown a ClassNotFoundException"); } } if (clazz == null) { clazz = findClass(name); } if(resolve) { resolveClass(clazz); } return clazz; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
Override public Class<?> findClass(String name) throws ClassNotFoundException { Class<?> clazz = null; if(delegate != null) { try { clazz = delegate.findClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] resourceLoader.findClass("+ name+") has thrown a ClassNotFoundException"); } } if(clazz == null) { clazz = super.findClass(name); } return clazz; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
public static Object stringToValue(String propertyType, String propertyValue, ClassLoader cl) throws ClassNotFoundException, URISyntaxException, MalformedURLException { JavaType javaType = JavaType.VALUES.get(propertyType); return stringToValue(javaType, propertyValue, cl); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
public static Object stringToValue(JavaType propertyType, String propertyValue, ClassLoader cl) throws ClassNotFoundException, URISyntaxException, MalformedURLException { Object computedPropertyValue; switch (propertyType) { case BIG_DECIMAL_OBJECT: computedPropertyValue = new BigDecimal(propertyValue); break; case BIG_INTEGER_OBJECT: computedPropertyValue = new BigInteger(propertyValue); break; case BOOLEAN_PRIMITIVE: case BOOLEAN_OBJECT: computedPropertyValue = Boolean.valueOf(propertyValue); break; case BYTE_PRIMITIVE: case BYTE_OBJECT: computedPropertyValue = Byte.valueOf(propertyValue); break; case CLASS_OBJECT: computedPropertyValue = cl.loadClass(propertyValue); break; case CHAR_PRIMITIVE: case CHARACTER_OBJECT: computedPropertyValue = propertyValue.charAt(0); break; case DOUBLE_PRIMITIVE: case DOUBLE_OBJECT: computedPropertyValue = Double.valueOf(propertyValue); break; case FLOAT_PRIMITIVE: case FLOAT_OBJECT: computedPropertyValue = Float.valueOf(propertyValue); break; case INT_PRIMITIVE: case INTEGER_OBJECT: computedPropertyValue = Integer.valueOf(propertyValue); break; case LONG_PRIMITIVE: case LONG_OBJECT: computedPropertyValue = Long.valueOf(propertyValue); break; case SHORT_PRIMITIVE: case SHORT_OBJECT: computedPropertyValue = Short.valueOf(propertyValue); break; case STRING_OBJECT: computedPropertyValue = propertyValue; break; case URI_OBJECT: computedPropertyValue = new URI(propertyValue); break; case URL_OBJECT: computedPropertyValue = new URL(propertyValue); break; case QNAME_OBJECT: computedPropertyValue = QName.valueOf(propertyValue); break; default: return null; } return computedPropertyValue; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
Override public final <T> Class<T> loadClass(String className) throws ClassNotFoundException { try { return super.loadClass(className); } catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; } }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/FrascatiClassLoader.java
Override protected Class<?> findClass(String name) throws ClassNotFoundException { // Delegate to the URLClassLoader class. try { return super.findClass(name); } catch(ClassNotFoundException cnfe) { // ignore and pass to other parent class loaders. } // Search into parent class loaders. for(ClassLoader parentClassLoader : this.parentClassLoaders) { try { return parentClassLoader.loadClass(name); } catch(ClassNotFoundException cnfe) { // ignore and pass to the next parent class loader. } } // class not found. throw new ClassNotFoundException(name); }
(Domain) FraSCAtiOSGiNotFoundCompositeException 4
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized String loadSCA(AbstractResource resource, String compositeName) throws FraSCAtiOSGiNotFoundCompositeException { if (resource == null) { log.log(Level.WARNING, "AbstractResource object is null"); } long startTime = new Date().getTime(); String registeredCompositeName = compositeName; loading = compositeName; try { ClassLoader compositeClassLoader = new AbstractResourceClassLoader( foContext.getClassLoader(),foContext.getClManager(),resource); Component composite = compositeManager.getComposite(compositeName, compositeClassLoader); long bundleId = -1; try { bundleId = ((Bundle) resource.getResourceObject()).getBundleId(); } catch (ClassCastException e) { log.log(Level.CONFIG,e.getMessage(),e); } catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); } if (composite != null)// && bundleId > 0) { registeredCompositeName = registry.register(bundleId, composite, compositeClassLoader); loaded.add(registeredCompositeName); } else { log.log(Level.WARNING, "ProcessComposite method has returned a " + "null Component"); throw new FraSCAtiOSGiNotFoundCompositeException(); } refreshExplorer(compositeClassLoader); } catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); } catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage(),e); } finally { loading = null; } log.log(Level.INFO, registeredCompositeName + " loaded in " + (new Date().getTime() - startTime) + " ms"); return registeredCompositeName; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized void launch(String compositeName, String serviceName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { Component composite = registry.getComposite(compositeName); if (composite != null) { Class<?> serviceClass = registry.getService(compositeName, serviceName); runService(serviceName, serviceClass, compositeName, composite); } else { log.log(Level.WARNING, "unknown composite :" + compositeName); throw new FraSCAtiOSGiNotFoundCompositeException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
1
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); }
4
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public String loadSCA(URL resourceURL, String compositeName) throws FraSCAtiOSGiNotFoundCompositeException { return loadSCA(AbstractResource.newResource(resourceURL), compositeName); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized String loadSCA(AbstractResource resource, String compositeName) throws FraSCAtiOSGiNotFoundCompositeException { if (resource == null) { log.log(Level.WARNING, "AbstractResource object is null"); } long startTime = new Date().getTime(); String registeredCompositeName = compositeName; loading = compositeName; try { ClassLoader compositeClassLoader = new AbstractResourceClassLoader( foContext.getClassLoader(),foContext.getClManager(),resource); Component composite = compositeManager.getComposite(compositeName, compositeClassLoader); long bundleId = -1; try { bundleId = ((Bundle) resource.getResourceObject()).getBundleId(); } catch (ClassCastException e) { log.log(Level.CONFIG,e.getMessage(),e); } catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); } if (composite != null)// && bundleId > 0) { registeredCompositeName = registry.register(bundleId, composite, compositeClassLoader); loaded.add(registeredCompositeName); } else { log.log(Level.WARNING, "ProcessComposite method has returned a " + "null Component"); throw new FraSCAtiOSGiNotFoundCompositeException(); } refreshExplorer(compositeClassLoader); } catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); } catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage(),e); } finally { loading = null; } log.log(Level.INFO, registeredCompositeName + " loaded in " + (new Date().getTime() - startTime) + " ms"); return registeredCompositeName; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized void launch(String compositeName, String serviceName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { Component composite = registry.getComposite(compositeName); if (composite != null) { Class<?> serviceClass = registry.getService(compositeName, serviceName); runService(serviceName, serviceClass, compositeName, composite); } else { log.log(Level.WARNING, "unknown composite :" + compositeName); throw new FraSCAtiOSGiNotFoundCompositeException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
(Lib) ScriptException 4
              
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object eval(String script, ScriptContext sctx) throws ScriptException { try { return eval(new FileReader(script),sctx); } catch (FileNotFoundException e) { throw new ScriptException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object eval(Reader reader, ScriptContext ctx) throws ScriptException { this.log("compile xquery script "); //Create default configuration and add JaxbObjectModel implementation this.saxonConfiguration = new Configuration(); this.saxonConfiguration.getExternalObjectModels().add(new JaxBObjectModel()); //Create default static query context final StaticQueryContext context = new StaticQueryContext(saxonConfiguration); String script = null; try { //convert the reader in String script = this.convertStreamToString(reader); //compilation script this.compiledScript = context.compileQuery(script); } catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); } catch (IOException e) {throw new ScriptException(e);} log("script compiled"); return this.compiledScript; }
4
              
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (FileNotFoundException e) { throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e1) {throw new ScriptException(e1);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (IOException e) {throw new ScriptException(e);}
8
              
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object eval(String script, ScriptContext sctx) throws ScriptException { try { return eval(new FileReader(script),sctx); } catch (FileNotFoundException e) { throw new ScriptException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object eval(Reader reader, ScriptContext ctx) throws ScriptException { this.log("compile xquery script "); //Create default configuration and add JaxbObjectModel implementation this.saxonConfiguration = new Configuration(); this.saxonConfiguration.getExternalObjectModels().add(new JaxBObjectModel()); //Create default static query context final StaticQueryContext context = new StaticQueryContext(saxonConfiguration); String script = null; try { //convert the reader in String script = this.convertStreamToString(reader); //compilation script this.compiledScript = context.compileQuery(script); } catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); } catch (IOException e) {throw new ScriptException(e);} log("script compiled"); return this.compiledScript; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object invokeFunction(String func, Object[] arg1) throws ScriptException, NoSuchMethodException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object invokeMethod(Object object, String method, Object[] args) throws ScriptException, NoSuchMethodException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public CompiledScript compile(String script) throws ScriptException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public CompiledScript compile(Reader arg0) throws ScriptException { return null; }
// in modules/frascati-introspection/frascati-introspection-fscript-impl/src/main/java/org/ow2/frascati/remote/introspection/ReconfigurationImpl.java
public Collection<Node> eval(String script) throws ScriptException { Object evalResults = engine.eval(script); Collection<Node> results = new ArrayList<Node>(); if (evalResults instanceof Collection) { Collection<?> objects = (Collection<?>) evalResults; for (Object obj : objects) { Node resource = getResourceFor(obj); results.add(resource); } } else { Node resource = getResourceFor(evalResults); results.add(resource); } return results; }
// in modules/frascati-introspection/frascati-introspection-fscript-impl/src/main/java/org/ow2/frascati/remote/introspection/ReconfigurationImpl.java
public String register(String script) throws ScriptException { Reader reader = new StringReader(script.trim()); @SuppressWarnings("unchecked") Set<String> loadedProc = (Set<String>) engine.eval(reader); return loadedProc.toString(); }
(Lib) XPathException 4
              
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public Object convertXPathValueToObject(Value value, Class targetClass, XPathContext context) throws XPathException { //iterate the result of the value representation final SequenceIterator iterator = value.iterate(); //Properties for output xml output format final Properties props = new Properties(); props.setProperty(OutputKeys.METHOD, "xml"); props.setProperty(OutputKeys.OMIT_XML_DECLARATION,"no"); props.setProperty(OutputKeys.INDENT, "yes"); // creation of the xml document in outstream final ByteArrayOutputStream outstream = new ByteArrayOutputStream(); QueryResult.serialize((NodeInfo)value.asItem(), new StreamResult(outstream), props); final ByteArrayInputStream instream = new ByteArrayInputStream(outstream.toByteArray()); try { //rebuilding of the jaxb object final JAXBContext jaxbcontext = JAXBContext.newInstance(targetClass); final Unmarshaller unmarshall = jaxbcontext.createUnmarshaller(); return unmarshall.unmarshal(instream); } catch (JAXBException e) { throw new XPathException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public ValueRepresentation convertJaxbToXPath(Object object, XPathContext context) throws XPathException{ // with the jaxb api, we convert object to xml document try{ final JAXBContext jcontext = JAXBContext.newInstance(object.getClass()); final Marshaller marshall = jcontext.createMarshaller(); marshall.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,true); //xml document in outstream final ByteArrayOutputStream outstream = new ByteArrayOutputStream(); marshall.marshal(object,outstream); //also we create a Jdom object final ByteArrayInputStream instream = new ByteArrayInputStream(outstream.toByteArray()); final SAXBuilder builder = new SAXBuilder(); Document document = builder.build(instream); JDOMObjectModel jdomobject = new JDOMObjectModel(); return jdomobject.convertObjectToXPathValue(document, context.getConfiguration()); } catch (JDOMException e) { throw new XPathException(e); } catch (IOException e) { throw new XPathException(e); } catch (JAXBException e) { throw new XPathException(e); } }
4
              
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JDOMException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (IOException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
9
              
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
private void bindGlobaleVariable(UserFunction caller, Controller controller) throws XPathException{ final Map map = caller.getExecutable().getCompiledGlobalVariables(); if (map != null){ for (Object o : map.keySet()){ final GlobalVariable gv = (GlobalVariable) map.get(o); final Object inject = this.engine.get(gv.getVariableQName().getDisplayName()); System.out.println(gv.getVariableQName().getDisplayName()); if (inject != null){ controller.getBindery().assignGlobalVariable(gv,new ObjectValue(inject)); } } } controller.preEvaluateGlobals(controller.newXPathContext()); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/convert/XQConvertPJ.java
public static Object convertXPathToJava(ValueRepresentation value, Class<?> clazz,Controller controller) throws XPathException{ System.out.println("convert XPathttoJava"); // if the function return void if (clazz.isAssignableFrom(void.class)) return null; final Value v = Value.asValue(value); final ItemType itemType = v.getItemType(controller.getConfiguration().getTypeHierarchy()); final PJConverter converter = PJConverter.allocate(controller.getConfiguration(), itemType,v.getCardinality(), clazz); return converter.convert(value, clazz, controller.newXPathContext()); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/convert/XQConvertJP.java
public static ValueRepresentation convertObjectToXPath(Object object,Controller controller) throws XPathException{ final JPConverter converter = JPConverter.allocate(object.getClass(), controller.getConfiguration()); return converter.convert(object, controller.newXPathContext()); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public PJConverter getPJConverter(Class targetClass) { if (isRecognizedNode(targetClass)){ return new PJConverter() { public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException { return convertXPathValueToObject(Value.asValue(value), targetClass, context); } }; } else return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException { return convertXPathValueToObject(Value.asValue(value), targetClass, context); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public JPConverter getJPConverter(Class targetClass) { if (isRecognizedNode(targetClass)){ return new JPConverter(){ public ValueRepresentation convert(Object object,XPathContext context) throws XPathException { return convertJaxbToXPath(object, context); } public ItemType getItemType() { return AnyNodeTest.getInstance(); } }; } else return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public ValueRepresentation convert(Object object,XPathContext context) throws XPathException { return convertJaxbToXPath(object, context); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public Object convertXPathValueToObject(Value value, Class targetClass, XPathContext context) throws XPathException { //iterate the result of the value representation final SequenceIterator iterator = value.iterate(); //Properties for output xml output format final Properties props = new Properties(); props.setProperty(OutputKeys.METHOD, "xml"); props.setProperty(OutputKeys.OMIT_XML_DECLARATION,"no"); props.setProperty(OutputKeys.INDENT, "yes"); // creation of the xml document in outstream final ByteArrayOutputStream outstream = new ByteArrayOutputStream(); QueryResult.serialize((NodeInfo)value.asItem(), new StreamResult(outstream), props); final ByteArrayInputStream instream = new ByteArrayInputStream(outstream.toByteArray()); try { //rebuilding of the jaxb object final JAXBContext jaxbcontext = JAXBContext.newInstance(targetClass); final Unmarshaller unmarshall = jaxbcontext.createUnmarshaller(); return unmarshall.unmarshal(instream); } catch (JAXBException e) { throw new XPathException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public ValueRepresentation convertJaxbToXPath(Object object, XPathContext context) throws XPathException{ // with the jaxb api, we convert object to xml document try{ final JAXBContext jcontext = JAXBContext.newInstance(object.getClass()); final Marshaller marshall = jcontext.createMarshaller(); marshall.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,true); //xml document in outstream final ByteArrayOutputStream outstream = new ByteArrayOutputStream(); marshall.marshal(object,outstream); //also we create a Jdom object final ByteArrayInputStream instream = new ByteArrayInputStream(outstream.toByteArray()); final SAXBuilder builder = new SAXBuilder(); Document document = builder.build(instream); JDOMObjectModel jdomobject = new JDOMObjectModel(); return jdomobject.convertObjectToXPathValue(document, context.getConfiguration()); } catch (JDOMException e) { throw new XPathException(e); } catch (IOException e) { throw new XPathException(e); } catch (JAXBException e) { throw new XPathException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public Receiver getDocumentBuilder(Result result) throws XPathException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public boolean sendSource(Source source, Receiver receiver, PipelineConfiguration pipe) throws XPathException { return false; }
(Lib) ChainedInstantiationException 3
              
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
3
              
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
0
(Domain) FraSCAtiOSGiNotFoundServiceException 3
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
private void runService(String serviceName, Class<?> serviceClass, String compositeName, Component composite) throws FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { if (serviceClass == null) { log.log(Level.WARNING, "serviceClass parameter is null "); throw new FraSCAtiOSGiNotFoundServiceException(); } if (!"java.lang.Runnable".equals(serviceClass.getName())) { try { serviceClass.asSubclass(Runnable.class); } catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); } } try { Runnable service = (Runnable) composite.getFcInterface(serviceName); service.run(); } catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
1
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); }
3
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
private void runService(String serviceName, Class<?> serviceClass, String compositeName, Component composite) throws FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { if (serviceClass == null) { log.log(Level.WARNING, "serviceClass parameter is null "); throw new FraSCAtiOSGiNotFoundServiceException(); } if (!"java.lang.Runnable".equals(serviceClass.getName())) { try { serviceClass.asSubclass(Runnable.class); } catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); } } try { Runnable service = (Runnable) composite.getFcInterface(serviceName); service.run(); } catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized void launch(String compositeName, String serviceName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { Component composite = registry.getComposite(compositeName); if (composite != null) { Class<?> serviceClass = registry.getService(compositeName, serviceName); runService(serviceName, serviceClass, compositeName, composite); } else { log.log(Level.WARNING, "unknown composite :" + compositeName); throw new FraSCAtiOSGiNotFoundCompositeException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
(Lib) Throwable 3
              
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
public Object invoke(Object object, Method method, Object[] args) throws Throwable { //numbers of function arguments int arity = 0; if (args != null) arity= args.length; //Look invoke function in compiled script final UserFunction caller = engine.getCompiledScript().getStaticContext().getUserDefinedFunction( this.namespace, method.getName(),arity); if (caller == null){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append(" cannot find function "); buffer.append(this.namespace); buffer.append(":"); buffer.append(method.getName()); buffer.append(" with "+arity+" arguments"); throw new Throwable(buffer.toString()); } //Convert Java args to XPath args final Controller controller = this.engine.getCompiledScript().newController(); final ValueRepresentation[] xpathArgs = new ValueRepresentation[arity]; for (int i=0;i<xpathArgs.length;i++){ xpathArgs[i] = XQConvertJP.convertObjectToXPath(args[i],controller); } //Bind global variable external with references //and properties given by frascati try{ this.bindGlobaleVariable(caller,controller); } catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); } //Call Function ValueRepresentation vr = null; try{ vr = caller.call(xpathArgs, controller); } catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); } //Convert final result final Object result = XQConvertPJ.convertXPathToJava(vr, method.getReturnType(), controller); return result; }
2
              
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); }
8
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
public Object invoke(IntentJoinPoint intentJP) throws Throwable { //if the call has to be intercepted... if(enabled) { //find the called method... Method method = getClass().getDeclaredMethod(intentJP.getMethod().getName(), intentJP.getMethod().getParameterTypes()); method.setAccessible(true); //and invoke its overwritten version return method.invoke(this,intentJP.getArguments()); } else { //otherwise just proceed return intentJP.proceed(); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
public final Object invoke(final IntentJoinPoint ijp) throws Throwable { // Get the trace associated to the current thread. Trace trace = Trace.TRACE.get(); boolean isNewTrace = (trace == null); if(isNewTrace) { // Create a new trace. trace = traceManager.newTrace(); // Attach the trace to the current thread. Trace.TRACE.set(trace); } Method invokedMethod = ijp.getMethod(); boolean asyncCall = (invokedMethod.getAnnotation(Oneway.class) != null) // WS oneway || (invokedMethod.getAnnotation(OneWay.class) != null); // SCA oneway if(asyncCall) { // Add a new trace event async call to the trace. trace.addTraceEvent(new TraceEventAsyncCallImpl(ijp)); try { // Process the invocation. ijp.proceed(); } finally { if(isNewTrace) { // Deattach the trace from the current thread. Trace.TRACE.set(null); } } // Add a new trace event async end to the trace. trace.addTraceEvent(new TraceEventAsyncEndImpl(ijp)); return null; } else { // Add a new trace event call to the trace. trace.addTraceEvent(new TraceEventCallImpl(ijp)); Object result = null; try { // Process the invocation. result = ijp.proceed(); } catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; } finally { if(isNewTrace) { // Deattach the trace from the current thread. Trace.TRACE.set(null); } } // Add a new trace event return to the trace. trace.addTraceEvent(new TraceEventReturnImpl(ijp, result)); return result; } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
public Object invoke(Object object, Method method, Object[] args) throws Throwable { //numbers of function arguments int arity = 0; if (args != null) arity= args.length; //Look invoke function in compiled script final UserFunction caller = engine.getCompiledScript().getStaticContext().getUserDefinedFunction( this.namespace, method.getName(),arity); if (caller == null){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append(" cannot find function "); buffer.append(this.namespace); buffer.append(":"); buffer.append(method.getName()); buffer.append(" with "+arity+" arguments"); throw new Throwable(buffer.toString()); } //Convert Java args to XPath args final Controller controller = this.engine.getCompiledScript().newController(); final ValueRepresentation[] xpathArgs = new ValueRepresentation[arity]; for (int i=0;i<xpathArgs.length;i++){ xpathArgs[i] = XQConvertJP.convertObjectToXPath(args[i],controller); } //Bind global variable external with references //and properties given by frascati try{ this.bindGlobaleVariable(caller,controller); } catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); } //Call Function ValueRepresentation vr = null; try{ vr = caller.call(xpathArgs, controller); } catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); } //Convert final result final Object result = XQConvertPJ.convertXPathToJava(vr, method.getReturnType(), controller); return result; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return method.invoke(this.delegate, args); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return this.dispatcher.callRemoteMethods(null, method.getName(), args, method.getParameterTypes(), this.requestOption); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsBroker.java
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // Create a JMS message. JmsMessage message = new JmsMessage(); // Store the invoked method name into the message. message.methodName = method.getName(); if(args == null || args.length == 0) { message.xmlMessage = null; } else { // If args then marshall them as an XML message. message.xmlMessage = marshallInvocation(method, args); } log.fine("Invoked method is '" + message.methodName + "'"); log.fine("Marshalled XML message is " + message.xmlMessage); // Send the message to the queue. queue.send(message); return null; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubInvocationHandler.java
public Object invoke(Object proxy, Method m, Object[] args) throws Throwable { log.fine("Send message"); TextMessage msg = jmsModule.getSession().createTextMessage(); msg.setStringProperty(JmsConnectorConstants.OPERATION_SELECTION_PROPERTY, m.getName()); msg.setJMSReplyTo(jmsModule.getResponseDestination()); if (args != null) { msg.setText(marshallInvocation(m, args)); } producer.send(msg, persistent ? DeliveryMode.PERSISTENT : DeliveryMode.NON_PERSISTENT, priority, timeToLive); // Return if no response is expected if (m.getReturnType().equals(void.class) && m.getExceptionTypes().length == 0) { return null; } String selector = "JMSCorrelationID = '" + msg.getJMSMessageID() + "'"; Session respSession = jmsModule.getJmsCnx().createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer responseConsumer = respSession.createConsumer(jmsModule.getResponseDestination(), selector); Message responseMsg = responseConsumer.receive(); responseConsumer.close(); respSession.close(); log.fine("Response received. " + ((TextMessage) responseMsg).getText()); // TODO use a WSDLDelegate to unmarshall response Object response = JAXB .unmarshall(getQNameOfFirstArgument(m), ((TextMessage) responseMsg).getText(), null); return response; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkInput.java
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable { log.fine("Invoke the BPEL partner link input '" + easyBpelPartnerLinkInput.easyBpelPartnerLink.getName() + "' with method " + method); // Marshall invocation, i.e.: method and arguments. String inputXmlMessage = marshallInvocation(method, args); log.fine("Input XML message " + inputXmlMessage); // Create an EasyBPEL internal message. log.fine("Create an EasyBPEL BPELInternalMessage"); BPELInternalMessage bpelMessage = new BPELInternalMessageImpl(); bpelMessage.setService(easyBpelPartnerLinkInput.service); bpelMessage.setEndpoint(easyBpelPartnerLinkInput.endpoint); bpelMessage.setOperationName(method.getName()); Operation op = easyBpelPartnerLinkInput.roleInterfaceType.getOperation(new QName(easyBpelPartnerLinkInput.roleInterfaceType.getQName().getNamespaceURI(), method.getName())); bpelMessage.setQName(op.getInput().getMessageName()); bpelMessage.setContent(JDOM.toElement(inputXmlMessage)); // Invoke the BPEL partner link. log.fine("Invoke EasyBPEL"); log.fine(" message.qname=" + bpelMessage.getQName()); log.fine(" message.content=" + bpelMessage.toString()); EasyBpelContextImpl context = new EasyBpelContextImpl(); context.easyBpelPartnerLinkInput = easyBpelPartnerLinkInput; easyBpelPartnerLinkInput.easyBpelProcess.getCore().getEngine().accept(bpelMessage, context); if(method.getAnnotation(Oneway.class) != null) { // When oneway invocation return nothing immediately. return null; } else { // When twoway invocation then wait for a reply. BPELInternalMessage replyBpelMsg = context.waitReply(); log.fine("Output XML message " + replyBpelMsg.toString()); // Unmarshall the output XML message. return unmarshallResult(method, args, replyBpelMsg.getContent()); } }
(Lib) TinfiRuntimeException 3 3
              
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (NoSuchInterfaceException e) { throw new TinfiRuntimeException(e);
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalBindingException e) { throw new TinfiRuntimeException(e); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalLifeCycleException e) { throw new TinfiRuntimeException(e); }
0
(Domain) FactoryException 2
              
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createComponent(ComponentType componentType, String membraneDesc, Object contentClass) throws FactoryException { String logMessage = "create component componentType='" + componentType + "' membraneDesc='" + membraneDesc + "' contentClass='" + contentClass + "'"; Object[] controllerDesc = new Object[] { this.classLoaderForNewInstance, membraneDesc }; logDo(logMessage); GenericFactory genericFactory = this.genericFactories.get(membraneDesc); if(genericFactory == null) { severe(new FactoryException("No generic factory can " + logMessage)); return null; } Component component = null; try { component = genericFactory.newFcInstance(componentType, controllerDesc, contentClass); } catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); } logDone(logMessage); return component; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public final void open(FrascatiClassLoader frascatiClassLoader) throws FactoryException { try { jc = new Juliac(); } catch (Exception e) { severe(new FactoryException("Problem when initializing Juliac", e)); return; } jcfg = new JuliacConfig(jc); jc.setJuliacConfig(jcfg); jcfg.setSourceLevel(JDKLevel.JDK1_5); jcfg.setTargetLevel(JDKLevel.JDK1_5); if(this.juliacCompilerProvider != null) { jcfg.setCompiler(juliacCompilerProvider.getJuliacCompiler()); } StringBuilder juliacOptLevel = new StringBuilder(); for(MembraneProvider jgc : juliacGeneratorClassProviders) { juliacOptLevel.append(jgc.getMembraneClass().getCanonicalName()); juliacOptLevel.append(':'); } jcfg.setOptLevel(juliacOptLevel.substring(0, juliacOptLevel.length() - 1)); // use the current thread's context class loader where FraSCAti is loaded // to load Juliac plugins instead of the class loader where Juliac was loaded. // jcfg.setClassLoader(FrascatiClassLoader.getCurrentThreadContextClassLoader()); jcfg.setClassLoader(frascatiClassLoader); try { jcfg.loadOptLevels(); } catch(Exception e) { severe(new FactoryException("Problem when loading Juliac option levels", e)); return; } if(this.outputDir == null) { File f; try { // The Juliac output directory is equals to: // - the value of the FRASCATI_OUTPUT_DIRECTORY_PROPERTY Java property if set, or // - the value of the FRASCATI_GENERATED system variable if set, or // - the Maven target directory if exist, or // - a new temp directory. String defaultOutputDir = System.getenv().get(frascatiGeneratedDirectory); if(defaultOutputDir != null) { f = new File(defaultOutputDir); } else { defaultOutputDir = System.getProperty(FRASCATI_OUTPUT_DIRECTORY_PROPERTY); if(defaultOutputDir != null) { f = new File(defaultOutputDir); } else { f = new File(new File(".").getAbsolutePath() + File.separator + mavenTargetDirectory).getAbsoluteFile(); if(!f.exists()) { f = File.createTempFile("frascati",".tmp"); f.delete(); // delete the file f.mkdir(); // recreate it as a directory f.deleteOnExit(); // delete it when the JVM will exit. } } } // Set the default output dir. if (!f.exists()) { // Create output dir if not exists f.mkdirs(); } if (!f.isDirectory()) { throw new FactoryException(outputDir + " must be a directory"); } log.info("Default Juliac output directory: " + f.toString()); this.outputDir = f; jcfg.setBaseDir(f); } catch(IOException ioe) { severe(new FactoryException("Problem when creating a FraSCAti temp directory", ioe)); return; } } // Reset the list of membranes to generate. membranesToGenerate.clear(); }
1
              
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); }
18
              
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void generateMembrane(ComponentType componentType, String membraneDesc, String contentClass) throws FactoryException { String logMessage = "generating membrane componentType='" + componentType + "' membraneDesc='" + membraneDesc + "' contentClass='" + contentClass + "'"; logDo(logMessage); generate(componentType, membraneDesc, contentClass); logDone(logMessage); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void generateScaPrimitiveMembrane(ComponentType componentType, String classname) throws FactoryException { generateMembrane(componentType, this.scaPrimitiveMembrane, classname); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void generateScaCompositeMembrane(ComponentType ct) throws FactoryException { ComponentType componentType = ct; if(componentType == null) { componentType = createComponentType(new InterfaceType[0]); } generateMembrane(componentType, this.scaCompositeMembrane, null); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createComponent(ComponentType componentType, String membraneDesc, Object contentClass) throws FactoryException { String logMessage = "create component componentType='" + componentType + "' membraneDesc='" + membraneDesc + "' contentClass='" + contentClass + "'"; Object[] controllerDesc = new Object[] { this.classLoaderForNewInstance, membraneDesc }; logDo(logMessage); GenericFactory genericFactory = this.genericFactories.get(membraneDesc); if(genericFactory == null) { severe(new FactoryException("No generic factory can " + logMessage)); return null; } Component component = null; try { component = genericFactory.newFcInstance(componentType, controllerDesc, contentClass); } catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); } logDone(logMessage); return component; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createScaPrimitiveComponent(ComponentType componentType, String classname) throws FactoryException { return createComponent(componentType, this.scaPrimitiveMembrane, classname); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createScaCompositeComponent(ComponentType ct) throws FactoryException { ComponentType componentType = ct; if(componentType == null) { componentType = createComponentType(new InterfaceType[0]); } return createComponent(componentType, this.scaCompositeMembrane, null); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createScaContainer() throws FactoryException { return createComponent(createComponentType(new InterfaceType[0]), this.scaContainerMembrane, null); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void open(FrascatiClassLoader frascatiClassLoader) throws FactoryException { logDo("Open a generation phase"); this.classLoaderForNewInstance = frascatiClassLoader; // Delegate to the plugged membrane generation if bound. if(membraneGeneration != null) { membraneGeneration.open(frascatiClassLoader); } logDone("Open a generation phase"); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void generate(ComponentType componentType, String membraneDesc, String contentClass) throws FactoryException { // Delegate to the plugged membrane generation if bound. if(membraneGeneration != null) { membraneGeneration.generate(componentType, membraneDesc, contentClass); } }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final ClassLoader compileJavaSource() throws FactoryException { // Delegate to the plugged membrane generation if bound. if(membraneGeneration != null) { return membraneGeneration.compileJavaSource(); } return null; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void close() throws FactoryException { logDo("Close a generation phase"); // Delegate to the plugged membrane generation if bound. if(membraneGeneration != null) { membraneGeneration.close(); } logDone("Close a generation phase"); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final InterfaceType createInterfaceType(String arg0, String arg1, boolean arg2, boolean arg3, boolean arg4) throws FactoryException { try { logDo("Create interface type"); InterfaceType interfaceType = this.typeFactory.createFcItfType(arg0, arg1, arg2, arg3, arg4); logDone("Create interface type"); return interfaceType; } catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal interface type", ie)); return null; } }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final ComponentType createComponentType(InterfaceType[] arg0) throws FactoryException { try { logDo("Create component type"); ComponentType componentType = this.typeFactory.createFcType(arg0); logDone("Create component type"); return componentType; } catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal component type", ie)); return null; } }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public ComponentType getComponentType(TypeFactory tf) throws FactoryException { return tf .createComponentType(new InterfaceType[] { tf.createInterfaceType("invocation-handler", InvocationHandler.class.getName(), false, false, false), tf.createInterfaceType("attribute-controller", JGroupsRpcAttributes.class.getName(), false, false, false), tf.createInterfaceType(BINDINGS[0], this.cls.getName(), true, true, false), tf.createInterfaceType(BINDINGS[1], MessageListener.class.getName(), true, true, false), tf.createInterfaceType(BINDINGS[2], MembershipListener.class.getName(), true, true, false) }); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public final void open(FrascatiClassLoader frascatiClassLoader) throws FactoryException { try { jc = new Juliac(); } catch (Exception e) { severe(new FactoryException("Problem when initializing Juliac", e)); return; } jcfg = new JuliacConfig(jc); jc.setJuliacConfig(jcfg); jcfg.setSourceLevel(JDKLevel.JDK1_5); jcfg.setTargetLevel(JDKLevel.JDK1_5); if(this.juliacCompilerProvider != null) { jcfg.setCompiler(juliacCompilerProvider.getJuliacCompiler()); } StringBuilder juliacOptLevel = new StringBuilder(); for(MembraneProvider jgc : juliacGeneratorClassProviders) { juliacOptLevel.append(jgc.getMembraneClass().getCanonicalName()); juliacOptLevel.append(':'); } jcfg.setOptLevel(juliacOptLevel.substring(0, juliacOptLevel.length() - 1)); // use the current thread's context class loader where FraSCAti is loaded // to load Juliac plugins instead of the class loader where Juliac was loaded. // jcfg.setClassLoader(FrascatiClassLoader.getCurrentThreadContextClassLoader()); jcfg.setClassLoader(frascatiClassLoader); try { jcfg.loadOptLevels(); } catch(Exception e) { severe(new FactoryException("Problem when loading Juliac option levels", e)); return; } if(this.outputDir == null) { File f; try { // The Juliac output directory is equals to: // - the value of the FRASCATI_OUTPUT_DIRECTORY_PROPERTY Java property if set, or // - the value of the FRASCATI_GENERATED system variable if set, or // - the Maven target directory if exist, or // - a new temp directory. String defaultOutputDir = System.getenv().get(frascatiGeneratedDirectory); if(defaultOutputDir != null) { f = new File(defaultOutputDir); } else { defaultOutputDir = System.getProperty(FRASCATI_OUTPUT_DIRECTORY_PROPERTY); if(defaultOutputDir != null) { f = new File(defaultOutputDir); } else { f = new File(new File(".").getAbsolutePath() + File.separator + mavenTargetDirectory).getAbsoluteFile(); if(!f.exists()) { f = File.createTempFile("frascati",".tmp"); f.delete(); // delete the file f.mkdir(); // recreate it as a directory f.deleteOnExit(); // delete it when the JVM will exit. } } } // Set the default output dir. if (!f.exists()) { // Create output dir if not exists f.mkdirs(); } if (!f.isDirectory()) { throw new FactoryException(outputDir + " must be a directory"); } log.info("Default Juliac output directory: " + f.toString()); this.outputDir = f; jcfg.setBaseDir(f); } catch(IOException ioe) { severe(new FactoryException("Problem when creating a FraSCAti temp directory", ioe)); return; } } // Reset the list of membranes to generate. membranesToGenerate.clear(); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public final void generate(ComponentType componentType, String membraneDesc, String contentClass) throws FactoryException { MembraneDescription md = new MembraneDescription(); md.componentType = componentType; md.membraneDesc = membraneDesc; md.contentDesc = contentClass; membranesToGenerate.add(md); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public ClassLoader compileJavaSource() throws FactoryException { try { File classDir = File.createTempFile(classDirectory, "", this.outputDir); classDir.delete(); // delete the file classDir.mkdir(); jcfg.setClassDirName(classDir.getCanonicalPath()); ((FrascatiClassLoader)jcfg.getClassLoader()).addUrl(classDir.toURI().toURL()); } catch(Exception e) { severe(new FactoryException(e)); } // Add Java sources to be compiled by Juliac. for (String src : javaSourcesToCompile) { log.info("* compile Java source: " + src); try { jcfg.addSrc(src); } catch(IOException ioe) { severe(new FactoryException("Cannot add Java sources", ioe)); return null; } } if(javaSourcesToCompile.size() > 0) { try { // Compile all Java sources with Juliac. jc.compile(); } catch(Exception e) { warning(new FactoryException("Errors when compiling Java source", e)); return null; } } // Reset the list of Java sources to compile. javaDirectories = new ArrayList<String>(); javaDirectories.addAll(javaSourcesToCompile); javaSourcesToCompile.clear(); return jcfg.getClassLoader(); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public final void close() throws FactoryException { if (compileJavaSource() == null) { return ; } if(membranesToGenerate.size() > 0) { File generatedJavaDir = null; try { generatedJavaDir = File.createTempFile(genDirectory, "", this.outputDir); generatedJavaDir.delete(); // delete the file generatedJavaDir.mkdir(); jcfg.setGenDirName(generatedJavaDir.getCanonicalPath()); } catch(Exception e) { severe(new FactoryException(e)); } this.javaDirectories.add(generatedJavaDir.getAbsolutePath()); } // Generate all the membranes to generate. for(MembraneDescription md : membranesToGenerate) { try { jc.getFCSourceCodeGenerator(md.membraneDesc) .generate(md.componentType, md.membraneDesc, md.contentDesc); } catch (Exception e) { severe(new FactoryException("Cannot generate component code with Juliac", e)); return; } } // Compile all generated membranes with Juliac. try { jc.compile(); } catch(Exception e) { warning(new FactoryException("Errors when compiling generated Java membrane source", e)); return; } // Close Juliac. try { jc.close(); } catch(Exception e) { severe(new FactoryException("Cannot close Juliac", e)); return; } }
(Domain) FraSCAtiOSGiNotRunnableServiceException 2
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
private void runService(String serviceName, Class<?> serviceClass, String compositeName, Component composite) throws FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { if (serviceClass == null) { log.log(Level.WARNING, "serviceClass parameter is null "); throw new FraSCAtiOSGiNotFoundServiceException(); } if (!"java.lang.Runnable".equals(serviceClass.getName())) { try { serviceClass.asSubclass(Runnable.class); } catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); } } try { Runnable service = (Runnable) composite.getFcInterface(serviceName); service.run(); } catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
1
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); }
3
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
private void runService(String serviceName, Class<?> serviceClass, String compositeName, Component composite) throws FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { if (serviceClass == null) { log.log(Level.WARNING, "serviceClass parameter is null "); throw new FraSCAtiOSGiNotFoundServiceException(); } if (!"java.lang.Runnable".equals(serviceClass.getName())) { try { serviceClass.asSubclass(Runnable.class); } catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); } } try { Runnable service = (Runnable) composite.getFcInterface(serviceName); service.run(); } catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized void launch(String compositeName, String serviceName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { Component composite = registry.getComposite(compositeName); if (composite != null) { Class<?> serviceClass = registry.getService(compositeName, serviceName); runService(serviceName, serviceClass, compositeName, composite); } else { log.log(Level.WARNING, "unknown composite :" + compositeName); throw new FraSCAtiOSGiNotFoundCompositeException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
(Lib) IllegalContentException 2
              
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void addFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("addFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void removeFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("removeFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
0 2
              
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void addFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("addFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void removeFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("removeFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
(Lib) MBeanException 2
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
2
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new MBeanException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (RuntimeException e) { throw new MBeanException(e); }
2
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); propertyController.setValue(attribute.getName(), attribute.getValue()); } catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); } try { attributes.setAttribute(attribute.getName(), attribute.getValue()); } catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); } }
(Domain) ManagerException 2
              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
protected synchronized final Component internalProcessComposite(QName qname, ProcessingContext processingContext) throws ManagerException { logDo("Processing composite '" + qname + "'"); // Get the processing mode to use. ProcessingMode processingMode = processingContext.getProcessingMode(); if(processingMode == null) { // Default processing mode when caller does not set it. processingMode = ProcessingMode.all; } // The instantiated composite component. Component component = this.loadedComposites.get(qname.getLocalPart()); // Return it if already loaded. if(component != null) { return component; } // Use the SCA parser to create composite model instance. Composite composite; try { composite = compositeParser.parse(qname, processingContext); } catch (ParserException pe) { warning(new ManagerException("Error when parsing the composite file '" + qname + "'", pe)); return null; } // If composite is the first loaded, then put it in the processing context as the root composite. if(processingContext.getRootComposite() == null) { processingContext.setRootComposite(composite); } // Are errors detected during the parsing phase. // if(processingContext.getErrors() > 0) { // warning(new ManagerException("Errors detected during the parsing phase of composite '" + qname + "'")); // return null; // } // Previous was commented in order to also run the following checking phase. if(processingMode == ProcessingMode.parse) { return null; } // Checking phase for the composite. try { compositeProcessor.check(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when checking the composite instance '" + qname + "'", pe)); return null; } // Are errors detected during the checking phase. int nbErrors = processingContext.getErrors(); if(nbErrors > 0) { warning(new ManagerException(nbErrors + " error" + ((nbErrors > 1) ? "s" : "") + " detected during the checking phase of composite '" + qname + "'")); return null; } if(processingMode == ProcessingMode.check) { return null; } // Open a membrane generation phase with the given FraSCAti class loader. try { // TODO pass processingContext to open() or at least a Map membraneGeneration.open((FrascatiClassLoader)processingContext.getClassLoader()); } catch (FactoryException te) { severe(new ManagerException( "Cannot open a membrane generation phase for '" + qname + "'", te)); return null; } // Generating phase for the composite. try { compositeProcessor.generate(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when generating the composite instance '" + qname + "'", pe)); return null; } if(processingMode == ProcessingMode.generate) { return null; } // Close the membrane generation phase. try { membraneGeneration.close(); } catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; } if(processingMode == ProcessingMode.compile) { return null; } // Instantiating phase for the composite. try { compositeProcessor.instantiate(composite, processingContext); } catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); } // Retrieve the instantiated component from the processing context. component = processingContext.getData(composite, Component.class); if(processingMode == ProcessingMode.instantiate) { return component; } // Completing phase for the composite. try { compositeProcessor.complete(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when completing the composite instance '" + qname + "'", pe)); return null; } if(processingMode == ProcessingMode.complete) { return component; } log.fine("Starting the composite '" + qname + "'..."); try { // start the composite container. Component[] parents = Fractal.getSuperController(component).getFcSuperComponents(); if (parents.length > 0) { // There is a container for bindings startFractalComponent(parents[0]); } else { startFractalComponent(component); } log.info("SCA composite '" + composite.getName() + "': " + getFractalComponentState(component) + "\n"); } catch (Exception e) { severe(new ManagerException("Could not start the SCA composite '" + qname + "'", e)); return null; } if(processingMode == ProcessingMode.start) { return component; } addComposite(component); logDone("processing composite '" + qname + "'"); return component; }
2
              
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); }
18
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object processContribution(String contribution,ProcessingContext processingContext) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processContribution(contribution, newProcessingContext(processingContext)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object getContribution(String contribution) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processContribution(contribution, newProcessingContext()); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object processComposite(QName composite,ProcessingContext processingContext) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(composite, newProcessingContext(processingContext)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite) throws ManagerException, ResourceAlreadyManagedException { return getComposite(new QName(composite)); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(QName composite) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(composite, newProcessingContext()); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite,ClassLoader classLoader) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(new QName(composite), newProcessingContext(classLoader)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite,URL[] libs) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(new QName(composite), newProcessingContext(libs)); } finally { //calls can be intercepted again enabled = true; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final void loadLibraries(URL ... urls) throws ManagerException { // check if URLs are accessible. for (URL url : urls) { try { url.openConnection(); } catch(IOException ioe) { warning(new ManagerException(url.toString(), ioe)); return; } } // Add them to the main class laoder. for (URL url : urls) { log.info("Load library: " + url.toString()); this.mainClassLoader.addUrl(url); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component[] getContribution(String contribution) throws ManagerException { return processContribution(contribution, newProcessingContext()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component[] processContribution(String contribution, ProcessingContext processingContext) throws ManagerException { // Get the processing context class loader. FrascatiClassLoader frascatiClassLoader = (FrascatiClassLoader)processingContext.getClassLoader(); // Set the name of the FraSCAti class loader. frascatiClassLoader.setName("SCA contribution " + contribution); // sca-contribution.xml file QName scaContribution = null; try { // Load contribution zip file ZipFile zipFile = new ZipFile(contribution); // Get folder name for output final String folder = zipFile.getName().substring( zipFile.getName().lastIndexOf(File.separator), zipFile.getName().length() - ".zip".length()); // Set directory for extracted files // TODO : use system temp directory but should use output folder given by // runtime component. Will be possible once Assembly Factory modules will // be merged final String tempDir = System.getProperty("java.io.tmpdir") + File.separator + folder + File.separator; Enumeration<? extends ZipEntry> entries = zipFile.entries(); // Iterate over zip entries while (entries.hasMoreElements()) { ZipEntry entry = entries.nextElement(); log.info("ZIP entry: " + entry.getName()); // create directories if (entry.isDirectory()) { log.info("create directory : " + tempDir + entry.getName()); new File(tempDir, entry.getName()).mkdirs(); } else { File f = new File(tempDir, File.separator + entry.getName()); // register jar files if (entry.getName().endsWith("jar")) { log.info("Add to the class path " + f.toURI().toURL()); frascatiClassLoader.addUrl(f.toURI().toURL()); } // register contribution definition if (entry.getName().endsWith("sca-contribution.xml")) { scaContribution = new QName(f.toURI().toString()); } int idx = entry.getName().lastIndexOf(File.separator); if(idx != -1) { String tmp = entry.getName().substring(0, idx); log.info("create directory : " + tempDir + tmp); new File(tempDir, tmp).mkdirs(); } // extract entry from zip to tempDir InputStream is = zipFile.getInputStream(entry); OutputStream os = new BufferedOutputStream(new FileOutputStream(f)); Stream.copy(is, os); is.close(); os.close(); } } } catch (MalformedURLException e) { severe(new ManagerException(e)); return new Component[0]; } catch (IOException e) { severe(new ManagerException(e)); return new Component[0]; } if (scaContribution == null) { log.warning("No sca-contribution.xml in " + contribution); return new Component[0]; } // Call the EMF parser component log.fine("Reading contribution " + contribution); // SCA contribution instance given by EMF ContributionType contributionType = null; try { // Use SCA parser to create contribution model instance contributionType = contributionParser.parse(scaContribution, processingContext); } catch (ParserException pe) { severe(new ManagerException("Error when loading the contribution file " + contribution + " with the SCA XML Processor", pe)); return new Component[0]; } // Iterate over 'Deployable' defined in contribution descriptor ArrayList<Component> components = new ArrayList<Component>(); for (DeployableType deployable : contributionType.getDeployable()) { try { Component c = processComposite(deployable.getComposite(), processingContext); components.add(c); } catch(Exception exc) { severe(new ManagerException("Error when loading the composite " + deployable.getComposite(), exc)); return new Component[0]; } } // return loaded components return components.toArray(new Component[components.size()]); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component getComposite(String composite) throws ManagerException { return processComposite(new QName(composite), newProcessingContext()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component getComposite(QName qname) throws ManagerException { return processComposite(qname, newProcessingContext()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component getComposite(String composite, URL[] libs) throws ManagerException { return processComposite(new QName(composite), newProcessingContext(libs == null ? new URL[0] : libs)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component getComposite(String composite, ClassLoader classLoader) throws ManagerException { return processComposite(new QName(composite), newProcessingContext(classLoader)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
protected synchronized final Component internalProcessComposite(QName qname, ProcessingContext processingContext) throws ManagerException { logDo("Processing composite '" + qname + "'"); // Get the processing mode to use. ProcessingMode processingMode = processingContext.getProcessingMode(); if(processingMode == null) { // Default processing mode when caller does not set it. processingMode = ProcessingMode.all; } // The instantiated composite component. Component component = this.loadedComposites.get(qname.getLocalPart()); // Return it if already loaded. if(component != null) { return component; } // Use the SCA parser to create composite model instance. Composite composite; try { composite = compositeParser.parse(qname, processingContext); } catch (ParserException pe) { warning(new ManagerException("Error when parsing the composite file '" + qname + "'", pe)); return null; } // If composite is the first loaded, then put it in the processing context as the root composite. if(processingContext.getRootComposite() == null) { processingContext.setRootComposite(composite); } // Are errors detected during the parsing phase. // if(processingContext.getErrors() > 0) { // warning(new ManagerException("Errors detected during the parsing phase of composite '" + qname + "'")); // return null; // } // Previous was commented in order to also run the following checking phase. if(processingMode == ProcessingMode.parse) { return null; } // Checking phase for the composite. try { compositeProcessor.check(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when checking the composite instance '" + qname + "'", pe)); return null; } // Are errors detected during the checking phase. int nbErrors = processingContext.getErrors(); if(nbErrors > 0) { warning(new ManagerException(nbErrors + " error" + ((nbErrors > 1) ? "s" : "") + " detected during the checking phase of composite '" + qname + "'")); return null; } if(processingMode == ProcessingMode.check) { return null; } // Open a membrane generation phase with the given FraSCAti class loader. try { // TODO pass processingContext to open() or at least a Map membraneGeneration.open((FrascatiClassLoader)processingContext.getClassLoader()); } catch (FactoryException te) { severe(new ManagerException( "Cannot open a membrane generation phase for '" + qname + "'", te)); return null; } // Generating phase for the composite. try { compositeProcessor.generate(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when generating the composite instance '" + qname + "'", pe)); return null; } if(processingMode == ProcessingMode.generate) { return null; } // Close the membrane generation phase. try { membraneGeneration.close(); } catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; } if(processingMode == ProcessingMode.compile) { return null; } // Instantiating phase for the composite. try { compositeProcessor.instantiate(composite, processingContext); } catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); } // Retrieve the instantiated component from the processing context. component = processingContext.getData(composite, Component.class); if(processingMode == ProcessingMode.instantiate) { return component; } // Completing phase for the composite. try { compositeProcessor.complete(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when completing the composite instance '" + qname + "'", pe)); return null; } if(processingMode == ProcessingMode.complete) { return component; } log.fine("Starting the composite '" + qname + "'..."); try { // start the composite container. Component[] parents = Fractal.getSuperController(component).getFcSuperComponents(); if (parents.length > 0) { // There is a container for bindings startFractalComponent(parents[0]); } else { startFractalComponent(component); } log.info("SCA composite '" + composite.getName() + "': " + getFractalComponentState(component) + "\n"); } catch (Exception e) { severe(new ManagerException("Could not start the SCA composite '" + qname + "'", e)); return null; } if(processingMode == ProcessingMode.start) { return component; } addComposite(component); logDone("processing composite '" + qname + "'"); return component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component processComposite(QName qname, ProcessingContext processingContext) throws ManagerException { // Get the processing context's FraSCAti class loader. FrascatiClassLoader frascatiClassLoader = (FrascatiClassLoader)processingContext.getClassLoader(); // Set the name of the FraSCAti class loader. frascatiClassLoader.setName(qname.toString()); // Uncomment next line for debugging the FraSCAti class loader. // FrascatiClassLoader.print(frascatiClassLoader); // Get the current thread's context class loader and set it. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getAndSetCurrentThreadContextClassLoader(frascatiClassLoader); try { return internalProcessComposite(qname, processingContext); } finally { // Reset the previous current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousCurrentThreadContextClassLoader); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final void addComposite(Component composite) throws ManagerException { // Retrieve the component name. String compositeName = getFractalComponentName(composite); if (this.loadedComposites.containsKey(compositeName)) { warning(new ManagerException("Composite '" + compositeName + "' already loaded into the top level domain composite")); return; } else { addFractalSubComponent(this.topLevelDomainComposite, composite); this.loadedComposites.put(compositeName, composite); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final void removeComposite(String name) // TODO QName instead of String throws ManagerException { // Retrieve component reference from its name Component component = this.loadedComposites.get(name); if (component == null) { severe(new ManagerException("Composite '" + name +"' does not exist")); } // Remove the component. removeFractalSubComponent(this.topLevelDomainComposite, component); // Remove component from loaded composites. this.loadedComposites.remove(name); // Stop the SCA component. stopFractalComponent(component); }
(Lib) ResourceNotFoundException 2
              
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
public InputStream getResourceStream(String name) throws ResourceNotFoundException { if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { return classLoader.getResourceAsStream(this.location + '/' + name); } catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); } }
1
              
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); }
1
              
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
public InputStream getResourceStream(String name) throws ResourceNotFoundException { if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { return classLoader.getResourceAsStream(this.location + '/' + name); } catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); } }
(Lib) ScriptExecutionError 2
              
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { String compositeName = (String) args.get(0); CompositeManager domain = getDomain(); Object newComponent; try { newComponent = domain.getComposite(compositeName); } catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); } return model.createScaComponentNode((Component) newComponent); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { String compositeName = (String) args.get(0); CompositeManager domain = getDomain(); try { domain.removeComposite(compositeName); } catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); } return null; }
2
              
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); }
4
              
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { String compositeName = (String) args.get(0); CompositeManager domain = getDomain(); Object newComponent; try { newComponent = domain.getComposite(compositeName); } catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); } return model.createScaComponentNode((Component) newComponent); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { String compositeName = (String) args.get(0); CompositeManager domain = getDomain(); try { domain.removeComposite(compositeName); } catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); } return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddRestBinding.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { Map<String, Object> hints = new HashMap<String, Object>(); InterfaceNode itf = (InterfaceNode) args.get(0); String uri = (String) args.get(1); hints.put(PLUGIN_ID, "rest"); hints.put(RestConnectorConstants.URI, uri); this.createBinding(itf.getName(), itf.getInterface().getFcItfOwner(), itf.isClient(), hints); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddWsBinding.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { Map<String, Object> hints = new HashMap<String, Object>(); InterfaceNode itf = (InterfaceNode) args.get(0); String uri = (String) args.get(1); hints.put(PLUGIN_ID, "ws"); hints.put(WsConnectorConstants.URI, uri); this.createBinding(itf.getName(), itf.getInterface().getFcItfOwner(), itf.isClient(), hints); return null; }
(Lib) ServletException 2 2
              
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(FileUploadException fue) { throw new ServletException(fue);
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(Exception e) { throw new ServletException(e); }
5
              
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Check if this request is for this handler. if(target.startsWith(getName())) { // Remove the path from the path info of this request. String old_path_info = baseRequest.getPathInfo(); baseRequest.setPathInfo(old_path_info.substring(getName().length())); // Dispatch the request to the servlet. this.servlet.service(request, response); // Restore the previous path info. baseRequest.setPathInfo(old_path_info); // This request was handled. baseRequest.setHandled(true); } }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
Override public final void init(ServletConfig servletConfig) throws ServletException { log.fine("OW2 FraSCAti Servlet - Initialization..."); // Init the CXF servlet. super.init(servletConfig); // Keep this as the FraSCAtiServlet singleton instance. singleton = this; String frascatiBootstrap = servletConfig.getInitParameter(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME); if(frascatiBootstrap != null) { System.setProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME, frascatiBootstrap); } // Set that no prefix is added to <sca:binding uri>. AbstractBindingProcessor.setEmptyBindingURIBase(); try { frascati = FraSCAti.newFraSCAti(); } catch (FrascatiException e) { log.severe("Cannot instanciate FraSCAti!"); return; } // Get the list of composites to launch. String composite = servletConfig.getInitParameter("composite"); if(composite == null) { log.warning("OW2 FraSCAti Servlet - No SCA composites to launch."); } else { // SCA composites are separated by spaces. String[] composites = composite.split("\\s+"); // Launch SCA composites. launch(composites); } }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
Override public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; String pathInfo = httpRequest.getPathInfo(); if(pathInfo != null) { // Search a deployed servlet that could handle this request. for(Entry<String, Servlet> entry : servlets.entrySet()) { if(pathInfo.startsWith(entry.getKey())) { entry.getValue().service(new MyHttpServletRequestWrapper(httpRequest, pathInfo.substring(entry.getKey().length())), response); return; } } } // If no deployed servlet for this request then dispatch this request via Apache CXF. super.service(request, response); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // The requested resource. String pathInfo = request.getPathInfo(); if(pathInfo == null) { pathInfo = ""; } int idx = pathInfo.lastIndexOf('.'); String extension = (idx != -1) ? pathInfo.substring(idx) : ""; // Search the requested resource into the class loader. InputStream is = this.classloader.getResourceAsStream(this.location + pathInfo); if(is == null) { // Requested resource not found. super.doGet(request, response); return; } // Requested resource found. response.setStatus(HttpServletResponse.SC_OK); String mimeType = extensions2mimeTypes.getProperty(extension); if(mimeType == null) { mimeType = "text/plain"; } response.setContentType(mimeType); // Copy the resource stream to the servlet output stream. Stream.copy(is, response.getOutputStream()); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // The requested resource. String requestedResource = request.getPathInfo(); // System.out.println("Requested " + requestedResource); // If no requested resource then redirect to '/'. if (requestedResource == null || requestedResource.equals("")) { response.sendRedirect(request.getRequestURL().append('/') .toString()); return; } // If the requested resource is '/' then use the default resource. if (requestedResource.equals("/")) { requestedResource = '/' + this.defaultResource; } // Compute extension of the requested resource. int idx = requestedResource.lastIndexOf('.'); String extension = (idx != -1) ? requestedResource.substring(idx) : ".txt"; // Set response status to OK. response.setStatus(HttpServletResponse.SC_OK); // Set response content type. response.setContentType(extensions2mimeTypes.getProperty(extension)); // Is a templatable requested resource? if (templatables.contains(extension)) { // Get the requested resource as a Velocity template. Template template = null; try { template = this.velocityEngine.getTemplate(requestedResource .substring(1)); } catch (Exception exc) { exc.printStackTrace(System.err); // Requested resource not found. super.service(request, response); return; } // Create a Velocity context connected to the component's Velocity // context. VelocityContext context = new VelocityContext(this.velocityContext); // Put the HTTP request and response into the Velocity context. context.put("request", request); context.put("response", response); // inject HTTP parameters as Velocity variables. Enumeration<?> parameterNames = request.getParameterNames(); while (parameterNames.hasMoreElements()) { String parameterName = (String) parameterNames.nextElement(); context.put(parameterName, request.getParameter(parameterName)); } // TODO: should not be called but @Lifecycle does not work as // expected. registerScaProperties(); // Process the template. OutputStreamWriter osw = new OutputStreamWriter( response.getOutputStream()); template.merge(context, osw); osw.flush(); } else { // Search the requested resource into the class loader. InputStream is = this.classLoader.getResourceAsStream(this.location + requestedResource); if (is == null) { // Requested resource not found. super.service(request, response); return; } // Copy the requested resource to the HTTP response output stream. Stream.copy(is, response.getOutputStream()); is.close(); } }
(Domain) WeaverException 2
              
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
protected final Weaver getWeaver() throws WeaverException { String intentCompositeName = getIntentCompositeName(); try { Component intentComposite = getFraSCAtiExplorerService(CompositeManager.class).getComposite(intentCompositeName); return (Weaver)intentComposite.getFcInterface(Weaver.NAME); } catch(ManagerException me) { throw new WeaverException(me); } catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); } }
2
              
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(ManagerException me) { throw new WeaverException(me); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); }
10
              
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
protected final boolean addIntentHandler(Component component) throws WeaverException { try { getSCABasicIntentController(component).addFcIntentHandler(this.intentHandler); return true; } catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); } catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not add intent handler", ilce)); } return false; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
protected final void removeIntentHandler(Component component) throws WeaverException { try { getSCABasicIntentController(component).removeFcIntentHandler(this.intentHandler); } catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); } catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not remove intent handler", ilce)); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
protected final void traverse(Component component, Applier applier) throws WeaverException { if(excludesImplementationBpel && "implementation.bpel".equals(getFractalComponentName(component))) { log.warning("Could not traverse a BPEL implementation"); return; } // Apply on the component. applier.apply(component); // Try to get the Fractal content controller. ContentController contentController = null; try { contentController = Fractal.getContentController(component); } catch(NoSuchInterfaceException nsie) { // Return as component is not a composite. return; } // Traverse the sub components of the component. for(Component c: getFractalSubComponents(contentController)) { traverse(c, applier); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
public final void weave(Component scaComposite) throws WeaverException { nbApplies = 0; long startTime = System.nanoTime(); // Begin the reconfiguration. stopFractalComponent(scaComposite); // Add the intent handler on the SCA composite recursively. traverse(scaComposite, new Applier() { public final void apply(Component component) throws WeaverException { if(addIntentHandler(component)) { nbApplies++; } } } ); // End the reconfiguration. startFractalComponent(scaComposite); long endTime = System.nanoTime(); log.info("Weare the intent on " + nbApplies + " components in " + (endTime - startTime) + "ns."); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
public final void apply(Component component) throws WeaverException { if(addIntentHandler(component)) { nbApplies++; } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
public final void unweave(Component scaComposite) throws WeaverException { // Begin the reconfiguration. stopFractalComponent(scaComposite); // Remove the intent handler on the SCA composite recursively. traverse(scaComposite, new Applier() { public final void apply(Component component) throws WeaverException { removeIntentHandler(component); } } ); // End the reconfiguration. startFractalComponent(scaComposite); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
public final void apply(Component component) throws WeaverException { removeIntentHandler(component); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaveMenuItem.java
Override protected final void execute(Component component) throws WeaverException { getWeaver().weave(component); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractUnweaveMenuItem.java
Override protected final void execute(Component component) throws WeaverException { getWeaver().unweave(component); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
protected final Weaver getWeaver() throws WeaverException { String intentCompositeName = getIntentCompositeName(); try { Component intentComposite = getFraSCAtiExplorerService(CompositeManager.class).getComposite(intentCompositeName); return (Weaver)intentComposite.getFcInterface(Weaver.NAME); } catch(ManagerException me) { throw new WeaverException(me); } catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); } }
(Lib) AttributeNotFoundException 1
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
0 2
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); propertyController.setValue(attribute.getName(), attribute.getValue()); } catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); } try { attributes.setAttribute(attribute.getName(), attribute.getValue()); } catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); } }
(Lib) AuthenticationException 1 0 0
(Domain) BadParameterTypeException 1
              
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static Object[] getArguments(java.lang.reflect.Method method, MultivaluedMap<String, String> params) throws BadParameterTypeException { Object[] arguments = new Object[method.getParameterTypes().length]; int index = 0; String value = null; for (Class<?> parameterType : method.getParameterTypes()) { try { value = params.getFirst("Parameter" + index); arguments[index] = ScaPropertyTypeJavaProcessor.stringToValue(parameterType.getCanonicalName(), value, method.getClass().getClassLoader()); } catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); } index++; } return arguments; }
1
              
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); }
1
              
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static Object[] getArguments(java.lang.reflect.Method method, MultivaluedMap<String, String> params) throws BadParameterTypeException { Object[] arguments = new Object[method.getParameterTypes().length]; int index = 0; String value = null; for (Class<?> parameterType : method.getParameterTypes()) { try { value = params.getFirst("Parameter" + index); arguments[index] = ScaPropertyTypeJavaProcessor.stringToValue(parameterType.getCanonicalName(), value, method.getClass().getClassLoader()); } catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); } index++; } return arguments; }
(Lib) FileNotFoundException 1
              
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File[] src, FileFilter filter, String prefix, Manifest man) throws IOException { for (int i = 0; i < src.length; i++) { if (!src[i].exists()) { throw new FileNotFoundException(src.toString()); } } JarOutputStream jout; if (man == null) { jout = new JarOutputStream(out); } else { jout = new JarOutputStream(out, man); } if (prefix != null && prefix.length() > 0 && !prefix.equals("/")) { // strip leading '/' if (prefix.charAt(0) == '/') { prefix = prefix.substring(1); } // ensure trailing '/' if (prefix.charAt(prefix.length() - 1) != '/') { prefix = prefix + "/"; } } else { prefix = ""; } JarInfo info = new JarInfo(jout, filter); for (int i = 0; i < src.length; i++) { //Modified: The root is not put in the jar file if (src[i].isDirectory()){ File[] files = src[i].listFiles(info.filter); for (int j = 0; j < files.length; j++) { jar(files[j], prefix, info); } } } jout.close(); }
0 4
              
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
Override public WsdlInformations loadWsdl(String wsdl) throws FileNotFoundException{ WsdlInformations wsdlInformations = new WsdlInformations(); try { Definition definition = wsdlCompiler.readWSDL(wsdl); wsdlInformations.setTargetNameSpace(definition.getTargetNamespace()); for(QName service : (Set<QName>)definition.getServices().keySet()){ for(QName port : (Set<QName>)definition.getPortTypes().keySet()){ wsdlInformations.addServicePort(service.getLocalPart()+"/"+port.getLocalPart()); } } } catch (WSDLException e) { e.printStackTrace(); } return wsdlInformations; }
// in frascati-studio/src/main/java/org/easysoa/impl/TemplateRestImpl.java
Override public String loadWSDL(String wsdlPath) throws FileNotFoundException{ return transformWsdlInformationsToString(codeGenerator.loadWsdl(wsdlPath)); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ProxyImplementationVelocity.java
public static void generateContent(Component component, Class<?> itf, ProcessingContext processingContext, String outputDirectory, String packageGeneration, String contentClassName) throws FileNotFoundException { File packageDirectory = new File(outputDirectory + '/' + packageGeneration.replace('.', '/')); packageDirectory.mkdirs(); PrintStream file = new PrintStream(new FileOutputStream(new File( packageDirectory, contentClassName + ".java"))); file.println("package " + packageGeneration + ";\n"); file.println("import org.apache.velocity.VelocityContext;\n"); file.println("@" + Service.class.getName() + "(" + itf.getName() + ".class)"); file.println("public class " + contentClassName + " extends " + ProxyImplementationVelocity.class.getName() + " implements " + itf.getName()); file.println("{"); int index = 0; for (PropertyValue propertyValue : component.getProperty()) { // Get the property value and class. Object propertyValueObject = processingContext.getData( propertyValue, Object.class); Class<?> propertyValueClass = (propertyValueObject != null) ? propertyValueObject .getClass() : String.class; file.println(" @" + Property.class.getName() + "(name = \"" + propertyValue.getName() + "\")"); file.println(" protected " + propertyValueClass.getName() + " property" + index + ";\n"); index++; } index = 0; for (ComponentReference componentReference : component.getReference()) { file.println(" @" + Reference.class.getName() + "(name = \"" + componentReference.getName() + "\")"); file.println(" protected Object reference" + index + ";\n"); index++; } for (Method m : itf.getMethods()) { String signature = " public " + m.getReturnType().getName() + " " + m.getName() + "("; index = 0; for (Class<?> type : m.getParameterTypes()) { if (index > 0) signature += ", "; signature += type.getName() + " " + prefix + index; index++; } file.println(signature + ") {"); file.println(" VelocityContext context = new VelocityContext(this.velocityContext);"); String names = ""; for (int i = 0; i < index; i++) { putContext(file, prefix + i, i); for (Annotation a : m.getParameterAnnotations()[i]) { if (a instanceof PathParam) names += putContext(file, ((PathParam) a).value(), i); else if (a instanceof FormParam) names += putContext(file, ((FormParam) a).value(), i); else if (a instanceof QueryParam) names += putContext(file, ((QueryParam) a).value(), i); else if (a instanceof HeaderParam) names += putContext(file, ((HeaderParam) a).value(), i); else if (a instanceof CookieParam) names += putContext(file, ((CookieParam) a).value(), i); } } String params = ""; for (int i = 0; i < index; i++) { params += ", "+prefix + i; } names = names.length() > 0 ? names.substring(1) : names; file.println(" return invoke(\"" + m.getName() + "\", context, new String[]{" + names + "}" + params + ");"); file.println(" }\n"); } file.println("}"); file.flush(); file.close(); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
public static void generateContent(Component component, ProcessingContext processingContext, String outputDirectory, String packageGeneration, String contentClassName) throws FileNotFoundException { // TODO: Certainly not required with the next Tinfi release. File packageDirectory = new File(outputDirectory + '/' + packageGeneration.replace('.', '/')); packageDirectory.mkdirs(); PrintStream file = new PrintStream(new FileOutputStream(new File( packageDirectory, contentClassName + ".java"))); file.println("package " + packageGeneration + ";\n"); file.println("public class " + contentClassName + " extends " + ServletImplementationVelocity.class.getName()); file.println("{"); int index = 0; for (PropertyValue propertyValue : component.getProperty()) { // Get the property value and class. Object propertyValueObject = processingContext.getData( propertyValue, Object.class); Class<?> propertyValueClass = (propertyValueObject != null) ? propertyValueObject .getClass() : String.class; file.println(" @" + Property.class.getName() + "(name = \"" + propertyValue.getName() + "\")"); file.println(" protected " + propertyValueClass.getName() + " property" + index + ";"); index++; } index = 0; for (ComponentReference componentReference : component.getReference()) { file.println(" @" + Reference.class.getName() + "(name = \"" + componentReference.getName() + "\")"); file.println(" protected Object reference" + index + ";"); index++; } file.println("}"); file.flush(); file.close(); }
(Lib) IllegalLifeCycleException 1
              
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void startFc() throws IllegalLifeCycleException { try { this.channel = new JChannel(this.properties); this.dispatcher = new RpcDispatcher(this.channel, this.messageListener, this.membershipListener, this.servant); if (this.identifier != null && !this.identifier.isEmpty()) this.channel.setName(this.identifier); this.channel.connect(this.cluster); this.identifier = this.channel.getName(); } catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); } }
1
              
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); }
14
              
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
public final void startFc() throws IllegalLifeCycleException { log.finer("ScriptEngineComponent starting..."); // When this component is started then it obtains all the properties of its enclosing SCA component // and put them as variables in the scripting engine. String [] properties = scaPropertyController.getPropertyNames(); for (String property : properties) { Object value = scaPropertyController.getValue(property); log.info("Affect the scripting variable '" + property + "' with the value '" + value + "'"); scriptEngine.put(property, value); } this.fcState = LifeCycleController.STARTED; log.finer("ScriptEngineComponent started."); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
public final void stopFc() throws IllegalLifeCycleException { this.fcState = LifeCycleController.STOPPED; log.finer("ScriptEngineComponent stopped."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
Override protected final void addIntentHandler(EObjectType baseReference, SCABasicIntentController intentController, IntentHandler intentHandler) throws NoSuchInterfaceException, IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler, baseReference.getName()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
Override protected final void addIntentHandler(EObjectType baseService, SCABasicIntentController intentController, IntentHandler intentHandler) throws NoSuchInterfaceException, IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler, baseService.getName()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
Override protected final void addIntentHandler(ElementType element, SCABasicIntentController intentController, IntentHandler intentHandler) throws IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { if (BINDINGS[0].equals(clientItfName)) this.servant = serverItf; if (BINDINGS[1].equals(clientItfName)) this.messageListener = (MessageListener) serverItf; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = (MembershipListener) serverItf; if ("component".equals(clientItfName)) this.comp = (Component) serverItf; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void unbindFc(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException{ if (BINDINGS[0].equals(clientItfName)) this.servant = null; if (BINDINGS[1].equals(clientItfName)) this.messageListener = null; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = null; if ("component".equals(clientItfName)) this.comp = null; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void startFc() throws IllegalLifeCycleException { try { this.channel = new JChannel(this.properties); this.dispatcher = new RpcDispatcher(this.channel, this.messageListener, this.membershipListener, this.servant); if (this.identifier != null && !this.identifier.isEmpty()) this.channel.setName(this.identifier); this.channel.connect(this.cluster); this.identifier = this.channel.getName(); } catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); } }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void stopFc() throws IllegalLifeCycleException { this.channel.close(); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/AbstractCommand.java
protected final void ensureComponentIsStarted(Component comp) throws IllegalLifeCycleException { try { LifeCycleController lcc = Fractal.getLifeCycleController(comp); if (!"STARTED".equals(lcc.getFcState())) { showMessage("Starting the component."); lcc.startFc(); } else { showMessage("Component already started."); } } catch (NoSuchInterfaceException e) { showWarning("The component does not have a 'lifecycle-controller'."); showWarning("Assuming it is ready to use."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public ObjectName register(MBeanServer mbs) throws NoSuchInterfaceException, IllegalLifeCycleException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "registering component " + moduleName + " in MBeanServer"); } try { for (Component child : getContentController(component) .getFcSubComponents()) { new JmxComponent(child, prefix).register(mbs); } } catch (NoSuchInterfaceException e) { // current component is not container } mbs.registerMBean(this, moduleName); return moduleName; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
Override public void startFc() throws IllegalLifeCycleException { try { jmsModule = new JmsModule(this); jmsModule.start(); producer = jmsModule.getSession().createProducer(jmsModule.getDestination()); } catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); } super.startFc(); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void addFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("addFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void removeFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("removeFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
(Lib) InstantiationException 1 0 6
              
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
Override public final Component newFcInstance () throws InstantiationException { return newFcInstance(new HashMap<String, Object>()); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
Override public final Component newFcInstance () throws InstantiationException { return newFcInstance(new HashMap<String, Object>()); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
Override public final Component newFcInstance () throws InstantiationException { return newFcInstance(new HashMap<String, Object>()); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
(Lib) MojoExecutionException 1
              
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
public final void execute() throws MojoExecutionException, MojoFailureException { // Get the absolute path of the base dir of the Maven project. this.projectBaseDirAbsolutePath = this.project.getBasedir().getAbsolutePath(); // Configure logging. if (loggingConfFile != null) { getLog().debug("Configure logging with " + loggingConfFile + "."); try { LogManager.getLogManager().readConfiguration( new FileInputStream(loggingConfFile)); } catch (Exception e) { getLog().warn("Could not load logging configuration file: " + loggingConfFile); } } // Get the current thread class loader. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getCurrentThreadContextClassLoader(); ClassLoader currentClassLoader = null; // Get the current System Properties. Properties previousSystemProperties = System.getProperties(); try { // Init the class loader used by this MOJO. getLog().debug("Init the current class loader."); currentClassLoader = initCurrentClassLoader(previousCurrentThreadContextClassLoader); if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Set the current thread's context class loader."); FrascatiClassLoader.setCurrentThreadContextClassLoader( currentClassLoader); } if (systemProperties != null) { getLog().debug("Configuring Java system properties."); Properties newSystemProperties = new Properties( previousSystemProperties); newSystemProperties.putAll(systemProperties); System.setProperties(newSystemProperties); getLog().debug(newSystemProperties.toString()); } // Execute the MOJO. getLog().debug("Execute the MOJO..."); executeMojo(); } catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); } finally { if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Reset the current thread's context class loader."); // Reset the current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader( previousCurrentThreadContextClassLoader); } getLog().debug("Reset the Java system properties."); System.setProperties(previousSystemProperties); } }
1
              
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); }
2
              
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
public final void execute() throws MojoExecutionException, MojoFailureException { // Get the absolute path of the base dir of the Maven project. this.projectBaseDirAbsolutePath = this.project.getBasedir().getAbsolutePath(); // Configure logging. if (loggingConfFile != null) { getLog().debug("Configure logging with " + loggingConfFile + "."); try { LogManager.getLogManager().readConfiguration( new FileInputStream(loggingConfFile)); } catch (Exception e) { getLog().warn("Could not load logging configuration file: " + loggingConfFile); } } // Get the current thread class loader. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getCurrentThreadContextClassLoader(); ClassLoader currentClassLoader = null; // Get the current System Properties. Properties previousSystemProperties = System.getProperties(); try { // Init the class loader used by this MOJO. getLog().debug("Init the current class loader."); currentClassLoader = initCurrentClassLoader(previousCurrentThreadContextClassLoader); if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Set the current thread's context class loader."); FrascatiClassLoader.setCurrentThreadContextClassLoader( currentClassLoader); } if (systemProperties != null) { getLog().debug("Configuring Java system properties."); Properties newSystemProperties = new Properties( previousSystemProperties); newSystemProperties.putAll(systemProperties); System.setProperties(newSystemProperties); getLog().debug(newSystemProperties.toString()); } // Execute the MOJO. getLog().debug("Execute the MOJO..."); executeMojo(); } catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); } finally { if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Reset the current thread's context class loader."); // Reset the current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader( previousCurrentThreadContextClassLoader); } getLog().debug("Reset the Java system properties."); System.setProperties(previousSystemProperties); } }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
public final void execute() throws MojoExecutionException, MojoFailureException { if (include != null) { if (excludeGroups == null) excludeGroups = new ArrayList<String>(); // by default, we automatically add "org.ow2.frascati" & // "org.objectweb.fractal.bf" to the ignore list // FIXME actually, there is a problem with the ${xxxxx.version} properties // which are not resolved by the Artifact Resolver excludeGroups.add("org.ow2.frascati"); excludeGroups.add("org.objectweb.fractal.bf"); // Get Base directory File baseDir = project.getBasedir(); // Get Target directory File targetDir = new File(baseDir.getAbsolutePath() + File.separator + "target"); // Manage dependencies Map<File,String> jars = new HashMap<File,String>(); try { recursivelyAddDependencies(Arrays.asList(include), jars); } catch (Exception e) { getLog().error("Problem with the dependency management."); getLog().error(e); } // Make the zip File contrib = ContributionUtil.makeContribution(jars, Arrays.asList(deployables), project.getArtifactId(), targetDir); projectHelper.attachArtifact(project, "zip", "frascati-contribution", contrib); } }
(Lib) NoSuchBeanDefinitionException 1
              
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ParentApplicationContext.java
public final Object getBean (final String name, final Class requiredType) { log.finer("Spring parent context - getBean called for name: " + name); // Try to find the requested Spring bean as an internal interface of the Fractal component. try { Object bean = getFractalInternalInterface(component, name); // TODO: Check if bean is instance of requiredType! return bean; } catch(FrascatiException fe) { } // TODO: The requested bean is perhaps a property from the SCA composite file. // When not found then throw an exception. throw new NoSuchBeanDefinitionException("Unable to find Bean with name " + name); }
0 0
(Lib) NullPointerException 1
              
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { if (iHaveMadeThisCall) { return null; } if (name == null) { throw new NullPointerException(); } if (name.indexOf("/") != -1) { throw new ClassNotFoundException(name); } Class<?> clazz = findLoadedClass(name); if (clazz == null) { clazz = fManager.getLoaded(name); } if (clazz == null) { FraSCAtiOSGiClassLoader root = fManager.getClassLoader(); clazz = root.findClass(name); if (clazz == null) { try { iHaveMadeThisCall = true; ClassLoader parent = root.getParent(); if (parent == null) { clazz = ClassLoader.getSystemClassLoader().loadClass( name); } else { clazz = parent.loadClass(name); } } catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); } finally { iHaveMadeThisCall = false; } } if (clazz == null) { clazz = fManager.loadClass(name); } if (clazz != null) { fManager.registerClass(name, clazz); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
0 2
              
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public ObjectName register(MBeanServer mbs) throws NoSuchInterfaceException, IllegalLifeCycleException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "registering component " + moduleName + " in MBeanServer"); } try { for (Component child : getContentController(component) .getFcSubComponents()) { new JmxComponent(child, prefix).register(mbs); } } catch (NoSuchInterfaceException e) { // current component is not container } mbs.registerMBean(this, moduleName); return moduleName; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
Destroy public void destroy() throws MBeanRegistrationException, InstanceNotFoundException, MalformedObjectNameException, NullPointerException { clean(); mbs.unregisterMBean(new ObjectName(PACKAGE + ":name=FrascatiJmx")); }
(Lib) ParseException 1
              
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static boolean compileAll(String sourcePath, String targetPath, List<File> classPath) throws IOException, ParseException{ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>(); StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); List<String> pathNameList= new ArrayList<String>(); List<String> options = new ArrayList<String>(); boolean success = true; File target = new File(targetPath); if (!target.exists() && !target.mkdirs()) { throw new IOException("Impossible to create directory " + targetPath); } File src = new File(sourcePath); if (!src.exists() && ! src.mkdirs()) { throw new IOException("Impossible to create directory " + sourcePath); } //Setting the directory for .class files options.add("-d"); options.add(targetPath); String libList = ""; for(int i = 0 ; i < classPath.size(); i++) { File classPathItem = classPath.get(i); if (i > 0) { if(SCAJavaCompilerImpl.isWindows()){ libList = libList.concat(";"); } else{ libList = libList.concat(":"); } } libList = libList.concat(classPathItem.getCanonicalPath()); } options.add("-classpath"); options.add(libList); if(checkFolder(src, pathNameList) == false){ success = false; } Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, compilationUnits); LOG.info("Compiling..."); if (task.call() == false){ success = false; LOG.severe("Fail!"); String errorMessage = "Compilation fail!\n\n"; for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) { LOG.severe(diagnostic.getMessage(null)); errorMessage = errorMessage.concat(diagnostic.getMessage(null) + "\n"); } throw new ParseException(errorMessage, 0); } else { LOG.info("Ok"); LOG.info("Compiled files:"); for (String filePath : pathNameList) { LOG.info(filePath); } } fileManager.close(); return success; }
0 1
              
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static boolean compileAll(String sourcePath, String targetPath, List<File> classPath) throws IOException, ParseException{ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>(); StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); List<String> pathNameList= new ArrayList<String>(); List<String> options = new ArrayList<String>(); boolean success = true; File target = new File(targetPath); if (!target.exists() && !target.mkdirs()) { throw new IOException("Impossible to create directory " + targetPath); } File src = new File(sourcePath); if (!src.exists() && ! src.mkdirs()) { throw new IOException("Impossible to create directory " + sourcePath); } //Setting the directory for .class files options.add("-d"); options.add(targetPath); String libList = ""; for(int i = 0 ; i < classPath.size(); i++) { File classPathItem = classPath.get(i); if (i > 0) { if(SCAJavaCompilerImpl.isWindows()){ libList = libList.concat(";"); } else{ libList = libList.concat(":"); } } libList = libList.concat(classPathItem.getCanonicalPath()); } options.add("-classpath"); options.add(libList); if(checkFolder(src, pathNameList) == false){ success = false; } Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, compilationUnits); LOG.info("Compiling..."); if (task.call() == false){ success = false; LOG.severe("Fail!"); String errorMessage = "Compilation fail!\n\n"; for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) { LOG.severe(diagnostic.getMessage(null)); errorMessage = errorMessage.concat(diagnostic.getMessage(null) + "\n"); } throw new ParseException(errorMessage, 0); } else { LOG.info("Ok"); LOG.info("Compiled files:"); for (String filePath : pathNameList) { LOG.info(filePath); } } fileManager.close(); return success; }
(Domain) ResourceAlreadyManagedException 1 0 13
              
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object processContribution(String contribution,ProcessingContext processingContext) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processContribution(contribution, newProcessingContext(processingContext)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object getContribution(String contribution) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processContribution(contribution, newProcessingContext()); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object processComposite(QName composite,ProcessingContext processingContext) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(composite, newProcessingContext(processingContext)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite) throws ManagerException, ResourceAlreadyManagedException { return getComposite(new QName(composite)); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(QName composite) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(composite, newProcessingContext()); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite,ClassLoader classLoader) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(new QName(composite), newProcessingContext(classLoader)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite,URL[] libs) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(new QName(composite), newProcessingContext(libs)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private ProcessingContext newProcessingContext() throws ResourceAlreadyManagedException { return newProcessingContext(new URL[0]); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private ProcessingContext newProcessingContext(ClassLoader classLoader) throws ResourceAlreadyManagedException { //If the ClassLoader is an AbstractResourceClassLoader... if(AbstractResourceClassLoader.class.isAssignableFrom(classLoader.getClass())) { //Create a new ProcessingContext using it return compositeManager.newProcessingContext(classLoader); } //Otherwise prepare an list of URLs to create a new ClassLoader // for a new ProcessingContext List<URL> libs = new ArrayList<URL>(); //keep all urls that have been previously registered if(URLClassLoader.class.isAssignableFrom(classLoader.getClass())) { URL[] libraries = ((URLClassLoader)classLoader).getURLs(); for(URL library : libraries) { libs.add(library); } } return newProcessingContext(libs.toArray(new URL[0])); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private ProcessingContext newProcessingContext(ProcessingContext processingContext) throws ResourceAlreadyManagedException { //get the ProcessingContext's ClassLoader ClassLoader classLoader = processingContext.getClassLoader(); //if it's already an AbstractResourceClassLoader... if(AbstractResourceClassLoader.class.isAssignableFrom(classLoader.getClass()) || AbstractResourceClassLoader.class.isAssignableFrom(classLoader.getParent().getClass())) { //do nothing and return the processingContext argument return processingContext; } //otherwise prepare an list of URLs to create a new ClassLoader // for a new ProcessingContext List<URL> libs = new ArrayList<URL>(); //keep all urls that have been previously registered while(URLClassLoader.class.isAssignableFrom(classLoader.getClass()) && classLoader != foContext.getClassLoader() && classLoader != null) { URL[] libraries = ((URLClassLoader)classLoader).getURLs(); for(URL library : libraries) { libs.add(library); } classLoader = classLoader.getParent(); } //create the new ProcessingContext ProcessingContext newContext = newProcessingContext(libs.toArray(new URL[0])); //define its processing mode using the one of the ProcessingContext argument newContext.setProcessingMode(processingContext.getProcessingMode()); return newContext; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private ProcessingContext newProcessingContext(URL[] libs) throws ResourceAlreadyManagedException { //create a new AbstractResourceClassLoader... AbstractResourceClassLoader loader = new AbstractResourceClassLoader( foContext.getClassLoader(),foContext.getClManager(),null); //add it URLs passed on as a parameter for(URL library : libs) { loader.addUrl(library); } return compositeManager.newProcessingContext(loader); }
(Lib) SecurityException 1
              
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
private Class<?> createClass(String origName, String packageName, URL codeSourceURL, InputStream is) { if (is == null) { return null; } byte[] clBuf = null; try { byte[] buf = new byte[4096]; ByteArrayOutputStream bos = new ByteArrayOutputStream(4096); int count; while ((count = is.read(buf)) > 0) { bos.write(buf, 0, count); } clBuf = bos.toByteArray(); } catch (IOException e) { return null; } finally { try { is.close(); } catch (IOException e) { } } if (packageName != null) { Package packageObj = getPackage(packageName); if (packageObj == null) { definePackage(packageName, null, null, null, null, null, null, null); } else { if (packageObj.isSealed()) { throw new SecurityException(); } } } try { CodeSource cs = new CodeSource(codeSourceURL, (Certificate[]) null); Class<?> clazz = defineClass(origName, clBuf, 0, clBuf.length, cs); return clazz; } catch (LinkageError e) { // A duplicate class definition error can occur if // two threads concurrently try to load the same class file - // this kind of error has been detected using binding-jms Class<?> clazz = findLoadedClass(origName); if (clazz != null) { System.out.println("LinkageError :" + origName + " class already resolved "); } return clazz; } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } return null; }
0 0
(Lib) ToolException 1
              
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
private void compile(String userId, String wsdlLocation) throws ToolException{ try { if (!wsdlLocation.startsWith("http://")) { wsdlLocation = "http://" + wsdlLocation; } WebServiceCommandLine cmd = new WebServiceCommandLine("wsdl2java"); String[] args = new String[4]; args[0] = "-u"; args[1] = wsdlLocation; args[2] = "-o"; String outputDirectory = null; Application application = serviceManager.getCurrentApplication(userId); application.setCurrentWorskpacePath(preferences.getWorkspacePath()); if(application.getPackageName() != null && !application.getPackageName().equals("")){ outputDirectory = application .retrieveAbsoluteSources().substring(0, serviceManager.getCurrentApplication(userId) .retrieveAbsoluteSources().indexOf(serviceManager.getCurrentApplication(userId).getPackageName().replace(".", File.separator))); } else{ outputDirectory = application.retrieveAbsoluteSources(); } args[3] = outputDirectory; cmd.parse(args); File wsdlF = cmd.getWsdlFile(); URL wsdlUrl = cmd.getWsdlUrl(); if ((wsdlF == null) && (wsdlUrl == null)) { System.err.println("Please set the WSDL file/URL to parse"); } if ((wsdlF != null) && (wsdlUrl != null)) { System.err .println("Please choose either a WSDL file OR an URL to parse (not both!)."); } String wsdl = (wsdlF == null ? wsdlUrl.toString() : wsdlF .getAbsolutePath()); String[] params = new String[] { "-d", outputDirectory, wsdl }; ToolContext toolContext = new ToolContext(); if(application.getPackageName() != null && !application.getPackageName().equals("")){ toolContext.setPackageName(application.getPackageName()+".impl.generated"); } else{ toolContext.setPackageName("impl.generated"); } new WSDLToJava(params).run(toolContext); } catch(ToolException te){ throw new ToolException(); } catch (Exception e) { e.printStackTrace(); } }
1
              
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ throw new ToolException(); }
1
              
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
private void compile(String userId, String wsdlLocation) throws ToolException{ try { if (!wsdlLocation.startsWith("http://")) { wsdlLocation = "http://" + wsdlLocation; } WebServiceCommandLine cmd = new WebServiceCommandLine("wsdl2java"); String[] args = new String[4]; args[0] = "-u"; args[1] = wsdlLocation; args[2] = "-o"; String outputDirectory = null; Application application = serviceManager.getCurrentApplication(userId); application.setCurrentWorskpacePath(preferences.getWorkspacePath()); if(application.getPackageName() != null && !application.getPackageName().equals("")){ outputDirectory = application .retrieveAbsoluteSources().substring(0, serviceManager.getCurrentApplication(userId) .retrieveAbsoluteSources().indexOf(serviceManager.getCurrentApplication(userId).getPackageName().replace(".", File.separator))); } else{ outputDirectory = application.retrieveAbsoluteSources(); } args[3] = outputDirectory; cmd.parse(args); File wsdlF = cmd.getWsdlFile(); URL wsdlUrl = cmd.getWsdlUrl(); if ((wsdlF == null) && (wsdlUrl == null)) { System.err.println("Please set the WSDL file/URL to parse"); } if ((wsdlF != null) && (wsdlUrl != null)) { System.err .println("Please choose either a WSDL file OR an URL to parse (not both!)."); } String wsdl = (wsdlF == null ? wsdlUrl.toString() : wsdlF .getAbsolutePath()); String[] params = new String[] { "-d", outputDirectory, wsdl }; ToolContext toolContext = new ToolContext(); if(application.getPackageName() != null && !application.getPackageName().equals("")){ toolContext.setPackageName(application.getPackageName()+".impl.generated"); } else{ toolContext.setPackageName("impl.generated"); } new WSDLToJava(params).run(toolContext); } catch(ToolException te){ throw new ToolException(); } catch (Exception e) { e.printStackTrace(); } }
Explicit thrown (throw new...): 215/229
Explicit thrown ratio: 93.9%
Builder thrown ratio: 0%
Variable thrown ratio: 6.1%
Checked Runtime Total
Domain 41 0 41
Lib 21 49 70
Total 62 49

Caught Exceptions Summary

A (Domain) exception is defined in the application. A (Lib) exception is defined in the JDK or in a library. An exception can be caught, and it happens that the catch block contains a throw (e.g. for wrapping a low-level exception). Hovering over a number triggers showing code snippets from the application code.

Type Exception Caught
(directly)
Caught
with Thrown
(Lib) Exception 205
            
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (Exception e) { System.err.println("Unable to generate Java code from WSDL: " + e.getMessage()); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-metamodel-nuxeo/src/main/java/org/ow2/frascati/nuxeo/impl/NuxeoFactoryImpl.java
catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/factory/FraSCAtiNuxeoFactory.java
catch (Exception e) { log.log(Level.INFO, "no boot properties found"); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); return false; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiLauncher.java
catch (Exception e) { log.log(Level.SEVERE, "Instantiation of the FrascatiService has caused an exception", e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoaderManager.java
catch (Exception e) { log.log(Level.WARNING, "The bundle cannot be added to the managed bundles list :" + bundle, e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { // log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (Exception e) { log.log(Level.INFO, e.getMessage()); resourceURL = (URL) vfile.invoke("toURL"); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle installation has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle starting has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle uninstalling has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { Type[] types = instanceClass.getGenericInterfaces(); int n = 0; for (; n < types.length; n++) { try { pt = (ParameterizedType) types[n]; break; } catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); } } }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (Exception e) { log.severe("Error thrown by the Plugin instance : "); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/bundle/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); return false; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch(Exception e) { log.log(Level.WARNING, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch(Exception e) { log.log(Level.INFO, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (Exception e) { log.log(Level.WARNING, "Unable to find the current BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-binding-osgi/src/main/java/org/ow2/frascati/osgi/binding/FrascatiBindingOSGiProcessor.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in frascati-studio/src/main/java/org/easysoa/codegenerator/JavaCodeTransformer.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/jpa/EntityManagerProviderImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/jpa/UserAccessImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying change Admin role: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/compiler/MavenCompilerImpl.java
catch(Exception e){ e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch(Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.warning("The preference "+ preferenceName + "=" + defaultValue +"was not created"); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/MailServiceImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/User.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/User.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(Exception e){ LOG.severe("Error trying to retrive preference for " + preferenceName + "!" ); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(Exception e){ LOG.severe("Error trying to update preference for " + preferenceName + "!" ); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage();
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to save the data corresponding to the current deployment: " + e.getMessage()); e.printStackTrace(); return "Application deployed successfully, but an error has ocurred while trying to save the data corresponding to the current deployment."; }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove data corresponding to the current undeployment: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create a service: "+ e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete a service: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { e.printStackTrace(); return null;
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(Exception e){ return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(Exception e){ return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(Exception e){ e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(Exception e) { throw new ServletException(e); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/TwitterOAuthImpl.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/TwitterOAuthImpl.java
catch(Exception e){ return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/FacebookOAuthImpl.java
catch(Exception e){ return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/TemplateRestImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/GoogleOAuthImpl.java
catch(Exception e){ e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to send a friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to accept friend: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove a friend: "+e.getMessage()); e.printStackTrace(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/lib/TextDiagramGenerator.java
catch (Exception e) { e.printStackTrace(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TraceManagerRootContext.java
catch(Exception exc) { exc.printStackTrace(); return new RootEntry[0]; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/SaveTraceMenuItem.java
catch (Exception ex) { ex.printStackTrace(); return; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TracePanel.java
catch (Exception e1) { e1.printStackTrace(); return; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TracePanel.java
catch (Exception e) { e.printStackTrace(); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaParser.java
catch(Exception e) { Throwable cause = e.getCause(); if(cause instanceof FileNotFoundException) { warning(new ParserException(qname, "'" + documentUri + "' not found", cause)); } else { warning(new ParserException(qname, "'" + documentUri + "' invalid content", cause)); } return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
catch (Exception e) { // Report the exception. log.warning(qname + " can not be validated: " + e.getMessage()); parsingContext.error("SCA composite '" + qname + "' can not be validated: " + e.getMessage()); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
catch(Exception exc) { log.throwing("", "", exc); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/AbstractContextPlugin.java
catch(Exception exc) { exc.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch(Exception e) { // Nothing to do. }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentTable.java
catch(Exception e) { // Binding-controller may be unavailable (e.g. Bootstrap component). // System.err.println("Client interface Error : " + e.getMessage()); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(Exception exc) { exc.printStackTrace(); String msg = exc.toString(); JOptionPane.showMessageDialog(null, msg); logger.warning(msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
catch(Exception e) { //System.err.println("Error : " + e.getMessage()); return MenuItem.NOT_VISIBLE_STATUS; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; JOptionPane.showMessageDialog(null,"Intent '" + intentName + "' cannot be added to " + errorMsg); LOG.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/LoadMenuItem.java
catch(Exception e){ //do nothing }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/UnwireAction.java
catch(Exception e) { //System.err.println("GetStatus Error : " + e.getMessage()); return MenuItem.NOT_VISIBLE_STATUS; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
catch(Exception e) { e.printStackTrace(); throw new Error(e); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch(Exception exc) { // This should not happen! severe(new ProcessorException(scriptImplementation, "Internal Fractal error!", exc)); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch(Exception exc) { severe(new ProcessorException("Error when compiling WSDL", exc)); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (Exception exc) { log.warning("Impossible to compile WSDL '" + wsdlUri + "'."); throw exc; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap class", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot start the OW2 FraSCAti Assembly Factory bootstrap composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot load the OW2 FraSCAti composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch(Exception exc) { severe(new FrascatiException("Cannot add the OW2 FraSCAti composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Impossible to stop the SCA composite '" + composite + "'!", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaWireProcessor.java
catch (Exception e) { severe(new ProcessorException(wire, "Cannot etablish " + toString(wire), e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeServiceProcessor.java
catch (Exception e) { severe(new ProcessorException(service, "Can't promote " + toString(service), e)); return ; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(Exception exc) { severe(new ProcessorException(implementation, "Can not obtain the SCA service '" + interfaceName + "'", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(Exception exc) { severe(new ProcessorException(implementation, "Can not set the SCA reference '" + interfaceName + "'", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (Exception e) { severe(new ProcessorException(element, "Intent '" + require + "' cannot be added", e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentReferenceProcessor.java
catch (Exception e) { severe(new ProcessorException(componentReference, "Can't promote " + toString(componentReference), e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Exception exception) { log.warning("Thrown " + exception.toString()); sb.append(" ..."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(Exception e) { // Should never happen but we never know! throw new ProcessorException(e); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch(Exception exc) { severe(new ManagerException("Error when loading the composite " + deployable.getComposite(), exc)); return new Component[0]; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (Exception e) { severe(new ManagerException("Could not start the SCA composite '" + qname + "'", e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (Exception exc) { log.log(Level.SEVERE, "Impossible to close the SCA composite '" + compositeName + "'!", exc); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch(Exception exc) { throw new RuntimeException(exc); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (Exception e) { e.printStackTrace(); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-metamodel-frascati-ext/src/org/ow2/frascati/model/impl/ModelFactoryImpl.java
catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocity.java
catch(Exception e) { e.printStackTrace(System.err); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (Exception exc) { exc.printStackTrace(System.err); // Requested resource not found. super.service(request, response); return; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
catch (Exception e) { throw new ProcessorException(binding, e); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (Exception e) { showWarning("Incompatible FScript implementation."); showWarning("Axis name completion disabled."); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; log.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, e.getMessage(), e); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch (Exception e) { severe(new FactoryException("Problem when initializing Juliac", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException("Problem when loading Juliac option levels", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException(e)); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { warning(new FactoryException("Errors when compiling Java source", e)); return null; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException(e)); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch (Exception e) { severe(new FactoryException("Cannot generate component code with Juliac", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { warning(new FactoryException("Errors when compiling generated Java membrane source", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException("Cannot close Juliac", e)); return; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Error while invoking " + method.getName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception exception) { if (ownerNameController != null) { log.info("no binding found for fractal component : " + ownerNameController.getFcName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); }
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
catch (Exception e) { throw new IOException("Can not parse " + adl, e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
catch(/*Core*/Exception ce) { return new Component[0]; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
catch(Exception e) { sb.append(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
catch(Exception e) { sb.append(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception exc) { severe(new ProcessorException(bpelImplementation, "Can not read BPEL process " + bpelImplementationProcess, exc)); return; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception exc) { error(processingContext, bpelImplementation, "Can't compile WSDL '", wsdlUri, "'"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception e) { warning(new ProcessorException("Error during deployment of the BPEL process '" + bpelImplementation.getProcess() + "'", e)); return; }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (Exception e) { getLog().warn("Could not load logging configuration file: " + loggingConfFile); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (Exception e) { log.log(Level.SEVERE, "Problem with the dependency management.", e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (Exception e) { log.log(Level.SEVERE, "Problem while zipping file!", e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error("Problem with the dependency management."); getLog().error(e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error( "Dependency " + artifact.getGroupId() + ":" + artifact.getArtifactId() + " cannot be added"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error(_dependency.getGroupId() + "." + _dependency.getArtifactId() + " cannot be found"); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); }
36
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); }
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(Exception e) { throw new ServletException(e); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
catch(Exception e) { e.printStackTrace(); throw new Error(e); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (Exception exc) { log.warning("Impossible to compile WSDL '" + wsdlUri + "'."); throw exc; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(Exception e) { // Should never happen but we never know! throw new ProcessorException(e); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch(Exception exc) { throw new RuntimeException(exc); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
catch (Exception e) { throw new ProcessorException(binding, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Error while invoking " + method.getName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); }
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
catch (Exception e) { throw new IOException("Can not parse " + adl, e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); }
(Lib) NoSuchInterfaceException 136
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' does not exist in " + componentName); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiRegistryImpl.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); }
// in intents/bench/src/main/java/org/ow2/frascati/intent/bench/BenchStatistics.java
catch (NoSuchInterfaceException e) { name = " ## WARNING # can't get component name ##"; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceEventImpl.java
catch(NoSuchInterfaceException nsie) { componentName = "No NameController"; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceEventImpl.java
catch(NoSuchInterfaceException nsie) { return false; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(NoSuchInterfaceException nsie) { // Return as component is not a composite. return; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (NoSuchInterfaceException ignored) { }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
catch(NoSuchInterfaceException nsie) { // Should not happen! severe(new ProcessorException(httpBinding, "Internal Fractal error!", nsie)); return; }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/gui/AbstractSelectionPanel.java
catch(NoSuchInterfaceException nsie) { // nothing to do when the owner component has no LifeCycleController. }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ComponentContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ComponentContext.java
catch (NoSuchInterfaceException e) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ComponentContext.java
catch (NoSuchInterfaceException e) { // Nothing to do }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e) { return Collections.emptyList(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e2) { // Should not happen }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ServiceContext.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in ScaInterfaceContext.getRmiBindingEntriesFromComponentController() }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ServiceContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentPropertyTable.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException ex) { logger.log(Level.WARNING, "Cannot find LifeCycleController for this AttributeController owner", ex); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e) { // RMI specific case : AC is in a sub-component try { Component[] children = FcExplorer.getContentController(this.owner).getFcSubComponents(); for (Component child : children) { String name = FcExplorer.getName(child); if ( name.equals("org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent") || name.equals("rmi-stub-primitive") ) { ac = Fractal.getAttributeController(child); } } } catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e3) { // Nothing to do }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot retrieve the interface name!"); LOG.log(Level.SEVERE, "Cannot retrieve the interface name!", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (NoSuchInterfaceException e) { return MenuItem.DISABLED_STATUS; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (NoSuchInterfaceException nsie) { String msg = "Cannot get content controller on " + treeView.getParentEntry().getName() + "!"; LOG.log(Level.SEVERE, msg, nsie); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (NoSuchInterfaceException nsie) { LOG.log(Level.SEVERE, "Cannot find the Name Controller!", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (NoSuchInterfaceException e) { LOG.severe("Error while getting component life cycle controller"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (NoSuchInterfaceException nsie) { LOG.severe("Error while getting component name controller"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/UnwireAction.java
catch (NoSuchInterfaceException e1) { e1.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/icon/ComponentIconProvider.java
catch (NoSuchInterfaceException e) { // Nothing to do. }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/icon/ComponentIconProvider.java
catch (NoSuchInterfaceException e) { return lccIcons[0]; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
catch (NoSuchInterfaceException e) { return null; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
catch (NoSuchInterfaceException e) { return "unknown"; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
catch (NoSuchInterfaceException e) { return new Component[0]; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
catch (NoSuchInterfaceException e) { return new Component[0]; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch(NoSuchInterfaceException nsie) { severe(new FactoryException("Cannot get the GenericFactory interface of the " + membraneDescription + " Fractal bootstrap component", nsie)); return; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch(NoSuchInterfaceException nsie) { severe(new FactoryException("Cannot get the TypeFactory interface of the " + membraneDescription + " bootstrap component", nsie)); return; }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
catch(NoSuchInterfaceException nsie) { // Must never happen!!! throw new Error("Internal FraSCAti error!", nsie); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch(NoSuchInterfaceException e) { severe(new FrascatiException("Cannot retrieve the '" + serviceName + "' service of an SCA composite!", e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(element, "Cannot get to the FraSCAti intent controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (NoSuchInterfaceException nsie) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
catch(NoSuchInterfaceException nsie) { error(processingContext, scaBinding, "Service '", serviceName, "' not found"); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractPropertyProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Can't get the SCA property controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch(NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller of the enclosing composite", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (NoSuchInterfaceException e) { warning(new FrascatiException("Unable to get the service '" + serviceName + "'", e)); return null; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (NoSuchInterfaceException ignored) { }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (NoSuchInterfaceException e) { throw new TinfiRuntimeException(e);
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal binding controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal content controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal internal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal lifecycle controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal name controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
catch (NoSuchInterfaceException nsie) { continue; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/AbstractCommand.java
catch (NoSuchInterfaceException e) { showWarning("The component does not have a 'lifecycle-controller'."); showWarning("Assuming it is ready to use."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/FraSCAtiFScript.java
catch (NoSuchInterfaceException e) { // should not happen e.printStackTrace(); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyNode.java
catch (NoSuchInterfaceException nsie) { // Ignore. }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaReferenceNode.java
catch (NoSuchInterfaceException nsie) { // Ignore. }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException e) { // No intent controller => no intents on this component return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException e) { log.warning("One interface cannot be retrieved on " + comp + "!"); e.printStackTrace(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot find the Name Controller!", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot access to intent controller", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot retrieve the interface name!", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e1) { e1.printStackTrace(); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { logger.fine( e.toString() ); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component => it's a binding component bindingNode = new ScaBindingNode((FraSCAtiModel) this.model, clientItfOwner); result.add( bindingNode ); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { // components may not have a super controller logger.fine( e.toString() ); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the Binding Factory!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaChildAxis.java
catch (NoSuchInterfaceException e) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaChildAxis.java
catch (NoSuchInterfaceException e) { // Not a composite, no children. return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e1) { logger.warning(comp + "should have a Name Controller!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e1) { logger.warning(parent + "should have a Name Controller!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e) { // Not a composite, no children. return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaServiceNode.java
catch (NoSuchInterfaceException nsie) { // Ignore. }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the ClassLoder Manager!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Error while getting component life cycle controller", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the Binding Factory!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Error while getting component name controller", nsie); return; }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new MBeanException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { // current component is not container }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (NoSuchInterfaceException e) { return null; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "error while creating MBean for " + comp, e); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { LOG.warning("Cannot find a content controller on " + fullComponentId); return children; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { /* * The sca-component-controller cannot be found! This component * is not a SCA component => Nothing to do! */ if (childNameController != null) { LOG.info("sca-component-controller cannot be found for component " + childNameController.getFcName()+ ", this component must not be a SCA component"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { log.warning("Cannot find a name controller on " + comp); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { log.warning("Cannot find a lifecycle controller on " + comp); compResource.setStatus(ComponentStatus.STARTED); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { /* * The sca-component-controller cannot be found! This * component is not a SCA component => Nothing to do! */ if (childNameController != null) { log.info("sca-component-controller cannot be found for component " + childNameController.getFcName()+ ", this component must not be a SCA component"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // No sub-components if (componentNameController != null) { log.info("no sub-component found for component " + componentNameController.getFcName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // No properties if(compNameController!=null) { log.info("component "+compNameController.getFcName()+" has no properties"); } }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (NoSuchInterfaceException ignored) { }
23
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' does not exist in " + componentName); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
catch(NoSuchInterfaceException nsie) { // Must never happen!!! throw new Error("Internal FraSCAti error!", nsie); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (NoSuchInterfaceException e) { throw new TinfiRuntimeException(e);
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new MBeanException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); }
(Lib) IOException 73
            
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (IOException e) { log.log(Level.INFO, "Exception thrown while trying to create Class " + className + " with URL " + classFileNameURL); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (IOException e) { return null; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (IOException e) { }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (java.io.IOException ioe) { p = null; urlConnection = null; }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (IOException e) { // log.log(Level.INFO,e.getMessage()); return false; }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { return false; }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { jarFile = new JarFile(resource); } catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); } } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IOException e) { log.warning("Unable to cache embedded resource :" + embeddedResourceName); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.WARNING, "Error occured while trying to open : " + jarFileUrl); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { return false;
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { throw new IOException("Cannot read the contribution!"); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (IOException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (IOException e) {throw new ScriptException(e);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (IOException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jaxb/JAXB.java
catch (IOException e) { // e.printStackTrace(); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/AbstractCompositeParser.java
catch(IOException ioe) { severe(new ParserException(qname, qname.toString(), ioe)); return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
catch (IOException ioe) { severe(new ParserException(qname, "Error when writting debug composite file", ioe)); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (IOException ioe) { ioe.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/ExplorerGUI.java
catch(IOException ioe) { // Must never happen!!! log.warning("FraSCAti Explorer - Impossible to get " + EXPLORER_STD_CFG_FILES_NAME + " resources!"); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch (IOException ioe) { severe(new ProcessorException(scriptImplementation, "Script '" + script + "' not found", ioe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch(IOException ioe) { warning(new ManagerException(url.toString(), ioe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (IOException e) { severe(new ManagerException(e)); return new Component[0]; }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
catch(IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (IOException ioe) { throw new Error(ioe);
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (IOException e) { showError("Unable to open a connection on this URL (" + url + "): " + e.getMessage()); return null; }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
catch (IOException exc) { severe(new ProcessorException("Error when compiling descriptor", exc)); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(IOException ioe) { severe(new FactoryException("Problem when creating a FraSCAti temp directory", ioe)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(IOException ioe) { severe(new FactoryException("Cannot add Java sources", ioe)); return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e1) { log.severe("Could not create contribution identifier"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e) { log.severe("Could not create contribution descriptor"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e) { log.log(Level.SEVERE, "Could not create contibution package " + packagename, e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (IOException e) { getLog().error("can't read pom file", e); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (IOException e) { throw new FrascatiException(e); }
13
            
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { throw new IOException("Cannot read the contribution!"); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (IOException e) {throw new ScriptException(e);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (IOException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
catch(IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (IOException ioe) { throw new Error(ioe);
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (IOException e) { throw new FrascatiException(e); }
(Lib) ClassNotFoundException 42
            
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the parent classloader"); }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the classloader classpath"); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoaderManager.java
catch (ClassNotFoundException e) { // do nothing }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassNotFoundException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.warning("No Plugin class found for AbstractResource extension"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ClassNotFoundException e) { log.log(Level.WARNING,e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ClassNotFoundException e) { log.log(Level.INFO, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiRegistryImpl.java
catch (ClassNotFoundException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] getParent().loadClass("+ name+") has thrown a ClassNotFoundException"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] resourceLoader.findClass("+ name+") has thrown a ClassNotFoundException"); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/CallbackInterfaceResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/CallbackInterfaceResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver return; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/AuthenticationResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver return composite; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaInterfaceResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaInterfaceResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver return; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaResolver.java
catch (ClassNotFoundException e) { parsingContext.error("<sca:implementation.java class='" + javaImpl.getClass_() + "'/> class '" + javaImpl.getClass_() + "' not found"); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaResolver.java
catch (ClassNotFoundException e) { parsingContext.error("<sca:interface.java interface='" + interfaceJavaInterface + "'/> interface '" + interfaceJavaInterface + "' not found"); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch (ClassNotFoundException cnfe) { String msg = propName + " - Java type known but not dealt by OW2 FraSCAti: '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.severe(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/LoadMenuItem.java
catch(ClassNotFoundException e){ //do nothing }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch(ClassNotFoundException cnfe) { log.fine("No " + packageName + ".package-info.class found."); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (ClassNotFoundException cnfe) { // Should never happen but we never know. severe(new ProcessorException(property, "JAXB package info for " + toString(property) + " not found", cnfe)); return; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
catch(ClassNotFoundException cnfe) { throw new Error(cnfe); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch (ClassNotFoundException cnfe) { // If the Java interface is not found then this requires to compile WSDL to Java. }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch(ClassNotFoundException cnfe) { // ObjectFactory class not found then compile the WSDL file. }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(ClassNotFoundException cnfe) { severe(new ProcessorException(implementation, "Java interface '" + interfaceSignature + "' not found", cnfe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaImplementation, "class '", javaImplementation.getClass_(), "' not found"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(ClassNotFoundException cnfe) { error(processingContext, property, "Java class '", propertyValue, "' not found"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java interface '", javaInterface.getInterface(), "' not found"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java callback interface '", javaInterface.getCallbackInterface(), "' not found"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/FrascatiClassLoader.java
catch(ClassNotFoundException cnfe) { // ignore and pass to other parent class loaders. }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/FrascatiClassLoader.java
catch(ClassNotFoundException cnfe) { // ignore and pass to the next parent class loader. }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
catch (ClassNotFoundException cnfe) { // If the Java interface is not found then this requires to compile Native to Java. }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (ClassNotFoundException e) { throw new ReflectionException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); }
4
            
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
catch(ClassNotFoundException cnfe) { throw new Error(cnfe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (ClassNotFoundException e) { throw new ReflectionException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); }
(Lib) MalformedURLException 31
            
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (MalformedURLException e) { System.err.println("Error while getting URL for : " + urls[i]); e.printStackTrace(); }
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (MalformedURLException e) { System.err.println("Malformed URL : " + url); System.err.println("Exiting..."); System.exit(-1); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (MalformedURLException e) { log.info("Unable to initialize log4j properly"); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (MalformedURLException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (MalformedURLException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (MalformedURLException e) { log.log(Level.WARNING, e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (MalformedURLException e) { // TODO Auto-generated catch block log.log(Level.CONFIG, e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (MalformedURLException e) { logg.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/VirtualHierarchicList.java
catch (MalformedURLException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/file/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (MalformedURLException e) { log.log(Level.WARNING, e.getMessage(), e); }
// in osgi/frascati-processor/src/main/java/org/ow2/frascati/osgi/processor/OSGiResourceProcessor.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(MalformedURLException exc) { String msg = propName + " - Malformed URL '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(MalformedURLException exc) { error(processingContext, property, "Malformed URL '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (MalformedURLException e) { severe(new ManagerException(e)); return new Component[0]; }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException mue) { throw new RuntimeException(mue); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException e) { e.printStackTrace(); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
catch (MalformedURLException e) { showError("Invalid URL (" + name + "): " + e.getMessage()); return; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (MalformedURLException e) { showError("Invalid URL (" + url + "): " + e.getMessage()); return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (MalformedURLException e) { getLog().warn("Malformed URL for artifact " + artifact.getId()); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException e) { getLog().error("Could not add library path : " + lib); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + srcs.get(i)); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-test-compiler/src/main/java/org/ow2/frascati/mojo/FrascatiCompilerTestMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); }
4
            
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException mue) { throw new RuntimeException(mue); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
(Lib) ClassCastException 24
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch (ClassCastException e) { log.log(Level.WARNING,e.getMessage(),e); return intentJoinPoint.proceed(); }
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/FrascatiServiceTracker.java
catch (ClassCastException e) { log.log(Level.WARNING, reference.getBundle().getBundleContext() .getService(reference) + " cannot be cast into " + FraSCAtiOSGiService.class.getCanonicalName()); return null; }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch(ClassCastException e) { logg.log(Level.WARNING, e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { Type[] types = instanceClass.getGenericInterfaces(); int n = 0; for (; n < types.length; n++) { try { pt = (ParameterizedType) types[n]; break; } catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); } } }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { log.log(Level.CONFIG, e.getMessage()); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassCastException e) { log.warning("Defined Plugin class is not an AbstractPlugin inherited one"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentTable.java
catch(ClassCastException cce) { // This exception is due to the fact that this 'itf' reference is bound to an SCA binding. // Do nothing. }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (ClassCastException e) { itf = (Interface) selectedObject; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (ClassCastException cce) { try { itf = ((ClientInterfaceWrapper) parent).getItf(); } catch (ClassCastException cce2) { cce2.printStackTrace(); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (ClassCastException cce2) { cce2.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "An intent must be an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { // SCA services & references try { itf = (Interface) dropTreeView.getSelectedObject(); owner = itf.getFcItfOwner(); } catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (ClassCastException cce) { // Should not happen JOptionPane.showMessageDialog(null, "Can only add an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (ClassCastException cce) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service of interface " + IntentHandler.class.getCanonicalName(), cce)); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException cce) { log.log(Level.WARNING, "An intent can only be applied on components, services and references!"); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (ClassCastException e) { logger.info("The scabinding axis is only available for Interface nodes!"); return Collections.emptySet(); }
3
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); }
(Lib) IllegalLifeCycleException 24
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not add intent handler", ilce)); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not remove intent handler", ilce)); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (IllegalLifeCycleException ex) { logger.log(Level.WARNING, "LifeCycle Exception while trying to restart this AttributeController owner", ex); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (IllegalLifeCycleException ilce) { JOptionPane.showMessageDialog(null, "Illegal life cycle Exception!"); LOG.log(Level.SEVERE, "Illegal life cycle Exception!", ilce); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (IllegalLifeCycleException ilce) { String msg = "Cannot remove a component if its container is started!"; LOG.log(Level.SEVERE, msg, ilce); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (IllegalLifeCycleException e) { LOG.severe("Cannot stop the component!"); e.printStackTrace(); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (IllegalLifeCycleException e) { LOG.severe("Cannot start the component!"); e.printStackTrace(); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalLifeCycleException e) { throw new TinfiRuntimeException(e); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not start a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not stop a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (IllegalLifeCycleException ilce) { log.log(Level.SEVERE, "Illegal life cycle Exception!", ilce); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (IllegalLifeCycleException ilce) { logger.log(Level.SEVERE, "Cannot stop the component!", ilce); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (IllegalLifeCycleException ilce) { logger.log(Level.SEVERE,"Cannot start the component!", ilce); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
catch (IllegalLifeCycleException e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "error while creating MBean for " + comp, e); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); }
5
            
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalLifeCycleException e) { throw new TinfiRuntimeException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); }
(Lib) IllegalAccessException 19
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalAccessException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalAccessException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.severe("Unable to instantiate the Plugin class :"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (IllegalAccessException e) { e.printStackTrace(); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (IllegalAccessException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (IllegalAccessException iae) { severe(new ProcessorException(fractalImplementation, "Can't access class " + definition, iae)); return; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalAccessException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
3
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalAccessException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
(Domain) ManagerException 17
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(ManagerException me) { throw new WeaverException(me); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch(ManagerException me) { warning(new ProcessorException("Error while getting intent '" + require + "'", me)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
catch(ManagerException me) { error(processingContext, scaBinding, "Composite '", compositeName, "' not found"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { LOG.warning("Cannot retrieve the '" + parentName + "' component"); return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (ManagerException e) { e.printStackTrace(); }
// in maven-plugins/frascati-test-compiler/src/main/java/org/ow2/frascati/mojo/FrascatiCompilerTestMojo.java
catch (ManagerException e) { e.printStackTrace(); }
10
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(ManagerException me) { throw new WeaverException(me); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); }
(Domain) FactoryException 16
            
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); }
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while generating " + toString(implementation), te)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while creating " + toString(implementation), te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
catch(FactoryException fe) { severe(new ProcessorException(implementation, "generation failed", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
catch(FactoryException fe) { severe(new ProcessorException(implementation, "instantiation failed", fe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite container", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite component", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to create the composite container", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
catch (FactoryException te) { severe(new ProcessorException(baseReference, "Could not " + logMessage, te)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
catch (FactoryException te) { severe(new ProcessorException(baseService, "Could not " + logMessage, te)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
catch(FactoryException te) { severe(new ProcessorException(element, "component type creation for " + toString(element) + " failed", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { severe(new ManagerException( "Cannot open a membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); }
3
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); }
(Lib) IllegalArgumentException 15
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (IllegalArgumentException e) { e.printStackTrace(); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (IllegalArgumentException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch(IllegalArgumentException e) { cf = TcpConnectionFactory.create("localhost", TCP_CONNECTION_FACTORY_PORT); }
0
(Lib) InstantiationException 14
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InstantiationException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.severe("Unable to instantiate the Plugin class :"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/osgi-in-frascati/deployer/src/main/java/org/ow2/frascati/osgi/deployer/Deployer.java
catch (InstantiationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Cannot " + msg, ie)); return;
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal interface type", ie)); return null; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal component type", ie)); return null; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building instance for class " + definition, ie)); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (org.objectweb.fractal.api.factory.InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building component instance: " + definition, ie)); return; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
catch(InstantiationException ie) { throw new Error(ie); }
2
            
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
catch(InstantiationException ie) { throw new Error(ie); }
(Lib) SecurityException 11
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (SecurityException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (SecurityException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (SecurityException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (SecurityException e) { e.printStackTrace(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
catch (SecurityException e) { log.log(Level.WARNING,e.getMessage(),e);
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (SecurityException e) { warning(new FrascatiException("Unable to get the method '" + methodName + "'", e)); return null; }
0
(Lib) BindingFactoryException 10
            
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (BindingFactoryException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (BindingFactoryException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (BindingFactoryException bfe) { LOG.severe("Error while binding " + (isScaReference ? "reference" : "service") + ": " + itfName); bfe.printStackTrace(); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveBindingMenuItem.java
catch (BindingFactoryException bfe) { LOG.log(Level.SEVERE, "Cannot unbind/unexport this service/reference!", bfe); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
catch (BindingFactoryException bfe) { severe(new ProcessorException(binding, "Error while binding reference: " + referenceName, bfe)); return; }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
catch (BindingFactoryException bfe) { severe(new ProcessorException("Error while binding service: " + serviceName, bfe)); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (BindingFactoryException bfe) { logger.log(Level.SEVERE, "Cannot unbind/unexport this service/reference!", bfe); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (BindingFactoryException bfe) { logger.log(Level.SEVERE, "Error while binding " + (isScaReference ? "reference" : "service") + ": " + itfName, bfe); return; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); }
2
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); }
(Domain) FrascatiException 10
            
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (FrascatiException e) { e.printStackTrace(); System.err.println("Cannot instantiate the FraSCAti factory!"); System.err.println("Exiting ..."); System.exit(-1); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (FrascatiException fe) { severe(compositeName, fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (FrascatiException fe) { severe(compositeName, fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
catch (FrascatiException e) { log.severe("Cannot launch SCA composite '" + composite + "'!"); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
catch (FrascatiException e) { log.severe("Cannot instanciate FraSCAti!"); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/jsr223/FraSCAtiScriptEngineFactory.java
catch (FrascatiException e) { e.printStackTrace(); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ParentApplicationContext.java
catch(FrascatiException fe) { }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(FrascatiException exc) { // exc.printStackTrace(); error(processingContext, bpelImplementation, "Can't read BPEL process ", bpelImplementationProcess.toString()); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); }
1
            
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); }
(Lib) BadLocationException 9
            
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e);
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e2) { e2.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e) { e.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
0
(Lib) BundleException 8
            
// in osgi/frascati-in-osgi/osgi/knopflerfish/src/main/java/org/ow2/frascati/osgi/frameworks/knopflerfish/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (BundleException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/felix/src/main/java/org/ow2/frascati/osgi/frameworks/felix/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e) { try { // if the OSGi implementation is JBoss Bundle bundle = bundleContext.installBundle(jarPath); return bundle; } catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); } e.printStackTrace(); logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); }
// in osgi/osgi-in-frascati/deployer/src/main/java/org/ow2/frascati/osgi/deployer/Deployer.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
0
(Lib) NoSuchMethodException 8
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (NoSuchMethodException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (NoSuchMethodException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (NoSuchMethodException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (NoSuchMethodException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (NoSuchMethodException e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
catch (NoSuchMethodException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (NoSuchMethodException e) { warning(new FrascatiException("The service '" + serviceName + "' does not provide the method " + methodName + '(' + paramList.toString() + ')', e)); return null; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchMethodException e) { throw new ReflectionException(e); }
1
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchMethodException e) { throw new ReflectionException(e); }
(Lib) InvocationTargetException 7
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (InvocationTargetException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InvocationTargetException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InvocationTargetException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (InvocationTargetException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (InvocationTargetException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); }
3
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (InvocationTargetException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); }
(Lib) NullPointerException 7
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (NullPointerException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch(NullPointerException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (NullPointerException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (NullPointerException e) { log.warning("NullPointerException thrown" + " trying to call initialize method on " + initializable); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (NullPointerException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (NullPointerException e) { logg.log(Level.WARNING,e.getMessage(),e); }
0
(Lib) FileNotFoundException 6
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (FileNotFoundException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (FileNotFoundException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in frascati-studio/src/main/java/org/easysoa/codegenerator/JavaCodeGenerator.java
catch (FileNotFoundException e) { e.printStackTrace(); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (FileNotFoundException e) { throw new ScriptException(e); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (FileNotFoundException e) { showError("Unable to open file " + e.getMessage()); return null; }
1
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (FileNotFoundException e) { throw new ScriptException(e); }
(Lib) JAXBException 6
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jaxb/JAXB.java
catch (javax.xml.bind.JAXBException jaxbe) { System.out.println( "WARNING : No JAXBContext created for '" + factoryPackageName + "' package"); }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB context failed for " + toString(property), je)); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB unmarshaller failed for " + toString(property), je)); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { error(processingContext, property, "XML unmarshalling error: " + je.getMessage()); return; }
2
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
(Lib) UnsupportedEncodingException 6
            
// in frascati-studio/src/main/java/org/easysoa/utils/EMFModelUtilsImpl.java
catch (UnsupportedEncodingException e) { e.printStackTrace();
// in frascati-studio/src/main/java/org/easysoa/utils/EMFModelUtilsImpl.java
catch (UnsupportedEncodingException e) { e.printStackTrace(); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
0
(Domain) ParserException 5
            
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ConstrainingTypeResolver.java
catch(ParserException parserException) { if(parserException.getCause() instanceof IOException) { parsingContext.error("constraining type '" + qname.toString() + "' not found"); } else { parsingContext.error("constraining type '" + qname.toString() + "' invalid content"); } return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/IncludeResolver.java
catch (ParserException e) { if(e.getCause() instanceof IOException) { parsingContext.error("<sca:include name='" + include.getName() + "'/> composite '" + include.getName() + "' not found"); } else { parsingContext.error("<sca:include name='" + include.getName() + "'/> invalid content"); } continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ImplementationCompositeResolver.java
catch(ParserException pe) { parsingContext.error("<sca:implementation name='" + scaImplementation.getName() + "'> not loaded"); continue; // pass to the next component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ParserException pe) { severe(new ManagerException("Error when loading the contribution file " + contribution + " with the SCA XML Processor", pe)); return new Component[0]; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ParserException pe) { warning(new ManagerException("Error when parsing the composite file '" + qname + "'", pe)); return null; }
0
(Lib) InterruptedException 4
            
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (InterruptedException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectThread.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); break; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); }
0
(Lib) InvalidSyntaxException 4
            
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (InvalidSyntaxException e) { log.info("filter " + filter + " is not valid"); filter = null; }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/examples/from-frascati-to-osgi/client/src/main/java/org/ow2/frascati/osgi/ffto/client/binding/Activator.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(), e); }
0
(Lib) NoResultException 4
            
// in frascati-studio/src/main/java/org/easysoa/model/Town.java
catch(NoResultException nre){ return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(NoResultException nre){ LOG.severe("No preference found for " + preferenceName + "!" ); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(NoResultException eNoResult){ Logger.getLogger("EasySOALogger").info("No result found for " + server + ". A new register will be created for this server."); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(NoResultException nre){ return false; }
0
(Lib) NumberFormatException 4
            
// in osgi/frascati-in-osgi/osgi/concierge_r4/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
catch(NumberFormatException e){ break; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(NumberFormatException nfe) { String msg = propName + " - Number format error in '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; }
0
(Domain) ProcessorException 4
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when checking the composite instance '" + qname + "'", pe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when generating the composite instance '" + qname + "'", pe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when completing the composite instance '" + qname + "'", pe)); return null; }
1
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); }
(Domain) ResourceAlreadyManagedException 4
            
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ResourceAlreadyManagedException e) { log.log(Level.INFO, e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage()); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ResourceAlreadyManagedException e) { e.printStackTrace(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage(),e); }
0
(Lib) ScriptException 4
            
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException ise) { displayError(ise); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException e) { displayError(e); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException e2) { displayError(e2); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch(ScriptException se) { severe(new ProcessorException(scriptImplementation, "Error when evaluating '" + script + "'", se)); return; }
0
(Lib) Throwable 4
            
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch(Throwable throwable) { dispatcher.pushCheckError(eObject,throwable); throw throwable; }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Throwable e) { log.info("URL.setURLStreamHandlerFactory Error :" + e.getMessage()); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Throwable exc) { log.log(Level.SEVERE, "JmsSkeletonContent.onMessage() -> " + exc.getMessage(), exc); }
2
            
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch(Throwable throwable) { dispatcher.pushCheckError(eObject,throwable); throw throwable; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; }
(Lib) XPathException 4
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e1) {throw new ScriptException(e1);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); }
4
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e1) {throw new ScriptException(e1);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); }
(Lib) Base64Exception 3
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); }
3
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); }
(Lib) IllegalContentException 3
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (IllegalContentException ice) { String msg = "Illegal content exception!"; LOG.log(Level.SEVERE, msg, ice); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ice); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ice); severe(exc); }
0
(Lib) InvalidPropertiesFormatException 3
            
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (InvalidPropertiesFormatException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); }
0
(Lib) NoSuchFieldException 3
            
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (java.lang.NoSuchFieldException e) { log.log(Level.SEVERE,"The field relatives to the component cannot be retrieve"); return;
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (NoSuchFieldException e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (NoSuchFieldException e) { e.printStackTrace(); }
0
(Lib) PatternSyntaxException 3
            
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (PatternSyntaxException e) { log.log(Level.INFO, "The syntax of the regular expression is no valid" + e.getMessage()); return; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (PatternSyntaxException e) { log.log(Level.INFO, "The syntax of the regular expression is no valid" + e.getMessage()); return; }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
catch (PatternSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
0
(Lib) URISyntaxException 3
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(URISyntaxException exc) { String msg = propName + " - Syntax error in URI '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; }
0
(Lib) WSDLException 3
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (WSDLException e) { e.printStackTrace(); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch(WSDLException we) { processingContext.error(toString(wsdlPortType) + " " + wsdlUri + ": " + we.getMessage()); return null; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (WSDLException we) { severe(new FrascatiException("Could not initialize WSDLReader", we));
0
(Lib) IllegalBindingException 2
            
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalBindingException e) { throw new TinfiRuntimeException(e); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalBindingException ibe) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ibe); severe(exc); }
1
            
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalBindingException e) { throw new TinfiRuntimeException(e); }
(Lib) IndexOutOfBoundsException 2
            
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/PromoteResolver.java
catch(IndexOutOfBoundsException e) { parsingContext.error(messageError(service, "has no service to promote")); continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/PromoteResolver.java
catch(IndexOutOfBoundsException e) { parsingContext.error(messageError(reference, "has no reference to promote")); continue; // the for loop. }
0
(Lib) JDOMException 2
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JDOMException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); }
2
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JDOMException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); }
(Lib) JMSException 2
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (JMSException exc) { log.severe("JmsSkeletonContent.stopFc() -> " + exc.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (JMSException exc) { log.severe("stopFc -> " + exc.getMessage()); }
0
(Lib) NameNotFoundException 2
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); }
1
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
(Lib) NoSuchComponentException 2
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchComponentException e) { logger.severe("Cannot found rmi-stub-primitive component in the " + boundInterfaceOwnerName + "composite!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchComponentException e) { logger.severe("Cannot found org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent component in the " + childName + "composite!"); }
0
(Lib) ParseException 2
            
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (ParseException e) { e.printStackTrace(); }
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (ParseException e) { e.printStackTrace(); }
0
(Lib) RmiRegistryCreationException 2
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); LOG.log(Level.SEVERE, msg); //, rmie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); logger.log(Level.SEVERE, msg); //, rmie); return; }
0
(Lib) ToolException 2
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ te.printStackTrace(); LOG.info("wsdl not supported by cxf"); return "wsdl not supported by cxf";
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ throw new ToolException(); }
1
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ throw new ToolException(); }
(Lib) ZipException 2
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (java.util.zip.ZipException z) { logg.warning(z.getMessage()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); }
1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); }
(Lib) ADLException 1
            
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; }
0
(Lib) BPELException 1
            
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelEngine.java
catch(BPELException bexc) { throw new FrascatiException("EasyBPEL can not read the BPEL process '" + processUri + "'", bexc);
1
            
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelEngine.java
catch(BPELException bexc) { throw new FrascatiException("EasyBPEL can not read the BPEL process '" + processUri + "'", bexc);
(Domain) BadParameterTypeException 1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch(BadParameterTypeException bpte) { throw new MyWebApplicationException(bpte); }
1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch(BadParameterTypeException bpte) { throw new MyWebApplicationException(bpte); }
(Lib) ChannelException 1
            
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); }
1
            
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); }
(Lib) ContentInstantiationException 1
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (ContentInstantiationException e) { e.printStackTrace(); }
0
(Lib) Error 1
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Error error) { log.warning("Thrown " + error.toString()); sb.append(" ..."); }
0
(Lib) FileUploadException 1
            
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(FileUploadException fue) { throw new ServletException(fue);
1
            
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(FileUploadException fue) { throw new ServletException(fue);
(Domain) FraSCAtiOSGiNotFoundCompositeException 1
            
// in osgi/frascati-processor/src/main/java/org/ow2/frascati/osgi/processor/OSGiResourceProcessor.java
catch (FraSCAtiOSGiNotFoundCompositeException e) { log.warning("Unable to find the '" + embeddedComposite + "' embedded composite"); }
0
(Domain) FraSCAtiOSGiNotRunnableServiceException 1
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); }
0
(Lib) IllegalPromoterException 1
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch (IllegalPromoterException ipe) { severe(new ProcessorException(property, "Property '" + property.getName() + "' cannot be promoted by the enclosing composite", ipe)); return; }
0
(Lib) InstanceNotFoundException 1
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (InstanceNotFoundException e) { log.log(Level.WARNING,e.getMessage(),e); }
0
(Lib) LinkageError 1
            
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (LinkageError e) { // A duplicate class definition error can occur if // two threads concurrently try to load the same class file - // this kind of error has been detected using binding-jms Class<?> clazz = findLoadedClass(origName); if (clazz != null) { System.out.println("LinkageError :" + origName + " class already resolved "); } return clazz; }
0
(Lib) MBeanRegistrationException 1
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (MBeanRegistrationException e) { log.log(Level.WARNING,e.getMessage(),e); }
0
(Lib) MalformedObjectNameException 1
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (MalformedObjectNameException e) { log.log(Level.WARNING,e.getMessage(),e); }
0
(Lib) MessagingException 1
            
// in frascati-studio/src/main/java/org/easysoa/utils/MailServiceImpl.java
catch (MessagingException ex) { while ((ex = (MessagingException) ex.getNextException()) != null) { ex.printStackTrace();
0
(Lib) NamingException 1
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
1
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
(Lib) NoSuchAlgorithmException 1
            
// in frascati-studio/src/main/java/org/easysoa/utils/PasswordManager.java
catch(NoSuchAlgorithmException nsae){ nsae.printStackTrace(); }
0
(Lib) RuntimeException 1
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (RuntimeException e) { throw new MBeanException(e); }
1
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (RuntimeException e) { throw new MBeanException(e); }
(Lib) UnsatisfiedLinkError 1
            
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); }
1
            
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); }
(Lib) XmlPullParserException 1
            
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (XmlPullParserException e) { getLog().error("can't read pom file", e); }
0

Exception Recast Summary

There is a common practice of throwing exceptions from within a catch block (e.g. for wrapping a low-level exception). The following table summarizes the usage of this practice in the application. The last column gives the number of times it happens for a pair of exceptions. The graph below the table graphically renders the same information. For a given node, its color represents its origin (blue means library exception, orange means domain exception); the left-most number is the number of times it is thrown, the right-most is the number of times it is caught.

Catch Throw
(Lib) MalformedURLException
(Lib) RuntimeException
(Domain) MyWebApplicationException
(Domain) FrascatiException
1
                    
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException mue) { throw new RuntimeException(mue); }
1
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); }
2
                    
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
(Domain) FrascatiException
(Lib) MojoExecutionException
1
                    
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); }
(Domain) FactoryException
(Domain) ProcessorException
(Domain) ManagerException
2
                    
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); }
1
                    
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
(Domain) ProcessorException
(Domain) ManagerException
1
                    
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); }
(Domain) ManagerException
(Domain) FraSCAtiServiceException
(Domain) FraSCAtiOSGiNotFoundCompositeException
(Domain) WeaverException
(Lib) ScriptExecutionError
(Domain) MyWebApplicationException
3
                    
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
1
                    
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); }
1
                    
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(ManagerException me) { throw new WeaverException(me); }
2
                    
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); }
3
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); }
(Lib) Exception
(Domain) FraSCAtiServiceException
(Lib) Exception
(Lib) ServletException
(Lib) ChainedInstantiationException
(Lib) Error
(Domain) FrascatiException
(Domain) ProcessorException
(Lib) RuntimeException
(Lib) ResourceNotFoundException
(Lib) AssertionError
(Lib) IllegalStateException
(Domain) MyWebApplicationException
(Domain) BadParameterTypeException
(Lib) IOException
Unknown
2
                    
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
1
                    
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); }
1
                    
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(Exception e) { throw new ServletException(e); }
3
                    
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
6
                    
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
catch(Exception e) { e.printStackTrace(); throw new Error(e); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { throw new Error(e); }
2
                    
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); }
2
                    
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(Exception e) { // Should never happen but we never know! throw new ProcessorException(e); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
catch (Exception e) { throw new ProcessorException(binding, e); }
1
                    
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch(Exception exc) { throw new RuntimeException(exc); }
1
                    
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); }
1
                    
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); }
4
                    
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); }
3
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Error while invoking " + method.getName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); }
1
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); }
1
                    
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
catch (Exception e) { throw new IOException("Can not parse " + adl, e); }
7
                    
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (Exception exc) { log.warning("Impossible to compile WSDL '" + wsdlUri + "'."); throw exc; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
(Domain) BadParameterTypeException
(Domain) MyWebApplicationException
1
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch(BadParameterTypeException bpte) { throw new MyWebApplicationException(bpte); }
(Lib) NoSuchInterfaceException
(Domain) FraSCAtiServiceException
(Domain) FraSCAtiOSGiNotFoundServiceException
(Domain) WeaverException
(Lib) Error
(Lib) TinfiRuntimeException
(Lib) IllegalArgumentException
(Lib) AssertionError
(Domain) ProcessorException
(Lib) MBeanException
(Lib) ReflectionException
(Domain) MyWebApplicationException
1
                    
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' does not exist in " + componentName); }
1
                    
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); }
1
                    
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); }
1
                    
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
catch(NoSuchInterfaceException nsie) { // Must never happen!!! throw new Error("Internal FraSCAti error!", nsie); }
1
                    
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (NoSuchInterfaceException e) { throw new TinfiRuntimeException(e);
1
                    
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
3
                    
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); }
1
                    
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); }
1
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new MBeanException(e); }
3
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
9
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); }
(Lib) IllegalLifeCycleException
(Lib) TinfiRuntimeException
(Lib) ReflectionException
(Domain) MyWebApplicationException
1
                    
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalLifeCycleException e) { throw new TinfiRuntimeException(e); }
2
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
2
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); }
(Lib) NoSuchMethodException
(Lib) ReflectionException
1
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchMethodException e) { throw new ReflectionException(e); }
(Lib) ClassCastException
(Domain) FraSCAtiServiceException
(Domain) FraSCAtiOSGiNotRunnableServiceException
(Lib) IllegalArgumentException
1
                    
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
1
                    
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); }
1
                    
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); }
(Lib) Throwable
Unknown
2
                    
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch(Throwable throwable) { dispatcher.pushCheckError(eObject,throwable); throw throwable; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; }
(Lib) InstantiationException
(Domain) FactoryException
(Lib) Error
1
                    
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); }
1
                    
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
catch(InstantiationException ie) { throw new Error(ie); }
(Lib) ClassNotFoundException
(Lib) Error
(Lib) ReflectionException
(Domain) MyWebApplicationException
Unknown
1
                    
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
catch(ClassNotFoundException cnfe) { throw new Error(cnfe); }
1
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (ClassNotFoundException e) { throw new ReflectionException(e); }
1
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); }
1
                    
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; }
(Lib) IOException
(Lib) IOException
(Lib) ScriptException
(Lib) XPathException
(Lib) Error
(Lib) RuntimeException
(Domain) MyWebApplicationException
(Domain) FrascatiException
2
                    
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { throw new IOException("Cannot read the contribution!"); }
1
                    
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (IOException e) {throw new ScriptException(e);}
1
                    
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (IOException e) { throw new XPathException(e); }
3
                    
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
catch(IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (IOException ioe) { throw new Error(ioe);
1
                    
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); }
4
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
1
                    
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (IOException e) { throw new FrascatiException(e); }
(Lib) BindingFactoryException
(Domain) MyWebApplicationException
2
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); }
(Lib) ZipException
(Domain) MyWebApplicationException
1
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); }
(Lib) FileNotFoundException
(Lib) ScriptException
1
                    
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (FileNotFoundException e) { throw new ScriptException(e); }
(Lib) IllegalAccessException
(Lib) ReflectionException
(Lib) RuntimeException
1
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalAccessException e) { throw new ReflectionException(e); }
2
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
(Lib) InvocationTargetException
(Lib) ReflectionException
(Lib) RuntimeException
1
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (InvocationTargetException e) { throw new ReflectionException(e); }
2
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); }
(Lib) FileUploadException
(Lib) ServletException
1
                    
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(FileUploadException fue) { throw new ServletException(fue);
(Lib) ToolException
(Lib) ToolException
1
                    
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ throw new ToolException(); }
(Lib) XPathException
(Lib) ScriptException
(Lib) Throwable
2
                    
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e1) {throw new ScriptException(e1);}
2
                    
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); }
(Lib) JAXBException
(Lib) XPathException
2
                    
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
(Lib) JDOMException
(Lib) XPathException
(Lib) Error
1
                    
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JDOMException e) { throw new XPathException(e); }
1
                    
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); }
(Lib) RuntimeException
(Lib) MBeanException
1
                    
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (RuntimeException e) { throw new MBeanException(e); }
(Lib) IllegalBindingException
(Lib) TinfiRuntimeException
1
                    
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalBindingException e) { throw new TinfiRuntimeException(e); }
(Lib) ChannelException
(Lib) IllegalLifeCycleException
1
                    
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); }
(Lib) UnsatisfiedLinkError
(Domain) ProcessorException
1
                    
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); }
(Lib) NamingException
Unknown
1
                    
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
(Lib) NameNotFoundException
(Lib) IllegalStateException
1
                    
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
(Lib) Base64Exception
(Domain) MyWebApplicationException
3
                    
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); }
(Lib) BPELException
(Domain) FrascatiException
1
                    
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelEngine.java
catch(BPELException bexc) { throw new FrascatiException("EasyBPEL can not read the BPEL process '" + processUri + "'", bexc);

Caught / Thrown Exception

Not all exceptions are thrown AND caught in the same project. The following table gives the exceptions types with respect to this. The lower left hand side sell lists all exceptions thrown but not caught (prevalent for libraries), the upper right-hand side lists all exceptions caught but not thrown (usually coming from external dependencies).

Thrown Not Thrown
Caught
Type Name
(Lib) ParseException
(Domain) FrascatiException
(Domain) FactoryException
(Domain) ProcessorException
(Domain) ManagerException
(Lib) Exception
(Domain) FraSCAtiOSGiNotRunnableServiceException
(Domain) FraSCAtiOSGiNotFoundCompositeException
(Domain) ResourceAlreadyManagedException
(Domain) BadParameterTypeException
(Lib) NoSuchInterfaceException
(Lib) IllegalLifeCycleException
(Lib) SecurityException
(Lib) IllegalArgumentException
(Lib) NullPointerException
(Lib) Throwable
(Lib) InstantiationException
(Lib) ClassNotFoundException
(Lib) IOException
(Lib) FileNotFoundException
(Lib) ToolException
(Lib) ScriptException
(Lib) XPathException
(Lib) Error
(Lib) IllegalContentException
(Lib) RuntimeException
Type Name
(Lib) MalformedURLException
(Domain) ParserException
(Lib) NoSuchMethodException
(Lib) ClassCastException
(Lib) MalformedObjectNameException
(Lib) MBeanRegistrationException
(Lib) InstanceNotFoundException
(Lib) BundleException
(Lib) InvalidPropertiesFormatException
(Lib) InterruptedException
(Lib) NumberFormatException
(Lib) LinkageError
(Lib) BadLocationException
(Lib) NoSuchFieldException
(Lib) InvalidSyntaxException
(Lib) BindingFactoryException
(Lib) ZipException
(Lib) IllegalAccessException
(Lib) InvocationTargetException
(Lib) PatternSyntaxException
(Lib) NoSuchAlgorithmException
(Lib) UnsupportedEncodingException
(Lib) MessagingException
(Lib) NoResultException
(Lib) FileUploadException
(Lib) WSDLException
(Lib) JAXBException
(Lib) JDOMException
(Lib) IndexOutOfBoundsException
(Lib) URISyntaxException
(Lib) ContentInstantiationException
(Lib) RmiRegistryCreationException
(Lib) IllegalPromoterException
(Lib) ADLException
(Lib) IllegalBindingException
(Lib) ChannelException
(Lib) NoSuchComponentException
(Lib) UnsatisfiedLinkError
(Lib) NamingException
(Lib) NameNotFoundException
(Lib) JMSException
(Lib) Base64Exception
(Lib) BPELException
(Lib) XmlPullParserException
Not caught
Type Name
(Domain) FraSCAtiServiceException
(Domain) FraSCAtiOSGiNotFoundServiceException
(Lib) ServletException
(Domain) WeaverException
(Lib) AuthenticationException
(Lib) ChainedInstantiationException
(Lib) IllegalStateException
(Lib) UnsupportedOperationException
(Lib) TinfiRuntimeException
(Lib) ResourceNotFoundException
(Lib) NoSuchElementException
(Lib) AssertionError
(Lib) ScriptExecutionError
(Lib) MBeanException
(Lib) AttributeNotFoundException
(Lib) ReflectionException
(Lib) NoSuchBeanDefinitionException
(Domain) MyWebApplicationException
(Lib) MojoExecutionException

Methods called in Catch and Finally Blocks

The following shows the methods that are called inside catch blocks (first column) and finally blocks (second column). For each method, we give the number of times it is called in a catch block (second sub-column), and the total number of calls (third sub-column). If the method name is red, it means that it is only called from catch/finally blocks. Hovering over a number triggers showing code snippets from the application code.

Catch Finally
Method Nbr Nbr total
log 474
                  
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (SecurityException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (NoSuchMethodException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-metamodel-nuxeo/src/main/java/org/ow2/frascati/nuxeo/impl/NuxeoFactoryImpl.java
catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/factory/FraSCAtiNuxeoFactory.java
catch (Exception e) { log.log(Level.INFO, "no boot properties found"); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (MalformedObjectNameException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (NullPointerException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (MBeanRegistrationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (InstanceNotFoundException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch (ClassCastException e) { log.log(Level.WARNING,e.getMessage(),e); return intentJoinPoint.proceed(); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (SecurityException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (NoSuchMethodException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch(NullPointerException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the parent classloader"); }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the classloader classpath"); }
// in osgi/frascati-in-osgi/osgi/knopflerfish/src/main/java/org/ow2/frascati/osgi/frameworks/knopflerfish/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (InterruptedException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (BundleException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (InvalidPropertiesFormatException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/felix/src/main/java/org/ow2/frascati/osgi/frameworks/felix/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); return false; }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (MalformedURLException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (MalformedURLException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiLauncher.java
catch (Exception e) { log.log(Level.SEVERE, "Instantiation of the FrascatiService has caused an exception", e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoaderManager.java
catch (Exception e) { log.log(Level.WARNING, "The bundle cannot be added to the managed bundles list :" + bundle, e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (IOException e) { log.log(Level.INFO, "Exception thrown while trying to create Class " + className + " with URL " + classFileNameURL); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ResourceAlreadyManagedException e) { log.log(Level.INFO, e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (MalformedURLException e) { log.log(Level.WARNING, e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (NullPointerException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/FrascatiServiceTracker.java
catch (ClassCastException e) { log.log(Level.WARNING, reference.getBundle().getBundleContext() .getService(reference) + " cannot be cast into " + FraSCAtiOSGiService.class.getCanonicalName()); return null; }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (Exception e) { log.log(Level.INFO, e.getMessage()); resourceURL = (URL) vfile.invoke("toURL"); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (MalformedURLException e) { // TODO Auto-generated catch block log.log(Level.CONFIG, e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { jarFile = new JarFile(resource); } catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); } } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e);
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectThread.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); break; }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (java.lang.NoSuchFieldException e) { log.log(Level.SEVERE,"The field relatives to the component cannot be retrieve"); return;
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (BindingFactoryException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (BindingFactoryException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (MalformedURLException e) { logg.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (FileNotFoundException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e) { try { // if the OSGi implementation is JBoss Bundle bundle = bundleContext.installBundle(jarPath); return bundle; } catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); } e.printStackTrace(); logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/VirtualHierarchicList.java
catch (MalformedURLException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch(ClassCastException e) { logg.log(Level.WARNING, e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (SecurityException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (NoSuchMethodException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (InvocationTargetException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (FileNotFoundException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (NullPointerException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (NullPointerException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassNotFoundException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (NoSuchMethodException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalAccessException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InvocationTargetException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InstantiationException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { Type[] types = instanceClass.getGenericInterfaces(); int n = 0; for (; n < types.length; n++) { try { pt = (ParameterizedType) types[n]; break; } catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); } } }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { log.log(Level.CONFIG, e.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalAccessException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InvocationTargetException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (PatternSyntaxException e) { log.log(Level.INFO, "The syntax of the regular expression is no valid" + e.getMessage()); return; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (PatternSyntaxException e) { log.log(Level.INFO, "The syntax of the regular expression is no valid" + e.getMessage()); return; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/bundle/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); return false; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.WARNING, "Error occured while trying to open : " + jarFileUrl); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/file/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
catch (PatternSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/examples/from-frascati-to-osgi/client/src/main/java/org/ow2/frascati/osgi/ffto/client/binding/Activator.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (MalformedURLException e) { log.log(Level.WARNING, e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch(Exception e) { log.log(Level.WARNING, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ClassNotFoundException e) { log.log(Level.WARNING,e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ClassNotFoundException e) { log.log(Level.INFO, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch(Exception e) { log.log(Level.INFO, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (Exception e) { log.log(Level.WARNING, "Unable to find the current BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
catch (SecurityException e) { log.log(Level.WARNING,e.getMessage(),e);
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
catch (NoSuchMethodException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiRegistryImpl.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiRegistryImpl.java
catch (ClassNotFoundException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] getParent().loadClass("+ name+") has thrown a ClassNotFoundException"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] resourceLoader.findClass("+ name+") has thrown a ClassNotFoundException"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); }
// in osgi/frascati-binding-osgi/src/main/java/org/ow2/frascati/osgi/binding/FrascatiBindingOSGiProcessor.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/osgi-in-frascati/deployer/src/main/java/org/ow2/frascati/osgi/deployer/Deployer.java
catch (InstantiationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/osgi-in-frascati/deployer/src/main/java/org/ow2/frascati/osgi/deployer/Deployer.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-processor/src/main/java/org/ow2/frascati/osgi/processor/OSGiResourceProcessor.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException ex) { logger.log(Level.WARNING, "Cannot find LifeCycleController for this AttributeController owner", ex); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (IllegalLifeCycleException ex) { logger.log(Level.WARNING, "LifeCycle Exception while trying to restart this AttributeController owner", ex); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e) { // RMI specific case : AC is in a sub-component try { Component[] children = FcExplorer.getContentController(this.owner).getFcSubComponents(); for (Component child : children) { String name = FcExplorer.getName(child); if ( name.equals("org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent") || name.equals("rmi-stub-primitive") ) { ac = Fractal.getAttributeController(child); } } } catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot retrieve the interface name!"); LOG.log(Level.SEVERE, "Cannot retrieve the interface name!", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (IllegalLifeCycleException ilce) { JOptionPane.showMessageDialog(null, "Illegal life cycle Exception!"); LOG.log(Level.SEVERE, "Illegal life cycle Exception!", ilce); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (NoSuchInterfaceException nsie) { String msg = "Cannot get content controller on " + treeView.getParentEntry().getName() + "!"; LOG.log(Level.SEVERE, msg, nsie); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (IllegalContentException ice) { String msg = "Illegal content exception!"; LOG.log(Level.SEVERE, msg, ice); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (IllegalLifeCycleException ilce) { String msg = "Cannot remove a component if its container is started!"; LOG.log(Level.SEVERE, msg, ilce); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (NoSuchInterfaceException nsie) { LOG.log(Level.SEVERE, "Cannot find the Name Controller!", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; JOptionPane.showMessageDialog(null,"Intent '" + intentName + "' cannot be added to " + errorMsg); LOG.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); LOG.log(Level.SEVERE, msg); //, rmie); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveBindingMenuItem.java
catch (BindingFactoryException bfe) { LOG.log(Level.SEVERE, "Cannot unbind/unexport this service/reference!", bfe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (Exception exc) { log.log(Level.SEVERE, "Impossible to close the SCA composite '" + compositeName + "'!", exc); }
// in modules/frascati-metamodel-frascati-ext/src/org/ow2/frascati/model/impl/ModelFactoryImpl.java
catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException cce) { log.log(Level.WARNING, "An intent can only be applied on components, services and references!"); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot find the Name Controller!", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; log.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot access to intent controller", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot retrieve the interface name!", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (IllegalLifeCycleException ilce) { log.log(Level.SEVERE, "Illegal life cycle Exception!", ilce); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the Binding Factory!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (BindingFactoryException bfe) { logger.log(Level.SEVERE, "Cannot unbind/unexport this service/reference!", bfe); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the ClassLoder Manager!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Error while getting component life cycle controller", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (IllegalLifeCycleException ilce) { logger.log(Level.SEVERE, "Cannot stop the component!", ilce); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the Binding Factory!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (BindingFactoryException bfe) { logger.log(Level.SEVERE, "Error while binding " + (isScaReference ? "reference" : "service") + ": " + itfName, bfe); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Error while getting component name controller", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); logger.log(Level.SEVERE, msg); //, rmie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (IllegalLifeCycleException ilce) { logger.log(Level.SEVERE,"Cannot start the component!", ilce); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "error while creating MBean for " + comp, e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
catch (IllegalLifeCycleException e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "error while creating MBean for " + comp, e); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Throwable exc) { log.log(Level.SEVERE, "JmsSkeletonContent.onMessage() -> " + exc.getMessage(), exc); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (Exception e) { log.log(Level.SEVERE, "Problem with the dependency management.", e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e) { log.log(Level.SEVERE, "Could not create contibution package " + packagename, e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (Exception e) { log.log(Level.SEVERE, "Problem while zipping file!", e); }
966
getMessage 242
                  
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (Exception e) { System.err.println("Unable to generate Java code from WSDL: " + e.getMessage()); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (SecurityException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (NoSuchMethodException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (MalformedObjectNameException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (NullPointerException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (MBeanRegistrationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (InstanceNotFoundException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch (ClassCastException e) { log.log(Level.WARNING,e.getMessage(),e); return intentJoinPoint.proceed(); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (SecurityException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (NoSuchMethodException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch(NullPointerException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/knopflerfish/src/main/java/org/ow2/frascati/osgi/frameworks/knopflerfish/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Throwable e) { log.info("URL.setURLStreamHandlerFactory Error :" + e.getMessage()); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (InterruptedException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (BundleException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (InvalidPropertiesFormatException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/felix/src/main/java/org/ow2/frascati/osgi/frameworks/felix/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); return false; }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (MalformedURLException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (MalformedURLException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ResourceAlreadyManagedException e) { log.log(Level.INFO, e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (MalformedURLException e) { log.log(Level.WARNING, e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (NullPointerException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (Exception e) { log.log(Level.INFO, e.getMessage()); resourceURL = (URL) vfile.invoke("toURL"); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (MalformedURLException e) { // TODO Auto-generated catch block log.log(Level.CONFIG, e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { jarFile = new JarFile(resource); } catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); } } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e);
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle installation has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle starting has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle uninstalling has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectThread.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); break; }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (BindingFactoryException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (BindingFactoryException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (MalformedURLException e) { logg.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (java.util.zip.ZipException z) { logg.warning(z.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (FileNotFoundException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e) { try { // if the OSGi implementation is JBoss Bundle bundle = bundleContext.installBundle(jarPath); return bundle; } catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); } e.printStackTrace(); logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/VirtualHierarchicList.java
catch (MalformedURLException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch(ClassCastException e) { logg.log(Level.WARNING, e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (SecurityException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (NoSuchMethodException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (InvocationTargetException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (FileNotFoundException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (NullPointerException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (NullPointerException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassNotFoundException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (NoSuchMethodException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalAccessException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InvocationTargetException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InstantiationException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { Type[] types = instanceClass.getGenericInterfaces(); int n = 0; for (; n < types.length; n++) { try { pt = (ParameterizedType) types[n]; break; } catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); } } }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { log.log(Level.CONFIG, e.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalAccessException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InvocationTargetException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (PatternSyntaxException e) { log.log(Level.INFO, "The syntax of the regular expression is no valid" + e.getMessage()); return; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (PatternSyntaxException e) { log.log(Level.INFO, "The syntax of the regular expression is no valid" + e.getMessage()); return; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/bundle/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); return false; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/file/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
catch (PatternSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/examples/from-frascati-to-osgi/client/src/main/java/org/ow2/frascati/osgi/ffto/client/binding/Activator.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (MalformedURLException e) { log.log(Level.WARNING, e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ClassNotFoundException e) { log.log(Level.WARNING,e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
catch (SecurityException e) { log.log(Level.WARNING,e.getMessage(),e);
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
catch (NoSuchMethodException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiRegistryImpl.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiRegistryImpl.java
catch (ClassNotFoundException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage(),e); }
// in osgi/frascati-binding-osgi/src/main/java/org/ow2/frascati/osgi/binding/FrascatiBindingOSGiProcessor.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/osgi-in-frascati/deployer/src/main/java/org/ow2/frascati/osgi/deployer/Deployer.java
catch (InstantiationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/osgi-in-frascati/deployer/src/main/java/org/ow2/frascati/osgi/deployer/Deployer.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-processor/src/main/java/org/ow2/frascati/osgi/processor/OSGiResourceProcessor.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in frascati-studio/src/main/java/org/easysoa/jpa/UserAccessImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying change Admin role: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch(Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage();
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to save the data corresponding to the current deployment: " + e.getMessage()); e.printStackTrace(); return "Application deployed successfully, but an error has ocurred while trying to save the data corresponding to the current deployment."; }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove data corresponding to the current undeployment: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create a service: "+ e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete a service: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/TemplateRestImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to send a friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to accept friend: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove a friend: "+e.getMessage()); e.printStackTrace(); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
catch (Exception e) { // Report the exception. log.warning(qname + " can not be validated: " + e.getMessage()); parsingContext.error("SCA composite '" + qname + "' can not be validated: " + e.getMessage()); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); LOG.log(Level.SEVERE, msg); //, rmie); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { error(processingContext, property, "XML unmarshalling error: " + je.getMessage()); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch(WSDLException we) { processingContext.error(toString(wsdlPortType) + " " + wsdlUri + ": " + we.getMessage()); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
catch (MalformedURLException e) { showError("Invalid URL (" + name + "): " + e.getMessage()); return; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (MalformedURLException e) { showError("Invalid URL (" + url + "): " + e.getMessage()); return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (IOException e) { showError("Unable to open a connection on this URL (" + url + "): " + e.getMessage()); return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (FileNotFoundException e) { showError("Unable to open file " + e.getMessage()); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); logger.log(Level.SEVERE, msg); //, rmie); return; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, e.getMessage(), e); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (JMSException exc) { log.severe("JmsSkeletonContent.stopFc() -> " + exc.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Throwable exc) { log.log(Level.SEVERE, "JmsSkeletonContent.onMessage() -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (JMSException exc) { log.severe("stopFc -> " + exc.getMessage()); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); }
262
severe 136
                  
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.severe("Unable to instantiate the Plugin class :"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.severe("Unable to instantiate the Plugin class :"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (Exception e) { log.severe("Error thrown by the Plugin instance : "); }
// in frascati-studio/src/main/java/org/easysoa/jpa/UserAccessImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying change Admin role: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch(Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(NoResultException nre){ LOG.severe("No preference found for " + preferenceName + "!" ); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(Exception e){ LOG.severe("Error trying to retrive preference for " + preferenceName + "!" ); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(Exception e){ LOG.severe("Error trying to update preference for " + preferenceName + "!" ); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage();
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to save the data corresponding to the current deployment: " + e.getMessage()); e.printStackTrace(); return "Application deployed successfully, but an error has ocurred while trying to save the data corresponding to the current deployment."; }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove data corresponding to the current undeployment: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create a service: "+ e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete a service: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to send a friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to accept friend: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove a friend: "+e.getMessage()); e.printStackTrace(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not add intent handler", ilce)); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not remove intent handler", ilce)); }
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); }
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); return; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/AbstractCompositeParser.java
catch(IOException ioe) { severe(new ParserException(qname, qname.toString(), ioe)); return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
catch (IOException ioe) { severe(new ParserException(qname, "Error when writting debug composite file", ioe)); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
catch(NoSuchInterfaceException nsie) { // Should not happen! severe(new ProcessorException(httpBinding, "Internal Fractal error!", nsie)); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch (ClassNotFoundException cnfe) { String msg = propName + " - Java type known but not dealt by OW2 FraSCAti: '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.severe(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (NoSuchInterfaceException e) { LOG.severe("Error while getting component life cycle controller"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (IllegalLifeCycleException e) { LOG.severe("Cannot stop the component!"); e.printStackTrace(); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (BindingFactoryException bfe) { LOG.severe("Error while binding " + (isScaReference ? "reference" : "service") + ": " + itfName); bfe.printStackTrace(); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (NoSuchInterfaceException nsie) { LOG.severe("Error while getting component name controller"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (IllegalLifeCycleException e) { LOG.severe("Cannot start the component!"); e.printStackTrace(); }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (ClassNotFoundException cnfe) { // Should never happen but we never know. severe(new ProcessorException(property, "JAXB package info for " + toString(property) + " not found", cnfe)); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB context failed for " + toString(property), je)); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB unmarshaller failed for " + toString(property), je)); return; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Cannot " + msg, ie)); return;
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch(NoSuchInterfaceException nsie) { severe(new FactoryException("Cannot get the GenericFactory interface of the " + membraneDescription + " Fractal bootstrap component", nsie)); return; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch(NoSuchInterfaceException nsie) { severe(new FactoryException("Cannot get the TypeFactory interface of the " + membraneDescription + " bootstrap component", nsie)); return; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal interface type", ie)); return null; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal component type", ie)); return null; }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch (IOException ioe) { severe(new ProcessorException(scriptImplementation, "Script '" + script + "' not found", ioe)); return; }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch(ScriptException se) { severe(new ProcessorException(scriptImplementation, "Error when evaluating '" + script + "'", se)); return; }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch(Exception exc) { // This should not happen! severe(new ProcessorException(scriptImplementation, "Internal Fractal error!", exc)); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch(Exception exc) { severe(new ProcessorException("Error when compiling WSDL", exc)); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (WSDLException we) { severe(new FrascatiException("Could not initialize WSDLReader", we));
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap class", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot start the OW2 FraSCAti Assembly Factory bootstrap composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot load the OW2 FraSCAti composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch(Exception exc) { severe(new FrascatiException("Cannot add the OW2 FraSCAti composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch(NoSuchInterfaceException e) { severe(new FrascatiException("Cannot retrieve the '" + serviceName + "' service of an SCA composite!", e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Impossible to stop the SCA composite '" + composite + "'!", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaWireProcessor.java
catch (Exception e) { severe(new ProcessorException(wire, "Cannot etablish " + toString(wire), e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeServiceProcessor.java
catch (Exception e) { severe(new ProcessorException(service, "Can't promote " + toString(service), e)); return ; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while generating " + toString(implementation), te)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while creating " + toString(implementation), te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(ClassNotFoundException cnfe) { severe(new ProcessorException(implementation, "Java interface '" + interfaceSignature + "' not found", cnfe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(Exception exc) { severe(new ProcessorException(implementation, "Can not obtain the SCA service '" + interfaceName + "'", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(Exception exc) { severe(new ProcessorException(implementation, "Can not set the SCA reference '" + interfaceName + "'", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
catch(FactoryException fe) { severe(new ProcessorException(implementation, "generation failed", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
catch(FactoryException fe) { severe(new ProcessorException(implementation, "instantiation failed", fe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite container", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite component", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to create the composite container", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(element, "Cannot get to the FraSCAti intent controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (Exception e) { severe(new ProcessorException(element, "Intent '" + require + "' cannot be added", e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentReferenceProcessor.java
catch (Exception e) { severe(new ProcessorException(componentReference, "Can't promote " + toString(componentReference), e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
catch (FactoryException te) { severe(new ProcessorException(baseReference, "Could not " + logMessage, te)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractPropertyProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Can't get the SCA property controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
catch (FactoryException te) { severe(new ProcessorException(baseService, "Could not " + logMessage, te)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
catch(FactoryException te) { severe(new ProcessorException(element, "component type creation for " + toString(element) + " failed", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch(NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller of the enclosing composite", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch (IllegalPromoterException ipe) { severe(new ProcessorException(property, "Property '" + property.getName() + "' cannot be promoted by the enclosing composite", ipe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (MalformedURLException e) { severe(new ManagerException(e)); return new Component[0]; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (IOException e) { severe(new ManagerException(e)); return new Component[0]; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ParserException pe) { severe(new ManagerException("Error when loading the contribution file " + contribution + " with the SCA XML Processor", pe)); return new Component[0]; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch(Exception exc) { severe(new ManagerException("Error when loading the composite " + deployable.getComposite(), exc)); return new Component[0]; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when checking the composite instance '" + qname + "'", pe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { severe(new ManagerException( "Cannot open a membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when generating the composite instance '" + qname + "'", pe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when completing the composite instance '" + qname + "'", pe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (Exception e) { severe(new ManagerException("Could not start the SCA composite '" + qname + "'", e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (FrascatiException fe) { severe(compositeName, fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (FrascatiException fe) { severe(compositeName, fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
catch (FrascatiException e) { log.severe("Cannot launch SCA composite '" + composite + "'!"); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
catch (FrascatiException e) { log.severe("Cannot instanciate FraSCAti!"); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building instance for class " + definition, ie)); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (IllegalAccessException iae) { severe(new ProcessorException(fractalImplementation, "Can't access class " + definition, iae)); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (org.objectweb.fractal.api.factory.InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building component instance: " + definition, ie)); return; }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
catch (BindingFactoryException bfe) { severe(new ProcessorException(binding, "Error while binding reference: " + referenceName, bfe)); return; }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
catch (BindingFactoryException bfe) { severe(new ProcessorException("Error while binding service: " + serviceName, bfe)); return; }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal binding controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalBindingException ibe) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ibe); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal content controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal internal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ice); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ice); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal lifecycle controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not start a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not stop a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal name controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchComponentException e) { logger.severe("Cannot found rmi-stub-primitive component in the " + boundInterfaceOwnerName + "composite!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchComponentException e) { logger.severe("Cannot found org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent component in the " + childName + "composite!"); }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
catch (IOException exc) { severe(new ProcessorException("Error when compiling descriptor", exc)); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (JMSException exc) { log.severe("JmsSkeletonContent.stopFc() -> " + exc.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (JMSException exc) { log.severe("stopFc -> " + exc.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch (Exception e) { severe(new FactoryException("Problem when initializing Juliac", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException("Problem when loading Juliac option levels", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(IOException ioe) { severe(new FactoryException("Problem when creating a FraSCAti temp directory", ioe)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException(e)); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(IOException ioe) { severe(new FactoryException("Cannot add Java sources", ioe)); return null; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException(e)); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch (Exception e) { severe(new FactoryException("Cannot generate component code with Juliac", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException("Cannot close Juliac", e)); return; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception exc) { severe(new ProcessorException(bpelImplementation, "Can not read BPEL process " + bpelImplementationProcess, exc)); return; }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e1) { log.severe("Could not create contribution identifier"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e) { log.severe("Could not create contribution descriptor"); }
164
printStackTrace 117
                  
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (ParseException e) { e.printStackTrace(); }
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (MalformedURLException e) { System.err.println("Error while getting URL for : " + urls[i]); e.printStackTrace(); }
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (FrascatiException e) { e.printStackTrace(); System.err.println("Cannot instantiate the FraSCAti factory!"); System.err.println("Exiting ..."); System.exit(-1); }
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (ParseException e) { e.printStackTrace(); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' does not exist in " + componentName); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e) { try { // if the OSGi implementation is JBoss Bundle bundle = bundleContext.installBundle(jarPath); return bundle; } catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); } e.printStackTrace(); logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (SecurityException e) { e.printStackTrace(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (NoSuchFieldException e) { e.printStackTrace(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (IllegalArgumentException e) { e.printStackTrace(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (IllegalAccessException e) { e.printStackTrace(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ResourceAlreadyManagedException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/codegenerator/JavaCodeGenerator.java
catch (FileNotFoundException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/codegenerator/JavaCodeTransformer.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/jpa/EntityManagerProviderImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/jpa/UserAccessImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying change Admin role: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/compiler/MavenCompilerImpl.java
catch(Exception e){ e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch(Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.warning("The preference "+ preferenceName + "=" + defaultValue +"was not created"); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PasswordManager.java
catch(NoSuchAlgorithmException nsae){ nsae.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/EMFModelUtilsImpl.java
catch (UnsupportedEncodingException e) { e.printStackTrace();
// in frascati-studio/src/main/java/org/easysoa/utils/EMFModelUtilsImpl.java
catch (UnsupportedEncodingException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/MailServiceImpl.java
catch (MessagingException ex) { while ((ex = (MessagingException) ex.getNextException()) != null) { ex.printStackTrace();
// in frascati-studio/src/main/java/org/easysoa/utils/MailServiceImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/User.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/User.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(Exception e){ LOG.severe("Error trying to retrive preference for " + preferenceName + "!" ); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(Exception e){ LOG.severe("Error trying to update preference for " + preferenceName + "!" ); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage();
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to save the data corresponding to the current deployment: " + e.getMessage()); e.printStackTrace(); return "Application deployed successfully, but an error has ocurred while trying to save the data corresponding to the current deployment."; }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove data corresponding to the current undeployment: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create a service: "+ e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (IOException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete a service: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { e.printStackTrace(); return null;
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(Exception e){ e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ te.printStackTrace(); LOG.info("wsdl not supported by cxf"); return "wsdl not supported by cxf";
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (WSDLException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/TwitterOAuthImpl.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/TemplateRestImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/GoogleOAuthImpl.java
catch(Exception e){ e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to send a friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to accept friend: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove a friend: "+e.getMessage()); e.printStackTrace(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/lib/TextDiagramGenerator.java
catch (Exception e) { e.printStackTrace(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TraceManagerRootContext.java
catch(Exception exc) { exc.printStackTrace(); return new RootEntry[0]; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/SaveTraceMenuItem.java
catch (Exception ex) { ex.printStackTrace(); return; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TracePanel.java
catch (Exception e1) { e1.printStackTrace(); return; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TracePanel.java
catch (Exception e) { e.printStackTrace(); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/AbstractContextPlugin.java
catch(Exception exc) { exc.printStackTrace(); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (IOException ioe) { ioe.printStackTrace(); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e2) { e2.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e) { e.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ComponentContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ServiceContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(Exception exc) { exc.printStackTrace(); String msg = exc.toString(); JOptionPane.showMessageDialog(null, msg); logger.warning(msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentPropertyTable.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (ContentInstantiationException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (ClassCastException cce) { try { itf = ((ClientInterfaceWrapper) parent).getItf(); } catch (ClassCastException cce2) { cce2.printStackTrace(); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (ClassCastException cce2) { cce2.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (IllegalLifeCycleException e) { LOG.severe("Cannot stop the component!"); e.printStackTrace(); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (BindingFactoryException bfe) { LOG.severe("Error while binding " + (isScaReference ? "reference" : "service") + ": " + itfName); bfe.printStackTrace(); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (IllegalLifeCycleException e) { LOG.severe("Cannot start the component!"); e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/UnwireAction.java
catch (NoSuchInterfaceException e1) { e1.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
catch(Exception e) { e.printStackTrace(); throw new Error(e); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException e) { e.printStackTrace(); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (Exception e) { e.printStackTrace(); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocity.java
catch(Exception e) { e.printStackTrace(System.err); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (Exception exc) { exc.printStackTrace(System.err); // Requested resource not found. super.service(request, response); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/FraSCAtiFScript.java
catch (NoSuchInterfaceException e) { // should not happen e.printStackTrace(); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException e) { log.warning("One interface cannot be retrieved on " + comp + "!"); e.printStackTrace(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e1) { e1.printStackTrace(); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/jsr223/FraSCAtiScriptEngineFactory.java
catch (FrascatiException e) { e.printStackTrace(); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (ManagerException e) { e.printStackTrace(); }
// in maven-plugins/frascati-test-compiler/src/main/java/org/ow2/frascati/mojo/FrascatiCompilerTestMojo.java
catch (ManagerException e) { e.printStackTrace(); }
120
warning 41
                  
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (NullPointerException e) { log.warning("NullPointerException thrown" + " trying to call initialize method on " + initializable); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (java.util.zip.ZipException z) { logg.warning(z.getMessage()); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.warning("No Plugin class found for AbstractResource extension"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassCastException e) { log.warning("Defined Plugin class is not an AbstractPlugin inherited one"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IOException e) { log.warning("Unable to cache embedded resource :" + embeddedResourceName); }
// in osgi/frascati-processor/src/main/java/org/ow2/frascati/osgi/processor/OSGiResourceProcessor.java
catch (FraSCAtiOSGiNotFoundCompositeException e) { log.warning("Unable to find the '" + embeddedComposite + "' embedded composite"); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.warning("The preference "+ preferenceName + "=" + defaultValue +"was not created"); e.printStackTrace(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaParser.java
catch(Exception e) { Throwable cause = e.getCause(); if(cause instanceof FileNotFoundException) { warning(new ParserException(qname, "'" + documentUri + "' not found", cause)); } else { warning(new ParserException(qname, "'" + documentUri + "' invalid content", cause)); } return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
catch (Exception e) { // Report the exception. log.warning(qname + " can not be validated: " + e.getMessage()); parsingContext.error("SCA composite '" + qname + "' can not be validated: " + e.getMessage()); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(URISyntaxException exc) { String msg = propName + " - Syntax error in URI '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(MalformedURLException exc) { String msg = propName + " - Malformed URL '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(NumberFormatException nfe) { String msg = propName + " - Number format error in '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(Exception exc) { exc.printStackTrace(); String msg = exc.toString(); JOptionPane.showMessageDialog(null, msg); logger.warning(msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/ExplorerGUI.java
catch(IOException ioe) { // Must never happen!!! log.warning("FraSCAti Explorer - Impossible to get " + EXPLORER_STD_CFG_FILES_NAME + " resources!"); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (Exception exc) { log.warning("Impossible to compile WSDL '" + wsdlUri + "'."); throw exc; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch(ManagerException me) { warning(new ProcessorException("Error while getting intent '" + require + "'", me)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (NoSuchInterfaceException nsie) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (ClassCastException cce) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service of interface " + IntentHandler.class.getCanonicalName(), cce)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Exception exception) { log.warning("Thrown " + exception.toString()); sb.append(" ..."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Error error) { log.warning("Thrown " + error.toString()); sb.append(" ..."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch(IOException ioe) { warning(new ManagerException(url.toString(), ioe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ParserException pe) { warning(new ManagerException("Error when parsing the composite file '" + qname + "'", pe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (NoSuchInterfaceException e) { warning(new FrascatiException("Unable to get the service '" + serviceName + "'", e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (SecurityException e) { warning(new FrascatiException("Unable to get the method '" + methodName + "'", e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (NoSuchMethodException e) { warning(new FrascatiException("The service '" + serviceName + "' does not provide the method " + methodName + '(' + paramList.toString() + ')', e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (IllegalArgumentException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (IllegalAccessException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (InvocationTargetException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException e) { log.warning("One interface cannot be retrieved on " + comp + "!"); e.printStackTrace(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e1) { logger.warning(comp + "should have a Name Controller!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e1) { logger.warning(parent + "should have a Name Controller!"); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { warning(new FactoryException("Errors when compiling Java source", e)); return null; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { warning(new FactoryException("Errors when compiling generated Java membrane source", e)); return; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { LOG.warning("Cannot retrieve the '" + parentName + "' component"); return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { LOG.warning("Cannot find a content controller on " + fullComponentId); return children; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { log.warning("Cannot find a name controller on " + comp); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { log.warning("Cannot find a lifecycle controller on " + comp); compResource.setStatus(ComponentStatus.STARTED); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception e) { warning(new ProcessorException("Error during deployment of the BPEL process '" + bpelImplementation.getProcess() + "'", e)); return; }
78
error 39
                  
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ConstrainingTypeResolver.java
catch(ParserException parserException) { if(parserException.getCause() instanceof IOException) { parsingContext.error("constraining type '" + qname.toString() + "' not found"); } else { parsingContext.error("constraining type '" + qname.toString() + "' invalid content"); } return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/PromoteResolver.java
catch(IndexOutOfBoundsException e) { parsingContext.error(messageError(service, "has no service to promote")); continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/PromoteResolver.java
catch(IndexOutOfBoundsException e) { parsingContext.error(messageError(reference, "has no reference to promote")); continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/IncludeResolver.java
catch (ParserException e) { if(e.getCause() instanceof IOException) { parsingContext.error("<sca:include name='" + include.getName() + "'/> composite '" + include.getName() + "' not found"); } else { parsingContext.error("<sca:include name='" + include.getName() + "'/> invalid content"); } continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ImplementationCompositeResolver.java
catch(ParserException pe) { parsingContext.error("<sca:implementation name='" + scaImplementation.getName() + "'> not loaded"); continue; // pass to the next component; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaResolver.java
catch (ClassNotFoundException e) { parsingContext.error("<sca:implementation.java class='" + javaImpl.getClass_() + "'/> class '" + javaImpl.getClass_() + "' not found"); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaResolver.java
catch (ClassNotFoundException e) { parsingContext.error("<sca:interface.java interface='" + interfaceJavaInterface + "'/> interface '" + interfaceJavaInterface + "' not found"); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
catch (Exception e) { // Report the exception. log.warning(qname + " can not be validated: " + e.getMessage()); parsingContext.error("SCA composite '" + qname + "' can not be validated: " + e.getMessage()); }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { error(processingContext, property, "XML unmarshalling error: " + je.getMessage()); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch(WSDLException we) { processingContext.error(toString(wsdlPortType) + " " + wsdlUri + ": " + we.getMessage()); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
catch(ManagerException me) { error(processingContext, scaBinding, "Composite '", compositeName, "' not found"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
catch(NoSuchInterfaceException nsie) { error(processingContext, scaBinding, "Service '", serviceName, "' not found"); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaImplementation, "class '", javaImplementation.getClass_(), "' not found"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(ClassNotFoundException cnfe) { error(processingContext, property, "Java class '", propertyValue, "' not found"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(MalformedURLException exc) { error(processingContext, property, "Malformed URL '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java interface '", javaInterface.getInterface(), "' not found"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java callback interface '", javaInterface.getCallbackInterface(), "' not found"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(FrascatiException exc) { // exc.printStackTrace(); error(processingContext, bpelImplementation, "Can't read BPEL process ", bpelImplementationProcess.toString()); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception exc) { error(processingContext, bpelImplementation, "Can't compile WSDL '", wsdlUri, "'"); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException e) { getLog().error("Could not add library path : " + lib); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + srcs.get(i)); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error("Problem with the dependency management."); getLog().error(e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error( "Dependency " + artifact.getGroupId() + ":" + artifact.getArtifactId() + " cannot be added"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error(_dependency.getGroupId() + "." + _dependency.getArtifactId() + " cannot be found"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (IOException e) { getLog().error("can't read pom file", e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (XmlPullParserException e) { getLog().error("can't read pom file", e); }
// in maven-plugins/frascati-test-compiler/src/main/java/org/ow2/frascati/mojo/FrascatiCompilerTestMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); }
111
append 29
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle installation has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle starting has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle uninstalling has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Exception exception) { log.warning("Thrown " + exception.toString()); sb.append(" ..."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Error error) { log.warning("Thrown " + error.toString()); sb.append(" ..."); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
catch(Exception e) { sb.append(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
catch(Exception e) { sb.append(e); }
1115
toString 28
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle installation has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle starting has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle uninstalling has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ConstrainingTypeResolver.java
catch(ParserException parserException) { if(parserException.getCause() instanceof IOException) { parsingContext.error("constraining type '" + qname.toString() + "' not found"); } else { parsingContext.error("constraining type '" + qname.toString() + "' invalid content"); } return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/AbstractCompositeParser.java
catch(IOException ioe) { severe(new ParserException(qname, qname.toString(), ioe)); return null; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(Exception exc) { exc.printStackTrace(); String msg = exc.toString(); JOptionPane.showMessageDialog(null, msg); logger.warning(msg); }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (ClassNotFoundException cnfe) { // Should never happen but we never know. severe(new ProcessorException(property, "JAXB package info for " + toString(property) + " not found", cnfe)); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB context failed for " + toString(property), je)); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB unmarshaller failed for " + toString(property), je)); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch(WSDLException we) { processingContext.error(toString(wsdlPortType) + " " + wsdlUri + ": " + we.getMessage()); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaWireProcessor.java
catch (Exception e) { severe(new ProcessorException(wire, "Cannot etablish " + toString(wire), e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeServiceProcessor.java
catch (Exception e) { severe(new ProcessorException(service, "Can't promote " + toString(service), e)); return ; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while generating " + toString(implementation), te)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while creating " + toString(implementation), te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentReferenceProcessor.java
catch (Exception e) { severe(new ProcessorException(componentReference, "Can't promote " + toString(componentReference), e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Exception exception) { log.warning("Thrown " + exception.toString()); sb.append(" ..."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Error error) { log.warning("Thrown " + error.toString()); sb.append(" ..."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
catch(FactoryException te) { severe(new ProcessorException(element, "component type creation for " + toString(element) + " failed", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch(IOException ioe) { warning(new ManagerException(url.toString(), ioe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (NoSuchMethodException e) { warning(new FrascatiException("The service '" + serviceName + "' does not provide the method " + methodName + '(' + paramList.toString() + ')', e)); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { logger.fine( e.toString() ); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { // components may not have a super controller logger.fine( e.toString() ); return null; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(FrascatiException exc) { // exc.printStackTrace(); error(processingContext, bpelImplementation, "Can't read BPEL process ", bpelImplementationProcess.toString()); }
302
initCause
21
                  
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal binding controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalBindingException ibe) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ibe); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal content controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal internal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ice); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ice); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal lifecycle controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not start a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not stop a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal name controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
21
showMessageDialog 21
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(URISyntaxException exc) { String msg = propName + " - Syntax error in URI '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(MalformedURLException exc) { String msg = propName + " - Malformed URL '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(NumberFormatException nfe) { String msg = propName + " - Number format error in '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch (ClassNotFoundException cnfe) { String msg = propName + " - Java type known but not dealt by OW2 FraSCAti: '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.severe(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(Exception exc) { exc.printStackTrace(); String msg = exc.toString(); JOptionPane.showMessageDialog(null, msg); logger.warning(msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot retrieve the interface name!"); LOG.log(Level.SEVERE, "Cannot retrieve the interface name!", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (IllegalLifeCycleException ilce) { JOptionPane.showMessageDialog(null, "Illegal life cycle Exception!"); LOG.log(Level.SEVERE, "Illegal life cycle Exception!", ilce); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (NoSuchInterfaceException nsie) { String msg = "Cannot get content controller on " + treeView.getParentEntry().getName() + "!"; LOG.log(Level.SEVERE, msg, nsie); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (IllegalContentException ice) { String msg = "Illegal content exception!"; LOG.log(Level.SEVERE, msg, ice); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (IllegalLifeCycleException ilce) { String msg = "Cannot remove a component if its container is started!"; LOG.log(Level.SEVERE, msg, ilce); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "An intent must be an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { // SCA services & references try { itf = (Interface) dropTreeView.getSelectedObject(); owner = itf.getFcItfOwner(); } catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; JOptionPane.showMessageDialog(null,"Intent '" + intentName + "' cannot be added to " + errorMsg); LOG.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (ClassCastException cce) { // Should not happen JOptionPane.showMessageDialog(null, "Can only add an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); LOG.log(Level.SEVERE, msg); //, rmie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); logger.log(Level.SEVERE, msg); //, rmie); return; }
22
newException 15
                  
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal binding controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalBindingException ibe) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ibe); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal content controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal internal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ice); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ice); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal lifecycle controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not start a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not stop a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal name controller"); exc.initCause(nsie); severe(exc); return null; }
18
getName 13
                  
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/IncludeResolver.java
catch (ParserException e) { if(e.getCause() instanceof IOException) { parsingContext.error("<sca:include name='" + include.getName() + "'/> composite '" + include.getName() + "' not found"); } else { parsingContext.error("<sca:include name='" + include.getName() + "'/> invalid content"); } continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ImplementationCompositeResolver.java
catch(ParserException pe) { parsingContext.error("<sca:implementation name='" + scaImplementation.getName() + "'> not loaded"); continue; // pass to the next component; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e) { // RMI specific case : AC is in a sub-component try { Component[] children = FcExplorer.getContentController(this.owner).getFcSubComponents(); for (Component child : children) { String name = FcExplorer.getName(child); if ( name.equals("org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent") || name.equals("rmi-stub-primitive") ) { ac = Fractal.getAttributeController(child); } } } catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (NoSuchInterfaceException nsie) { String msg = "Cannot get content controller on " + treeView.getParentEntry().getName() + "!"; LOG.log(Level.SEVERE, msg, nsie); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch (IllegalPromoterException ipe) { severe(new ProcessorException(property, "Property '" + property.getName() + "' cannot be promoted by the enclosing composite", ipe)); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Error while invoking " + method.getName()); }
476
getLog 12
                  
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (MalformedURLException e) { getLog().warn("Malformed URL for artifact " + artifact.getId()); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (Exception e) { getLog().warn("Could not load logging configuration file: " + loggingConfFile); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException e) { getLog().error("Could not add library path : " + lib); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + srcs.get(i)); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error("Problem with the dependency management."); getLog().error(e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error( "Dependency " + artifact.getGroupId() + ":" + artifact.getArtifactId() + " cannot be added"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error(_dependency.getGroupId() + "." + _dependency.getArtifactId() + " cannot be found"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (IOException e) { getLog().error("can't read pom file", e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (XmlPullParserException e) { getLog().error("can't read pom file", e); }
// in maven-plugins/frascati-test-compiler/src/main/java/org/ow2/frascati/mojo/FrascatiCompilerTestMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); }
39
getTransaction 12
                  
// in frascati-studio/src/main/java/org/easysoa/jpa/UserAccessImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying change Admin role: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.warning("The preference "+ preferenceName + "=" + defaultValue +"was not created"); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to save the data corresponding to the current deployment: " + e.getMessage()); e.printStackTrace(); return "Application deployed successfully, but an error has ocurred while trying to save the data corresponding to the current deployment."; }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove data corresponding to the current undeployment: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create a service: "+ e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete a service: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to send a friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to accept friend: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove a friend: "+e.getMessage()); e.printStackTrace(); }
36
info 12
                  
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (MalformedURLException e) { log.info("Unable to initialize log4j properly"); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Throwable e) { log.info("URL.setURLStreamHandlerFactory Error :" + e.getMessage()); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (InvalidSyntaxException e) { log.info("filter " + filter + " is not valid"); filter = null; }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(NoResultException eNoResult){ Logger.getLogger("EasySOALogger").info("No result found for " + server + ". A new register will be created for this server."); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ te.printStackTrace(); LOG.info("wsdl not supported by cxf"); return "wsdl not supported by cxf";
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (ClassCastException e) { logger.info("The scabinding axis is only available for Interface nodes!"); return Collections.emptySet(); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { /* * The sca-component-controller cannot be found! This component * is not a SCA component => Nothing to do! */ if (childNameController != null) { LOG.info("sca-component-controller cannot be found for component " + childNameController.getFcName()+ ", this component must not be a SCA component"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { /* * The sca-component-controller cannot be found! This * component is not a SCA component => Nothing to do! */ if (childNameController != null) { log.info("sca-component-controller cannot be found for component " + childNameController.getFcName()+ ", this component must not be a SCA component"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // No sub-components if (componentNameController != null) { log.info("no sub-component found for component " + componentNameController.getFcName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception exception) { if (ownerNameController != null) { log.info("no binding found for fractal component : " + ownerNameController.getFcName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // No properties if(compNameController!=null) { log.info("component "+compNameController.getFcName()+" has no properties"); } }
146
rollback
12
                  
// in frascati-studio/src/main/java/org/easysoa/jpa/UserAccessImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying change Admin role: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.warning("The preference "+ preferenceName + "=" + defaultValue +"was not created"); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to save the data corresponding to the current deployment: " + e.getMessage()); e.printStackTrace(); return "Application deployed successfully, but an error has ocurred while trying to save the data corresponding to the current deployment."; }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove data corresponding to the current undeployment: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create a service: "+ e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete a service: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to send a friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to accept friend: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove a friend: "+e.getMessage()); e.printStackTrace(); }
12
getFcName 9
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { /* * The sca-component-controller cannot be found! This component * is not a SCA component => Nothing to do! */ if (childNameController != null) { LOG.info("sca-component-controller cannot be found for component " + childNameController.getFcName()+ ", this component must not be a SCA component"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { /* * The sca-component-controller cannot be found! This * component is not a SCA component => Nothing to do! */ if (childNameController != null) { log.info("sca-component-controller cannot be found for component " + childNameController.getFcName()+ ", this component must not be a SCA component"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // No sub-components if (componentNameController != null) { log.info("no sub-component found for component " + componentNameController.getFcName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception exception) { if (ownerNameController != null) { log.info("no binding found for fractal component : " + ownerNameController.getFcName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // No properties if(compNameController!=null) { log.info("component "+compNameController.getFcName()+" has no properties"); } }
39
println 9
                  
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (MalformedURLException e) { System.err.println("Error while getting URL for : " + urls[i]); e.printStackTrace(); }
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (FrascatiException e) { e.printStackTrace(); System.err.println("Cannot instantiate the FraSCAti factory!"); System.err.println("Exiting ..."); System.exit(-1); }
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (MalformedURLException e) { System.err.println("Malformed URL : " + url); System.err.println("Exiting..."); System.exit(-1); }
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (Exception e) { System.err.println("Unable to generate Java code from WSDL: " + e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (LinkageError e) { // A duplicate class definition error can occur if // two threads concurrently try to load the same class file - // this kind of error has been detected using binding-jms Class<?> clazz = findLoadedClass(origName); if (clazz != null) { System.out.println("LinkageError :" + origName + " class already resolved "); } return clazz; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jaxb/JAXB.java
catch (javax.xml.bind.JAXBException jaxbe) { System.out.println( "WARNING : No JAXBContext created for '" + factoryPackageName + "' package"); }
166
equals 7
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { jarFile = new JarFile(resource); } catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); } } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e) { // RMI specific case : AC is in a sub-component try { Component[] children = FcExplorer.getContentController(this.owner).getFcSubComponents(); for (Component child : children) { String name = FcExplorer.getName(child); if ( name.equals("org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent") || name.equals("rmi-stub-primitive") ) { ac = Fractal.getAttributeController(child); } } } catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
419
isLoggable 7
                  
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "error while creating MBean for " + comp, e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
catch (IllegalLifeCycleException e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "error while creating MBean for " + comp, e); } }
19
StringBuilder 6
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle installation has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle starting has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle uninstalling has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
99
emptySet 6
                  
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException e) { // No intent controller => no intents on this component return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (ClassCastException e) { logger.info("The scabinding axis is only available for Interface nodes!"); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e1) { e1.printStackTrace(); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { logger.fine( e.toString() ); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaChildAxis.java
catch (NoSuchInterfaceException e) { // Not a composite, no children. return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e) { // Not a composite, no children. return Collections.emptySet(); }
7
add 5
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component => it's a binding component bindingNode = new ScaBindingNode((FraSCAtiModel) this.model, clientItfOwner); result.add( bindingNode ); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
410
getFcItfName 5
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); }
46
showError 5
                  
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
catch (MalformedURLException e) { showError("Invalid URL (" + name + "): " + e.getMessage()); return; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (MalformedURLException e) { showError("Invalid URL (" + url + "): " + e.getMessage()); return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (IOException e) { showError("Unable to open a connection on this URL (" + url + "): " + e.getMessage()); return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (FileNotFoundException e) { showError("Unable to open file " + e.getMessage()); return null; }
13
writeMessage 5
                  
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle installation has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle starting has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle uninstalling has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
9
getCause
4
                  
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ConstrainingTypeResolver.java
catch(ParserException parserException) { if(parserException.getCause() instanceof IOException) { parsingContext.error("constraining type '" + qname.toString() + "' not found"); } else { parsingContext.error("constraining type '" + qname.toString() + "' invalid content"); } return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/IncludeResolver.java
catch (ParserException e) { if(e.getCause() instanceof IOException) { parsingContext.error("<sca:include name='" + include.getName() + "'/> composite '" + include.getName() + "' not found"); } else { parsingContext.error("<sca:include name='" + include.getName() + "'/> invalid content"); } continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaParser.java
catch(Exception e) { Throwable cause = e.getCause(); if(cause instanceof FileNotFoundException) { warning(new ParserException(qname, "'" + documentUri + "' not found", cause)); } else { warning(new ParserException(qname, "'" + documentUri + "' invalid content", cause)); } return null; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
4
getNameController 4
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
39
getText 4
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(URISyntaxException exc) { String msg = propName + " - Syntax error in URI '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(MalformedURLException exc) { String msg = propName + " - Malformed URL '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(NumberFormatException nfe) { String msg = propName + " - Number format error in '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch (ClassNotFoundException cnfe) { String msg = propName + " - Java type known but not dealt by OW2 FraSCAti: '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.severe(msg); return; }
21
showWarning 4
                  
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (Exception e) { showWarning("Incompatible FScript implementation."); showWarning("Axis name completion disabled."); return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/AbstractCommand.java
catch (NoSuchInterfaceException e) { showWarning("The component does not have a 'lifecycle-controller'."); showWarning("Assuming it is ready to use."); }
10
displayError 3
                  
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException ise) { displayError(ise); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException e) { displayError(e); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException e2) { displayError(e2); }
4
fine 3
                  
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch(ClassNotFoundException cnfe) { log.fine("No " + packageName + ".package-info.class found."); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { logger.fine( e.toString() ); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { // components may not have a super controller logger.fine( e.toString() ); return null; }
103
getCanonicalName 3
                  
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/FrascatiServiceTracker.java
catch (ClassCastException e) { log.log(Level.WARNING, reference.getBundle().getBundleContext() .getService(reference) + " cannot be cast into " + FraSCAtiOSGiService.class.getCanonicalName()); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (ClassCastException cce) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service of interface " + IntentHandler.class.getCanonicalName(), cce)); return; }
110
getClass_ 3
                  
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaResolver.java
catch (ClassNotFoundException e) { parsingContext.error("<sca:implementation.java class='" + javaImpl.getClass_() + "'/> class '" + javaImpl.getClass_() + "' not found"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaImplementation, "class '", javaImplementation.getClass_(), "' not found"); return; }
22
getFcItfOwner 3
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { // SCA services & references try { itf = (Interface) dropTreeView.getSelectedObject(); owner = itf.getFcItfOwner(); } catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
48
getLogger 3
                  
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(NoResultException eNoResult){ Logger.getLogger("EasySOALogger").info("No result found for " + server + ". A new register will be created for this server."); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); return null; }
87
Diagnostic
2
                  
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); }
2
File 2
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { jarFile = new JarFile(resource); } catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); } } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
124
exit 2
                  
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (FrascatiException e) { e.printStackTrace(); System.err.println("Cannot instantiate the FraSCAti factory!"); System.err.println("Exiting ..."); System.exit(-1); }
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (MalformedURLException e) { System.err.println("Malformed URL : " + url); System.err.println("Exiting..."); System.exit(-1); }
10
generateContent
2
                  
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
2
getArtifactId 2
                  
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error( "Dependency " + artifact.getGroupId() + ":" + artifact.getArtifactId() + " cannot be added"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error(_dependency.getGroupId() + "." + _dependency.getArtifactId() + " cannot be found"); }
9
getClass 2
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "An intent must be an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (ClassCastException cce) { // Should not happen JOptionPane.showMessageDialog(null, "Can only add an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
75
getContentController 2
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e) { // RMI specific case : AC is in a sub-component try { Component[] children = FcExplorer.getContentController(this.owner).getFcSubComponents(); for (Component child : children) { String name = FcExplorer.getName(child); if ( name.equals("org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent") || name.equals("rmi-stub-primitive") ) { ac = Fractal.getAttributeController(child); } } } catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
21
getDragSourceObject 2
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "An intent must be an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (ClassCastException cce) { // Should not happen JOptionPane.showMessageDialog(null, "Can only add an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
4
getFcSubComponents 2
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e) { // RMI specific case : AC is in a sub-component try { Component[] children = FcExplorer.getContentController(this.owner).getFcSubComponents(); for (Component child : children) { String name = FcExplorer.getName(child); if ( name.equals("org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent") || name.equals("rmi-stub-primitive") ) { ac = Fractal.getAttributeController(child); } } } catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
15
getFile 2
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { jarFile = new JarFile(resource); } catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); } } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
19
getGroupId 2
                  
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error( "Dependency " + artifact.getGroupId() + ":" + artifact.getArtifactId() + " cannot be added"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error(_dependency.getGroupId() + "." + _dependency.getArtifactId() + " cannot be found"); }
7
getInterface 2
                  
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java interface '", javaInterface.getInterface(), "' not found"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
138
getJndiResponseDestinationName 2
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); }
3
getSelection 2
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
5
messageError 2
                  
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/PromoteResolver.java
catch(IndexOutOfBoundsException e) { parsingContext.error(messageError(service, "has no service to promote")); continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/PromoteResolver.java
catch(IndexOutOfBoundsException e) { parsingContext.error(messageError(reference, "has no reference to promote")); continue; // the for loop. }
8
put 2
                  
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
475
replace 2
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; }
31
startsWith 2
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
43
warn 2
                  
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (MalformedURLException e) { getLog().warn("Malformed URL for artifact " + artifact.getId()); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (Exception e) { getLog().warn("Could not load logging configuration file: " + loggingConfFile); }
3
<Object, Object> 1
                  
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
4
Binding 1
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
5
BoxLayout
1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
1
DefaultEntry 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
24
JLabel 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
18
JarFile 1
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { jarFile = new JarFile(resource); } catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); } } }
3
MyJulia
1
                  
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
1
RmiBindingWrapper 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
2
ScaBindingNode 1
                  
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component => it's a binding component bindingNode = new ScaBindingNode((FraSCAtiModel) this.model, clientItfOwner); result.add( bindingNode ); }
4
StringBuffer 1
                  
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
62
TraceEventThrowImpl
1
                  
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; }
1
URL 1
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
35
addJavaSource 1
                  
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
10
addTraceEvent 1
                  
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; }
5
bind 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); }
13
close 1
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
84
compileQuery 1
                  
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
2
contains 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
40
create 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch(IllegalArgumentException e) { cf = TcpConnectionFactory.create("localhost", TCP_CONNECTION_FACTORY_PORT); }
16
createQueue 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); }
2
emptyList 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e) { return Collections.emptyList(); }
2
endsWith 1
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
63
findLoadedClass 1
                  
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (LinkageError e) { // A duplicate class definition error can occur if // two threads concurrently try to load the same class file - // this kind of error has been detected using binding-jms Class<?> clazz = findLoadedClass(origName); if (clazz != null) { System.out.println("LinkageError :" + origName + " class already resolved "); } return clazz; }
4
get 1
                  
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + srcs.get(i)); }
424
getAnonymousLogger
1
                  
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); }
1
getAttributeController 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e) { // RMI specific case : AC is in a sub-component try { Component[] children = FcExplorer.getContentController(this.owner).getFcSubComponents(); for (Component child : children) { String name = FcExplorer.getName(child); if ( name.equals("org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent") || name.equals("rmi-stub-primitive") ) { ac = Fractal.getAttributeController(child); } } } catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); } }
10
getBundle 1
                  
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/FrascatiServiceTracker.java
catch (ClassCastException e) { log.log(Level.WARNING, reference.getBundle().getBundleContext() .getService(reference) + " cannot be cast into " + FraSCAtiOSGiService.class.getCanonicalName()); return null; }
35
getBundleContext 1
                  
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/FrascatiServiceTracker.java
catch (ClassCastException e) { log.log(Level.WARNING, reference.getBundle().getBundleContext() .getService(reference) + " cannot be cast into " + FraSCAtiOSGiService.class.getCanonicalName()); return null; }
24
getCallbackInterface 1
                  
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java callback interface '", javaInterface.getCallbackInterface(), "' not found"); }
7
getCanonicalPath 1
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
10
getClassLoader 1
                  
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
79
getComposite 1
                  
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch(Exception exc) { severe(new ManagerException("Error when loading the composite " + deployable.getComposite(), exc)); return new Component[0]; }
44
getCreateDestinationMode 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
3
getData 1
                  
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
40
getErrorCodeLocalPart
1
                  
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
1
getFactory
1
                  
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
1
getFcInterface 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
65
getGenericInterfaces
1
                  
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { Type[] types = instanceClass.getGenericInterfaces(); int n = 0; for (; n < types.length; n++) { try { pt = (ParameterizedType) types[n]; break; } catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); } } }
1
getId 1
                  
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (MalformedURLException e) { getLog().warn("Malformed URL for artifact " + artifact.getId()); }
32
getInstance 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
5
getItf 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (ClassCastException cce) { try { itf = ((ClientInterfaceWrapper) parent).getItf(); } catch (ClassCastException cce2) { cce2.printStackTrace(); } }
6
getJndiConnectionFactoryName 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
3
getJndiDestinationName 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
10
getJndiURL 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
6
getKind 1
                  
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); }
2
getNextException
1
                  
// in frascati-studio/src/main/java/org/easysoa/utils/MailServiceImpl.java
catch (MessagingException ex) { while ((ex = (MessagingException) ex.getNextException()) != null) { ex.printStackTrace();
1
getOutputDirectory 1
                  
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
5
getParentEntry 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (NoSuchInterfaceException nsie) { String msg = "Cannot get content controller on " + treeView.getParentEntry().getName() + "!"; LOG.log(Level.SEVERE, msg, nsie); JOptionPane.showMessageDialog(null, msg); }
3
getParentObject 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
6
getPrefixedName 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
4
getProcess 1
                  
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception e) { warning(new ProcessorException("Error during deployment of the BPEL process '" + bpelImplementation.getProcess() + "'", e)); return; }
3
getResource 1
                  
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; }
27
getSelectedEntry 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
4
getSelectedObject 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { // SCA services & references try { itf = (Interface) dropTreeView.getSelectedObject(); owner = itf.getFcItfOwner(); } catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; } }
18
getService 1
                  
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/FrascatiServiceTracker.java
catch (ClassCastException e) { log.log(Level.WARNING, reference.getBundle().getBundleContext() .getService(reference) + " cannot be cast into " + FraSCAtiOSGiService.class.getCanonicalName()); return null; }
78
installBundle 1
                  
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e) { try { // if the OSGi implementation is JBoss Bundle bundle = bundleContext.installBundle(jarPath); return bundle; } catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); } e.printStackTrace(); logg.log(Level.WARNING,e.getMessage(),e); }
10
invoke 1
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (Exception e) { log.log(Level.INFO, e.getMessage()); resourceURL = (URL) vfile.invoke("toURL"); }
78
loadClass 1
                  
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
55
lookup 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
6
lookupFc 1
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
20
newComponent
1
                  
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
1
newFcInstance 1
                  
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
17
newIcon 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
2
openStream 1
                  
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
15
proceed 1
                  
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch (ClassCastException e) { log.log(Level.WARNING,e.getMessage(),e); return intentJoinPoint.proceed(); }
12
pushCheckError 1
                  
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch(Throwable throwable) { dispatcher.pushCheckError(eObject,throwable); throw throwable; }
2
removeComposite 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
6
service 1
                  
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (Exception exc) { exc.printStackTrace(System.err); // Requested resource not found. super.service(request, response); return; }
116
setIcon 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
15
setKind 1
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
15
setLayout 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
15
setStatus 1
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { log.warning("Cannot find a lifecycle controller on " + comp); compResource.setStatus(ComponentStatus.STARTED); }
5
setText 1
                  
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
40
start 1
                  
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
33
throwing
1
                  
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
catch(Exception exc) { log.throwing("", "", exc); }
1
Method Nbr Nbr total
close 19
                  
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
finally { try { is.close(); } catch (IOException e) { } }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
finally{ if(printWriter != null){ printWriter.close(); } if(bufferedReader != null){ try{ bufferedReader.close(); } catch(IOException ioe){ ioe.printStackTrace(); } } if(inputStream != null){ try{ inputStream.close(); } catch(IOException ioe){ ioe.printStackTrace(); } } }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
finally{ if(printWriter != null){ printWriter.close(); } if(fileReader != null){ try{ fileReader.close(); } catch(IOException ioe){ ioe.printStackTrace(); } } if(bufferedReader != null){ try{ bufferedReader.close(); } catch(IOException ioe){ ioe.printStackTrace(); } } }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
finally{ if(printWriter != null){ printWriter.flush(); printWriter.close(); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
finally { reader.close(); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
finally { // Close the input stream and return bytes inputStream.close(); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
finally { bos.close(); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
finally { inputStream.close(); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
finally { inputStream.close(); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
finally { out.close(); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
finally { outputStream.close(); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
finally { origin.close(); fis.close(); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
finally { out.close(); dest.close(); }
84
log 10
                  
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiLauncher.java
finally { log.log(Level.CONFIG, "Restore initial (Bundle)ClassLoader"); long launchDuration = new Date().getTime() - startTime; log.log(Level.INFO, "FraSCAtiOSGiService launched in " + launchDuration + " ms"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
finally { if (filter == null) { Class<?> filterClass; try { filterClass = Class.forName(RESOURCE_FILTER_DEFAULT); filter = (ResourceFilter) filterClass.newInstance(); filter.setEmbeddedjars(embeddedJars); } catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); } catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); } catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); } } }
966
printStackTrace 4
                  
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
finally{ if(printWriter != null){ printWriter.close(); } if(bufferedReader != null){ try{ bufferedReader.close(); } catch(IOException ioe){ ioe.printStackTrace(); } } if(inputStream != null){ try{ inputStream.close(); } catch(IOException ioe){ ioe.printStackTrace(); } } }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
finally{ if(printWriter != null){ printWriter.close(); } if(fileReader != null){ try{ fileReader.close(); } catch(IOException ioe){ ioe.printStackTrace(); } } if(bufferedReader != null){ try{ bufferedReader.close(); } catch(IOException ioe){ ioe.printStackTrace(); } } }
120
setCurrentThreadContextClassLoader 4
                  
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
finally { // Restore the previous class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousClassLoader); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
finally { // Reset the previous current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousCurrentThreadContextClassLoader); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
finally { // Reset the previous current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousCurrentThreadContextClassLoader); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
finally { if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Reset the current thread's context class loader."); // Reset the current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader( previousCurrentThreadContextClassLoader); } getLog().debug("Reset the Java system properties."); System.setProperties(previousSystemProperties); }
6
debug 2
                  
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
finally { if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Reset the current thread's context class loader."); // Reset the current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader( previousCurrentThreadContextClassLoader); } getLog().debug("Reset the Java system properties."); System.setProperties(previousSystemProperties); }
13
delete 2
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } FileUtil.deleteDirectory(destDir); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } }
16
getLog 2
                  
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
finally { if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Reset the current thread's context class loader."); // Reset the current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader( previousCurrentThreadContextClassLoader); } getLog().debug("Reset the Java system properties."); System.setProperties(previousSystemProperties); }
39
getPath 2
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } FileUtil.deleteDirectory(destDir); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } }
26
info 2
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } FileUtil.deleteDirectory(destDir); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } }
146
set 2
                  
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
finally { if(isNewTrace) { // Deattach the trace from the current thread. Trace.TRACE.set(null); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
finally { if(isNewTrace) { // Deattach the trace from the current thread. Trace.TRACE.set(null); } }
53
Date 1
                  
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiLauncher.java
finally { log.log(Level.CONFIG, "Restore initial (Bundle)ClassLoader"); long launchDuration = new Date().getTime() - startTime; log.log(Level.INFO, "FraSCAtiOSGiService launched in " + launchDuration + " ms"); }
7
deleteDirectory 1
                  
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } FileUtil.deleteDirectory(destDir); }
4
flush 1
                  
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
finally{ if(printWriter != null){ printWriter.flush(); printWriter.close(); } }
20
forName 1
                  
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
finally { if (filter == null) { Class<?> filterClass; try { filterClass = Class.forName(RESOURCE_FILTER_DEFAULT); filter = (ResourceFilter) filterClass.newInstance(); filter.setEmbeddedjars(embeddedJars); } catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); } catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); } catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); } } }
10
getTime 1
                  
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiLauncher.java
finally { log.log(Level.CONFIG, "Restore initial (Bundle)ClassLoader"); long launchDuration = new Date().getTime() - startTime; log.log(Level.INFO, "FraSCAtiOSGiService launched in " + launchDuration + " ms"); }
8
newInstance 1
                  
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
finally { if (filter == null) { Class<?> filterClass; try { filterClass = Class.forName(RESOURCE_FILTER_DEFAULT); filter = (ResourceFilter) filterClass.newInstance(); filter.setEmbeddedjars(embeddedJars); } catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); } catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); } catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); } } }
22
setDefaultCursor
1
                  
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/AbstractMenuItemPlugin.java
finally { // Set the default cursor. cursorController.setDefaultCursor(); }
1
setEmbeddedjars 1
                  
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
finally { if (filter == null) { Class<?> filterClass; try { filterClass = Class.forName(RESOURCE_FILTER_DEFAULT); filter = (ResourceFilter) filterClass.newInstance(); filter.setEmbeddedjars(embeddedJars); } catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); } catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); } catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); } } }
2
setProperties 1
                  
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
finally { if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Reset the current thread's context class loader."); // Reset the current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader( previousCurrentThreadContextClassLoader); } getLog().debug("Reset the Java system properties."); System.setProperties(previousSystemProperties); }
4

Reference Table

This table concatenates the results of the previous tables.

Checked/Runtime Type Exception Thrown Thrown from Catch Declared Caught directly Caught
with Thrown
Caught
with Thrown Runtime
unknown (Lib) ADLException 0 0 0 1
            
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; }
0 0
unknown (Lib) AssertionError 4
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
private CompositeManager getDomain() { try { return (CompositeManager) model.lookupFc(FraSCAtiModel.COMPOSITE_MANAGER_ITF); } catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
Override protected void createAdditionalProcedures() { super.createAdditionalProcedures(); List<ScaNativeProcedure> procedures = new ArrayList<ScaNativeProcedure>(); procedures.add( new ScaNewAction() ); procedures.add( new ScaRemoveAction() ); procedures.add( new AddWsBinding() ); procedures.add( new AddRestBinding() ); for (ScaNativeProcedure proc : procedures) { try { proc.bindFc(proc.MODEL_ITF_NAME, this); } catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); } addProcedure(proc); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
private CompositeManager getDomain() { try { return (CompositeManager) model.lookupFc(FraSCAtiModel.COMPOSITE_MANAGER_ITF); } catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
protected Node getServerInterface(BindingController bc, String clItfName) { try { Interface serverItf = (Interface) bc.lookupFc(clItfName); if (serverItf != null) { NodeFactory nf = (NodeFactory) model; return nf.createScaServiceNode(serverItf); } else { return null; } } catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); } }
4
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); }
0 0 0 0
unknown (Lib) AttributeNotFoundException 1
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
0 2
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); propertyController.setValue(attribute.getName(), attribute.getValue()); } catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); } try { attributes.setAttribute(attribute.getName(), attribute.getValue()); } catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); } }
0 0 0
unknown (Lib) AuthenticationException 1 0 0 0 0 0
unknown (Lib) BPELException 0 0 0 1
            
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelEngine.java
catch(BPELException bexc) { throw new FrascatiException("EasyBPEL can not read the BPEL process '" + processUri + "'", bexc);
1
            
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelEngine.java
catch(BPELException bexc) { throw new FrascatiException("EasyBPEL can not read the BPEL process '" + processUri + "'", bexc);
0
unknown (Lib) BadLocationException 0 0 0 9
            
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e);
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (BadLocationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e2) { e2.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e) { e.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (BadLocationException e1) { e1.printStackTrace(); // Should not happen }
0 0
checked (Domain) BadParameterTypeException
public class BadParameterTypeException extends Exception
{
    private static final long serialVersionUID = -652946911092413571L;
    
    public BadParameterTypeException(int index, String value, Class<?> parameterType)
    {
        super("Bad parameter type for Parameter" + index + " : value : " + value + " , type : " + parameterType);
    }
}
1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static Object[] getArguments(java.lang.reflect.Method method, MultivaluedMap<String, String> params) throws BadParameterTypeException { Object[] arguments = new Object[method.getParameterTypes().length]; int index = 0; String value = null; for (Class<?> parameterType : method.getParameterTypes()) { try { value = params.getFirst("Parameter" + index); arguments[index] = ScaPropertyTypeJavaProcessor.stringToValue(parameterType.getCanonicalName(), value, method.getClass().getClassLoader()); } catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); } index++; } return arguments; }
1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); }
1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static Object[] getArguments(java.lang.reflect.Method method, MultivaluedMap<String, String> params) throws BadParameterTypeException { Object[] arguments = new Object[method.getParameterTypes().length]; int index = 0; String value = null; for (Class<?> parameterType : method.getParameterTypes()) { try { value = params.getFirst("Parameter" + index); arguments[index] = ScaPropertyTypeJavaProcessor.stringToValue(parameterType.getCanonicalName(), value, method.getClass().getClassLoader()); } catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); } index++; } return arguments; }
1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch(BadParameterTypeException bpte) { throw new MyWebApplicationException(bpte); }
1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch(BadParameterTypeException bpte) { throw new MyWebApplicationException(bpte); }
0
unknown (Lib) Base64Exception 0 0 1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static File decodeFile(String encodedFile, String extension) throws Base64Exception, IOException { File destFile = null; BufferedOutputStream bos = null; byte[] content = Base64Utility.decode(encodedFile); String tempFileName = ""; if (extension != null && !"".equals(extension)) { tempFileName = "." + extension; } destFile = File.createTempFile("deploy", tempFileName); try { bos = new BufferedOutputStream(new FileOutputStream(destFile)); bos.write(content); bos.flush(); } finally { bos.close(); } return destFile; }
3
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); }
3
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); }
0
unknown (Lib) BindingFactoryException 0 0 0 10
            
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (BindingFactoryException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (BindingFactoryException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (BindingFactoryException bfe) { LOG.severe("Error while binding " + (isScaReference ? "reference" : "service") + ": " + itfName); bfe.printStackTrace(); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveBindingMenuItem.java
catch (BindingFactoryException bfe) { LOG.log(Level.SEVERE, "Cannot unbind/unexport this service/reference!", bfe); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
catch (BindingFactoryException bfe) { severe(new ProcessorException(binding, "Error while binding reference: " + referenceName, bfe)); return; }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
catch (BindingFactoryException bfe) { severe(new ProcessorException("Error while binding service: " + serviceName, bfe)); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (BindingFactoryException bfe) { logger.log(Level.SEVERE, "Cannot unbind/unexport this service/reference!", bfe); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (BindingFactoryException bfe) { logger.log(Level.SEVERE, "Error while binding " + (isScaReference ? "reference" : "service") + ": " + itfName, bfe); return; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); }
2
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); }
0
unknown (Lib) BundleException 0 0 25
            
// in osgi/frascati-in-osgi/osgi/concierge_r3/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer=null; //Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port","8888"); main.run((args==null || args.length==0 || (clientOrServer=args[0])==null)?"":clientOrServer); }
// in osgi/frascati-in-osgi/osgi/equinox/src/main/java/org/ow2/frascati/osgi/frameworks/equinox/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54460"); System.out.println("try to run"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/knopflerfish/src/main/java/org/ow2/frascati/osgi/frameworks/knopflerfish/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54463"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
protected void installBundles(BundleContext context, String[] locations) throws InterruptedException, BundleException { if (context == null) { log.log(Level.SEVERE, "BundleContext is null ; " + "No bundle can be installed"); return; } String[] bundles = locations; int n = 0; for (; n < bundles.length; n++) { try { String jarName = bundles[n]; String jarPath = new StringBuilder("file:").append(resources) .append(File.separator).append(jarName).toString(); if (installed.add(context.installBundle(jarPath))) { log.log(Level.FINE, installed.get(installed.size() - 1) .getSymbolicName() + " installed"); } else { log.log(Level.WARNING, "Error occured while installing " + jarPath); } } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
protected void launchBundles(BundleContext context, String[] locations) throws InterruptedException, BundleException { if (context == null) { log.log(Level.SEVERE, "BundleContext is null ; No bundle can be installed"); return; } String[] bundles = locations; int n = 0; for (; n < bundles.length; n++) { int size = installed.size(); try { String jarName = bundles[n]; installBundles(context, new String[] { jarName }); if (installed.size() > size) { installed.get(installed.size() - 1).start(); log.log(Level.FINE, installed.get(installed.size() - 1) .getSymbolicName() + " started"); Thread.sleep(2000); } } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
public void launch(String example) throws InterruptedException, BundleException { init(); try { URL installedBundlesPropsURL = new File( new StringBuilder(resources).append(File.separator).append( "install_bundles.xml").toString()).toURI().toURL(); Properties install_bundles = new Properties(); install_bundles.loadFromXML(installedBundlesPropsURL.openStream()); String[] props = install_bundles.keySet().toArray(new String[0]); int n = 0; while (n < props.length) { String bundleNum = props[n++]; String[] jarData = install_bundles.getProperty(bundleNum) .split(":"); String toInstall = jarData[1]; String jarName = jarData[0]; if ("true".equals(toInstall)) { try { System.out.println(jarName); getSystemBundleContext().installBundle( new StringBuilder("file:").append(resources) .append(File.separator).append(jarName) .toString()); } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } } URL launchedBundlesPropsURL = new File(new StringBuilder(resources) .append(File.separator).append("launch_bundles.xml") .toString()).toURI().toURL(); Properties launch_bundles = new Properties(); launch_bundles.loadFromXML(launchedBundlesPropsURL.openStream()); props = launch_bundles.keySet().toArray(new String[0]); n = 0; while (n < props.length) { String bundleNum = props[n++]; String[] jarData = launch_bundles.getProperty(bundleNum).split( ":"); String toInstall = jarData[1]; String jarName = jarData[0]; if ("true".equals(toInstall)) { System.out.println(jarName); try { getSystemBundleContext().installBundle( new StringBuilder("file:").append(resources) .append(File.separator).append(jarName) .toString()).start(); } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } } } catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); } catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); } }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
Override protected void installBundles(BundleContext context, String[] locations) throws InterruptedException, BundleException { if (context == null) { log.info("BundleContext is null"); return; } String[] bundles = locations; int n = 0; for (; n < bundles.length; n++) { try { String jarName = bundles[n]; String jarPath = new StringBuilder(resources).append( File.separator).append(jarName).toString(); if (installed.add(context.installBundle(jarPath))) { log.info(installed.get(installed.size() - 1) .getSymbolicName() + " installed"); } else { log.info("Error occured while installing " + jarPath); } } catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); } } }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { int a = 1; if (args != null && args.length >= 1) { for (; a < args.length; a++) { String arg = args[a]; String[] argEls = arg.split("="); if (argEls.length == 2) { System.setProperty(argEls[0], argEls[1]); } } } Main main = new Main(); String clientOrServer = null; main.launch(((clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
Override // The method is overwritten for the Windows OS - "file:" prefix causes an exception public void launch(String example) throws InterruptedException, BundleException { init(); try { URL installedBundlesPropsURL = new File( new StringBuilder(resources).append(File.separator).append( "install_bundles.xml").toString()).toURI().toURL(); Properties install_bundles = new Properties(); install_bundles.loadFromXML(installedBundlesPropsURL.openStream()); String[] props = install_bundles.keySet().toArray(new String[0]); int n = 0; while (n < props.length) { String bundleNum = props[n++]; String[] jarData = install_bundles.getProperty(bundleNum) .split(":"); String toInstall = jarData[1]; String jarName = jarData[0]; if ("true".equals(toInstall)) { try { // System.out.println(jarName); getSystemBundleContext().installBundle( new StringBuilder(resources).append( File.separator).append(jarName) .toString()); } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } } URL launchedBundlesPropsURL = new File(new StringBuilder(resources) .append(File.separator).append("launch_bundles.xml") .toString()).toURI().toURL(); Properties launch_bundles = new Properties(); launch_bundles.loadFromXML(launchedBundlesPropsURL.openStream()); props = launch_bundles.keySet().toArray(new String[0]); n = 0; while (n < props.length) { String bundleNum = props[n++]; String[] jarData = launch_bundles.getProperty(bundleNum).split( ":"); String toInstall = jarData[1]; String jarName = jarData[0]; if ("true".equals(toInstall)) { System.out.println(jarName); try { getSystemBundleContext().installBundle( new StringBuilder(resources).append( File.separator).append(jarName) .toString()).start(); } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } } } catch (InvalidPropertiesFormatException e) { log.log(Level.SEVERE,e.getMessage(),e); } catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); } }
// in osgi/frascati-in-osgi/osgi/felix/src/main/java/org/ow2/frascati/osgi/frameworks/felix/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54461"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/concierge_r4/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer=null; //Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port","8888"); main.run((args==null || args.length==0 || (clientOrServer=args[0])==null)?"":clientOrServer); }
// in osgi/fractal/juliac/runtime-light/src/main/java/org/objectweb/fractal/juliac/osgi/PlatformImpl.java
public BundleContext getBundleContext() throws IOException, BundleException { return context; }
// in osgi/fractal/juliac/runtime-light/src/main/java/org/objectweb/fractal/juliac/osgi/PlatformImpl.java
public void stop() throws IOException, BundleException { // do nothing }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final void stopBundle(long id) throws BundleException { Bundle bundle = context.getBundle(id); bundle.stop(); }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final void startBundle(long id) throws BundleException { Bundle bundle = context.getBundle(id); bundle.start(); }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final void uninstall(long id) throws BundleException { Bundle bundle = context.getBundle(id); bundle.uninstall(); }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final void install(String location) throws BundleException { String protocol = ""; String prefix = ""; if ("\\".equals(File.separator)) { if (location.startsWith("file:/")) { // do nothing } else if (location.startsWith("file:")) { location = location.substring(5); protocol = "file:"; prefix = "/"; } else { protocol = "file:"; if (!location.startsWith("/")) { prefix = "/"; } } try { Pattern pattern = Pattern.compile("[\\\\]"); Matcher matcher = pattern.matcher(location); location = matcher.replaceAll("/"); } catch (PatternSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); } location = new StringBuilder(protocol).append(prefix) .append(location).toString(); } System.out.println(location); context.installBundle(location); }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final void update(long id) throws BundleException { Bundle bundle = context.getBundle(id); bundle.update(); }
8
            
// in osgi/frascati-in-osgi/osgi/knopflerfish/src/main/java/org/ow2/frascati/osgi/frameworks/knopflerfish/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (BundleException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/felix/src/main/java/org/ow2/frascati/osgi/frameworks/felix/Main.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e) { try { // if the OSGi implementation is JBoss Bundle bundle = bundleContext.installBundle(jarPath); return bundle; } catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); } e.printStackTrace(); logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (BundleException e1) { e1.printStackTrace(); logg.log(Level.CONFIG,e1.getMessage(),e1); }
// in osgi/osgi-in-frascati/deployer/src/main/java/org/ow2/frascati/osgi/deployer/Deployer.java
catch (BundleException e) { log.log(Level.WARNING,e.getMessage(),e); }
0 0
unknown (Lib) ChainedInstantiationException 3
            
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
3
            
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
0 0 0 0
unknown (Lib) ChannelException 0 0 0 1
            
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); }
1
            
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); }
0
unknown (Lib) ClassCastException 0 0 0 24
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch (ClassCastException e) { log.log(Level.WARNING,e.getMessage(),e); return intentJoinPoint.proceed(); }
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/FrascatiServiceTracker.java
catch (ClassCastException e) { log.log(Level.WARNING, reference.getBundle().getBundleContext() .getService(reference) + " cannot be cast into " + FraSCAtiOSGiService.class.getCanonicalName()); return null; }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch(ClassCastException e) { logg.log(Level.WARNING, e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { Type[] types = instanceClass.getGenericInterfaces(); int n = 0; for (; n < types.length; n++) { try { pt = (ParameterizedType) types[n]; break; } catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); } } }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { log.log(Level.CONFIG, e.getMessage()); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassCastException e) { log.warning("Defined Plugin class is not an AbstractPlugin inherited one"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentTable.java
catch(ClassCastException cce) { // This exception is due to the fact that this 'itf' reference is bound to an SCA binding. // Do nothing. }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (ClassCastException e) { itf = (Interface) selectedObject; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (ClassCastException cce) { try { itf = ((ClientInterfaceWrapper) parent).getItf(); } catch (ClassCastException cce2) { cce2.printStackTrace(); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (ClassCastException cce2) { cce2.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "An intent must be an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce) { // SCA services & references try { itf = (Interface) dropTreeView.getSelectedObject(); owner = itf.getFcItfOwner(); } catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (ClassCastException cce) { // Should not happen JOptionPane.showMessageDialog(null, "Can only add an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (ClassCastException cce) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service of interface " + IntentHandler.class.getCanonicalName(), cce)); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException cce) { log.log(Level.WARNING, "An intent can only be applied on components, services and references!"); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (ClassCastException e) { logger.info("The scabinding axis is only available for Interface nodes!"); return Collections.emptySet(); }
3
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); }
1
unknown (Lib) ClassNotFoundException 4
            
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { // First, check if the class has already been loaded boolean regular = false; Class<?> clazz = findLoadedClass(name); if (clazz != null) { return clazz; } if (name.startsWith("java.") || name.startsWith("javax.") || name.startsWith("org.w3c.") || name.startsWith("org.apache.log4j")) { regular = true; if (getParent() != null) { try { clazz = getParent().loadClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the parent classloader"); } } } if (clazz == null) { try { clazz = findClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the classloader classpath"); } if (clazz == null && !regular && getParent() != null) { clazz = getParent().loadClass(name); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { if (iHaveMadeThisCall) { return null; } if (name == null) { throw new NullPointerException(); } if (name.indexOf("/") != -1) { throw new ClassNotFoundException(name); } Class<?> clazz = findLoadedClass(name); if (clazz == null) { clazz = fManager.getLoaded(name); } if (clazz == null) { FraSCAtiOSGiClassLoader root = fManager.getClassLoader(); clazz = root.findClass(name); if (clazz == null) { try { iHaveMadeThisCall = true; ClassLoader parent = root.getParent(); if (parent == null) { clazz = ClassLoader.getSystemClassLoader().loadClass( name); } else { clazz = parent.loadClass(name); } } catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); } finally { iHaveMadeThisCall = false; } } if (clazz == null) { clazz = fManager.loadClass(name); } if (clazz != null) { fManager.registerClass(name, clazz); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/FrascatiClassLoader.java
Override protected Class<?> findClass(String name) throws ClassNotFoundException { // Delegate to the URLClassLoader class. try { return super.findClass(name); } catch(ClassNotFoundException cnfe) { // ignore and pass to other parent class loaders. } // Search into parent class loaders. for(ClassLoader parentClassLoader : this.parentClassLoaders) { try { return parentClassLoader.loadClass(name); } catch(ClassNotFoundException cnfe) { // ignore and pass to the next parent class loader. } } // class not found. throw new ClassNotFoundException(name); }
0 10
            
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { // First, check if the class has already been loaded boolean regular = false; Class<?> clazz = findLoadedClass(name); if (clazz != null) { return clazz; } if (name.startsWith("java.") || name.startsWith("javax.") || name.startsWith("org.w3c.") || name.startsWith("org.apache.log4j")) { regular = true; if (getParent() != null) { try { clazz = getParent().loadClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the parent classloader"); } } } if (clazz == null) { try { clazz = findClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the classloader classpath"); } if (clazz == null && !regular && getParent() != null) { clazz = getParent().loadClass(name); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { if (iHaveMadeThisCall) { return null; } if (name == null) { throw new NullPointerException(); } if (name.indexOf("/") != -1) { throw new ClassNotFoundException(name); } Class<?> clazz = findLoadedClass(name); if (clazz == null) { clazz = fManager.getLoaded(name); } if (clazz == null) { FraSCAtiOSGiClassLoader root = fManager.getClassLoader(); clazz = root.findClass(name); if (clazz == null) { try { iHaveMadeThisCall = true; ClassLoader parent = root.getParent(); if (parent == null) { clazz = ClassLoader.getSystemClassLoader().loadClass( name); } else { clazz = parent.loadClass(name); } } catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); } finally { iHaveMadeThisCall = false; } } if (clazz == null) { clazz = fManager.loadClass(name); } if (clazz != null) { fManager.registerClass(name, clazz); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
Override public synchronized Class<?> loadClass(String name) throws ClassNotFoundException { if (iHaveMadeThisCall) { // if the current instance has been called to load a class // avoid circular error return null; } return loadClass(name, true); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
Override public synchronized Class<?> loadClass(String name) throws ClassNotFoundException { return loadClass(name, false); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
Override public synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { Class<?> clazz = null; if (manager != null) { clazz = manager.getLoaded(name); } if(clazz == null) { clazz = getLoaded(name); } if (clazz == null) { clazz = findLoadedClass(name); } if (clazz == null) { ClassLoader parent = getParent(); if (parent == null) { parent = ClassLoader.getSystemClassLoader(); } try{ clazz = parent.loadClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] getParent().loadClass("+ name+") has thrown a ClassNotFoundException"); } } if (clazz == null) { clazz = findClass(name); } if(resolve) { resolveClass(clazz); } return clazz; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
Override public Class<?> findClass(String name) throws ClassNotFoundException { Class<?> clazz = null; if(delegate != null) { try { clazz = delegate.findClass(name); } catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] resourceLoader.findClass("+ name+") has thrown a ClassNotFoundException"); } } if(clazz == null) { clazz = super.findClass(name); } return clazz; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
public static Object stringToValue(String propertyType, String propertyValue, ClassLoader cl) throws ClassNotFoundException, URISyntaxException, MalformedURLException { JavaType javaType = JavaType.VALUES.get(propertyType); return stringToValue(javaType, propertyValue, cl); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
public static Object stringToValue(JavaType propertyType, String propertyValue, ClassLoader cl) throws ClassNotFoundException, URISyntaxException, MalformedURLException { Object computedPropertyValue; switch (propertyType) { case BIG_DECIMAL_OBJECT: computedPropertyValue = new BigDecimal(propertyValue); break; case BIG_INTEGER_OBJECT: computedPropertyValue = new BigInteger(propertyValue); break; case BOOLEAN_PRIMITIVE: case BOOLEAN_OBJECT: computedPropertyValue = Boolean.valueOf(propertyValue); break; case BYTE_PRIMITIVE: case BYTE_OBJECT: computedPropertyValue = Byte.valueOf(propertyValue); break; case CLASS_OBJECT: computedPropertyValue = cl.loadClass(propertyValue); break; case CHAR_PRIMITIVE: case CHARACTER_OBJECT: computedPropertyValue = propertyValue.charAt(0); break; case DOUBLE_PRIMITIVE: case DOUBLE_OBJECT: computedPropertyValue = Double.valueOf(propertyValue); break; case FLOAT_PRIMITIVE: case FLOAT_OBJECT: computedPropertyValue = Float.valueOf(propertyValue); break; case INT_PRIMITIVE: case INTEGER_OBJECT: computedPropertyValue = Integer.valueOf(propertyValue); break; case LONG_PRIMITIVE: case LONG_OBJECT: computedPropertyValue = Long.valueOf(propertyValue); break; case SHORT_PRIMITIVE: case SHORT_OBJECT: computedPropertyValue = Short.valueOf(propertyValue); break; case STRING_OBJECT: computedPropertyValue = propertyValue; break; case URI_OBJECT: computedPropertyValue = new URI(propertyValue); break; case URL_OBJECT: computedPropertyValue = new URL(propertyValue); break; case QNAME_OBJECT: computedPropertyValue = QName.valueOf(propertyValue); break; default: return null; } return computedPropertyValue; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
Override public final <T> Class<T> loadClass(String className) throws ClassNotFoundException { try { return super.loadClass(className); } catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; } }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/FrascatiClassLoader.java
Override protected Class<?> findClass(String name) throws ClassNotFoundException { // Delegate to the URLClassLoader class. try { return super.findClass(name); } catch(ClassNotFoundException cnfe) { // ignore and pass to other parent class loaders. } // Search into parent class loaders. for(ClassLoader parentClassLoader : this.parentClassLoaders) { try { return parentClassLoader.loadClass(name); } catch(ClassNotFoundException cnfe) { // ignore and pass to the next parent class loader. } } // class not found. throw new ClassNotFoundException(name); }
42
            
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the parent classloader"); }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "'" + name + "' class not found using the classloader classpath"); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoaderManager.java
catch (ClassNotFoundException e) { // do nothing }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassNotFoundException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.warning("No Plugin class found for AbstractResource extension"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.INFO, resourceFilterProp + " not found"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ClassNotFoundException e) { log.log(Level.WARNING,e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ClassNotFoundException e) { log.log(Level.INFO, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiRegistryImpl.java
catch (ClassNotFoundException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] getParent().loadClass("+ name+") has thrown a ClassNotFoundException"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (ClassNotFoundException e) { log.log(Level.CONFIG, "[" + this + "] resourceLoader.findClass("+ name+") has thrown a ClassNotFoundException"); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/CallbackInterfaceResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/CallbackInterfaceResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver return; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/AuthenticationResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver return composite; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaInterfaceResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaInterfaceResolver.java
catch (ClassNotFoundException e) { // Already reported by the JavaResolver return; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaResolver.java
catch (ClassNotFoundException e) { parsingContext.error("<sca:implementation.java class='" + javaImpl.getClass_() + "'/> class '" + javaImpl.getClass_() + "' not found"); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/JavaResolver.java
catch (ClassNotFoundException e) { parsingContext.error("<sca:interface.java interface='" + interfaceJavaInterface + "'/> interface '" + interfaceJavaInterface + "' not found"); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch (ClassNotFoundException cnfe) { String msg = propName + " - Java type known but not dealt by OW2 FraSCAti: '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.severe(msg); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/LoadMenuItem.java
catch(ClassNotFoundException e){ //do nothing }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch(ClassNotFoundException cnfe) { log.fine("No " + packageName + ".package-info.class found."); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (ClassNotFoundException cnfe) { // Should never happen but we never know. severe(new ProcessorException(property, "JAXB package info for " + toString(property) + " not found", cnfe)); return; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
catch(ClassNotFoundException cnfe) { throw new Error(cnfe); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch (ClassNotFoundException cnfe) { // If the Java interface is not found then this requires to compile WSDL to Java. }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch(ClassNotFoundException cnfe) { // ObjectFactory class not found then compile the WSDL file. }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(ClassNotFoundException cnfe) { severe(new ProcessorException(implementation, "Java interface '" + interfaceSignature + "' not found", cnfe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaImplementation, "class '", javaImplementation.getClass_(), "' not found"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(ClassNotFoundException cnfe) { error(processingContext, property, "Java class '", propertyValue, "' not found"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java interface '", javaInterface.getInterface(), "' not found"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java callback interface '", javaInterface.getCallbackInterface(), "' not found"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/FrascatiClassLoader.java
catch(ClassNotFoundException cnfe) { // ignore and pass to other parent class loaders. }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/FrascatiClassLoader.java
catch(ClassNotFoundException cnfe) { // ignore and pass to the next parent class loader. }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
catch (ClassNotFoundException cnfe) { // If the Java interface is not found then this requires to compile Native to Java. }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (ClassNotFoundException e) { throw new ReflectionException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); }
4
            
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
catch(ClassNotFoundException cnfe) { throw new Error(cnfe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ProcessingContextImpl.java
catch(ClassNotFoundException cnfe) { if(getResource(className.replace(".", File.separator) + ".java") != null) { return null; } throw cnfe; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (ClassNotFoundException e) { throw new ReflectionException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); }
1
unknown (Lib) ContentInstantiationException 0 0 0 1
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (ContentInstantiationException e) { e.printStackTrace(); }
0 0
runtime (Lib) Error 13
            
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
public static Element toElement(String xmlMessage) { try { final ByteArrayInputStream bais = new ByteArrayInputStream(xmlMessage.getBytes()); // TODO : the SAXBuilder can be create once and reuse? final SAXBuilder saxBuilder = new SAXBuilder(); final Document jdomDocument = saxBuilder.build(bais); return jdomDocument.getRootElement(); } catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); } catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); } }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
public static void refreshFrascatiExplorerGUI() { // As refreshAll() is not thread-safe, then synchronizes via Swing. try { SwingUtilities.invokeAndWait( new Runnable() { /** * @see java.lang.Runnable#run() */ public final void run() { FraSCAtiExplorer.SINGLETON.get() .getFraSCAtiExplorerService(Tree.class) .refreshAll(); } } ); } catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
public static void main(String[] args) { // The SCA composite for FraSCAti Explorer uses <frascati:implementation.fractal> // so a FraSCAti Fractal bootstrap is required. String bootstrap = System.getProperty(BOOTSTRAP_PROPERTY); if ((bootstrap == null)) { // || !bootstrap.contains("Fractal") ) { System.setProperty(BOOTSTRAP_PROPERTY, "org.ow2.frascati.bootstrap.FraSCAtiFractal"); } try { FraSCAti frascati = FraSCAti.newFraSCAti(); for (String argument : args) { if (argument.endsWith(".zip")) { File file = new File(argument); if (file.exists()) frascati.getContribution(argument); else { System.err.println("Cannot found " + file.getAbsolutePath()); System.exit(0); } } else frascati.getComposite(argument); } } catch(Exception e) { e.printStackTrace(); throw new Error(e); } // Refresh the FraSCAti Explorer GUI. RefreshExplorerTreeThread.refreshFrascatiExplorerGUI(); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
public Class<?> getMembraneClass() { // TODO: Don't use current thread's context class loader. try { return org.ow2.frascati.util.FrascatiClassLoader.getCurrentThreadContextClassLoader().loadClass(this.membraneClass); } catch(ClassNotFoundException cnfe) { throw new Error(cnfe); } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
protected final BPELInternalMessage invoke(String operationName, BPELInternalMessage message) { log.fine("Invoke Java delegate of the BPEL partner link output '" + easyBpelPartnerLink.getName() + "'"); log.fine(" operationName=" + operationName); log.fine(" message.endpoint=" + message.getEndpoint()); log.fine(" message.operationName=" + message.getOperationName()); log.fine(" message.qname=" + message.getQName()); log.fine(" message.service=" + message.getService()); log.fine(" message.content=" + message); Method method = this.delegate.getMethod(operationName); log.fine("Target Java method is " + method); try { Element response = this.delegate.invoke(method, message.getContent()); // TODO: CrŽer un nouveau InternalMessage plutot que d'utiliser le message en entrŽe message.setContent(response); } catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); } return message; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Type getFcType() { log.finest("getFcType() called"); try { return new BasicComponentType(new InterfaceType[0]); } catch(InstantiationException ie) { throw new Error(ie); } }
13
            
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
catch(Exception e) { e.printStackTrace(); throw new Error(e); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/MembraneProviderImpl.java
catch(ClassNotFoundException cnfe) { throw new Error(cnfe); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
catch(NoSuchInterfaceException nsie) { // Must never happen!!! throw new Error("Internal FraSCAti error!", nsie); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
catch(IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
catch(InstantiationException ie) { throw new Error(ie); }
0 1
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Error error) { log.warning("Thrown " + error.toString()); sb.append(" ..."); }
0 0
checked (Lib) Exception 6
            
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void main(String[] args) throws Exception { if (args.length == 0) { //usage: <x or c> <jar-archive> <files...> System.exit(0); } if (args[0].equals("x")) { BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(args[1])); File dest = new File(args[2]); unjar(inputStream, dest); } else if (args[0].equals("c")) { BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(args[1])); File[] src = new File[args.length - 2]; for (int i = 0; i < src.length; i++) { src[i] = new File(args[2 + i]); } jar(out, src); } else { throw new Exception("Need x or c as first argument"); } }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
Override public boolean undeploy(String[] ids, Application application) throws Exception { boolean deploymentResult = true; for (int i = 0; i < ids.length; i++) { String server = ids[i]; deployment = JAXRSClientFactory.create(server, Deployment.class); LOG.info("Undeploying " + Integer.toString(i+1) + " of " + Integer.toString(ids.length)); if (deployment.undeployComposite(application.getName()) >= 0) { LOG.info("Application undeployed"); } else { LOG.info("Error deploying application"); deploymentResult = false; } } if (deploymentResult == false) { throw new Exception("Fail in one or more undeployments. See the log error or contact the administrator."); } return deploymentResult; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
Override public boolean deploy(String[] ids, Application application) throws Exception { boolean deploymentResult = true; File contribFile = scaCompiler.compile(application.retrieveAbsoluteRoot(), application.getName(), application.getLibPath()); if (contribFile == null) { throw new Exception("No contribution file generated."); } String serversFaulty = "Errors in servers: "; for (int i = 0; i < ids.length; i++) { String server = ids[i]; LOG.info("Deploying " + Integer.toString(i+1) + " of " + Integer.toString(ids.length)); if(deploy(server, contribFile) == false){ serversFaulty = serversFaulty.concat(server+", "); deploymentResult = false; } } if (deploymentResult == false) { throw new Exception("Fail in one or more deployments.\n"+serversFaulty+"verify log errors or contact the administrator."); } return deploymentResult; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
private boolean deploy(String server,File contribFile) throws Exception { LOG.info("Cloud url : "+server); deployment = JAXRSClientFactory.create(server, Deployment.class); //Deploy contribution String contrib = null; try { contrib = FileUtil.getStringFromFile(contribFile); } catch (IOException e) { throw new IOException("Cannot read the contribution!"); } LOG.info("** Trying to deploy a contribution ..."); try { if (deployment.deployContribution(contrib) >= 0) { LOG.info("** Contribution deployed!"); return true; }else{ LOG.severe("Error trying to deploy contribution in: " + server); return false; } } catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
private void invokeMethod(Method method, Message msg) throws Exception { log.fine("invokeMethod " + method); Class<?>[] parameterTypes = method.getParameterTypes(); Object response = null; if (parameterTypes.length == 0) { response = method.invoke(getServant(), (Object[]) null); } else if (parameterTypes.length == 1 && Message.class.isAssignableFrom(parameterTypes[0])) { /* If there is a single parameter that is a JMSMessage, then the JMSMessage is * passed as is.*/ log.fine("Pass the JMSMessage as is."); response = method.invoke(getServant(), msg); } else { if (msg instanceof BytesMessage) { BytesMessage bytesMsg = (BytesMessage) msg; byte[] data = new byte[(int) bytesMsg.getBodyLength()]; bytesMsg.readBytes(data); Method m = delegate.getMethod(method.getName()); response = delegate.invoke(m, new String(data)); } else if (msg instanceof TextMessage) { TextMessage txtMsg = (TextMessage) msg; Method m = delegate.getMethod(method.getName()); response = delegate.invoke(m, txtMsg.getText()); } else { /* Otherwise, if the JMSMessage is not a JMS text message or bytes message * containing XML, it is invalid. */ log.severe("Received message is invalid."); } } if (method.getReturnType().equals(void.class) && method.getExceptionTypes().length == 0) { // One-way message exchange: nothing to do log.fine("One-way message exchange"); } else { // Request/response message exchange log.fine("Request/response message exchange"); TextMessage responseMsg = jmsModule.getResponseSession().createTextMessage(); if (getCorrelationScheme().equals(JmsConnectorConstants.CORRELATION_ID_SCHEME)) { responseMsg.setJMSCorrelationID(msg.getJMSCorrelationID()); } else if (getCorrelationScheme().equals(JmsConnectorConstants.MESSAGE_ID_SCHEME)) { responseMsg.setJMSCorrelationID(msg.getJMSMessageID()); } if (responseMsg != null) { responseMsg.setText(response.toString()); } // the request message included a non-null JMSReplyTo destination, the SCA runtime // MUST send the response message to that destination Destination responseDest = msg.getJMSReplyTo(); log.fine("ReplyTo field: " + responseDest); if (responseDest == null) { // the JMS binding includes a response/destination element the SCA runtime MUST // send the response message to that destination responseDest = jmsModule.getResponseDestination(); } if (responseDest == null) { throw new Exception("No response destination found."); } MessageProducer responseProducer = jmsModule.getResponseSession().createProducer(responseDest); responseProducer.send(responseMsg); responseProducer.close(); } log.fine("invokeMethod done"); }
1
            
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); }
77
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/factory/FraSCAtiNuxeoFactory.java
Override public Application createApplication(ApplicationDescriptor desc) throws java.lang.Exception { log.log(Level.INFO, "Create FraSCAtiNuxeo Application"); char sep = File.separatorChar; URLClassLoader cl = (URLClassLoader) Thread.currentThread() .getContextClassLoader(); log.log(Level.INFO, "ContextClassLoader found : " + cl); String home = Environment.getDefault().getHome().getAbsolutePath(); log.log(Level.INFO, "Frascati home dir : " + home); String outputDir = new StringBuilder(home).append(sep).append( "tmp").toString(); System.setProperty(FRASCATI_OUTPUT_DIRECTORY_PROPERTY, outputDir); System.setProperty(FraSCAtiIsolated.ISOLATED_FRASCATI_LIBRARIES_BASEDIR, new StringBuilder(home).append(sep).append("frascati") .append(sep).append("lib").toString()); log.log(Level.INFO, "Define FraSCAti default output dir : " + outputDir); String propertyBootFilePath = new StringBuilder(home).append(sep) .append("config").append(sep) .append("frascati_boot.properties").toString(); log.log(Level.INFO, "Read frascati_boot.properties file at " + propertyBootFilePath); try { Properties props = new Properties(); props.loadFromXML(new FileInputStream( new File(propertyBootFilePath))); Enumeration<Object> keys = props.keys(); while (keys.hasMoreElements()) { String key = (String) keys.nextElement(); String value = props.getProperty(key); System.setProperty(key, value); } } catch (Exception e) { log.log(Level.INFO, "no boot properties found"); } URL[] urls = cl.getURLs(); if (urls == null || urls.length == 0) { log.log(Level.INFO, "No classpath entry found for the IsolatedClassLoader"); } else if (log.getLevel() == Level.CONFIG) { for (URL url : urls) { log.log(Level.INFO, "Added classpath entry :" + url.toExternalForm()); } } if (desc != null) { log.log(Level.INFO, "ApplicationDescriptor found - required isolated status : " + desc.isIsolated()); } else { log.log(Level.WARNING, "No ApplicationDescriptor found"); } FraSCAtiNuxeo serviceProvider = new FraSCAtiNuxeo(); return serviceProvider; }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
private Object getComponent(Object currentComponent, String componentPath) throws Exception { String[] componentPathElements = componentPath.split("/"); String lookFor = componentPathElements[0]; String next = null; //define the part before the first '/' in the path as being the name //of the next component to find if (componentPathElements.length > 1) { int n = 1; StringBuilder nextSB = new StringBuilder(); for (; n < componentPathElements.length; n++) { nextSB.append(componentPathElements[n]); if (n < componentPathElements.length - 1) { nextSB.append("/"); } } next = nextSB.toString(); } //Retrieve the ContentController Class to enumerate sub-components Class<?> contentControllerClass = isolatedCl .loadClass("org.objectweb.fractal.api.control.ContentController"); //Retrieve the NameController Class to check the name of sub-components Class<?> nameControllerClass = isolatedCl .loadClass("org.objectweb.fractal.api.control.NameController"); //Retrieve the ContentController object for the currentComponent Object contentController = componentClass.getDeclaredMethod( "getFcInterface", new Class<?>[] { String.class }).invoke( currentComponent, "content-controller"); //Retrieve the list of sub-components of the currentComponent Object[] subComponents = (Object[]) contentControllerClass .getDeclaredMethod("getFcSubComponents", (Class<?>[]) null) .invoke(contentController, (Object[]) null); //If there is no subComponents ... if (subComponents == null) { //then return null return null; } //For each sub-component found... for (Object object : subComponents) { //retrieve its NameController ... Object nameController = componentClass.getDeclaredMethod( "getFcInterface", new Class<?>[] { String.class }).invoke( object, "name-controller"); //get its name ... String name = (String) nameControllerClass.getDeclaredMethod( "getFcName", (Class<?>[]) null).invoke(nameController, (Object[]) null); //check whether it is the one we are looking for if (lookFor.equals(name)) { //if there is no more path element to go through... if (next == null || next.length() == 0) { //return the sub-component return object; } else { //define the sub-component as the currentComponent //in a new getComponent method call return getComponent(object, next); } } } return null; }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
public <T> T getService(Class<T> serviceClass,String serviceName, String servicePath) throws Exception { Object component = managerClass.getDeclaredMethod( "getTopLevelDomainComposite").invoke(compositeManager); Object container = getComponent(component,servicePath); T service = (T) frascatiClass.getDeclaredMethod( "getService", new Class<?>[] { componentClass, String.class, Class.class }) .invoke(frascati, new Object[] { container, serviceName, serviceClass}); return service; }
// in nuxeo/frascati-isolated/src/main/java/org/ow2/frascati/isolated/FraSCAtiIsolated.java
public void stop() throws Exception { Object lifeCycleController = componentClass.getDeclaredMethod( "getFcInterface", new Class<?>[] { String.class }).invoke( assemblyFactory, new Object[] { "lifecycle-controller" }); Class<?> lifecycleClass = isolatedCl.loadClass( "org.objectweb.fractal.api.control.LifeCycleController"); lifecycleClass.getDeclaredMethod("stopFc").invoke(lifeCycleController); assemblyFactory = null; compositeManager = null; frascati = null; isolatedCl = null; }
// in osgi/frascati-in-osgi/osgi/pojosr/src/main/java/org/ow2/frascati/osgi/frameworks/pojosr/Main.java
public static void main(String[] args) throws Exception { Main main = new Main(); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiActivator.java
public void start(BundleContext context) throws Exception { frascatiLauncher = new FraSCAtiLauncher(context); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiActivator.java
public void stop(BundleContext context) throws Exception { frascatiLauncher.stop(); }
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/Activator.java
public void start(BundleContext context) throws Exception { loader = new CompositeListener(); context.addBundleListener(loader); customizerFrascatiTracker = new FrascatiServiceTracker(loader); fraSCAtiTracker = new ServiceTracker(context, FraSCAtiOSGiService.class.getCanonicalName(), customizerFrascatiTracker); fraSCAtiTracker.open(); // needed for equinox /* * ServiceReference[] references = context.getAllServiceReferences(null, * null); for (ServiceReference reference : references) { Object service * = null; try { service = context.getService(reference); * FraSCAtiOSGiService.class.cast(service); * customizerFrascatiTracker.addingService(reference); * log.log(Level.INFO, service + " // " + FraSCAtiOSGiService.class); } * catch (ClassCastException e) { // System.out.println(service + * " is not a FraSCAtiOSGiService"); } } */ }
// in osgi/frascati-in-osgi/bundles/tracker/src/main/java/org/ow2/frascati/osgi/tracker/Activator.java
public void stop(BundleContext context) throws Exception { customizerFrascatiTracker.deactivate(); fraSCAtiTracker.close(); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
protected Object resolveReference() throws Exception { ServiceReference[] references = bundleContext.getAllServiceReferences( getServiceClass().getCanonicalName(), filter); if (references != null && references.length > 0) { serviceObject = bundleContext.getService(references[0]); log.info("Service found " + serviceObject); } return serviceObject; }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final Bundle[] getBundles() throws Exception { return context.getBundles(); }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final BundleContext getBundleContext() throws Exception { return context; }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
public final String getFramework() throws Exception { StringBuilder builder = new StringBuilder(); builder.append(context.getProperty(Constants.FRAMEWORK_VENDOR)); builder.append(" - "); builder.append(context.getProperty(Constants.FRAMEWORK_VERSION)); framework = builder.toString(); return builder.toString(); }
// in osgi/bundles/log/src/main/java/org/ow2/frascati/osgi/log/Activator.java
public void start(BundleContext context) throws Exception { logIntermediate = new LogIntermediate(); registrationListener = context.registerService( "org.osgi.service.log.LogListener", logIntermediate, null); registrationDispatcher = context.registerService( "org.ow2.frascati.osgi.log.api.LogDispatcherService", logIntermediate, null); customizerReaderTracker = new LogReaderTracker(logIntermediate); logInTracker = new ServiceTracker(context, "org.osgi.service.log.LogReaderService", customizerReaderTracker); logInTracker.open(); customizerWriterTracker = new LogWriterTracker(logIntermediate); logOutTracker = new ServiceTracker(context, "org.ow2.frascati.osgi.log.api.LogWriterService", customizerWriterTracker); logOutTracker.open(); registrationWriter = context.registerService( "org.ow2.frascati.osgi.log.api.LogWriterService", new LogSystemOut(), null); }
// in osgi/bundles/log/src/main/java/org/ow2/frascati/osgi/log/Activator.java
public void stop(BundleContext context) throws Exception { customizerReaderTracker.deactivate(); customizerWriterTracker.deactivate(); logInTracker.close(); logOutTracker.close(); if (context.ungetService(registrationListener.getReference())) { registrationListener.unregister(); } if (context.ungetService(registrationDispatcher.getReference())) { registrationDispatcher.unregister(); } if (context.ungetService(registrationWriter.getReference())) { registrationWriter.unregister(); } }
// in frascati-studio/src/main/java/org/easysoa/jpa/DeploymentAccessImpl.java
Override public synchronized void redeploy(String server) throws Exception { LOG.info("redeploy : "+server); EntityManager entityManager = database.get(); DeploymentServer deploymentServer = this.getDeploymentServer(server); for(DeployedApplication deployedApplication : deploymentServer.getDeployedApplications(entityManager, deploymentServer)){ Application application = new Application(); application.setLibPath(preferences.getLibPath()); application.setCurrentWorskpacePath(preferences.getWorkspacePath()); deploy.deploy(new String[]{server}, deployedApplication.getApplication()); } }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
Override public File compile(String root, String applicationName, String libPath) throws Exception { String srcPath = root+File.separator+ sourceDirectory; String binPath = root+File.separator+ binDirectory; fileManager.deleteRecursively(new File( binPath)); List<File> classPath = getClassPath( libPath); if(compileAll(srcPath, binPath, classPath) == false){ return null; } //Copy resources(s) to bin directory to generate jar File dirResources = new File(root +File.separator+ resourcesDirectory); for (File fileToCopy : dirResources.listFiles()) { fileManager.copyFilesRecursively(fileToCopy, dirResources, new File(binPath)); } File jarGenerated = null; jarGenerated = JarGenerator.generateJarFromAll(binPath, binPath + File.separator + ".." + File.separator + applicationName + ".jar"); return generateContribution(applicationName, binPath, jarGenerated); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarGenerator.java
public static File generateJarFromAll(String contentJarPath, String outputJarPath) throws Exception{ BufferedOutputStream out = null; out = new BufferedOutputStream(new FileOutputStream(outputJarPath)); File src = new File(contentJarPath); JarUtils.jar(out, src); File jarFile = new File(outputJarPath); if (jarFile.exists()) { return jarFile; }else{ throw new IOException("Jar File " + jarFile.getCanonicalPath() + " NOT FOUND!"); } }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void main(String[] args) throws Exception { if (args.length == 0) { //usage: <x or c> <jar-archive> <files...> System.exit(0); } if (args[0].equals("x")) { BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(args[1])); File dest = new File(args[2]); unjar(inputStream, dest); } else if (args[0].equals("c")) { BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(args[1])); File[] src = new File[args.length - 2]; for (int i = 0; i < src.length; i++) { src[i] = new File(args[2 + i]); } jar(out, src); } else { throw new Exception("Need x or c as first argument"); } }
// in frascati-studio/src/main/java/org/easysoa/model/Application.java
public void cleanLastDeployedVersion(EntityManager entityManager) throws Exception { Query query = entityManager .createQuery("UPDATE DeployedApplication " + "SET isLastDeployedVersion = false " + "WHERE application = :app"); query.setParameter("app", this); query.executeUpdate(); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
Override public boolean undeploy(String[] ids, Application application) throws Exception { boolean deploymentResult = true; for (int i = 0; i < ids.length; i++) { String server = ids[i]; deployment = JAXRSClientFactory.create(server, Deployment.class); LOG.info("Undeploying " + Integer.toString(i+1) + " of " + Integer.toString(ids.length)); if (deployment.undeployComposite(application.getName()) >= 0) { LOG.info("Application undeployed"); } else { LOG.info("Error deploying application"); deploymentResult = false; } } if (deploymentResult == false) { throw new Exception("Fail in one or more undeployments. See the log error or contact the administrator."); } return deploymentResult; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
Override public boolean deploy(String[] ids, Application application) throws Exception { boolean deploymentResult = true; File contribFile = scaCompiler.compile(application.retrieveAbsoluteRoot(), application.getName(), application.getLibPath()); if (contribFile == null) { throw new Exception("No contribution file generated."); } String serversFaulty = "Errors in servers: "; for (int i = 0; i < ids.length; i++) { String server = ids[i]; LOG.info("Deploying " + Integer.toString(i+1) + " of " + Integer.toString(ids.length)); if(deploy(server, contribFile) == false){ serversFaulty = serversFaulty.concat(server+", "); deploymentResult = false; } } if (deploymentResult == false) { throw new Exception("Fail in one or more deployments.\n"+serversFaulty+"verify log errors or contact the administrator."); } return deploymentResult; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
private boolean deploy(String server,File contribFile) throws Exception { LOG.info("Cloud url : "+server); deployment = JAXRSClientFactory.create(server, Deployment.class); //Deploy contribution String contrib = null; try { contrib = FileUtil.getStringFromFile(contribFile); } catch (IOException e) { throw new IOException("Cannot read the contribution!"); } LOG.info("** Trying to deploy a contribution ..."); try { if (deployment.deployContribution(contrib) >= 0) { LOG.info("** Contribution deployed!"); return true; }else{ LOG.severe("Error trying to deploy contribution in: " + server); return false; } } catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/ZoomOut.java
Override protected void execute(Trace selected) throws Exception { double zoomvalue = TracePanel.zoom.get() * .9; if (zoomvalue > MIN_ZOOM) TracePanel.zoom.set(zoomvalue); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/SaveTraceMenuItem.java
protected final void execute(Trace trace) throws Exception { // At the first call, creates the file chooser. if (fileChooser == null) { fileChooser = new JFileChooser(); // Sets to the user's current directory. fileChooser.setCurrentDirectory(new File(System .getProperty("user.dir"))); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); // Filters all files. fileChooser.setFileFilter(new FileFilter() { /** Whether the given file is accepted by this filter. */ public final boolean accept(File f) { return f.isDirectory() || f.getName().endsWith(".png"); } /** The description of this filter. */ public final String getDescription() { return "PNG image"; } }); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/ZoomIn.java
Override protected void execute(Trace selected) throws Exception { double zoomvalue = TracePanel.zoom.get() * 1.1; if (zoomvalue < MAX_ZOOM) TracePanel.zoom.set(zoomvalue * 1.1); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/AbstractWsdl.java
protected static QName getQNameOfFirstArgument(Method method) throws Exception { // Compute the qname of the @WebParam attached to the first method parameter. Annotation[][] pa = method.getParameterAnnotations(); WebParam wp = (WebParam)pa[0][0]; return toQName(wp, method); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/DocumentWsdlDelegate.java
protected static Object invokeGetter(Object object, String getterName) throws Exception { Method getter = object.getClass().getMethod("get" + firstCharacterUpperCase(getterName), (Class<?>[])null); return getter.invoke(object); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/DocumentWsdlDelegate.java
protected static void invokeSetter(Object object, String setterName, Object value) throws Exception { Method setter = getMethod(object.getClass(), "set" + firstCharacterUpperCase(setterName)); setter.invoke(object, value); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/DocumentWsdlDelegate.java
public String invoke(Method method, String xmlMessage) throws Exception { log.fine("xmlMessage = " + xmlMessage); Class<?>[] methodParameterTypes = method.getParameterTypes(); Annotation[][] pa = method.getParameterAnnotations(); Object[] parameters = new Object[methodParameterTypes.length]; RequestWrapper rw = method.getAnnotation(RequestWrapper.class); if(rw != null) { log.fine("@RequestWrapper for " + method); QName qname = new QName(rw.targetNamespace(), rw.localName()); Object request = JAXB.unmarshall(qname, xmlMessage, null); log.fine("request = " + request); for(int i=0; i<methodParameterTypes.length; i++) { WebParam wp = (WebParam)pa[i][0]; WebParam.Mode wpMode = wp.mode(); if(wpMode == WebParam.Mode.IN) { parameters[i] = invokeGetter(request, wp.name()); } else if(wpMode == WebParam.Mode.OUT) { parameters[i] = new Holder(); } else if(wpMode == WebParam.Mode.INOUT) { Holder<Object> holder = new Holder<Object>(); holder.value = invokeGetter(request, wp.name()); parameters[i] = holder; } } } else { log.fine("no @RequestWrapper for " + method); QName qname = getQNameOfFirstArgument(method); if(methodParameterTypes[0] == Holder.class) { parameters[0] = new Holder(); } parameters[0] = JAXB.unmarshall(qname, xmlMessage, parameters[0]); } Object result = method.invoke(this.delegate, parameters); log.fine("result = " + result); if(method.getAnnotation(Oneway.class) != null) { log.fine("@Oneway for " + method); return null; } ResponseWrapper rrw = method.getAnnotation(ResponseWrapper.class); if(rrw != null) { log.fine("@ResponseWrapper for " + method); Class<?> responseClass = classLoader.loadClass(rrw.className()); Object response = responseClass.newInstance(); WebResult wr = method.getAnnotation(WebResult.class); if(wr != null) { log.fine("@WebResult(name=" + wr.name() + ") for " + method); invokeSetter(response, wr.name(), result); } for(int i=0; i<methodParameterTypes.length; i++) { WebParam wp = (WebParam)pa[i][0]; // if (wpMode == WebParam.Mode.IN) then nothing to do. if(wp.mode() != WebParam.Mode.IN) { // i.e. OUT or INOUT log.fine("@WebParam(mode=" + wp.mode() + ") for " + method); Object value = ((Holder)parameters[i]).value; invokeSetter(response, wp.name(), value); } } log.fine("response = " + response); String reply = JAXB.marshall(new QName(rrw.targetNamespace(), rrw.localName()), response); log.fine("reply = " + reply); return reply; } else { log.fine("No @ResponseWrapper for " + method); QName qname = null; WebResult wr = method.getAnnotation(WebResult.class); if(wr != null) { qname = new QName(wr.targetNamespace(), wr.name()); } else { if(methodParameterTypes[0] == Holder.class) { qname = getQNameOfFirstArgument(method); result = ((Holder)parameters[0]).value; } } if(qname != null) { String reply = JAXB.marshall(qname, result); log.fine("reply = " + reply); return reply; } return null; } }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/DocumentWsdlDelegate.java
public Element invoke(Method method, Element element) throws Exception { String request = JDOM.toString(element); String response = invoke(method, request); return (response != null) ? JDOM.toElement(response) : null; }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/AbstractWsdlInvocationHandler.java
protected final String marshallInvocation(Method method, Object[] args) throws Exception { // TODO: Support for zero and several arguments must be added. if(args.length != 1) { throw new IllegalArgumentException("Only methods with one argument are supported, given method is " + method + " and argument length is " + args.length); } // Compute the qname of the first parameter. QName qname = getQNameOfFirstArgument(method); // Marshall the first argument into as an XML message. return JAXB.marshall(qname, args[0]); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/AbstractWsdlInvocationHandler.java
protected final Object unmarshallResult(Method method, Object[] args, Element element) throws Exception { // Unmarshall the given XML message. SOAPBinding soapBinding = method.getDeclaringClass().getAnnotation(SOAPBinding.class); if(soapBinding != null) { log.fine("@SOAPBinding for " + method); if(soapBinding.style() == SOAPBinding.Style.DOCUMENT) { log.fine("@SOAPBinding(style=SOAPBinding.Style.DOCUMENT) for " + method); if(soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) { log.fine("@SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE) for " + method); WebResult wr = method.getAnnotation(WebResult.class); if(wr != null) { Object result = JDOM.unmarshallContent0(element, method.getReturnType()); if(result != null) { return result; } QName qname = new QName(wr.targetNamespace(), wr.name()); String xmlMessage = JDOM.toString(element); return JAXB.unmarshall(qname, xmlMessage, null); } if(args[0].getClass() == Holder.class) { QName qname = getQNameOfFirstArgument(method); String xmlMessage = JDOM.toString(element); Object result = JAXB.unmarshall(qname, xmlMessage, args[0]); return null; } } log.fine("@SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED) for " + method); // Compute the qname of the @WebResult attached to the method. String targetNamespace = null; String name = ""; WebResult wr = method.getAnnotation(WebResult.class); if(wr != null) { log.fine("@WebResult for " + method); targetNamespace = wr.targetNamespace(); name = wr.name(); } if(targetNamespace == null || targetNamespace.equals("")) { targetNamespace = getTargetNamespace(method); } String xmlMessage = JDOM.toString(element); log.fine("xmlMessage = " + xmlMessage); return JAXB.unmarshall(new QName(targetNamespace, name), xmlMessage, args[0]); } if(soapBinding.style() == SOAPBinding.Style.RPC) { log.fine("@SOAPBinding(style=SOAPBinding.Style.RPC) for " + method); return JDOM.unmarshallElement0(element, method.getReturnType()); } } return null; }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/RpcWsdlDelegate.java
public String invoke(Method method, String xmlMessage) throws Exception { Element request = JDOM.toElement(xmlMessage); Element response = invoke(method, request); return JDOM.toString(response); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/RpcWsdlDelegate.java
public Element invoke(Method method, Element element) throws Exception { Object arg = JDOM.unmarshallElement0(element, method.getParameterTypes()[0]); Object result = method.invoke(delegate, arg); log.fine("result = " + result); String name = element.getName(); Element response = new Element(name); response.setNamespace(element.getNamespace()); Element child = new Element(name + "Response"); child.setText(result.toString()); response.addContent(child); return response; }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
public static Object unmarshallElement0(final Element element, Class<?> type) throws Exception { Element element0 = (Element)element.getContent().get(0); return unmarshallContent0(element0, type); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
public static Object unmarshallContent0(final Element element, Class<?> type) throws Exception { Content content0 = (Content)element.getContent().get(0); if(content0 instanceof Element) { QName qname = new QName(element.getNamespace().getURI(), element.getName()); return JAXB.unmarshall(qname, toString(element), null); } if(content0 instanceof Text) { String value = ((Text)content0).getText(); if(type.equals(String.class)) { return value; } else if(type.equals(int.class)) { return Integer.valueOf(value); } else if(type.equals(boolean.class)) { return Boolean.valueOf(value); } // TODO manage other data types } return null; }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/AbstractMenuItemPlugin.java
protected void execute(T selected, final MenuItemTreeView e) throws Exception { execute(selected); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/AbstractMenuItemPlugin.java
protected void execute(T selected) throws Exception { }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/action/FscriptAction.java
public final void actionPerformed(final MenuItemTreeView tree) throws Exception { FraSCAtiScriptEngineFactory factory = new FraSCAtiScriptEngineFactory(); InvocableScriptEngine engine = FraSCAtiFScript.getSingleton().getScriptEngine(); Bindings bindings = engine.createBindings(); factory.addDomainToContext( engine.getBindings(ScriptContext.GLOBAL_SCOPE) ); factory.updateContext( bindings, "root", (Component) tree.getSelectedObject()); new Console(bindings).setVisible(true); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
public final void actionPerformed(MenuItemTreeView e) throws Exception { reference = (Interface) e.getSelectedObject(); treeBox = new TreeBox(e.getTree().duplicate()); treeBox.setPreferredSize(new Dimension(450, 350)); DialogBox dialog = new DefaultDialogBox("Select the service to wire"); dialog.setValidateAction(this); dialog.addElementBox(treeBox); dialog.show(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
public final void executeAction() throws Exception { Object o = treeBox.getObject(); Interface service = (Interface) o; FcExplorer.getBindingController(reference.getFcItfOwner()).bindFc(reference.getFcItfName(),service); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
public final void execute(DropTreeView dropTreeView) throws Exception { if (dropTreeView != null) { Component intent = null, owner = null; Interface itf = null; SCABasicIntentController ic = null; String intentName = null; try { intent = (Component) dropTreeView.getDragSourceObject(); } catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "An intent must be an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; } try { // SCA components owner = (Component) dropTreeView.getSelectedObject(); } catch (ClassCastException cce) { // SCA services & references try { itf = (Interface) dropTreeView.getSelectedObject(); owner = itf.getFcItfOwner(); } catch (ClassCastException cce2) { JOptionPane.showMessageDialog(null, "An intent can only be applied on components, services and references!"); return; } } // Get intent controller try { ic = (SCABasicIntentController) owner.getFcInterface(SCABasicIntentController.NAME); } catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; } if (intent != null) { String itfName = null; try { intentName = Fractal.getNameController(intent).getFcName(); } catch (NoSuchInterfaceException nsie) { LOG.log(Level.SEVERE, "Cannot find the Name Controller!", nsie); } try { // Stop owner component Fractal.getLifeCycleController(owner).stopFc(); // Get intent handler IntentHandler h = TinfiDomain.getService(intent, IntentHandler.class, "intent"); // Add intent if ( itf != null ) { itfName = itf.getFcItfName(); ic.addFcIntentHandler(h, itfName); } else { ic.addFcIntentHandler(h); } // Start owner component Fractal.getLifeCycleController(owner).startFc(); } catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; JOptionPane.showMessageDialog(null,"Intent '" + intentName + "' cannot be added to " + errorMsg); LOG.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); } } } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
public final void execute(DropTreeView dropTreeView) throws Exception { if (dropTreeView != null) { Component src = null, dest = null; ContentController contentCtl = null; // Check source component try { src = (Component) dropTreeView.getDragSourceObject(); } catch (ClassCastException cce) { // Should not happen JOptionPane.showMessageDialog(null, "Can only add an SCA component! source object is " +dropTreeView.getDragSourceObject().getClass()); return; } // Check destination composite try { dest = (Component) dropTreeView.getSelectedObject(); contentCtl = Fractal.getContentController(dest); } catch (ClassCastException cce) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; } catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; } // Add component contentCtl.addFcSubComponent(src); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddToClasspathAction.java
protected final void execute(final CompositeManager compositeManager) throws Exception { // At the first call, creates the file chooser. if (fileChooser == null) { fileChooser = new JFileChooser(); // Sets to the user's current directory. fileChooser.setCurrentDirectory(new File(System.getProperty("user.dir"))); // Filters JAR files. fileChooser.setFileFilter( new FileFilter() { /** Whether the given file is accepted by this filter. */ public final boolean accept(File f) { String extension = f.getName().substring(f.getName().lastIndexOf('.') + 1); return extension.equalsIgnoreCase("jar") || f.isDirectory(); } /** The description of this filter. */ public final String getDescription() { return "JAR files / Class Folder"; } } ); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/LoadMenuItem.java
protected final void execute(final CompositeManager domain) throws Exception { // At the first call, creates the file chooser. if(fileChooser == null) { fileChooser = new JFileChooser(); // Sets to the user's current directory. fileChooser.setCurrentDirectory(new File(System.getProperty("user.dir"))); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); // Filters SCA files. fileChooser.setFileFilter( new FileFilter() { /** Whether the given file is accepted by this filter. */ public final boolean accept(File f) { String extension = f.getName().substring(f.getName().lastIndexOf('.') + 1); return extension.equalsIgnoreCase("composite") || extension.equalsIgnoreCase("zip") || f.isDirectory(); } /** The description of this filter. */ public final String getDescription() { return "SCA .composite or .zip files"; } } ); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/UnwireAction.java
public final void actionPerformed(MenuItemTreeView e) throws Exception { Interface ir = (Interface) e.getSelectedObject(); Component ci = ir.getFcItfOwner(); BindingController bc = FcExplorer.getBindingController(ci); bc.unbindFc(ir.getFcItfName()); StringBuffer message = new StringBuffer(); message.append("\"" + ir.getFcItfName() + "\" reference has been successfully unbound !\n"); Type t = ci.getFcType(); if(ComponentType.class.isAssignableFrom(t.getClass())) { InterfaceType it = (InterfaceType) ir.getFcItfType(); if(!it.isFcOptionalItf()&&!it.isFcCollectionItf()) { message.append("This service is mandatory, so, rebind it before starting the component again."); } } JOptionPane.showMessageDialog(null,message.toString(),"Unbind success",JOptionPane.INFORMATION_MESSAGE); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
Override protected final Object getService(ScriptEngine scriptEngine, String name, Class<?> interfaze) throws Exception { // Get a typed proxy from the script engine. return ((Invocable)scriptEngine).getInterface(interfaze); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
Override protected final void setReference(ScriptEngine scriptEngine, String name, Object delegate, Class<?> interfaze) throws Exception { // Put the reference into the script engine. scriptEngine.put(name, delegate); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
public final void compileWSDL(String wsdlUri, ProcessingContext processingContext) throws Exception { // Check if the given WSDL file was already compiled. if(this.alreadyCompiledWsdlFiles.get(wsdlUri) != null) { log.info("WSDL '" + wsdlUri + "' already compiled."); return; } // Keep that this wsdl file is compiled to avoid to recompile it several times. this.alreadyCompiledWsdlFiles.put(wsdlUri, wsdlUri); try { // Read the WSDL definition. Definition definition = readWSDL(wsdlUri); // Try to load the ObjectFactory class of the Java package corresponding to the WSDL targetNamespace. String objectFactoryClassName = NameConverter.standard.toPackageName(definition.getTargetNamespace()) + ".ObjectFactory"; processingContext.loadClass(objectFactoryClassName); // If found then the WSDL file was already compiled. log.info("WSDL '" + wsdlUri + "' already compiled."); return; } catch(ClassNotFoundException cnfe) { // ObjectFactory class not found then compile the WSDL file. } // TODO: Could be optimized to avoid to read the WSDL file twice. // Require to study the Apache CXF WSDL2Java class to find a more appropriate entry point. String outputDirectory = this.membraneGeneration.getOutputDirectory() + '/' + targetDirectory; // Search if a global JAXB binding file is present into the processing context. URL bindingFileURL = processingContext.getResource(bindingFileName); // Create WSDL compiler parameters, including -b option if the JAXB binding file is present in the classpath. String[] params = null; if(bindingFileURL != null) { params = new String[]{this.wsdl2javaOptions, "-b" , bindingFileURL.toExternalForm(), "-d", outputDirectory , wsdlUri }; } else { params = new String[]{this.wsdl2javaOptions, "-d", outputDirectory , wsdlUri }; } log.info("Compiling WSDL '" + wsdlUri + "' into '" + outputDirectory + "'..."); try { // Compile the WSDL description with Apache CXF WSDL2Java Tool. new WSDLToJava(params).run(new ToolContext(), System.out); } catch (Exception exc) { log.warning("Impossible to compile WSDL '" + wsdlUri + "'."); throw exc; } log.info("WSDL '" + wsdlUri + "' compiled."); // Add WSDL2Java output directory to the Juliac compiler at the first time needed. this.membraneGeneration.addJavaSource(outputDirectory); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
public final void execute(String args) throws Exception { TextConsole.this.finished = true; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
public final void execute(String args) throws Exception { if (args.length() == 0) { listAvailableCommands(); } else { String name = args.startsWith(":") ? args.substring(1) : args; Command cmd = commands.get(name); if (cmd != null) { showMessage(cmd.getLongDescription()); } else { showError("No such command: " + name); } } }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
public final void execute() throws Exception { if (command != null) { command.execute(arguments); } else { showError("Invalid request."); } }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
public final void processRequest(String line) throws Exception { if (line != null && line.length() == 0) { return; } Request request = parseRequest(line); if (request != null) { request.execute(); } }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/Main.java
public static void main(String[] args) throws Exception { FraSCAtiScriptEngineFactory factory = new FraSCAtiScriptEngineFactory(); // Instantiate the engine Component fscriptCmpt = ((Interface) factory.getScriptEngine()).getFcItfOwner(); // Update the engine context InvocableScriptEngine engine = FraSCAtiFScript.getSingleton().getScriptEngine(); factory.addDomainToContext( engine.getBindings(ScriptContext.GLOBAL_SCOPE) ); // Load std lib FScript.loadStandardLibrary(fscriptCmpt); // Launch the console new TextConsole( FraSCAtiFScript.getSingleton().getFraSCAtiScriptComposite() ).run(); System.exit(0); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
public final void execute(String name) throws Exception { URL url = null; try { url = new URL(name); } catch (MalformedURLException e) { showError("Invalid URL (" + name + "): " + e.getMessage()); return; } Map<String, Object> ctx = getInstanciationContext(); ClassLoader parent = null; if (ctx.containsKey("classloader")) { parent = (ClassLoader) ctx.get("classloader"); } else { parent = Thread.currentThread().getContextClassLoader(); } URL[] urls = new URL[] { url }; ClassLoader cl = new URLClassLoader(urls, parent); ctx.put("classloader", cl); fscript.getClassLoaderManager().loadLibraries(urls); urls = ((URLClassLoader) cl).getURLs(); for(URL u : urls) { showMessage(u.toString()); } showMessage("Classpath updated."); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
protected final Map<String, Object> getInstanciationContext() throws Exception { ContentController cc = Fractal.getContentController( fscript.getFraSCAtiScriptComposite() ); for (Component child : cc.getFcSubComponents()) { try { NameController nc = Fractal.getNameController(child); if ("model".equals(nc.getFcName())) { FractalModelAttributes fma = (FractalModelAttributes) Fractal.getAttributeController(child); return fma.getInstanciationContext(); } } catch (NoSuchInterfaceException nsie) { continue; } } return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/EvalCommand.java
public final void execute(String expression) throws Exception { Object result = engine.eval(expression, getContext()); showResult(result); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/InfoCommand.java
public final void execute(String procName) throws Exception { Component lib = ContentControllerHelper.getSubComponentByName(fscript.getFraSCAtiScriptComposite(), "library"); if (lib == null) { showWarning("Unable to locate the library component."); showWarning("The engine used is not compatible with this command."); return; } Procedure proc = ((Library) lib.getFcInterface("library")).lookup(procName); if (proc == null) { showWarning("Unknown procedure '" + procName + "'."); return; } String impl = (proc instanceof NativeProcedure) ? "Native" : "User-defined"; String kind = proc.isPureFunction() ? "function" : "action"; String def = null; if (proc instanceof NativeProcedure) { def = proc.getClass().getName(); } else { def = ((UserProcedure) proc).getSourceLocation().toString(); } showMessage(format("{0} {1} \"" + proc.getName() + "\" is defined in " + def, impl, kind, def)); showMessage("Signature: " + proc.getName() + proc.getSignature().toString()); if (proc instanceof UserProcedure) { UserProcedure up = (UserProcedure) proc; showMessage("AST: " + up.toString()); } }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ExecCommand.java
public final void execute(String statement) throws Exception { long start = System.currentTimeMillis(); Object result = engine.eval(statement, getContext()); long duration = System.currentTimeMillis() - start; if (result != null) { showResult(result); } showMessage("Success (took " + duration + " ms)."); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/VarsCommand.java
public final void execute(String args) throws Exception { List<String> names = new ArrayList<String>(engine.getBindings(ScriptContext.ENGINE_SCOPE).keySet()); for (String key: names) { // Ignore special variables if (key.startsWith("*")) { names.remove(key); } } Collections.sort(names); String[][] data = new String[names.size() + 1][2]; data[0][0] = "Name"; data[0][1] = "Value"; for (int i = 0; i < names.size(); i++) { String var = names.get(i); Object val = engine.get(var); data[i+1][0] = var; data[i+1][1] = printString(val); } showTitle("Global variables"); showTable(data); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ListCommand.java
public final void execute(String args) throws Exception { Component lib = ContentControllerHelper.getSubComponentByName(fscript.getFraSCAtiScriptComposite(), "library"); if (lib == null) { showWarning("Unable to locate the library component."); showWarning("The engine used is not compatible with this command."); return; } Library library = (Library) lib.getFcInterface("library"); List<String> names = new ArrayList<String>(library.getProceduresNames()); for (Iterator<String> iter = names.iterator(); iter.hasNext();) { String name = iter.next(); if (name.startsWith("axis:")) { iter.remove(); } } Collections.sort(names); String[][] data = new String[names.size() + 1][3]; data[0][0] = "Signature"; data[0][1] = "Kind"; data[0][2] = "Definition"; for (int i = 0; i < names.size(); i++) { fillProcData(library.lookup(names.get(i)), data[i+1]); } showTitle("Available procedures"); showTable(data); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
public final void execute(String args) throws Exception { Reader reader = null; if (args.startsWith("classpath:")) { reader = getResourceReader(args.substring("classpath:".length())); } else if (args.matches("^[a-z]+:.*")) { reader = getURLReader(args); } else { reader = getFileReader(args); } if (reader == null) { return; } engine.eval(reader); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/RunCommand.java
public final void execute(String args) throws Exception { Object result = engine.eval(args); InterfaceNode itfNode = (InterfaceNode) FScript.getSingleNode(result); if (itfNode == null) { showError("Invalid expression value. Should return a Runnable interface node."); showResult(result); return; } Interface itf = itfNode.getInterface(); if (!(itf instanceof Runnable)) { showError("This interface node is not a Runnable."); showResult(result); showMessage("Interface signature: " + itfNode.getSignature()); return; } ensureComponentIsStarted(((InterfaceNode) itfNode).getInterface().getFcItfOwner()); showMessage("Launching interface " + result + "."); Thread th = new Thread((Runnable) itf, "Service " + itfNode); th.setDaemon(true); th.start(); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ScaImplementationSpringProcessor.java
Override protected final Object getService(ClassPathXmlApplicationContext context, String name, Class<?> interfaze) throws Exception { // Get the Spring bean having the same name as the interface name. return context.getBean(name); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ScaImplementationSpringProcessor.java
Override protected final void setReference(ClassPathXmlApplicationContext context, String name, Object delegate, Class<?> interfaze) throws Exception { // Nothing to do as the context will obtain the references by calling the ContentController directly. }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsBroker.java
protected final void send(JmsMessage msg) throws Exception { // Push the given message to each listener of this queue. for(JmsListener listener : this.listeners) { listener.receive(msg); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsBroker.java
protected final void receive(JmsMessage msg) throws Exception { Method method = this.delegate.getMethod(msg.methodName); if(msg.xmlMessage == null) { // If no XML message then invoke the servant directly. method.invoke(this.delegate.getDelegate(), null); } else { // If an XML message then uses the WSDL delegate to decode the XML message and invoke the servant. this.delegate.invoke(method, msg.xmlMessage); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubInvocationHandler.java
protected static QName getQNameOfFirstArgument(Method method) throws Exception { // Compute the qname of the @WebParam attached to the first method parameter. Annotation[][] pa = method.getParameterAnnotations(); WebParam wp = (WebParam) pa[0][0]; return toQName(wp, method); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
public static void stop() throws Exception { AgentServer.stop(); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
private void invokeMethod(Method method, Message msg) throws Exception { log.fine("invokeMethod " + method); Class<?>[] parameterTypes = method.getParameterTypes(); Object response = null; if (parameterTypes.length == 0) { response = method.invoke(getServant(), (Object[]) null); } else if (parameterTypes.length == 1 && Message.class.isAssignableFrom(parameterTypes[0])) { /* If there is a single parameter that is a JMSMessage, then the JMSMessage is * passed as is.*/ log.fine("Pass the JMSMessage as is."); response = method.invoke(getServant(), msg); } else { if (msg instanceof BytesMessage) { BytesMessage bytesMsg = (BytesMessage) msg; byte[] data = new byte[(int) bytesMsg.getBodyLength()]; bytesMsg.readBytes(data); Method m = delegate.getMethod(method.getName()); response = delegate.invoke(m, new String(data)); } else if (msg instanceof TextMessage) { TextMessage txtMsg = (TextMessage) msg; Method m = delegate.getMethod(method.getName()); response = delegate.invoke(m, txtMsg.getText()); } else { /* Otherwise, if the JMSMessage is not a JMS text message or bytes message * containing XML, it is invalid. */ log.severe("Received message is invalid."); } } if (method.getReturnType().equals(void.class) && method.getExceptionTypes().length == 0) { // One-way message exchange: nothing to do log.fine("One-way message exchange"); } else { // Request/response message exchange log.fine("Request/response message exchange"); TextMessage responseMsg = jmsModule.getResponseSession().createTextMessage(); if (getCorrelationScheme().equals(JmsConnectorConstants.CORRELATION_ID_SCHEME)) { responseMsg.setJMSCorrelationID(msg.getJMSCorrelationID()); } else if (getCorrelationScheme().equals(JmsConnectorConstants.MESSAGE_ID_SCHEME)) { responseMsg.setJMSCorrelationID(msg.getJMSMessageID()); } if (responseMsg != null) { responseMsg.setText(response.toString()); } // the request message included a non-null JMSReplyTo destination, the SCA runtime // MUST send the response message to that destination Destination responseDest = msg.getJMSReplyTo(); log.fine("ReplyTo field: " + responseDest); if (responseDest == null) { // the JMS binding includes a response/destination element the SCA runtime MUST // send the response message to that destination responseDest = jmsModule.getResponseDestination(); } if (responseDest == null) { throw new Exception("No response destination found."); } MessageProducer responseProducer = jmsModule.getResponseSession().createProducer(responseDest); responseProducer.send(responseMsg); responseProducer.close(); } log.fine("invokeMethod done"); }
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
private Parser<Composite> getCompositeParser() throws Exception { // Create a factory of SCA parsers. org.ow2.frascati.parser.Parser parserFactory = new org.ow2.frascati.parser.Parser(); // Create a parser component. Component parser = parserFactory.newFcInstance(); // Start the parser component. Fractal.getLifeCycleController(parser).startFc(); // Get the composite parser interface. return (Parser<Composite>)parser.getFcInterface("composite-parser"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
public final Component deploy() throws Exception { log.fine("Deploy an EasyBPEL process '" + processUri + "'"); ProcessContextDefinitionImpl context = new ProcessContextDefinitionImpl(); context.setPoolSize(1); // TODO: 1 or more ??? this.core.getModel().getRegistry().storeProcessDefinition(new URI(this.processUri), context); return new BpelProcessContainer(); }
205
            
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (Exception e) { System.err.println("Unable to generate Java code from WSDL: " + e.getMessage()); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-metamodel-nuxeo/src/main/java/org/ow2/frascati/nuxeo/impl/NuxeoFactoryImpl.java
catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/factory/FraSCAtiNuxeoFactory.java
catch (Exception e) { log.log(Level.INFO, "no boot properties found"); }
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); return false; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiLauncher.java
catch (Exception e) { log.log(Level.SEVERE, "Instantiation of the FrascatiService has caused an exception", e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoaderManager.java
catch (Exception e) { log.log(Level.WARNING, "The bundle cannot be added to the managed bundles list :" + bundle, e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (Exception e) { // log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (Exception e) { log.log(Level.INFO, e.getMessage()); resourceURL = (URL) vfile.invoke("toURL"); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle installation has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle starting has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle stopping has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (Exception e) { StringBuilder builder = new StringBuilder(); builder.append("ERROR["); builder.append("bundle uninstalling has thrown an exception: "); builder.append(e.getMessage()); builder.append("]"); writeMessage(builder.toString(), false, true); }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (ClassCastException e) { Type[] types = instanceClass.getGenericInterfaces(); int n = 0; for (; n < types.length; n++) { try { pt = (ParameterizedType) types[n]; break; } catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); } } }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception ex) { log.log(Level.CONFIG, ex.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (Exception e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (Exception e) { log.severe("Error thrown by the Plugin instance : "); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/bundle/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); return false; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch(Exception e) { log.log(Level.WARNING, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch(Exception e) { log.log(Level.INFO, interfaceName + " not found in the BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (Exception e) { log.log(Level.WARNING, "Unable to find the current BundleContext"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-binding-osgi/src/main/java/org/ow2/frascati/osgi/binding/FrascatiBindingOSGiProcessor.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); }
// in frascati-studio/src/main/java/org/easysoa/codegenerator/JavaCodeTransformer.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/jpa/EntityManagerProviderImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/jpa/UserAccessImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying change Admin role: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/compiler/MavenCompilerImpl.java
catch(Exception e){ e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch(Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/PreferencesManager.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.warning("The preference "+ preferenceName + "=" + defaultValue +"was not created"); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/utils/MailServiceImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/User.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/User.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(Exception e){ LOG.severe("Error trying to retrive preference for " + preferenceName + "!" ); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(Exception e){ LOG.severe("Error trying to update preference for " + preferenceName + "!" ); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(Exception e){ Logger.getLogger("EasySOALogger").severe(e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage();
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to save the data corresponding to the current deployment: " + e.getMessage()); e.printStackTrace(); return "Application deployed successfully, but an error has ocurred while trying to save the data corresponding to the current deployment."; }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { LOG.severe(e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/DeploymentRestImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove data corresponding to the current undeployment: " + e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create a service: "+ e.getMessage()); e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete a service: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { e.printStackTrace(); return null;
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(Exception e){ return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(Exception e){ return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to create accounting: " + e.getMessage()); e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(Exception e){ e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(Exception e) { throw new ServletException(e); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/TwitterOAuthImpl.java
catch (Exception e) { e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/TwitterOAuthImpl.java
catch(Exception e){ return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/FacebookOAuthImpl.java
catch(Exception e){ return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/RESTCallImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/TemplateRestImpl.java
catch (Exception e) { e.printStackTrace(); return e.getMessage(); }
// in frascati-studio/src/main/java/org/easysoa/impl/GoogleOAuthImpl.java
catch(Exception e){ e.printStackTrace(); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to send a friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to accept friend: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to delete friend request: "+e.getMessage()); e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/FriendsImpl.java
catch (Exception e) { entityManager.getTransaction().rollback(); LOG.severe("Error trying to remove a friend: "+e.getMessage()); e.printStackTrace(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/lib/TextDiagramGenerator.java
catch (Exception e) { e.printStackTrace(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TraceManagerRootContext.java
catch(Exception exc) { exc.printStackTrace(); return new RootEntry[0]; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/SaveTraceMenuItem.java
catch (Exception ex) { ex.printStackTrace(); return; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TracePanel.java
catch (Exception e1) { e1.printStackTrace(); return; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/umlsequencediagram/explorer/TracePanel.java
catch (Exception e) { e.printStackTrace(); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaParser.java
catch(Exception e) { Throwable cause = e.getCause(); if(cause instanceof FileNotFoundException) { warning(new ParserException(qname, "'" + documentUri + "' not found", cause)); } else { warning(new ParserException(qname, "'" + documentUri + "' invalid content", cause)); } return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
catch (Exception e) { // Report the exception. log.warning(qname + " can not be validated: " + e.getMessage()); parsingContext.error("SCA composite '" + qname + "' can not be validated: " + e.getMessage()); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
catch(Exception exc) { log.throwing("", "", exc); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/AbstractContextPlugin.java
catch(Exception exc) { exc.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch(Exception e) { // Nothing to do. }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentTable.java
catch(Exception e) { // Binding-controller may be unavailable (e.g. Bootstrap component). // System.err.println("Client interface Error : " + e.getMessage()); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(Exception exc) { exc.printStackTrace(); String msg = exc.toString(); JOptionPane.showMessageDialog(null, msg); logger.warning(msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
catch(Exception e) { //System.err.println("Error : " + e.getMessage()); return MenuItem.NOT_VISIBLE_STATUS; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; JOptionPane.showMessageDialog(null,"Intent '" + intentName + "' cannot be added to " + errorMsg); LOG.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/LoadMenuItem.java
catch(Exception e){ //do nothing }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/UnwireAction.java
catch(Exception e) { //System.err.println("GetStatus Error : " + e.getMessage()); return MenuItem.NOT_VISIBLE_STATUS; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
catch(Exception e) { e.printStackTrace(); throw new Error(e); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch(Exception exc) { // This should not happen! severe(new ProcessorException(scriptImplementation, "Internal Fractal error!", exc)); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch(Exception exc) { severe(new ProcessorException("Error when compiling WSDL", exc)); return; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (Exception exc) { log.warning("Impossible to compile WSDL '" + wsdlUri + "'."); throw exc; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap class", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot start the OW2 FraSCAti Assembly Factory bootstrap composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Cannot load the OW2 FraSCAti composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch(Exception exc) { severe(new FrascatiException("Cannot add the OW2 FraSCAti composite", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { severe(new FrascatiException("Impossible to stop the SCA composite '" + composite + "'!", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaWireProcessor.java
catch (Exception e) { severe(new ProcessorException(wire, "Cannot etablish " + toString(wire), e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeServiceProcessor.java
catch (Exception e) { severe(new ProcessorException(service, "Can't promote " + toString(service), e)); return ; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(Exception exc) { severe(new ProcessorException(implementation, "Can not obtain the SCA service '" + interfaceName + "'", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch(Exception exc) { severe(new ProcessorException(implementation, "Can not set the SCA reference '" + interfaceName + "'", exc)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (Exception e) { severe(new ProcessorException(element, "Intent '" + require + "' cannot be added", e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentReferenceProcessor.java
catch (Exception e) { severe(new ProcessorException(componentReference, "Can't promote " + toString(componentReference), e)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
catch(Exception exception) { log.warning("Thrown " + exception.toString()); sb.append(" ..."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(Exception e) { // Should never happen but we never know! throw new ProcessorException(e); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch(Exception exc) { severe(new ManagerException("Error when loading the composite " + deployable.getComposite(), exc)); return new Component[0]; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (Exception e) { severe(new ManagerException("Could not start the SCA composite '" + qname + "'", e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (Exception exc) { log.log(Level.SEVERE, "Impossible to close the SCA composite '" + compositeName + "'!", exc); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch(Exception exc) { throw new RuntimeException(exc); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (Exception e) { e.printStackTrace(); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-metamodel-frascati-ext/src/org/ow2/frascati/model/impl/ModelFactoryImpl.java
catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocity.java
catch(Exception e) { e.printStackTrace(System.err); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (Exception exc) { exc.printStackTrace(System.err); // Requested resource not found. super.service(request, response); return; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
catch (Exception e) { throw new ProcessorException(binding, e); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (Exception e) { showWarning("Incompatible FScript implementation."); showWarning("Axis name completion disabled."); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (Exception e1) { String errorMsg = (itf != null) ? "interface " + itfName : "component"; log.log(Level.SEVERE, "Intent '" + intentName + "' cannot be added to " + errorMsg, e1); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (Exception e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, e.getMessage(), e); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch (Exception e) { severe(new FactoryException("Problem when initializing Juliac", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException("Problem when loading Juliac option levels", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException(e)); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { warning(new FactoryException("Errors when compiling Java source", e)); return null; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException(e)); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch (Exception e) { severe(new FactoryException("Cannot generate component code with Juliac", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { warning(new FactoryException("Errors when compiling generated Java membrane source", e)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(Exception e) { severe(new FactoryException("Cannot close Juliac", e)); return; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Error while invoking " + method.getName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception exception) { if (ownerNameController != null) { log.info("no binding found for fractal component : " + ownerNameController.getFcName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); }
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
catch (Exception e) { throw new IOException("Can not parse " + adl, e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
catch(/*Core*/Exception ce) { return new Component[0]; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
catch(Exception e) { sb.append(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelProcess.java
catch(Exception e) { sb.append(e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception exc) { severe(new ProcessorException(bpelImplementation, "Can not read BPEL process " + bpelImplementationProcess, exc)); return; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception exc) { error(processingContext, bpelImplementation, "Can't compile WSDL '", wsdlUri, "'"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(Exception e) { warning(new ProcessorException("Error during deployment of the BPEL process '" + bpelImplementation.getProcess() + "'", e)); return; }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (Exception e) { getLog().warn("Could not load logging configuration file: " + loggingConfFile); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (Exception e) { log.log(Level.SEVERE, "Problem with the dependency management.", e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (Exception e) { log.log(Level.SEVERE, "Problem while zipping file!", e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error("Problem with the dependency management."); getLog().error(e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error( "Dependency " + artifact.getGroupId() + ":" + artifact.getArtifactId() + " cannot be added"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (Exception e) { getLog().error(_dependency.getGroupId() + "." + _dependency.getArtifactId() + " cannot be found"); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); }
36
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); }
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(Exception e) { throw new ServletException(e); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/plugin/RefreshExplorerTreeThread.java
catch(Exception exception) { throw new Error("Could not synchronize via Java Swing", exception); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/FrascatiExplorerLauncher.java
catch(Exception e) { e.printStackTrace(); throw new Error(e); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (Exception exc) { log.warning("Impossible to compile WSDL '" + wsdlUri + "'."); throw exc; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(Exception e) { // Should never happen but we never know! throw new ProcessorException(e); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch(Exception exc) { throw new RuntimeException(exc); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
catch (Exception e) { throw new ProcessorException(binding, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
catch (Exception e) { throw new AssertionError("Internal inconsistency with " + proc.getName() + " procedure!"); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Error while invoking " + method.getName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (Exception e) { throw new BadParameterTypeException(index, value, parameterType); }
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
catch (Exception e) { throw new IOException("Can not parse " + adl, e); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkOutput.java
catch(Exception exc) { // TODO marshall exception to an XML message. exc.printStackTrace(); throw new Error(exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch(Exception e) { throw new Error(e); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); }
11
checked (Domain) FactoryException
public class FactoryException extends FrascatiException {

  private static final long serialVersionUID = -5317467692500909475L;

  /**
   * @see FrascatiException#FrascatiException()
   */
  public FactoryException() {
      super();
  }

  /**
   * @see FrascatiException#FrascatiException(String)
   */
  public FactoryException(String message) {
      super(message);
  }

  /**
   * @see FrascatiException#FrascatiException(String, Throwable)
   */
  public FactoryException(String message, Throwable cause) {
      super(message, cause);
  }

  /**
   * @see FrascatiException#FrascatiException(Throwable)
   */
  public FactoryException(Throwable cause) {
      super(cause);
  }

}
2
            
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createComponent(ComponentType componentType, String membraneDesc, Object contentClass) throws FactoryException { String logMessage = "create component componentType='" + componentType + "' membraneDesc='" + membraneDesc + "' contentClass='" + contentClass + "'"; Object[] controllerDesc = new Object[] { this.classLoaderForNewInstance, membraneDesc }; logDo(logMessage); GenericFactory genericFactory = this.genericFactories.get(membraneDesc); if(genericFactory == null) { severe(new FactoryException("No generic factory can " + logMessage)); return null; } Component component = null; try { component = genericFactory.newFcInstance(componentType, controllerDesc, contentClass); } catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); } logDone(logMessage); return component; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public final void open(FrascatiClassLoader frascatiClassLoader) throws FactoryException { try { jc = new Juliac(); } catch (Exception e) { severe(new FactoryException("Problem when initializing Juliac", e)); return; } jcfg = new JuliacConfig(jc); jc.setJuliacConfig(jcfg); jcfg.setSourceLevel(JDKLevel.JDK1_5); jcfg.setTargetLevel(JDKLevel.JDK1_5); if(this.juliacCompilerProvider != null) { jcfg.setCompiler(juliacCompilerProvider.getJuliacCompiler()); } StringBuilder juliacOptLevel = new StringBuilder(); for(MembraneProvider jgc : juliacGeneratorClassProviders) { juliacOptLevel.append(jgc.getMembraneClass().getCanonicalName()); juliacOptLevel.append(':'); } jcfg.setOptLevel(juliacOptLevel.substring(0, juliacOptLevel.length() - 1)); // use the current thread's context class loader where FraSCAti is loaded // to load Juliac plugins instead of the class loader where Juliac was loaded. // jcfg.setClassLoader(FrascatiClassLoader.getCurrentThreadContextClassLoader()); jcfg.setClassLoader(frascatiClassLoader); try { jcfg.loadOptLevels(); } catch(Exception e) { severe(new FactoryException("Problem when loading Juliac option levels", e)); return; } if(this.outputDir == null) { File f; try { // The Juliac output directory is equals to: // - the value of the FRASCATI_OUTPUT_DIRECTORY_PROPERTY Java property if set, or // - the value of the FRASCATI_GENERATED system variable if set, or // - the Maven target directory if exist, or // - a new temp directory. String defaultOutputDir = System.getenv().get(frascatiGeneratedDirectory); if(defaultOutputDir != null) { f = new File(defaultOutputDir); } else { defaultOutputDir = System.getProperty(FRASCATI_OUTPUT_DIRECTORY_PROPERTY); if(defaultOutputDir != null) { f = new File(defaultOutputDir); } else { f = new File(new File(".").getAbsolutePath() + File.separator + mavenTargetDirectory).getAbsoluteFile(); if(!f.exists()) { f = File.createTempFile("frascati",".tmp"); f.delete(); // delete the file f.mkdir(); // recreate it as a directory f.deleteOnExit(); // delete it when the JVM will exit. } } } // Set the default output dir. if (!f.exists()) { // Create output dir if not exists f.mkdirs(); } if (!f.isDirectory()) { throw new FactoryException(outputDir + " must be a directory"); } log.info("Default Juliac output directory: " + f.toString()); this.outputDir = f; jcfg.setBaseDir(f); } catch(IOException ioe) { severe(new FactoryException("Problem when creating a FraSCAti temp directory", ioe)); return; } } // Reset the list of membranes to generate. membranesToGenerate.clear(); }
1
            
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); }
18
            
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void generateMembrane(ComponentType componentType, String membraneDesc, String contentClass) throws FactoryException { String logMessage = "generating membrane componentType='" + componentType + "' membraneDesc='" + membraneDesc + "' contentClass='" + contentClass + "'"; logDo(logMessage); generate(componentType, membraneDesc, contentClass); logDone(logMessage); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void generateScaPrimitiveMembrane(ComponentType componentType, String classname) throws FactoryException { generateMembrane(componentType, this.scaPrimitiveMembrane, classname); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void generateScaCompositeMembrane(ComponentType ct) throws FactoryException { ComponentType componentType = ct; if(componentType == null) { componentType = createComponentType(new InterfaceType[0]); } generateMembrane(componentType, this.scaCompositeMembrane, null); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createComponent(ComponentType componentType, String membraneDesc, Object contentClass) throws FactoryException { String logMessage = "create component componentType='" + componentType + "' membraneDesc='" + membraneDesc + "' contentClass='" + contentClass + "'"; Object[] controllerDesc = new Object[] { this.classLoaderForNewInstance, membraneDesc }; logDo(logMessage); GenericFactory genericFactory = this.genericFactories.get(membraneDesc); if(genericFactory == null) { severe(new FactoryException("No generic factory can " + logMessage)); return null; } Component component = null; try { component = genericFactory.newFcInstance(componentType, controllerDesc, contentClass); } catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); } logDone(logMessage); return component; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createScaPrimitiveComponent(ComponentType componentType, String classname) throws FactoryException { return createComponent(componentType, this.scaPrimitiveMembrane, classname); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createScaCompositeComponent(ComponentType ct) throws FactoryException { ComponentType componentType = ct; if(componentType == null) { componentType = createComponentType(new InterfaceType[0]); } return createComponent(componentType, this.scaCompositeMembrane, null); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final Component createScaContainer() throws FactoryException { return createComponent(createComponentType(new InterfaceType[0]), this.scaContainerMembrane, null); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void open(FrascatiClassLoader frascatiClassLoader) throws FactoryException { logDo("Open a generation phase"); this.classLoaderForNewInstance = frascatiClassLoader; // Delegate to the plugged membrane generation if bound. if(membraneGeneration != null) { membraneGeneration.open(frascatiClassLoader); } logDone("Open a generation phase"); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void generate(ComponentType componentType, String membraneDesc, String contentClass) throws FactoryException { // Delegate to the plugged membrane generation if bound. if(membraneGeneration != null) { membraneGeneration.generate(componentType, membraneDesc, contentClass); } }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final ClassLoader compileJavaSource() throws FactoryException { // Delegate to the plugged membrane generation if bound. if(membraneGeneration != null) { return membraneGeneration.compileJavaSource(); } return null; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final void close() throws FactoryException { logDo("Close a generation phase"); // Delegate to the plugged membrane generation if bound. if(membraneGeneration != null) { membraneGeneration.close(); } logDone("Close a generation phase"); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final InterfaceType createInterfaceType(String arg0, String arg1, boolean arg2, boolean arg3, boolean arg4) throws FactoryException { try { logDo("Create interface type"); InterfaceType interfaceType = this.typeFactory.createFcItfType(arg0, arg1, arg2, arg3, arg4); logDone("Create interface type"); return interfaceType; } catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal interface type", ie)); return null; } }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
public final ComponentType createComponentType(InterfaceType[] arg0) throws FactoryException { try { logDo("Create component type"); ComponentType componentType = this.typeFactory.createFcType(arg0); logDone("Create component type"); return componentType; } catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal component type", ie)); return null; } }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public ComponentType getComponentType(TypeFactory tf) throws FactoryException { return tf .createComponentType(new InterfaceType[] { tf.createInterfaceType("invocation-handler", InvocationHandler.class.getName(), false, false, false), tf.createInterfaceType("attribute-controller", JGroupsRpcAttributes.class.getName(), false, false, false), tf.createInterfaceType(BINDINGS[0], this.cls.getName(), true, true, false), tf.createInterfaceType(BINDINGS[1], MessageListener.class.getName(), true, true, false), tf.createInterfaceType(BINDINGS[2], MembershipListener.class.getName(), true, true, false) }); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public final void open(FrascatiClassLoader frascatiClassLoader) throws FactoryException { try { jc = new Juliac(); } catch (Exception e) { severe(new FactoryException("Problem when initializing Juliac", e)); return; } jcfg = new JuliacConfig(jc); jc.setJuliacConfig(jcfg); jcfg.setSourceLevel(JDKLevel.JDK1_5); jcfg.setTargetLevel(JDKLevel.JDK1_5); if(this.juliacCompilerProvider != null) { jcfg.setCompiler(juliacCompilerProvider.getJuliacCompiler()); } StringBuilder juliacOptLevel = new StringBuilder(); for(MembraneProvider jgc : juliacGeneratorClassProviders) { juliacOptLevel.append(jgc.getMembraneClass().getCanonicalName()); juliacOptLevel.append(':'); } jcfg.setOptLevel(juliacOptLevel.substring(0, juliacOptLevel.length() - 1)); // use the current thread's context class loader where FraSCAti is loaded // to load Juliac plugins instead of the class loader where Juliac was loaded. // jcfg.setClassLoader(FrascatiClassLoader.getCurrentThreadContextClassLoader()); jcfg.setClassLoader(frascatiClassLoader); try { jcfg.loadOptLevels(); } catch(Exception e) { severe(new FactoryException("Problem when loading Juliac option levels", e)); return; } if(this.outputDir == null) { File f; try { // The Juliac output directory is equals to: // - the value of the FRASCATI_OUTPUT_DIRECTORY_PROPERTY Java property if set, or // - the value of the FRASCATI_GENERATED system variable if set, or // - the Maven target directory if exist, or // - a new temp directory. String defaultOutputDir = System.getenv().get(frascatiGeneratedDirectory); if(defaultOutputDir != null) { f = new File(defaultOutputDir); } else { defaultOutputDir = System.getProperty(FRASCATI_OUTPUT_DIRECTORY_PROPERTY); if(defaultOutputDir != null) { f = new File(defaultOutputDir); } else { f = new File(new File(".").getAbsolutePath() + File.separator + mavenTargetDirectory).getAbsoluteFile(); if(!f.exists()) { f = File.createTempFile("frascati",".tmp"); f.delete(); // delete the file f.mkdir(); // recreate it as a directory f.deleteOnExit(); // delete it when the JVM will exit. } } } // Set the default output dir. if (!f.exists()) { // Create output dir if not exists f.mkdirs(); } if (!f.isDirectory()) { throw new FactoryException(outputDir + " must be a directory"); } log.info("Default Juliac output directory: " + f.toString()); this.outputDir = f; jcfg.setBaseDir(f); } catch(IOException ioe) { severe(new FactoryException("Problem when creating a FraSCAti temp directory", ioe)); return; } } // Reset the list of membranes to generate. membranesToGenerate.clear(); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public final void generate(ComponentType componentType, String membraneDesc, String contentClass) throws FactoryException { MembraneDescription md = new MembraneDescription(); md.componentType = componentType; md.membraneDesc = membraneDesc; md.contentDesc = contentClass; membranesToGenerate.add(md); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public ClassLoader compileJavaSource() throws FactoryException { try { File classDir = File.createTempFile(classDirectory, "", this.outputDir); classDir.delete(); // delete the file classDir.mkdir(); jcfg.setClassDirName(classDir.getCanonicalPath()); ((FrascatiClassLoader)jcfg.getClassLoader()).addUrl(classDir.toURI().toURL()); } catch(Exception e) { severe(new FactoryException(e)); } // Add Java sources to be compiled by Juliac. for (String src : javaSourcesToCompile) { log.info("* compile Java source: " + src); try { jcfg.addSrc(src); } catch(IOException ioe) { severe(new FactoryException("Cannot add Java sources", ioe)); return null; } } if(javaSourcesToCompile.size() > 0) { try { // Compile all Java sources with Juliac. jc.compile(); } catch(Exception e) { warning(new FactoryException("Errors when compiling Java source", e)); return null; } } // Reset the list of Java sources to compile. javaDirectories = new ArrayList<String>(); javaDirectories.addAll(javaSourcesToCompile); javaSourcesToCompile.clear(); return jcfg.getClassLoader(); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
public final void close() throws FactoryException { if (compileJavaSource() == null) { return ; } if(membranesToGenerate.size() > 0) { File generatedJavaDir = null; try { generatedJavaDir = File.createTempFile(genDirectory, "", this.outputDir); generatedJavaDir.delete(); // delete the file generatedJavaDir.mkdir(); jcfg.setGenDirName(generatedJavaDir.getCanonicalPath()); } catch(Exception e) { severe(new FactoryException(e)); } this.javaDirectories.add(generatedJavaDir.getAbsolutePath()); } // Generate all the membranes to generate. for(MembraneDescription md : membranesToGenerate) { try { jc.getFCSourceCodeGenerator(md.membraneDesc) .generate(md.componentType, md.membraneDesc, md.contentDesc); } catch (Exception e) { severe(new FactoryException("Cannot generate component code with Juliac", e)); return; } } // Compile all generated membranes with Juliac. try { jc.compile(); } catch(Exception e) { warning(new FactoryException("Errors when compiling generated Java membrane source", e)); return; } // Close Juliac. try { jc.close(); } catch(Exception e) { severe(new FactoryException("Cannot close Juliac", e)); return; } }
16
            
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); }
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while generating " + toString(implementation), te)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while creating " + toString(implementation), te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
catch(FactoryException fe) { severe(new ProcessorException(implementation, "generation failed", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
catch(FactoryException fe) { severe(new ProcessorException(implementation, "instantiation failed", fe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite container", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite component", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to create the composite container", fe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
catch (FactoryException te) { severe(new ProcessorException(baseReference, "Could not " + logMessage, te)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
catch (FactoryException te) { severe(new ProcessorException(baseService, "Could not " + logMessage, te)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
catch(FactoryException te) { severe(new ProcessorException(element, "component type creation for " + toString(element) + " failed", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { severe(new ManagerException( "Cannot open a membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); }
3
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); }
0
unknown (Lib) FileNotFoundException 1
            
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File[] src, FileFilter filter, String prefix, Manifest man) throws IOException { for (int i = 0; i < src.length; i++) { if (!src[i].exists()) { throw new FileNotFoundException(src.toString()); } } JarOutputStream jout; if (man == null) { jout = new JarOutputStream(out); } else { jout = new JarOutputStream(out, man); } if (prefix != null && prefix.length() > 0 && !prefix.equals("/")) { // strip leading '/' if (prefix.charAt(0) == '/') { prefix = prefix.substring(1); } // ensure trailing '/' if (prefix.charAt(prefix.length() - 1) != '/') { prefix = prefix + "/"; } } else { prefix = ""; } JarInfo info = new JarInfo(jout, filter); for (int i = 0; i < src.length; i++) { //Modified: The root is not put in the jar file if (src[i].isDirectory()){ File[] files = src[i].listFiles(info.filter); for (int j = 0; j < files.length; j++) { jar(files[j], prefix, info); } } } jout.close(); }
0 4
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
Override public WsdlInformations loadWsdl(String wsdl) throws FileNotFoundException{ WsdlInformations wsdlInformations = new WsdlInformations(); try { Definition definition = wsdlCompiler.readWSDL(wsdl); wsdlInformations.setTargetNameSpace(definition.getTargetNamespace()); for(QName service : (Set<QName>)definition.getServices().keySet()){ for(QName port : (Set<QName>)definition.getPortTypes().keySet()){ wsdlInformations.addServicePort(service.getLocalPart()+"/"+port.getLocalPart()); } } } catch (WSDLException e) { e.printStackTrace(); } return wsdlInformations; }
// in frascati-studio/src/main/java/org/easysoa/impl/TemplateRestImpl.java
Override public String loadWSDL(String wsdlPath) throws FileNotFoundException{ return transformWsdlInformationsToString(codeGenerator.loadWsdl(wsdlPath)); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ProxyImplementationVelocity.java
public static void generateContent(Component component, Class<?> itf, ProcessingContext processingContext, String outputDirectory, String packageGeneration, String contentClassName) throws FileNotFoundException { File packageDirectory = new File(outputDirectory + '/' + packageGeneration.replace('.', '/')); packageDirectory.mkdirs(); PrintStream file = new PrintStream(new FileOutputStream(new File( packageDirectory, contentClassName + ".java"))); file.println("package " + packageGeneration + ";\n"); file.println("import org.apache.velocity.VelocityContext;\n"); file.println("@" + Service.class.getName() + "(" + itf.getName() + ".class)"); file.println("public class " + contentClassName + " extends " + ProxyImplementationVelocity.class.getName() + " implements " + itf.getName()); file.println("{"); int index = 0; for (PropertyValue propertyValue : component.getProperty()) { // Get the property value and class. Object propertyValueObject = processingContext.getData( propertyValue, Object.class); Class<?> propertyValueClass = (propertyValueObject != null) ? propertyValueObject .getClass() : String.class; file.println(" @" + Property.class.getName() + "(name = \"" + propertyValue.getName() + "\")"); file.println(" protected " + propertyValueClass.getName() + " property" + index + ";\n"); index++; } index = 0; for (ComponentReference componentReference : component.getReference()) { file.println(" @" + Reference.class.getName() + "(name = \"" + componentReference.getName() + "\")"); file.println(" protected Object reference" + index + ";\n"); index++; } for (Method m : itf.getMethods()) { String signature = " public " + m.getReturnType().getName() + " " + m.getName() + "("; index = 0; for (Class<?> type : m.getParameterTypes()) { if (index > 0) signature += ", "; signature += type.getName() + " " + prefix + index; index++; } file.println(signature + ") {"); file.println(" VelocityContext context = new VelocityContext(this.velocityContext);"); String names = ""; for (int i = 0; i < index; i++) { putContext(file, prefix + i, i); for (Annotation a : m.getParameterAnnotations()[i]) { if (a instanceof PathParam) names += putContext(file, ((PathParam) a).value(), i); else if (a instanceof FormParam) names += putContext(file, ((FormParam) a).value(), i); else if (a instanceof QueryParam) names += putContext(file, ((QueryParam) a).value(), i); else if (a instanceof HeaderParam) names += putContext(file, ((HeaderParam) a).value(), i); else if (a instanceof CookieParam) names += putContext(file, ((CookieParam) a).value(), i); } } String params = ""; for (int i = 0; i < index; i++) { params += ", "+prefix + i; } names = names.length() > 0 ? names.substring(1) : names; file.println(" return invoke(\"" + m.getName() + "\", context, new String[]{" + names + "}" + params + ");"); file.println(" }\n"); } file.println("}"); file.flush(); file.close(); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
public static void generateContent(Component component, ProcessingContext processingContext, String outputDirectory, String packageGeneration, String contentClassName) throws FileNotFoundException { // TODO: Certainly not required with the next Tinfi release. File packageDirectory = new File(outputDirectory + '/' + packageGeneration.replace('.', '/')); packageDirectory.mkdirs(); PrintStream file = new PrintStream(new FileOutputStream(new File( packageDirectory, contentClassName + ".java"))); file.println("package " + packageGeneration + ";\n"); file.println("public class " + contentClassName + " extends " + ServletImplementationVelocity.class.getName()); file.println("{"); int index = 0; for (PropertyValue propertyValue : component.getProperty()) { // Get the property value and class. Object propertyValueObject = processingContext.getData( propertyValue, Object.class); Class<?> propertyValueClass = (propertyValueObject != null) ? propertyValueObject .getClass() : String.class; file.println(" @" + Property.class.getName() + "(name = \"" + propertyValue.getName() + "\")"); file.println(" protected " + propertyValueClass.getName() + " property" + index + ";"); index++; } index = 0; for (ComponentReference componentReference : component.getReference()) { file.println(" @" + Reference.class.getName() + "(name = \"" + componentReference.getName() + "\")"); file.println(" protected Object reference" + index + ";"); index++; } file.println("}"); file.flush(); file.close(); }
6
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (FileNotFoundException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (FileNotFoundException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in frascati-studio/src/main/java/org/easysoa/codegenerator/JavaCodeGenerator.java
catch (FileNotFoundException e) { e.printStackTrace(); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (FileNotFoundException e) { throw new ScriptException(e); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (FileNotFoundException e) { showError("Unable to open file " + e.getMessage()); return null; }
1
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (FileNotFoundException e) { throw new ScriptException(e); }
0
unknown (Lib) FileUploadException 0 0 0 1
            
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(FileUploadException fue) { throw new ServletException(fue);
1
            
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(FileUploadException fue) { throw new ServletException(fue);
0
checked (Domain) FraSCAtiNuxeoException
public class FraSCAtiNuxeoException extends Exception {

	/**
	 * Default serial ID
	 */
	private static final long serialVersionUID = 1L;
	
	
	/**
	 * Constructor 
	 * 
	 * @param message
	 * 	the error message
	 */
	public FraSCAtiNuxeoException(String message) {
		super(message);
	}

}
0 0 0 0 0 0
checked (Domain) FraSCAtiOSGiNotFoundCompositeException
public class FraSCAtiOSGiNotFoundCompositeException extends Exception
{
    /**
     * Generated serial ID
     */
    private static final long serialVersionUID = 4463123423065271523L;
}
4
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized String loadSCA(AbstractResource resource, String compositeName) throws FraSCAtiOSGiNotFoundCompositeException { if (resource == null) { log.log(Level.WARNING, "AbstractResource object is null"); } long startTime = new Date().getTime(); String registeredCompositeName = compositeName; loading = compositeName; try { ClassLoader compositeClassLoader = new AbstractResourceClassLoader( foContext.getClassLoader(),foContext.getClManager(),resource); Component composite = compositeManager.getComposite(compositeName, compositeClassLoader); long bundleId = -1; try { bundleId = ((Bundle) resource.getResourceObject()).getBundleId(); } catch (ClassCastException e) { log.log(Level.CONFIG,e.getMessage(),e); } catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); } if (composite != null)// && bundleId > 0) { registeredCompositeName = registry.register(bundleId, composite, compositeClassLoader); loaded.add(registeredCompositeName); } else { log.log(Level.WARNING, "ProcessComposite method has returned a " + "null Component"); throw new FraSCAtiOSGiNotFoundCompositeException(); } refreshExplorer(compositeClassLoader); } catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); } catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage(),e); } finally { loading = null; } log.log(Level.INFO, registeredCompositeName + " loaded in " + (new Date().getTime() - startTime) + " ms"); return registeredCompositeName; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized void launch(String compositeName, String serviceName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { Component composite = registry.getComposite(compositeName); if (composite != null) { Class<?> serviceClass = registry.getService(compositeName, serviceName); runService(serviceName, serviceClass, compositeName, composite); } else { log.log(Level.WARNING, "unknown composite :" + compositeName); throw new FraSCAtiOSGiNotFoundCompositeException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
1
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); }
4
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public String loadSCA(URL resourceURL, String compositeName) throws FraSCAtiOSGiNotFoundCompositeException { return loadSCA(AbstractResource.newResource(resourceURL), compositeName); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized String loadSCA(AbstractResource resource, String compositeName) throws FraSCAtiOSGiNotFoundCompositeException { if (resource == null) { log.log(Level.WARNING, "AbstractResource object is null"); } long startTime = new Date().getTime(); String registeredCompositeName = compositeName; loading = compositeName; try { ClassLoader compositeClassLoader = new AbstractResourceClassLoader( foContext.getClassLoader(),foContext.getClManager(),resource); Component composite = compositeManager.getComposite(compositeName, compositeClassLoader); long bundleId = -1; try { bundleId = ((Bundle) resource.getResourceObject()).getBundleId(); } catch (ClassCastException e) { log.log(Level.CONFIG,e.getMessage(),e); } catch (Exception e) { log.log(Level.CONFIG,e.getMessage(),e); } if (composite != null)// && bundleId > 0) { registeredCompositeName = registry.register(bundleId, composite, compositeClassLoader); loaded.add(registeredCompositeName); } else { log.log(Level.WARNING, "ProcessComposite method has returned a " + "null Component"); throw new FraSCAtiOSGiNotFoundCompositeException(); } refreshExplorer(compositeClassLoader); } catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); } catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage(),e); } finally { loading = null; } log.log(Level.INFO, registeredCompositeName + " loaded in " + (new Date().getTime() - startTime) + " ms"); return registeredCompositeName; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized void launch(String compositeName, String serviceName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { Component composite = registry.getComposite(compositeName); if (composite != null) { Class<?> serviceClass = registry.getService(compositeName, serviceName); runService(serviceName, serviceClass, compositeName, composite); } else { log.log(Level.WARNING, "unknown composite :" + compositeName); throw new FraSCAtiOSGiNotFoundCompositeException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
1
            
// in osgi/frascati-processor/src/main/java/org/ow2/frascati/osgi/processor/OSGiResourceProcessor.java
catch (FraSCAtiOSGiNotFoundCompositeException e) { log.warning("Unable to find the '" + embeddedComposite + "' embedded composite"); }
0 0
checked (Domain) FraSCAtiOSGiNotFoundServiceException
public class FraSCAtiOSGiNotFoundServiceException extends Exception
{
    /**
     * Generated serial ID
     */
    private static final long serialVersionUID = 4498543017716082887L;
}
3
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
private void runService(String serviceName, Class<?> serviceClass, String compositeName, Component composite) throws FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { if (serviceClass == null) { log.log(Level.WARNING, "serviceClass parameter is null "); throw new FraSCAtiOSGiNotFoundServiceException(); } if (!"java.lang.Runnable".equals(serviceClass.getName())) { try { serviceClass.asSubclass(Runnable.class); } catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); } } try { Runnable service = (Runnable) composite.getFcInterface(serviceName); service.run(); } catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
1
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); }
3
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
private void runService(String serviceName, Class<?> serviceClass, String compositeName, Component composite) throws FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { if (serviceClass == null) { log.log(Level.WARNING, "serviceClass parameter is null "); throw new FraSCAtiOSGiNotFoundServiceException(); } if (!"java.lang.Runnable".equals(serviceClass.getName())) { try { serviceClass.asSubclass(Runnable.class); } catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); } } try { Runnable service = (Runnable) composite.getFcInterface(serviceName); service.run(); } catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized void launch(String compositeName, String serviceName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { Component composite = registry.getComposite(compositeName); if (composite != null) { Class<?> serviceClass = registry.getService(compositeName, serviceName); runService(serviceName, serviceClass, compositeName, composite); } else { log.log(Level.WARNING, "unknown composite :" + compositeName); throw new FraSCAtiOSGiNotFoundCompositeException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
0 0 0
checked (Domain) FraSCAtiOSGiNotRunnableServiceException
public class FraSCAtiOSGiNotRunnableServiceException extends Exception
{
    /**
     * Generated serial ID
     */
    private static final long serialVersionUID = -783487930216228411L;
}
2
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
private void runService(String serviceName, Class<?> serviceClass, String compositeName, Component composite) throws FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { if (serviceClass == null) { log.log(Level.WARNING, "serviceClass parameter is null "); throw new FraSCAtiOSGiNotFoundServiceException(); } if (!"java.lang.Runnable".equals(serviceClass.getName())) { try { serviceClass.asSubclass(Runnable.class); } catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); } } try { Runnable service = (Runnable) composite.getFcInterface(serviceName); service.run(); } catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
1
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); }
3
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
private void runService(String serviceName, Class<?> serviceClass, String compositeName, Component composite) throws FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { if (serviceClass == null) { log.log(Level.WARNING, "serviceClass parameter is null "); throw new FraSCAtiOSGiNotFoundServiceException(); } if (!"java.lang.Runnable".equals(serviceClass.getName())) { try { serviceClass.asSubclass(Runnable.class); } catch (ClassCastException cce) { log.log(Level.CONFIG, serviceClass + " is not Runnable"); throw new FraSCAtiOSGiNotRunnableServiceException(); } } try { Runnable service = (Runnable) composite.getFcInterface(serviceName); service.run(); } catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public synchronized void launch(String compositeName, String serviceName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotFoundServiceException, FraSCAtiOSGiNotRunnableServiceException { Component composite = registry.getComposite(compositeName); if (composite != null) { Class<?> serviceClass = registry.getService(compositeName, serviceName); runService(serviceName, serviceClass, compositeName, composite); } else { log.log(Level.WARNING, "unknown composite :" + compositeName); throw new FraSCAtiOSGiNotFoundCompositeException(); } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void launch(String compositeName) throws FraSCAtiOSGiNotFoundCompositeException, FraSCAtiOSGiNotRunnableServiceException, FraSCAtiOSGiNotFoundServiceException { Map<String, Class<?>> map = registry.getServices(compositeName); Component composite = registry.getComposite(compositeName); if (map == null) { log.log(Level.WARNING, "No service associated to " + compositeName); if (composite == null) { throw new FraSCAtiOSGiNotFoundCompositeException(); } throw new FraSCAtiOSGiNotFoundServiceException(); } boolean oneRunnable = false; Iterator<String> mapIterator = map.keySet().iterator(); while (mapIterator.hasNext()) { String serviceName = (String) mapIterator.next(); Class<?> serviceClass = map.get(serviceName); try { runService(serviceName, serviceClass, compositeName, composite); oneRunnable = true; } catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); } } if (!oneRunnable) { log.log(Level.WARNING, "No Runnable service for in the composite '" + compositeName + "'"); throw new FraSCAtiOSGiNotRunnableServiceException(); } }
1
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (FraSCAtiOSGiNotRunnableServiceException e) { log.log(Level.CONFIG, serviceName + " is not Runnable"); }
0 0
checked (Domain) FraSCAtiServiceException
public class FraSCAtiServiceException extends Exception
{
    /**
     * Generated serial ID
     */
    private static final long serialVersionUID = 4118928600670547821L;
    
    /**
     * Constructor
     */
    public FraSCAtiServiceException()
    {
        super();
    }
    /**
     * Constructor with a message
     */
    public FraSCAtiServiceException(String message)
    {
        super(message);
    }
}
7
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public String processComposite(String composite, URL... urls) throws FraSCAtiServiceException { FrascatiClassLoader compositeClassLoader = new FrascatiClassLoader( classLoaderManager.getClassLoader()); if(urls != null) { for(URL url : urls) { compositeClassLoader.addUrl(url); } } try { compositeManager.getComposite(composite,compositeClassLoader); } catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); } catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); } return registry.getProcessedComponentList().get(0); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public void remove(String compositeName) throws FraSCAtiServiceException { stop(compositeName); try { compositeManager.removeComposite(compositeName); } catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); } }
7
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' does not exist in " + componentName); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (ClassCastException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' is not a '" + serviceClass.getCanonicalName() + "' instance"); }
3
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public String processComposite(String composite, URL... urls) throws FraSCAtiServiceException { FrascatiClassLoader compositeClassLoader = new FrascatiClassLoader( classLoaderManager.getClassLoader()); if(urls != null) { for(URL url : urls) { compositeClassLoader.addUrl(url); } } try { compositeManager.getComposite(composite,compositeClassLoader); } catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); } catch(Exception e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); } return registry.getProcessedComponentList().get(0); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public void remove(String compositeName) throws FraSCAtiServiceException { stop(compositeName); try { compositeManager.removeComposite(compositeName); } catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); } }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
public <T> T getService(String compositeName, String serviceName, Class<T> serviceClass) throws FraSCAtiServiceException { return registry.getService(compositeName, serviceName, serviceClass); }
0 0 0
checked (Domain) FrascatiException
public class FrascatiException extends Exception {

    //---------------------------------------------------------------------------
    // Internal state.
    // --------------------------------------------------------------------------

    private static final long serialVersionUID = 9035619800194492330L;

    //---------------------------------------------------------------------------
    // Internal methods.
    // --------------------------------------------------------------------------

    //---------------------------------------------------------------------------
    // Public methods.
    // --------------------------------------------------------------------------

    /**
     * @see Exception#Exception()
     */
    public FrascatiException() {
        super();
    }

    /**
     * @see Exception#Exception(String)
     */
    public FrascatiException(String message) {
        super(message);
    }

    /**
     * @see Exception#Exception(String, Throwable)
     */
    public FrascatiException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * @see Exception#Exception(Throwable)
     */
    public FrascatiException(Throwable cause) {
        super(cause);
    }

}
8
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public static FraSCAti newFraSCAti(ClassLoader classLoader) throws FrascatiException { FraSCAti frascati; // Uncomment next line for debugging class loader. // FrascatiClassLoader.print(classLoader); // Get the current thread's context class loader and set it. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getAndSetCurrentThreadContextClassLoader(classLoader); try { try { frascati = loadAndInstantiate( System.getProperty(FRASCATI_CLASS_PROPERTY_NAME, FRASCATI_CLASS_DEFAULT_VALUE), classLoader); } catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); } frascati.initFrascatiComposite(classLoader); } finally { // Reset the previous current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousCurrentThreadContextClassLoader); } return frascati; }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
protected String[] getComposites() throws FrascatiException { if (!isEmpty(composite)) { // composite tag is filled if (composites.length > 0) { throw new FrascatiException( "You have to choose ONE (and only one) one way to specify composite name(s): " + "either <composite> or <composites> tag."); } else { String[] tmp = new String[1]; tmp[0] = composite; return tmp; } } else { if (composites.length > 0) { return composites; } else { // else no composite specified return new String[0]; } } }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
private String[] getMethodParams() throws FrascatiException { if( !isEmpty(methodParams) ) { // params tag is filled if (methodParameters.length > 0) { throw new FrascatiException( "You have to choose ONE (and only one) one way to specify parameters: " + "either <params> or <parameters> tag."); } else { return methodParams.split(" "); } } else { if (methodParameters.length > 0) { return methodParameters; } else { // else no parameters nor params return new String[0]; } } }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
Override protected final ClassLoader initCurrentClassLoader(ClassLoader currentClassLoader) throws FrascatiException { // // When Maven 3.x.y // if(currentClassLoader instanceof org.codehaus.plexus.classworlds.realm.ClassRealm) { org.codehaus.plexus.classworlds.realm.ClassRealm classRealm = (org.codehaus.plexus.classworlds.realm.ClassRealm)currentClassLoader; // Add the current project artifact JAR into the ClassRealm instance. try { classRealm.addURL( newFile( "target" + File.separator + project.getArtifactId() + "-" + project.getVersion() + ".jar") .toURL() ); } catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); } // Get the urls to project artifacts not present in the current class loader. List<URL> urls = getProjectArtifactsNotPresentInCurrentClassLoader(currentClassLoader); for(URL url : urls) { getLog().debug("Add into the MOJO class loader: " + url); classRealm.addURL(url); } return currentClassLoader; } // // When Maven 2.x.y // // Maven uses the org.codehaus.classworlds framework for managing its class loaders. // ClassRealm is a class loading space. org.codehaus.classworlds.ClassRealm classRealm = null; // Following allows to obtain the ClassRealm instance of the current MOJO class loader. // Here dynamic invocation is used as 'getRealm' is a protected method of a protected class!!! try { Method getRealmMethod = currentClassLoader.getClass().getDeclaredMethod("getRealm", new Class[0]); getRealmMethod.setAccessible(true); classRealm = (org.codehaus.classworlds.ClassRealm)getRealmMethod.invoke(currentClassLoader); } catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); } // Add the current project artifact JAR into the ClassRealm instance. try { classRealm.addConstituent( newFile( "target" + File.separator + project.getArtifactId() + "-" + project.getVersion() + ".jar") .toURL() ); } catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); } // Get the urls to project artifacts not present in the current class loader. List<URL> urls = getProjectArtifactsNotPresentInCurrentClassLoader(currentClassLoader); for(URL url : urls) { getLog().debug("Add into the MOJO class loader: " + url); classRealm.addConstituent(url); } return currentClassLoader; }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
Override protected final void executeMojo() throws FrascatiException { // Configure Java system properties. System.setProperty( "fscript-factory", "org.ow2.frascati.fscript.jsr223.FraSCAtiScriptEngineFactory" ); String[] parameters = getMethodParams(); FraSCAti frascati = FraSCAti.newFraSCAti(); Launcher launcher = new Launcher(composite, frascati); if ( isEmpty(service) ) { // Run in a server mode getLog().info("FraSCAti is running in a server mode..."); getLog().info("Press Ctrl+C to quit..."); try { System.in.read(); } catch (IOException e) { throw new FrascatiException(e); } } else { getLog().info("Calling the '" + service + "' service: "); getLog().info("\tMethod '" + method + "'" + ((parameters.length == 0) ? "" : " with params: " + Arrays.toString(parameters))); Object result = launcher.call(service, method, Object.class, parameters); getLog().info("Call done!"); if (result != null) { getLog().info("Service response:"); getLog().info(result.toString()); } } launcher.close(); }
6
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelEngine.java
catch(BPELException bexc) { throw new FrascatiException("EasyBPEL can not read the BPEL process '" + processUri + "'", bexc);
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (IOException e) { throw new FrascatiException(e); }
33
            
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
public static void main(String[] args) throws FrascatiException { // The factory command line used to retrieve options value. FactoryCommandLine cmd = null; // List of URLs used to define the classpath URL[] urls = null; System.out.println("\nOW2 FraSCAti Standalone Runtime"); // => Parse arguments cmd = new FactoryCommandLine(); cmd.parse(args); String compositeName = args[0]; String[] paths = cmd.getLibPath(); urls = new URL[paths.length]; for (int i = 0; i < urls.length; i++) { try { urls[i] = new File(paths[i]).toURI().toURL(); } catch (MalformedURLException e) { System.err.println("Error while getting URL for : " + urls[i]); e.printStackTrace(); } } Launcher launcher = null; try { // TODO must be configurable from pom.xml files. if(cmd.isFscriptEnabled()) { System.setProperty("fscript-factory", "org.ow2.frascati.fscript.jsr223.FraSCAtiScriptEngineFactory"); } if (System.getProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME) == null) { System.setProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME, FraSCAtiFractal.class.getCanonicalName()); } // TODO // TODO Reactive this feature. // f.getService(f.getFactory(), "juliac", JuliacConfiguration.class).setOutputDir(new File(cmd.getBaseDir())); FraSCAti frascati = FraSCAti.newFraSCAti(); launcher = new Launcher(compositeName, frascati, urls); } catch (FrascatiException e) { e.printStackTrace(); System.err.println("Cannot instantiate the FraSCAti factory!"); System.err.println("Exiting ..."); System.exit(-1); } String service = cmd.getServiceName(); if(service == null) { // Run in a server mode System.out.println("FraSCAti is running in a server mode..."); System.out.println("Press Ctrl+C to quit..."); Thread.yield(); } else { Object result = launcher.call(service, cmd.getMethodName(), Object.class, (Object[]) cmd.getParams()); System.out.println("Call done!"); if(result != null) { System.out.println("Service response:"); System.out.println(result); } } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
public void unload() throws FrascatiException { String[] compositeNames = registry.unregisterAll(); int n = 0; for (; n < compositeNames.length; n++) { String compositeName = compositeNames[n]; unloadSCA(compositeName); } foContext.getBundleContext().ungetService( fServiceRegistration.getReference()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
protected final void initFrascatiComposite(ClassLoader classLoader) throws FrascatiException { // Instantiate the OW2 FraSCAti bootstrap factory. Factory bootstrapFactory; try { bootstrapFactory = loadAndInstantiate( System.getProperty(FRASCATI_BOOTSTRAP_PROPERTY_NAME, FRASCATI_BOOTSTRAP_DEFAULT_VALUE), classLoader); } catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap class", exc)); return; } // Instantiate the OW2 FraSCAti bootstrap composite. try { this.frascatiComposite = bootstrapFactory.newFcInstance(); } catch (Exception exc) { severe(new FrascatiException("Cannot instantiate the OW2 FraSCAti bootstrap composite", exc)); return; } // Start the OW2 FraSCAti bootstrap composite. try { startFractalComponent(this.frascatiComposite); } catch (Exception exc) { severe(new FrascatiException("Cannot start the OW2 FraSCAti Assembly Factory bootstrap composite", exc)); return; } // At this time, variable 'frascati' refers to the OW2 FraSCAti generated with Juliac. // Now reload the OW2 FraSCAti composite with the OW2 FraSCAti bootstrap composite. try { this.frascatiComposite = getCompositeManager().getComposite( System.getProperty(FRASCATI_COMPOSITE_PROPERTY_NAME, FRASCATI_COMPOSITE_DEFAULT_VALUE) .replace('.', '/')); } catch (Exception exc) { severe(new FrascatiException("Cannot load the OW2 FraSCAti composite", exc)); return; } // At this time, variable 'frascati' refers to the OW2 FraSCAti composite // dynamically loaded by the OW2 FraSCAti bootstrap composite. try { // Add OW2 FraSCAti into its top level domain composite. getCompositeManager().addComposite(this.frascatiComposite); } catch(Exception exc) { severe(new FrascatiException("Cannot add the OW2 FraSCAti composite", exc)); return; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
protected final <T> T getFrascatiService(String serviceName, Class<T> clazz) throws FrascatiException { return getService(this.frascatiComposite, serviceName, clazz); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public static FraSCAti newFraSCAti() throws FrascatiException { return newFraSCAti(FrascatiClassLoader.getCurrentThreadContextClassLoader()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public static FraSCAti newFraSCAti(ClassLoader classLoader) throws FrascatiException { FraSCAti frascati; // Uncomment next line for debugging class loader. // FrascatiClassLoader.print(classLoader); // Get the current thread's context class loader and set it. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getAndSetCurrentThreadContextClassLoader(classLoader); try { try { frascati = loadAndInstantiate( System.getProperty(FRASCATI_CLASS_PROPERTY_NAME, FRASCATI_CLASS_DEFAULT_VALUE), classLoader); } catch (Exception exc) { throw new FrascatiException("Cannot instantiate the OW2 FraSCAti class", exc); } frascati.initFrascatiComposite(classLoader); } finally { // Reset the previous current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousCurrentThreadContextClassLoader); } return frascati; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final CompositeManager getCompositeManager() throws FrascatiException { return getFrascatiService(COMPOSITE_MANAGER, CompositeManager.class); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component getComposite(String composite) throws FrascatiException { return getCompositeManager().getComposite(composite); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component getComposite(String composite, URL[] libs) throws FrascatiException { return getCompositeManager().getComposite(composite, libs); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component getComposite(String composite, ClassLoader classLoader) throws FrascatiException { return getCompositeManager().getComposite(composite, classLoader); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component[] getContribution(String contribution) throws FrascatiException { return getCompositeManager().getContribution(contribution); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ProcessingContext newProcessingContext() throws FrascatiException { return newProcessingContext(ProcessingMode.all); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ProcessingContext newProcessingContext(ProcessingMode processingMode) throws FrascatiException { ProcessingContext processingContext = getCompositeManager().newProcessingContext(); processingContext.setProcessingMode(processingMode); return processingContext; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ProcessingContext newProcessingContext(ClassLoader classLoader) throws FrascatiException { return getCompositeManager().newProcessingContext(classLoader); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final Component processComposite(String composite, ProcessingContext processingContext) throws FrascatiException { return getCompositeManager().processComposite(new QName(composite), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final void close(Component composite) throws FrascatiException { // Closing the SCA domain. try { log.info("Closing the SCA composite '" + composite + "'."); TinfiDomain.close(composite); } catch (Exception exc) { severe(new FrascatiException("Impossible to stop the SCA composite '" + composite + "'!", exc)); return; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final void close() throws FrascatiException { // Closing the FraSCAti composite. close(this.frascatiComposite); this.frascatiComposite = null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ClassLoaderManager getClassLoaderManager() throws FrascatiException { return getFrascatiService(CLASSLOADER_MANAGER, ClassLoaderManager.class); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final void setClassLoader(ClassLoader classloader) throws FrascatiException { getClassLoaderManager().setClassLoader(classloader); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final ClassLoader getClassLoader() throws FrascatiException { return getClassLoaderManager().getClassLoader(); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
public final MembraneGeneration getMembraneGeneration() throws FrascatiException { return getFrascatiService(MEMBRANE_GENERATION, MembraneGeneration.class); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
Init public final void initialize() throws FrascatiException { // init the FraSCAti class loader used. this.mainClassLoader = new FrascatiClassLoader("OW2 FraSCAti Assembly Factory"); // create the top level domain composite. this.topLevelDomainComposite = componentFactory.createScaContainer(); setFractalComponentName(topLevelDomainComposite, "Top Level Domain Composite"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
private void severe(String compositeName, FrascatiException fe) throws FrascatiException { scaComposite = null; log.severe("Unable to launch composite '" + compositeName + "': " + fe.getMessage()); throw fe; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
public final void launch() throws FrascatiException { if (compositeName != null) { try { scaComposite = FraSCAti.newFraSCAti().getComposite(compositeName); } catch (FrascatiException fe) { severe(compositeName, fe); } } else { log.severe("FraSCAti launcher: composite name must be set!"); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
public final void launch(String compositeName) throws FrascatiException { this.compositeName = compositeName; launch(); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
protected String[] getComposites() throws FrascatiException { if (!isEmpty(composite)) { // composite tag is filled if (composites.length > 0) { throw new FrascatiException( "You have to choose ONE (and only one) one way to specify composite name(s): " + "either <composite> or <composites> tag."); } else { String[] tmp = new String[1]; tmp[0] = composite; return tmp; } } else { if (composites.length > 0) { return composites; } else { // else no composite specified return new String[0]; } } }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
Override protected final void executeMojo() throws FrascatiException { // Set the OW2 FraSCAti output directory. System.setProperty("org.ow2.frascati.output.directory", this.projectBaseDirAbsolutePath + File.separator + "target"); // No Security Manager with FraSCAti Java RMI binding else an issue with // Sonar obscurs. System.setProperty("org.ow2.frascati.binding.rmi.security-manager", "no"); // Create a new OW2 FraSCAti instance. FraSCAti frascati = FraSCAti.newFraSCAti(); // Take into account the default Maven Java source directory if exists. File fs = newFile("src/main/java"); if (fs.exists()) { srcs.add(fs.getAbsolutePath()); } completeBuildSources(); // Declare all Java sources to compile. MembraneGeneration membraneGeneration = frascati.getMembraneGeneration(); for (String src : srcs) { membraneGeneration.addJavaSource(src); } // Get the OW2 FraSCAti class loader manager. ClassLoaderManager classLoaderManager = frascati.getClassLoaderManager(); // Add project resource directory if any into the class loader. File fr = newFile("src/main/resources"); if (fr.exists()) { try { try { classLoaderManager.loadLibraries(fr.toURI().toURL()); } catch (ManagerException e) { e.printStackTrace(); } } catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); } } completeBuildResources(classLoaderManager); // Add srcs into the class loader. for (int i = 0; i < srcs.size(); i++) { try { classLoaderManager.loadLibraries( new File(srcs.get(i)).toURI().toURL()); } catch (MalformedURLException mue) { getLog().error("Invalid file: " + srcs.get(i)); } } // Process SCA composites. for (String compositeName : getComposites()) { getLog().info("Compiling the SCA composite '" + compositeName + "'"); // Prepare the processing context ProcessingContext processingContext = frascati.newProcessingContext( ProcessingMode.compile); frascati.processComposite(compositeName, processingContext); getLog().info("SCA composite '" + compositeName + "' compiled successfully."); // Add Java sources generated by FraSCAti to the Maven project. // Then Maven will compile these Java sources. for (String directory : membraneGeneration.getJavaDirectories()) { getLog().info("Add " + directory + " as Maven compile source root."); addSource(directory); } } // Add Java sources, given as parameters to the OW2 FraSCAti compiler, // to the Maven project. // Then Maven will compile these Java sources too. for (String src : srcs) { addSource(src); } }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
private String[] getMethodParams() throws FrascatiException { if( !isEmpty(methodParams) ) { // params tag is filled if (methodParameters.length > 0) { throw new FrascatiException( "You have to choose ONE (and only one) one way to specify parameters: " + "either <params> or <parameters> tag."); } else { return methodParams.split(" "); } } else { if (methodParameters.length > 0) { return methodParameters; } else { // else no parameters nor params return new String[0]; } } }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
Override protected final ClassLoader initCurrentClassLoader(ClassLoader currentClassLoader) throws FrascatiException { // // When Maven 3.x.y // if(currentClassLoader instanceof org.codehaus.plexus.classworlds.realm.ClassRealm) { org.codehaus.plexus.classworlds.realm.ClassRealm classRealm = (org.codehaus.plexus.classworlds.realm.ClassRealm)currentClassLoader; // Add the current project artifact JAR into the ClassRealm instance. try { classRealm.addURL( newFile( "target" + File.separator + project.getArtifactId() + "-" + project.getVersion() + ".jar") .toURL() ); } catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); } // Get the urls to project artifacts not present in the current class loader. List<URL> urls = getProjectArtifactsNotPresentInCurrentClassLoader(currentClassLoader); for(URL url : urls) { getLog().debug("Add into the MOJO class loader: " + url); classRealm.addURL(url); } return currentClassLoader; } // // When Maven 2.x.y // // Maven uses the org.codehaus.classworlds framework for managing its class loaders. // ClassRealm is a class loading space. org.codehaus.classworlds.ClassRealm classRealm = null; // Following allows to obtain the ClassRealm instance of the current MOJO class loader. // Here dynamic invocation is used as 'getRealm' is a protected method of a protected class!!! try { Method getRealmMethod = currentClassLoader.getClass().getDeclaredMethod("getRealm", new Class[0]); getRealmMethod.setAccessible(true); classRealm = (org.codehaus.classworlds.ClassRealm)getRealmMethod.invoke(currentClassLoader); } catch(Exception exc) { throw new FrascatiException("Could not get the ClassRealm instance of the current class loader", exc); } // Add the current project artifact JAR into the ClassRealm instance. try { classRealm.addConstituent( newFile( "target" + File.separator + project.getArtifactId() + "-" + project.getVersion() + ".jar") .toURL() ); } catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); } // Get the urls to project artifacts not present in the current class loader. List<URL> urls = getProjectArtifactsNotPresentInCurrentClassLoader(currentClassLoader); for(URL url : urls) { getLog().debug("Add into the MOJO class loader: " + url); classRealm.addConstituent(url); } return currentClassLoader; }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
Override protected final void executeMojo() throws FrascatiException { // Configure Java system properties. System.setProperty( "fscript-factory", "org.ow2.frascati.fscript.jsr223.FraSCAtiScriptEngineFactory" ); String[] parameters = getMethodParams(); FraSCAti frascati = FraSCAti.newFraSCAti(); Launcher launcher = new Launcher(composite, frascati); if ( isEmpty(service) ) { // Run in a server mode getLog().info("FraSCAti is running in a server mode..."); getLog().info("Press Ctrl+C to quit..."); try { System.in.read(); } catch (IOException e) { throw new FrascatiException(e); } } else { getLog().info("Calling the '" + service + "' service: "); getLog().info("\tMethod '" + method + "'" + ((parameters.length == 0) ? "" : " with params: " + Arrays.toString(parameters))); Object result = launcher.call(service, method, Object.class, parameters); getLog().info("Call done!"); if (result != null) { getLog().info("Service response:"); getLog().info(result.toString()); } } launcher.close(); }
10
            
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (FrascatiException e) { e.printStackTrace(); System.err.println("Cannot instantiate the FraSCAti factory!"); System.err.println("Exiting ..."); System.exit(-1); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (FrascatiException fe) { severe(compositeName, fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (FrascatiException fe) { severe(compositeName, fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
catch (FrascatiException e) { log.severe("Cannot launch SCA composite '" + composite + "'!"); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
catch (FrascatiException e) { log.severe("Cannot instanciate FraSCAti!"); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/jsr223/FraSCAtiScriptEngineFactory.java
catch (FrascatiException e) { e.printStackTrace(); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ParentApplicationContext.java
catch(FrascatiException fe) { }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
catch(FrascatiException exc) { // exc.printStackTrace(); error(processingContext, bpelImplementation, "Can't read BPEL process ", bpelImplementationProcess.toString()); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); }
1
            
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); }
0
checked (Lib) IOException 12
            
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static boolean compileAll(String sourcePath, String targetPath, List<File> classPath) throws IOException, ParseException{ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>(); StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); List<String> pathNameList= new ArrayList<String>(); List<String> options = new ArrayList<String>(); boolean success = true; File target = new File(targetPath); if (!target.exists() && !target.mkdirs()) { throw new IOException("Impossible to create directory " + targetPath); } File src = new File(sourcePath); if (!src.exists() && ! src.mkdirs()) { throw new IOException("Impossible to create directory " + sourcePath); } //Setting the directory for .class files options.add("-d"); options.add(targetPath); String libList = ""; for(int i = 0 ; i < classPath.size(); i++) { File classPathItem = classPath.get(i); if (i > 0) { if(SCAJavaCompilerImpl.isWindows()){ libList = libList.concat(";"); } else{ libList = libList.concat(":"); } } libList = libList.concat(classPathItem.getCanonicalPath()); } options.add("-classpath"); options.add(libList); if(checkFolder(src, pathNameList) == false){ success = false; } Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, compilationUnits); LOG.info("Compiling..."); if (task.call() == false){ success = false; LOG.severe("Fail!"); String errorMessage = "Compilation fail!\n\n"; for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) { LOG.severe(diagnostic.getMessage(null)); errorMessage = errorMessage.concat(diagnostic.getMessage(null) + "\n"); } throw new ParseException(errorMessage, 0); } else { LOG.info("Ok"); LOG.info("Compiled files:"); for (String filePath : pathNameList) { LOG.info(filePath); } } fileManager.close(); return success; }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static List<File> getClassPath(String libPath) throws IOException { File libDirectory = new File(libPath); List<File> jarFileList = new ArrayList<File>(); if (libDirectory.isDirectory()) { for (File jarFile : libDirectory.listFiles()) { jarFileList.add(jarFile); } }else{ throw new IOException("Classpath not found"); } return jarFileList; }
// in frascati-studio/src/main/java/org/easysoa/utils/JarGenerator.java
public static File generateJarFromAll(String contentJarPath, String outputJarPath) throws Exception{ BufferedOutputStream out = null; out = new BufferedOutputStream(new FileOutputStream(outputJarPath)); File src = new File(contentJarPath); JarUtils.jar(out, src); File jarFile = new File(outputJarPath); if (jarFile.exists()) { return jarFile; }else{ throw new IOException("Jar File " + jarFile.getCanonicalPath() + " NOT FOUND!"); } }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
Override public void copyFilesRecursively(File sourceFile, File sourcePath, File targetPath, FileFilter fileFilter) throws IOException { try { copy(sourceFile, new File(targetPath.getCanonicalPath() + sourceFile.getCanonicalPath().replace(sourcePath.getCanonicalPath(),""))); } catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); } if (sourceFile.isDirectory()) { for (File child : sourceFile.listFiles(fileFilter)) { copyFilesRecursively(child, sourcePath, targetPath, fileFilter); } } }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void unjar(InputStream input, File dest) throws IOException { if (!dest.exists()) { dest.mkdirs(); } if (!dest.isDirectory()) { throw new IOException("Destination must be a directory."); } JarInputStream jin = new JarInputStream(input); byte[] buffer = new byte[1024]; ZipEntry entry = jin.getNextEntry(); while (entry != null) { String fileName = entry.getName(); if (fileName.charAt(fileName.length() - 1) == '/') { fileName = fileName.substring(0, fileName.length() - 1); } if (fileName.charAt(0) == '/') { fileName = fileName.substring(1); } if (File.separatorChar != '/') { fileName = fileName.replace('/', File.separatorChar); } File file = new File(dest, fileName); if (entry.isDirectory()) { // make sure the directory exists file.mkdirs(); jin.closeEntry(); } else { // make sure the directory exists File parent = file.getParentFile(); if (parent != null && !parent.exists()) { parent.mkdirs(); } // dump the file OutputStream out = new FileOutputStream(file); int len = 0; while ((len = jin.read(buffer, 0, buffer.length)) != -1) { out.write(buffer, 0, len); } out.flush(); out.close(); jin.closeEntry(); file.setLastModified(entry.getTime()); } entry = jin.getNextEntry(); } /* Explicity write out the META-INF/MANIFEST.MF so that any headers such as the Class-Path are see for the unpackaged jar */ Manifest manifest = jin.getManifest(); if (manifest != null) { File file = new File(dest, "META-INF/MANIFEST.MF"); File parent = file.getParentFile(); if( parent.exists() == false ) { parent.mkdirs(); } OutputStream out = new FileOutputStream(file); manifest.write(out); out.flush(); out.close(); } jin.close(); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
private boolean deploy(String server,File contribFile) throws Exception { LOG.info("Cloud url : "+server); deployment = JAXRSClientFactory.create(server, Deployment.class); //Deploy contribution String contrib = null; try { contrib = FileUtil.getStringFromFile(contribFile); } catch (IOException e) { throw new IOException("Cannot read the contribution!"); } LOG.info("** Trying to deploy a contribution ..."); try { if (deployment.deployContribution(contrib) >= 0) { LOG.info("** Contribution deployed!"); return true; }else{ LOG.severe("Error trying to deploy contribution in: " + server); return false; } } catch (Exception e) { throw new Exception("Exception trying to deploy contribution in: " + server + "message: " + e.getMessage()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static byte[] getBytesFromFile(File file) throws IOException { InputStream inputStream = new FileInputStream(file); try { // Get the size of the file long length = file.length(); if (length > Integer.MAX_VALUE) { throw new IOException("The file you are trying to read is too large, length :"+length+", length max : "+Integer.MAX_VALUE); } // Create the byte array to hold the data byte[] bytes = new byte[(int) length]; int offset = 0; int numRead = inputStream.read(bytes, offset, bytes.length - offset); while (offset < bytes.length && numRead >= 0) { offset += numRead; numRead = inputStream.read(bytes, offset, bytes.length - offset); } // Ensure all the bytes have been read in if (offset < bytes.length) { throw new IOException("Could not completely read file " + file.getName()); } return bytes; } finally { // Close the input stream and return bytes inputStream.close(); } }
3
            
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { throw new IOException("Cannot read the contribution!"); }
// in modules/frascati-tinfi-sca-parser/src/main/java/org/ow2/frascati/tinfi/FrascatiTinfiScaParser.java
catch (Exception e) { throw new IOException("Can not parse " + adl, e); }
50
            
// in osgi/frascati-in-osgi/osgi/concierge_r3/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer=null; //Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port","8888"); main.run((args==null || args.length==0 || (clientOrServer=args[0])==null)?"":clientOrServer); }
// in osgi/frascati-in-osgi/osgi/equinox/src/main/java/org/ow2/frascati/osgi/frameworks/equinox/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54460"); System.out.println("try to run"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/knopflerfish/src/main/java/org/ow2/frascati/osgi/frameworks/knopflerfish/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54463"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { int a = 1; if (args != null && args.length >= 1) { for (; a < args.length; a++) { String arg = args[a]; String[] argEls = arg.split("="); if (argEls.length == 2) { System.setProperty(argEls[0], argEls[1]); } } } Main main = new Main(); String clientOrServer = null; main.launch(((clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/felix/src/main/java/org/ow2/frascati/osgi/frameworks/felix/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54461"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/concierge_r4/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer=null; //Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port","8888"); main.run((args==null || args.length==0 || (clientOrServer=args[0])==null)?"":clientOrServer); }
// in osgi/fractal/juliac/runtime-light/src/main/java/org/objectweb/fractal/juliac/osgi/PlatformImpl.java
public BundleContext getBundleContext() throws IOException, BundleException { return context; }
// in osgi/fractal/juliac/runtime-light/src/main/java/org/objectweb/fractal/juliac/osgi/PlatformImpl.java
public void stop() throws IOException, BundleException { // do nothing }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
public static File createBundleDataStore(File context, Bundle bundle) throws IOException { String root = new StringBuilder("bundle_").append(bundle.getBundleId()) .toString(); File file = new File(new StringBuilder(context.getAbsolutePath()) .append(File.separator).append(root).toString()); if (!file.exists() && !file.mkdir()) { file = IOUtils.createTmpDir(root); } return file; }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
public static void copyFromURL(URL url, String path) throws IOException { InputStream is = url.openStream(); copyFromStream(is, path); }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static boolean compileAll(String sourcePath, String targetPath, List<File> classPath) throws IOException, ParseException{ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>(); StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); List<String> pathNameList= new ArrayList<String>(); List<String> options = new ArrayList<String>(); boolean success = true; File target = new File(targetPath); if (!target.exists() && !target.mkdirs()) { throw new IOException("Impossible to create directory " + targetPath); } File src = new File(sourcePath); if (!src.exists() && ! src.mkdirs()) { throw new IOException("Impossible to create directory " + sourcePath); } //Setting the directory for .class files options.add("-d"); options.add(targetPath); String libList = ""; for(int i = 0 ; i < classPath.size(); i++) { File classPathItem = classPath.get(i); if (i > 0) { if(SCAJavaCompilerImpl.isWindows()){ libList = libList.concat(";"); } else{ libList = libList.concat(":"); } } libList = libList.concat(classPathItem.getCanonicalPath()); } options.add("-classpath"); options.add(libList); if(checkFolder(src, pathNameList) == false){ success = false; } Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, compilationUnits); LOG.info("Compiling..."); if (task.call() == false){ success = false; LOG.severe("Fail!"); String errorMessage = "Compilation fail!\n\n"; for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) { LOG.severe(diagnostic.getMessage(null)); errorMessage = errorMessage.concat(diagnostic.getMessage(null) + "\n"); } throw new ParseException(errorMessage, 0); } else { LOG.info("Ok"); LOG.info("Compiled files:"); for (String filePath : pathNameList) { LOG.info(filePath); } } fileManager.close(); return success; }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
private static boolean checkFolder(File src, List<String> pathNameList) throws IOException { File[] files = src.listFiles(filterJavaFiles); boolean success = true; for (File file : files) { if(file.isDirectory()){ checkFolder(file, pathNameList); } else { pathNameList.add(file.getCanonicalPath()); } } return success; }
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static List<File> getClassPath(String libPath) throws IOException { File libDirectory = new File(libPath); List<File> jarFileList = new ArrayList<File>(); if (libDirectory.isDirectory()) { for (File jarFile : libDirectory.listFiles()) { jarFileList.add(jarFile); } }else{ throw new IOException("Classpath not found"); } return jarFileList; }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
Override public void copyFilesRecursively(File sourceFile, File sourcePath, File targetPath) throws IOException{ //Defines no filter FileFilter noFilter = new FileFilter() { public boolean accept(File file) { return true; } }; copyFilesRecursively(sourceFile, sourcePath, targetPath, noFilter); }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
Override public void copyFilesRecursively(File sourceFile, File sourcePath, File targetPath, FileFilter fileFilter) throws IOException { try { copy(sourceFile, new File(targetPath.getCanonicalPath() + sourceFile.getCanonicalPath().replace(sourcePath.getCanonicalPath(),""))); } catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); } if (sourceFile.isDirectory()) { for (File child : sourceFile.listFiles(fileFilter)) { copyFilesRecursively(child, sourcePath, targetPath, fileFilter); } } }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
Override public void deleteRecursively(File src) throws IOException { if (src.isDirectory()) { for (File file : src.listFiles()) { deleteRecursively(file); } } if (src.delete() == false){ LOG.info("The file named " + src.getName() + " was not deleted"); } }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
public static void copy(File src, File dst) throws IOException { //Don't copy if it's a directory if (src.isDirectory()) { dst.mkdir(); return; } InputStream inputStream = new FileInputStream(src); OutputStream outputStream = new FileOutputStream(dst); byte[] buf = new byte[1024]; int len; while ((len = inputStream.read(buf)) > 0) { outputStream.write(buf, 0, len); } inputStream.close(); outputStream.close(); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File src) throws IOException { jar(out, new File[] { src }, null, null, null); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File[] src) throws IOException { jar(out, src, null, null, null); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File[] src, FileFilter filter) throws IOException { jar(out, src, filter, null, null); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void jar(OutputStream out, File[] src, FileFilter filter, String prefix, Manifest man) throws IOException { for (int i = 0; i < src.length; i++) { if (!src[i].exists()) { throw new FileNotFoundException(src.toString()); } } JarOutputStream jout; if (man == null) { jout = new JarOutputStream(out); } else { jout = new JarOutputStream(out, man); } if (prefix != null && prefix.length() > 0 && !prefix.equals("/")) { // strip leading '/' if (prefix.charAt(0) == '/') { prefix = prefix.substring(1); } // ensure trailing '/' if (prefix.charAt(prefix.length() - 1) != '/') { prefix = prefix + "/"; } } else { prefix = ""; } JarInfo info = new JarInfo(jout, filter); for (int i = 0; i < src.length; i++) { //Modified: The root is not put in the jar file if (src[i].isDirectory()){ File[] files = src[i].listFiles(info.filter); for (int j = 0; j < files.length; j++) { jar(files[j], prefix, info); } } } jout.close(); }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
private static void jar(File src, String prefix, JarInfo info) throws IOException { JarOutputStream jout = info.out; if (src.isDirectory()) { // create / init the zip entry prefix = prefix + src.getName() + "/"; ZipEntry entry = new ZipEntry(prefix); entry.setTime(src.lastModified()); entry.setMethod(JarOutputStream.STORED); entry.setSize(0L); entry.setCrc(0L); jout.putNextEntry(entry); jout.closeEntry(); // process the sub-directories File[] files = src.listFiles(info.filter); for (int i = 0; i < files.length; i++) { jar(files[i], prefix, info); } } else if (src.isFile()) { // get the required info objects byte[] buffer = info.buffer; // create / init the zip entry ZipEntry entry = new ZipEntry(prefix + src.getName()); entry.setTime(src.lastModified()); jout.putNextEntry(entry); // dump the file FileInputStream input = new FileInputStream(src); int len; while ((len = input.read(buffer, 0, buffer.length)) != -1) { jout.write(buffer, 0, len); } input.close(); jout.closeEntry(); } }
// in frascati-studio/src/main/java/org/easysoa/utils/JarUtils.java
public static void unjar(InputStream input, File dest) throws IOException { if (!dest.exists()) { dest.mkdirs(); } if (!dest.isDirectory()) { throw new IOException("Destination must be a directory."); } JarInputStream jin = new JarInputStream(input); byte[] buffer = new byte[1024]; ZipEntry entry = jin.getNextEntry(); while (entry != null) { String fileName = entry.getName(); if (fileName.charAt(fileName.length() - 1) == '/') { fileName = fileName.substring(0, fileName.length() - 1); } if (fileName.charAt(0) == '/') { fileName = fileName.substring(1); } if (File.separatorChar != '/') { fileName = fileName.replace('/', File.separatorChar); } File file = new File(dest, fileName); if (entry.isDirectory()) { // make sure the directory exists file.mkdirs(); jin.closeEntry(); } else { // make sure the directory exists File parent = file.getParentFile(); if (parent != null && !parent.exists()) { parent.mkdirs(); } // dump the file OutputStream out = new FileOutputStream(file); int len = 0; while ((len = jin.read(buffer, 0, buffer.length)) != -1) { out.write(buffer, 0, len); } out.flush(); out.close(); jin.closeEntry(); file.setLastModified(entry.getTime()); } entry = jin.getNextEntry(); } /* Explicity write out the META-INF/MANIFEST.MF so that any headers such as the Class-Path are see for the unpackaged jar */ Manifest manifest = jin.getManifest(); if (manifest != null) { File file = new File(dest, "META-INF/MANIFEST.MF"); File parent = file.getParentFile(); if( parent.exists() == false ) { parent.mkdirs(); } OutputStream out = new FileOutputStream(file); manifest.write(out); out.flush(); out.close(); } jin.close(); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public String convertStreamToString(Reader reader) throws IOException { if (reader != null) { Writer writer = new StringWriter(); char[] buffer = new char[1024]; try { int n; while ((n = reader.read(buffer)) != -1) { writer.write(buffer, 0, n); } } finally { reader.close(); } return writer.toString(); } else { return ""; } }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
protected final void writeComposite(Composite composite) throws IOException { String outputDirectoryPropertyValue = System.getProperty(OUTPUT_DIRECTORY_PROPERTY_NAME, OUTPUT_DIRECTORY_PROPERTY_DEFAULT_VALUE); File compositeOuputDirectory = new File(outputDirectoryPropertyValue + '/').getAbsoluteFile(); compositeOuputDirectory.mkdirs(); File compositeOuput = new File(compositeOuputDirectory, composite.getName() + ".composite"); FileOutputStream fsout = new FileOutputStream(compositeOuput); // Remove <include> elements as there were already included by component IncludeResolver. composite.getInclude().clear(); Map<Object, Object> options = new HashMap<Object, Object>(); options.put(XMLResource.OPTION_ROOT_OBJECTS, Collections.singletonList(composite)); ((XMLResource) composite.eResource()).save(fsout, options); log.warning("Write debug composite " + compositeOuput.getCanonicalPath()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
public static void main(String[] args) throws IOException { // mainComposite : the name of the main composite file // mainService: the name of the main service // mainMethod: the name of the method to call /* * different approaches in reading the jar's manifest are possible, but * they all have limitations when multiple jar files are in the * classpath and each of them provides a MANIFEST.MF file. This * technique seems to be the simplest solution that works. */ String jarFileName = System.getProperty("java.class.path").split( System.getProperty("path.separator"))[0]; JarFile jar = new JarFile(jarFileName); // create a Manifest obj Manifest mf = jar.getManifest(); if (mf == null) { throw new IllegalStateException("Cannot read " + jarFileName + ":!META-INF/MANIFEST.MF from " + jarFileName); } final Attributes mainAttributes = mf.getMainAttributes(); // get the mainComposite attribute value final String mainComposite = mainAttributes.getValue("mainComposite"); if (mainComposite == null) { throw new IllegalArgumentException( "Manifest file " + jarFileName + ":!META-IN/MANIFEST.MF does not provide attribute 'mainComposite'"); } // mainService and mainMethod are optional String mainService = mainAttributes.getValue("mainService"); String mainMethod = mainAttributes.getValue("mainMethod"); try { final Launcher launcher = new Launcher(mainComposite); if (mainService != null && mainMethod != null) { // TODO how to get the return type? @SuppressWarnings("unchecked") Object[] params = (Object[])args; launcher.call(mainService, mainMethod, null, params); } else { launcher.launch(); } } catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); } }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Check if this request is for this handler. if(target.startsWith(getName())) { // Remove the path from the path info of this request. String old_path_info = baseRequest.getPathInfo(); baseRequest.setPathInfo(old_path_info.substring(getName().length())); // Dispatch the request to the servlet. this.servlet.service(request, response); // Restore the previous path info. baseRequest.setPathInfo(old_path_info); // This request was handled. baseRequest.setHandled(true); } }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
Override public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; String pathInfo = httpRequest.getPathInfo(); if(pathInfo != null) { // Search a deployed servlet that could handle this request. for(Entry<String, Servlet> entry : servlets.entrySet()) { if(pathInfo.startsWith(entry.getKey())) { entry.getValue().service(new MyHttpServletRequestWrapper(httpRequest, pathInfo.substring(entry.getKey().length())), response); return; } } } // If no deployed servlet for this request then dispatch this request via Apache CXF. super.service(request, response); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // The requested resource. String pathInfo = request.getPathInfo(); if(pathInfo == null) { pathInfo = ""; } int idx = pathInfo.lastIndexOf('.'); String extension = (idx != -1) ? pathInfo.substring(idx) : ""; // Search the requested resource into the class loader. InputStream is = this.classloader.getResourceAsStream(this.location + pathInfo); if(is == null) { // Requested resource not found. super.doGet(request, response); return; } // Requested resource found. response.setStatus(HttpServletResponse.SC_OK); String mimeType = extensions2mimeTypes.getProperty(extension); if(mimeType == null) { mimeType = "text/plain"; } response.setContentType(mimeType); // Copy the resource stream to the servlet output stream. Stream.copy(is, response.getOutputStream()); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // The requested resource. String requestedResource = request.getPathInfo(); // System.out.println("Requested " + requestedResource); // If no requested resource then redirect to '/'. if (requestedResource == null || requestedResource.equals("")) { response.sendRedirect(request.getRequestURL().append('/') .toString()); return; } // If the requested resource is '/' then use the default resource. if (requestedResource.equals("/")) { requestedResource = '/' + this.defaultResource; } // Compute extension of the requested resource. int idx = requestedResource.lastIndexOf('.'); String extension = (idx != -1) ? requestedResource.substring(idx) : ".txt"; // Set response status to OK. response.setStatus(HttpServletResponse.SC_OK); // Set response content type. response.setContentType(extensions2mimeTypes.getProperty(extension)); // Is a templatable requested resource? if (templatables.contains(extension)) { // Get the requested resource as a Velocity template. Template template = null; try { template = this.velocityEngine.getTemplate(requestedResource .substring(1)); } catch (Exception exc) { exc.printStackTrace(System.err); // Requested resource not found. super.service(request, response); return; } // Create a Velocity context connected to the component's Velocity // context. VelocityContext context = new VelocityContext(this.velocityContext); // Put the HTTP request and response into the Velocity context. context.put("request", request); context.put("response", response); // inject HTTP parameters as Velocity variables. Enumeration<?> parameterNames = request.getParameterNames(); while (parameterNames.hasMoreElements()) { String parameterName = (String) parameterNames.nextElement(); context.put(parameterName, request.getParameter(parameterName)); } // TODO: should not be called but @Lifecycle does not work as // expected. registerScaProperties(); // Process the template. OutputStreamWriter osw = new OutputStreamWriter( response.getOutputStream()); template.merge(context, osw); osw.flush(); } else { // Search the requested resource into the class loader. InputStream is = this.classLoader.getResourceAsStream(this.location + requestedResource); if (is == null) { // Requested resource not found. super.service(request, response); return; } // Copy the requested resource to the HTTP response output stream. Stream.copy(is, response.getOutputStream()); is.close(); } }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/Stream.java
public static void copy(InputStream is, OutputStream os) throws IOException { byte[] buffer = new byte[BUFFER_SIZE]; int len; while ((len = is.read(buffer)) >= 0) { os.write(buffer, 0, len); } }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/JNAeratorCompiler.java
public final void compile(File file, File output) throws IOException { this.cfg.outputDir = output; if (!this.cfg.outputDir.exists()) { this.cfg.outputDir.mkdirs(); } this.cfg.addSourceFile(file, packageName(file), true); this.generator.jnaerate(this.feedback); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ParentApplicationContext.java
public final Resource[] getResources (final String locationPattern) throws IOException { log.finer("Spring parent context - getResources called"); return new Resource[0]; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static byte[] getBytesFromFile(File file) throws IOException { InputStream inputStream = new FileInputStream(file); try { // Get the size of the file long length = file.length(); if (length > Integer.MAX_VALUE) { throw new IOException("The file you are trying to read is too large, length :"+length+", length max : "+Integer.MAX_VALUE); } // Create the byte array to hold the data byte[] bytes = new byte[(int) length]; int offset = 0; int numRead = inputStream.read(bytes, offset, bytes.length - offset); while (offset < bytes.length && numRead >= 0) { offset += numRead; numRead = inputStream.read(bytes, offset, bytes.length - offset); } // Ensure all the bytes have been read in if (offset < bytes.length) { throw new IOException("Could not completely read file " + file.getName()); } return bytes; } finally { // Close the input stream and return bytes inputStream.close(); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static String getStringFromFile(File file) throws IOException { return Base64Utility.encode(getBytesFromFile(file)); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static File decodeFile(String encodedFile, String extension) throws Base64Exception, IOException { File destFile = null; BufferedOutputStream bos = null; byte[] content = Base64Utility.decode(encodedFile); String tempFileName = ""; if (extension != null && !"".equals(extension)) { tempFileName = "." + extension; } destFile = File.createTempFile("deploy", tempFileName); try { bos = new BufferedOutputStream(new FileOutputStream(destFile)); bos.write(content); bos.flush(); } finally { bos.close(); } return destFile; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static File unZipHere(File toUnzip) throws ZipException, IOException { String destFilePath = toUnzip.getAbsolutePath(); String destDirPath = destFilePath.substring(0, destFilePath.lastIndexOf('.')); File destDir = new File(destDirPath); boolean isDirMade=destDir.mkdirs(); if(isDirMade) { Log.info("build directory for file "+destDirPath); } ZipFile zfile = new ZipFile(toUnzip); Enumeration<? extends ZipEntry> entries = zfile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = entries.nextElement(); File file = new File(destDir, entry.getName()); if (entry.isDirectory()) { isDirMade=file.mkdirs(); if(isDirMade) { Log.info("build directory for zip entry "+entry.getName()); } } else { isDirMade=file.getParentFile().mkdirs(); if(isDirMade) { Log.info("build parent directory for zip entry "+entry.getName()); } InputStream inputStream; inputStream = zfile.getInputStream(entry); try { copy(inputStream, file); }finally { inputStream.close(); } } } return destDir; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static void copy(InputStream inputStream, OutputStream outputStream) throws IOException { byte[] buffer = new byte[1024]; while (true) { int readCount = inputStream.read(buffer); if (readCount < 0) { break; } outputStream.write(buffer, 0, readCount); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static void copy(File file, OutputStream out) throws IOException { InputStream inputStream = new FileInputStream(file); try { copy(inputStream, out); } finally { inputStream.close(); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static void copy(InputStream inputStream, File file) throws IOException { OutputStream out = new FileOutputStream(file); try { copy(inputStream, out); } finally { out.close(); } }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
public static void zip(File inFile, File outFile) throws IOException { final int buffer = 2048; FileOutputStream dest = new FileOutputStream(outFile); ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(dest)); try { byte data[] = new byte[buffer]; Collection<String> list = listFiles(inFile, ""); for (String file : list) { FileInputStream fis = new FileInputStream(new File(inFile, file)); BufferedInputStream origin = new BufferedInputStream(fis, buffer); ZipEntry entry = new ZipEntry(file); out.putNextEntry(entry); try { int count; while ((count = origin.read(data, 0, buffer)) != -1) { out.write(data, 0, count); } } finally { origin.close(); fis.close(); } } } catch (Exception e) { log.log(Level.SEVERE, "Problem while zipping file!", e); } finally { out.close(); dest.close(); } }
73
            
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (IOException e) { log.log(Level.INFO, "Exception thrown while trying to create Class " + className + " with URL " + classFileNameURL); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (IOException e) { return null; }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (IOException e) { }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (java.io.IOException ioe) { p = null; urlConnection = null; }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (IOException e) { // log.log(Level.INFO,e.getMessage()); return false; }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { return false; }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { jarFile = new JarFile(resource); } catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); } } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException ioe) { log.log(Level.WARNING,ioe.getMessage(),ioe); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { // Cope with potential exception thrown in Windows OS // because of the use of the '~' character to truncate paths if ("\\".equals(File.separator)) { File resource = new File(resourceURL.getFile()); try { String entryLong = new StringBuilder("file:/") .append(IOUtils.replace( resource.getCanonicalPath(), "\\", "/")) .append(entry.startsWith("/") ? "!" : "!/") .append(entry).toString(); url = new URL("jar", "", entryLong); // System.out.println("ENTRY["+entry+"] :" + url); InputStream is = url.openStream(); is.close(); } catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); } log.log(Level.CONFIG,e.getMessage(),e); } }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException ioe) { log.log(Level.CONFIG,ioe.getMessage(),ioe); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/BundleGraphicEcho.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (IOException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IOException e) { log.warning("Unable to cache embedded resource :" + embeddedResourceName); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.WARNING, "Error occured while trying to open : " + jarFileUrl); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/resource/loader/AbstractResourceClassLoader.java
catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { return false;
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { throw new IOException("Cannot read the contribution!"); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch (IOException e) { e.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in frascati-studio/src/main/java/org/easysoa/impl/ServiceManagerImpl.java
catch(IOException ioe){ ioe.printStackTrace(); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (IOException e) {throw new ScriptException(e);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (IOException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jaxb/JAXB.java
catch (IOException e) { // e.printStackTrace(); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/AbstractCompositeParser.java
catch(IOException ioe) { severe(new ParserException(qname, qname.toString(), ioe)); return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
catch (IOException ioe) { severe(new ParserException(qname, "Error when writting debug composite file", ioe)); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (IOException ioe) { ioe.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/ExplorerGUI.java
catch(IOException ioe) { // Must never happen!!! log.warning("FraSCAti Explorer - Impossible to get " + EXPLORER_STD_CFG_FILES_NAME + " resources!"); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch (IOException ioe) { severe(new ProcessorException(scriptImplementation, "Script '" + script + "' not found", ioe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch(IOException ioe) { warning(new ManagerException(url.toString(), ioe)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (IOException e) { severe(new ManagerException(e)); return new Component[0]; }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
catch(IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (IOException ioe) { throw new Error(ioe);
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (IOException e) { showError("Unable to open a connection on this URL (" + url + "): " + e.getMessage()); return null; }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
catch (IOException exc) { severe(new ProcessorException("Error when compiling descriptor", exc)); }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(IOException ioe) { severe(new FactoryException("Problem when creating a FraSCAti temp directory", ioe)); return; }
// in modules/frascati-component-factory-juliac/src/main/java/org/ow2/frascati/component/factory/juliac/impl/JuliacComponent.java
catch(IOException ioe) { severe(new FactoryException("Cannot add Java sources", ioe)); return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e1) { log.severe("Could not create contribution identifier"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e) { log.severe("Could not create contribution descriptor"); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/ContributionUtil.java
catch (IOException e) { log.log(Level.SEVERE, "Could not create contibution package " + packagename, e); }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (IOException e) { getLog().error("can't read pom file", e); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (IOException e) { throw new FrascatiException(e); }
13
            
// in frascati-studio/src/main/java/org/easysoa/utils/FileManagerImpl.java
catch (IOException e) { throw new IOException("It is not possible to copy one or more files ("+ sourceFile.getName() +"). Error: " + e.getMessage() ); }
// in frascati-studio/src/main/java/org/easysoa/deploy/DeployProcessor.java
catch (IOException e) { throw new IOException("Cannot read the contribution!"); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (IOException e) {throw new ScriptException(e);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (IOException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(IOException ioe) { throw new Error("Should not happen on the XML message " + xmlMessage, ioe); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
catch(IOException ioe) { throw new Error(ioe);
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
catch (IOException ioe) { throw new Error(ioe);
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (IOException e) { throw new FrascatiException(e); }
4
unknown (Lib) IllegalAccessException 0 0 0 19
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalAccessException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalAccessException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalAccessException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.severe("Unable to instantiate the Plugin class :"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.INFO, resourceFilterProp + " illegal access exception"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (IllegalAccessException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (IllegalAccessException e) { e.printStackTrace(); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (IllegalAccessException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (IllegalAccessException iae) { severe(new ProcessorException(fractalImplementation, "Can't access class " + definition, iae)); return; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalAccessException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
3
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalAccessException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
2
runtime (Lib) IllegalArgumentException 12
            
// in nuxeo/frascati-metamodel-nuxeo/src/main/java/org/ow2/frascati/nuxeo/impl/NuxeoFactoryImpl.java
public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case NuxeoPackage.DOCUMENT_ROOT: return createDocumentRoot(); case NuxeoPackage.NUXEO_BINDING: return createNuxeoBinding(); case NuxeoPackage.NUXEO_IMPLEMENTATION: return createNuxeoImplementation(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } }
// in frascati-studio/src/main/java/org/easysoa/model/Civility.java
public static Civility fromValue(String value) { if("Mr".equals(value)){ return Civility.MR; } if("Mrs".equals(value)){ return Civility.MRS; } if("Miss".equals(value)){ return Civility.MISS; } throw new IllegalArgumentException(value); }
// in frascati-studio/src/main/java/org/easysoa/model/SocialNetwork.java
public static SocialNetwork fromValue(String v) { v = v.toLowerCase(); if(v.equals("twitter")){ return SocialNetwork.TWITTER; } else if(v.equals("facebook")){ return SocialNetwork.FACEBOOK; } else if(v.equals("google")){ return SocialNetwork.GOOGLE; } throw new IllegalArgumentException(v); }
// in frascati-studio/src/main/java/org/easysoa/model/Role.java
public static Role fromValue(String value) { if("Admin".equals(value)){ return Role.ADMIN; } if("User".equals(value)){ return Role.USER; } throw new IllegalArgumentException(value); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/wsdl/AbstractWsdlInvocationHandler.java
protected final String marshallInvocation(Method method, Object[] args) throws Exception { // TODO: Support for zero and several arguments must be added. if(args.length != 1) { throw new IllegalArgumentException("Only methods with one argument are supported, given method is " + method + " and argument length is " + args.length); } // Compute the qname of the first parameter. QName qname = getQNameOfFirstArgument(method); // Marshall the first argument into as an XML message. return JAXB.marshall(qname, args[0]); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
public static void main(String[] args) throws IOException { // mainComposite : the name of the main composite file // mainService: the name of the main service // mainMethod: the name of the method to call /* * different approaches in reading the jar's manifest are possible, but * they all have limitations when multiple jar files are in the * classpath and each of them provides a MANIFEST.MF file. This * technique seems to be the simplest solution that works. */ String jarFileName = System.getProperty("java.class.path").split( System.getProperty("path.separator"))[0]; JarFile jar = new JarFile(jarFileName); // create a Manifest obj Manifest mf = jar.getManifest(); if (mf == null) { throw new IllegalStateException("Cannot read " + jarFileName + ":!META-INF/MANIFEST.MF from " + jarFileName); } final Attributes mainAttributes = mf.getMainAttributes(); // get the mainComposite attribute value final String mainComposite = mainAttributes.getValue("mainComposite"); if (mainComposite == null) { throw new IllegalArgumentException( "Manifest file " + jarFileName + ":!META-IN/MANIFEST.MF does not provide attribute 'mainComposite'"); } // mainService and mainMethod are optional String mainService = mainAttributes.getValue("mainService"); String mainMethod = mainAttributes.getValue("mainMethod"); try { final Launcher launcher = new Launcher(mainComposite); if (mainService != null && mainMethod != null) { // TODO how to get the return type? @SuppressWarnings("unchecked") Object[] params = (Object[])args; launcher.call(mainService, mainMethod, null, params); } else { launcher.launch(); } } catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); } }
// in modules/frascati-metamodel-frascati-ext/src/org/ow2/frascati/model/impl/ModelFactoryImpl.java
Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { case ModelPackage.DOCUMENT_ROOT: return createDocumentRoot(); case ModelPackage.OSGI_IMPLEMENTATION: return createOsgiImplementation(); case ModelPackage.SCRIPT_IMPLEMENTATION: return createScriptImplementation(); case ModelPackage.REST_BINDING: return createRestBinding(); case ModelPackage.RMI_BINDING: return createRMIBinding(); case ModelPackage.JSON_RPC_BINDING: return createJsonRpcBinding(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyNode.java
public final Object getProperty(String name) { if ("name".equals(name)) { return getName(); // } else if ("type".equals(name)) { // return getType(); } else if ("value".equals(name)) { return getValue(); } else { throw new IllegalArgumentException("Invalid property name '" + name + "'."); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
public Set<Node> selectFrom(Node source) { Component comp = null; if (source instanceof ComponentNode) { comp = ((ComponentNode) source).getComponent(); } else if (source instanceof InterfaceNode) { comp = ((InterfaceNode) source).getInterface().getFcItfOwner(); } else { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } SCAPropertyController ctl = null; Set<Node> result = new HashSet<Node>(); try { ctl = (SCAPropertyController) comp.getFcInterface(SCAPropertyController.NAME); for (String name : ctl.getPropertyNames() ) { Node node = new ScaPropertyNode((FraSCAtiModel) model, comp, ctl, name); result.add(node); } } catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); } return result; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
public Set<Node> selectFrom(Node source) { Component comp = null; Interface itf = null; SCABasicIntentController ic = null; try { comp = ((ComponentNode) source).getComponent(); } catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } } Set<Node> result = new HashSet<Node>(); try { ic = (SCABasicIntentController) comp.getFcInterface(SCABasicIntentController.NAME); } catch (NoSuchInterfaceException e) { // No intent controller => no intents on this component return Collections.emptySet(); } try { if (itf == null) { for (Object anItf : comp.getFcInterfaces() ) { result.addAll( getIntentNodes(ic, (Interface) anItf) ); } } else { result.addAll( getIntentNodes(ic, (Interface) itf) ); } } catch (NoSuchInterfaceException e) { log.warning("One interface cannot be retrieved on " + comp + "!"); e.printStackTrace(); } return result; }
2
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e1) { try { itf = ((InterfaceNode) source).getInterface(); comp = itf.getFcItfOwner(); } catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (ClassCastException e2) { throw new IllegalArgumentException("Invalid source node kind " + source.getKind()); }
3
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void set(Object value) throws IllegalArgumentException { try { writer.invoke(target, new Object[] { value }); } catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); } catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); } }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void setValue(String name, Object value) throws IllegalArgumentException { log.finest("setValue(\"" + name + "\", " + value + ") called"); }
15
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionHelper.java
catch (IllegalArgumentException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (IllegalArgumentException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (IllegalArgumentException e) { e.printStackTrace(); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (IllegalArgumentException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch(IllegalArgumentException e) { cf = TcpConnectionFactory.create("localhost", TCP_CONNECTION_FACTORY_PORT); }
0 0
unknown (Lib) IllegalBindingException 0 0 2
            
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { if (BINDINGS[0].equals(clientItfName)) this.servant = serverItf; if (BINDINGS[1].equals(clientItfName)) this.messageListener = (MessageListener) serverItf; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = (MembershipListener) serverItf; if ("component".equals(clientItfName)) this.comp = (Component) serverItf; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void unbindFc(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException{ if (BINDINGS[0].equals(clientItfName)) this.servant = null; if (BINDINGS[1].equals(clientItfName)) this.messageListener = null; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = null; if ("component".equals(clientItfName)) this.comp = null; }
2
            
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalBindingException e) { throw new TinfiRuntimeException(e); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalBindingException ibe) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ibe); severe(exc); }
1
            
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalBindingException e) { throw new TinfiRuntimeException(e); }
0
unknown (Lib) IllegalContentException 2
            
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void addFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("addFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void removeFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("removeFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
0 2
            
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void addFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("addFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void removeFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("removeFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
3
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (IllegalContentException ice) { String msg = "Illegal content exception!"; LOG.log(Level.SEVERE, msg, ice); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ice); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalContentException ice) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ice); severe(exc); }
0 0
unknown (Lib) IllegalLifeCycleException 1
            
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void startFc() throws IllegalLifeCycleException { try { this.channel = new JChannel(this.properties); this.dispatcher = new RpcDispatcher(this.channel, this.messageListener, this.membershipListener, this.servant); if (this.identifier != null && !this.identifier.isEmpty()) this.channel.setName(this.identifier); this.channel.connect(this.cluster); this.identifier = this.channel.getName(); } catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); } }
1
            
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); }
14
            
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
public final void startFc() throws IllegalLifeCycleException { log.finer("ScriptEngineComponent starting..."); // When this component is started then it obtains all the properties of its enclosing SCA component // and put them as variables in the scripting engine. String [] properties = scaPropertyController.getPropertyNames(); for (String property : properties) { Object value = scaPropertyController.getValue(property); log.info("Affect the scripting variable '" + property + "' with the value '" + value + "'"); scriptEngine.put(property, value); } this.fcState = LifeCycleController.STARTED; log.finer("ScriptEngineComponent started."); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
public final void stopFc() throws IllegalLifeCycleException { this.fcState = LifeCycleController.STOPPED; log.finer("ScriptEngineComponent stopped."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
Override protected final void addIntentHandler(EObjectType baseReference, SCABasicIntentController intentController, IntentHandler intentHandler) throws NoSuchInterfaceException, IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler, baseReference.getName()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
Override protected final void addIntentHandler(EObjectType baseService, SCABasicIntentController intentController, IntentHandler intentHandler) throws NoSuchInterfaceException, IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler, baseService.getName()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
Override protected final void addIntentHandler(ElementType element, SCABasicIntentController intentController, IntentHandler intentHandler) throws IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { if (BINDINGS[0].equals(clientItfName)) this.servant = serverItf; if (BINDINGS[1].equals(clientItfName)) this.messageListener = (MessageListener) serverItf; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = (MembershipListener) serverItf; if ("component".equals(clientItfName)) this.comp = (Component) serverItf; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void unbindFc(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException{ if (BINDINGS[0].equals(clientItfName)) this.servant = null; if (BINDINGS[1].equals(clientItfName)) this.messageListener = null; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = null; if ("component".equals(clientItfName)) this.comp = null; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void startFc() throws IllegalLifeCycleException { try { this.channel = new JChannel(this.properties); this.dispatcher = new RpcDispatcher(this.channel, this.messageListener, this.membershipListener, this.servant); if (this.identifier != null && !this.identifier.isEmpty()) this.channel.setName(this.identifier); this.channel.connect(this.cluster); this.identifier = this.channel.getName(); } catch (ChannelException e) { throw new IllegalLifeCycleException(e.getMessage()); } }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void stopFc() throws IllegalLifeCycleException { this.channel.close(); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/AbstractCommand.java
protected final void ensureComponentIsStarted(Component comp) throws IllegalLifeCycleException { try { LifeCycleController lcc = Fractal.getLifeCycleController(comp); if (!"STARTED".equals(lcc.getFcState())) { showMessage("Starting the component."); lcc.startFc(); } else { showMessage("Component already started."); } } catch (NoSuchInterfaceException e) { showWarning("The component does not have a 'lifecycle-controller'."); showWarning("Assuming it is ready to use."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public ObjectName register(MBeanServer mbs) throws NoSuchInterfaceException, IllegalLifeCycleException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "registering component " + moduleName + " in MBeanServer"); } try { for (Component child : getContentController(component) .getFcSubComponents()) { new JmxComponent(child, prefix).register(mbs); } } catch (NoSuchInterfaceException e) { // current component is not container } mbs.registerMBean(this, moduleName); return moduleName; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
Override public void startFc() throws IllegalLifeCycleException { try { jmsModule = new JmsModule(this); jmsModule.start(); producer = jmsModule.getSession().createProducer(jmsModule.getDestination()); } catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); } super.startFc(); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void addFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("addFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void removeFcSubComponent(Component subComponent) throws IllegalContentException, IllegalLifeCycleException { log.finest("removeFcSubComponent() called"); throw new IllegalContentException("Not supported"); }
24
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (IllegalLifeCycleException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not add intent handler", ilce)); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not remove intent handler", ilce)); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (IllegalLifeCycleException ex) { logger.log(Level.WARNING, "LifeCycle Exception while trying to restart this AttributeController owner", ex); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (IllegalLifeCycleException ilce) { JOptionPane.showMessageDialog(null, "Illegal life cycle Exception!"); LOG.log(Level.SEVERE, "Illegal life cycle Exception!", ilce); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (IllegalLifeCycleException ilce) { String msg = "Cannot remove a component if its container is started!"; LOG.log(Level.SEVERE, msg, ilce); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (IllegalLifeCycleException e) { LOG.severe("Cannot stop the component!"); e.printStackTrace(); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (IllegalLifeCycleException e) { LOG.severe("Cannot start the component!"); e.printStackTrace(); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalLifeCycleException e) { throw new TinfiRuntimeException(e); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not add a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException ilce) { ExceptionType exc = newException("Can not remove a Fractal sub component"); exc.initCause(ilce); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not start a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(IllegalLifeCycleException nsie) { ExceptionType exc = newException("Can not stop a Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (IllegalLifeCycleException ilce) { log.log(Level.SEVERE, "Illegal life cycle Exception!", ilce); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (IllegalLifeCycleException ilce) { logger.log(Level.SEVERE, "Cannot stop the component!", ilce); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (IllegalLifeCycleException ilce) { logger.log(Level.SEVERE,"Cannot start the component!", ilce); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
catch (IllegalLifeCycleException e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "error while creating MBean for " + comp, e); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); }
5
            
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalLifeCycleException e) { throw new TinfiRuntimeException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); }
0
unknown (Lib) IllegalPromoterException 0 0 2
            
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void setPromoter(String name, SCAPropertyController promoter) throws IllegalPromoterException { log.finest("setPromoter(\"" + name + "\") called"); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public void setPromoter( String name, SCAPropertyController promoter, String promoterPropertyName) throws IllegalPromoterException { log.finest("setPromoter(\"" + name + "\", \"" + promoterPropertyName + "\") called"); }
1
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch (IllegalPromoterException ipe) { severe(new ProcessorException(property, "Property '" + property.getName() + "' cannot be promoted by the enclosing composite", ipe)); return; }
0 0
runtime (Lib) IllegalStateException 10
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/ManifestLauncher.java
public static void main(String[] args) throws IOException { // mainComposite : the name of the main composite file // mainService: the name of the main service // mainMethod: the name of the method to call /* * different approaches in reading the jar's manifest are possible, but * they all have limitations when multiple jar files are in the * classpath and each of them provides a MANIFEST.MF file. This * technique seems to be the simplest solution that works. */ String jarFileName = System.getProperty("java.class.path").split( System.getProperty("path.separator"))[0]; JarFile jar = new JarFile(jarFileName); // create a Manifest obj Manifest mf = jar.getManifest(); if (mf == null) { throw new IllegalStateException("Cannot read " + jarFileName + ":!META-INF/MANIFEST.MF from " + jarFileName); } final Attributes mainAttributes = mf.getMainAttributes(); // get the mainComposite attribute value final String mainComposite = mainAttributes.getValue("mainComposite"); if (mainComposite == null) { throw new IllegalArgumentException( "Manifest file " + jarFileName + ":!META-IN/MANIFEST.MF does not provide attribute 'mainComposite'"); } // mainService and mainMethod are optional String mainService = mainAttributes.getValue("mainService"); String mainMethod = mainAttributes.getValue("mainMethod"); try { final Launcher launcher = new Launcher(mainComposite); if (mainService != null && mainMethod != null) { // TODO how to get the return type? @SuppressWarnings("unchecked") Object[] params = (Object[])args; launcher.call(mainService, mainMethod, null, params); } else { launcher.launch(); } } catch (FrascatiException e) { Logger.getAnonymousLogger().severe("Cannot instantiate the FraSCAti factory!"); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
public static void start() { if (started) { System.out.println("JORAM server has already been started."); return; } System.out.println("Starting JORAM..."); try { AgentServer.init(new String[] { "0", "target/s0" }); AgentServer.start(); AdminModule.connect("root", "root", 60); Queue queue = Queue.create("queue"); Topic topic = Topic.create("topic"); User.create("anonymous", "anonymous"); queue.setFreeReading(); topic.setFreeReading(); queue.setFreeWriting(); topic.setFreeWriting(); ConnectionFactory cf = TcpConnectionFactory.create("localhost", TCP_CONNECTION_FACTORY_PORT); Context jndiCtx = new InitialContext(); jndiCtx.bind("cf", cf); jndiCtx.bind("queue", queue); jndiCtx.bind("topic", topic); jndiCtx.close(); AdminModule.disconnect(); started = true; } catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
public static void start(String CorrelationScheme) { if (started) { System.out.println("JORAM server has already been started."); return; } System.out.println("Starting JORAM..."); try { AgentServer.init(new String[] { "0", "target/s0" }); AgentServer.start(); AdminModule.connect("root", "root", 60); Queue queue = Queue.create("queue"); Topic topic = Topic.create("topic"); User.create("anonymous", "anonymous"); queue.setFreeReading(); topic.setFreeReading(); queue.setFreeWriting(); topic.setFreeWriting(); // Innitaliase the connectionfactory ConnectionFactory cf = null; try { URI uri=URI.create(CorrelationScheme); cf = TcpConnectionFactory.create(uri.getHost(), TCP_CONNECTION_FACTORY_PORT); } catch(IllegalArgumentException e) { cf = TcpConnectionFactory.create("localhost", TCP_CONNECTION_FACTORY_PORT); } Context jndiCtx = new InitialContext(); jndiCtx.bind("cf", cf); jndiCtx.bind("queue", queue); jndiCtx.bind("topic", topic); jndiCtx.close(); AdminModule.disconnect(); started = true; } catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
public void start() throws JMSException, NamingException { log.info("******************************"); log.info("correlationScheme: " + jmsAttributes.getCorrelationScheme()); log.info("JndiURL: " + jmsAttributes.getJndiURL()); log.info("ConnFactName: " + jmsAttributes.getJndiConnectionFactoryName()); log.info("InitialContextFactory: " + jmsAttributes.getJndiInitialContextFactory()); log.info("DestinationName: " + jmsAttributes.getJndiDestinationName()); log.info("CreateDestinationMode: " + jmsAttributes.getCreateDestinationMode()); log.info("DestinationType: " + jmsAttributes.getDestinationType()); log.info("priority: " + jmsAttributes.getPriority()); log.info("ttl: " + jmsAttributes.getTimeToLive()); log.info("selector: " + jmsAttributes.getSelector()); log.info("persistent: " + jmsAttributes.getPersistent()); log.info("******************************"); // Retrieve initial context. Hashtable environment = new Hashtable(); if (!jmsAttributes.getJndiInitialContextFactory().equals(JmsConnectorConstants.NO_JNDI_INITCONTEXTFACT)) { environment.put(Context.INITIAL_CONTEXT_FACTORY, jmsAttributes.getJndiInitialContextFactory()); } if (!jmsAttributes.getJndiURL().equals(JmsConnectorConstants.NO_JNDI_URL)) { environment.put(Context.PROVIDER_URL, jmsAttributes.getJndiURL()); } Context ictx = new InitialContext(environment); // Lookup for elements in the JNDI. ConnectionFactory cf; try { cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } } try { destination = (Destination) ictx.lookup(jmsAttributes.getJndiDestinationName()); } catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } } // Create the connection jmsCnx = cf.createConnection(); session = jmsCnx.createSession(false, Session.AUTO_ACKNOWLEDGE); responseSession = jmsCnx.createSession(false, Session.AUTO_ACKNOWLEDGE); jmsCnx.start(); if (destination == null) { // Create destination if it doesn't exist in JNDI if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_QUEUE)) { destination = session.createQueue(jmsAttributes.getJndiDestinationName()); ictx.bind(jmsAttributes.getJndiDestinationName(), destination); } else if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_TOPIC)) { destination = session.createTopic(jmsAttributes.getJndiDestinationName()); ictx.bind(jmsAttributes.getJndiDestinationName(), destination); } else { throw new IllegalStateException("Unknown destination type: " + jmsAttributes.getDestinationType()); } } else { // Check that the object found in JNDI is correct if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_ALWAYS)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " already exists in JNDI."); } if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_QUEUE) && !(destination instanceof javax.jms.Queue)) { throw new IllegalStateException("Object found in JNDI " + jmsAttributes.getJndiDestinationName() + " does not match declared type 'queue'."); } if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_TOPIC) && !(destination instanceof javax.jms.Topic)) { throw new IllegalStateException("Object found in JNDI " + jmsAttributes.getJndiDestinationName() + " does not match declared type 'topic'."); } } try { responseDestination = (Destination) ictx.lookup(jmsAttributes.getJndiResponseDestinationName()); } catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); } ictx.close(); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
Override public final void startFc() { delegate = WsdlDelegateFactory.newWsdlDelegate(getServant(), getServiceClass(), getClass().getClassLoader()); try { jmsModule = new JmsModule(this); jmsModule.start(); // start listening to incoming messages MessageConsumer consumer = jmsModule.getSession().createConsumer(jmsModule.getDestination(), getSelector()); consumer.setMessageListener(this); } catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); } super.startFc(); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
Override public void startFc() throws IllegalLifeCycleException { try { jmsModule = new JmsModule(this); jmsModule.start(); producer = jmsModule.getSession().createProducer(jmsModule.getDestination()); } catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); } super.startFc(); }
5
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JoramServer.java
catch (Exception e) { e.printStackTrace(); throw new IllegalStateException( "JORAM server could not be started properly: " + e.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS skeleton -> " + exc.getMessage(), exc); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (Exception exc) { throw new IllegalStateException("Error starting JMS Stub -> " + exc.getMessage(), exc); }
0 0 0 0
unknown (Lib) IndexOutOfBoundsException 0 0 0 2
            
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/PromoteResolver.java
catch(IndexOutOfBoundsException e) { parsingContext.error(messageError(service, "has no service to promote")); continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/PromoteResolver.java
catch(IndexOutOfBoundsException e) { parsingContext.error(messageError(reference, "has no reference to promote")); continue; // the for loop. }
0 0
unknown (Lib) InstanceNotFoundException 0 0 2
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
Destroy public void destroy() throws MBeanRegistrationException, InstanceNotFoundException, MalformedObjectNameException, NullPointerException { clean(); mbs.unregisterMBean(new ObjectName(PACKAGE + ":name=FrascatiJmx")); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
public void clean() throws MBeanRegistrationException, InstanceNotFoundException, MalformedObjectNameException { ObjectName name = new ObjectName(DOMAIN + ":name0=*,*"); Set<ObjectName> names = mbs.queryNames(name, name); for (ObjectName objectName : names) { mbs.unregisterMBean(objectName); } }
1
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (InstanceNotFoundException e) { log.log(Level.WARNING,e.getMessage(),e); }
0 0
unknown (Lib) InstantiationException 1 0 6
            
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
Override public final Component newFcInstance () throws InstantiationException { return newFcInstance(new HashMap<String, Object>()); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
Override public final Component newFcInstance () throws InstantiationException { return newFcInstance(new HashMap<String, Object>()); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
Override public final Component newFcInstance () throws InstantiationException { return newFcInstance(new HashMap<String, Object>()); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
protected final Component newFcInstance (final Map<String, Object> context) throws InstantiationException { Component bootstrapComponent = null; // The field 'bootstrapComponent' of class Julia is private // so we use Java reflection to get and set it. Field fieldJuliaBootstrapComponent = null; try { fieldJuliaBootstrapComponent = Julia.class.getDeclaredField("bootstrapComponent"); fieldJuliaBootstrapComponent.setAccessible(true); // bootstrapComponent = (Component)fieldJuliaBootstrapComponent.get(null); } catch(Exception e) { InstantiationException instantiationException = new InstantiationException(""); instantiationException.initCause(e); throw instantiationException; } // if (bootstrapComponent == null) { String boot = (String)context.get("julia.loader"); if (boot == null) { boot = System.getProperty("julia.loader"); } if (boot == null) { boot = DEFAULT_LOADER; } // creates the pre bootstrap controller components Loader loader; try { loader = (Loader)Thread.currentThread().getContextClassLoader().loadClass(boot).newInstance(); loader.init(context); } catch (Exception e) { // chain the exception thrown InstantiationException instantiationException = new InstantiationException( "Cannot find or instantiate the '" + boot + "' class specified in the julia.loader [system] property"); instantiationException.initCause(e); throw instantiationException; } BasicTypeFactoryMixin typeFactory = new BasicTypeFactoryMixin(); BasicGenericFactoryMixin genericFactory = new BasicGenericFactoryMixin(); genericFactory._this_weaveableL = loader; genericFactory._this_weaveableTF = typeFactory; // use the pre bootstrap component to create the real bootstrap component ComponentType t = typeFactory.createFcType(new InterfaceType[0]); try { bootstrapComponent = genericFactory.newFcInstance(t, "bootstrap", null); try { ((Loader)bootstrapComponent.getFcInterface("loader")).init(context); } catch (NoSuchInterfaceException ignored) { } } catch (Exception e) { throw new ChainedInstantiationException( e, null, "Cannot create the bootstrap component"); } try { fieldJuliaBootstrapComponent.set(null, bootstrapComponent); } catch(Exception e) { throw new Error(e); } // } return bootstrapComponent; }
14
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InstantiationException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.severe("Unable to instantiate the Plugin class :"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.INFO, resourceFilterProp + " cannot be instantiated"); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (InstantiationException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/osgi-in-frascati/deployer/src/main/java/org/ow2/frascati/osgi/deployer/Deployer.java
catch (InstantiationException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Cannot " + msg, ie)); return;
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal interface type", ie)); return null; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { severe(new FactoryException("Error while creating a Fractal component type", ie)); return null; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building instance for class " + definition, ie)); return; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
catch (org.objectweb.fractal.api.factory.InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building component instance: " + definition, ie)); return; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
catch(InstantiationException ie) { throw new Error(ie); }
2
            
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch (InstantiationException ie) { throw new FactoryException("Error when " + logMessage, ie); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
catch(InstantiationException ie) { throw new Error(ie); }
1
unknown (Lib) InterruptedException 0 0 12
            
// in osgi/frascati-in-osgi/osgi/concierge_r3/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer=null; //Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port","8888"); main.run((args==null || args.length==0 || (clientOrServer=args[0])==null)?"":clientOrServer); }
// in osgi/frascati-in-osgi/osgi/equinox/src/main/java/org/ow2/frascati/osgi/frameworks/equinox/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54460"); System.out.println("try to run"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/knopflerfish/src/main/java/org/ow2/frascati/osgi/frameworks/knopflerfish/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54463"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
protected void installBundles(BundleContext context, String[] locations) throws InterruptedException, BundleException { if (context == null) { log.log(Level.SEVERE, "BundleContext is null ; " + "No bundle can be installed"); return; } String[] bundles = locations; int n = 0; for (; n < bundles.length; n++) { try { String jarName = bundles[n]; String jarPath = new StringBuilder("file:").append(resources) .append(File.separator).append(jarName).toString(); if (installed.add(context.installBundle(jarPath))) { log.log(Level.FINE, installed.get(installed.size() - 1) .getSymbolicName() + " installed"); } else { log.log(Level.WARNING, "Error occured while installing " + jarPath); } } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
protected void launchBundles(BundleContext context, String[] locations) throws InterruptedException, BundleException { if (context == null) { log.log(Level.SEVERE, "BundleContext is null ; No bundle can be installed"); return; } String[] bundles = locations; int n = 0; for (; n < bundles.length; n++) { int size = installed.size(); try { String jarName = bundles[n]; installBundles(context, new String[] { jarName }); if (installed.size() > size) { installed.get(installed.size() - 1).start(); log.log(Level.FINE, installed.get(installed.size() - 1) .getSymbolicName() + " started"); Thread.sleep(2000); } } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } }
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
public void launch(String example) throws InterruptedException, BundleException { init(); try { URL installedBundlesPropsURL = new File( new StringBuilder(resources).append(File.separator).append( "install_bundles.xml").toString()).toURI().toURL(); Properties install_bundles = new Properties(); install_bundles.loadFromXML(installedBundlesPropsURL.openStream()); String[] props = install_bundles.keySet().toArray(new String[0]); int n = 0; while (n < props.length) { String bundleNum = props[n++]; String[] jarData = install_bundles.getProperty(bundleNum) .split(":"); String toInstall = jarData[1]; String jarName = jarData[0]; if ("true".equals(toInstall)) { try { System.out.println(jarName); getSystemBundleContext().installBundle( new StringBuilder("file:").append(resources) .append(File.separator).append(jarName) .toString()); } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } } URL launchedBundlesPropsURL = new File(new StringBuilder(resources) .append(File.separator).append("launch_bundles.xml") .toString()).toURI().toURL(); Properties launch_bundles = new Properties(); launch_bundles.loadFromXML(launchedBundlesPropsURL.openStream()); props = launch_bundles.keySet().toArray(new String[0]); n = 0; while (n < props.length) { String bundleNum = props[n++]; String[] jarData = launch_bundles.getProperty(bundleNum).split( ":"); String toInstall = jarData[1]; String jarName = jarData[0]; if ("true".equals(toInstall)) { System.out.println(jarName); try { getSystemBundleContext().installBundle( new StringBuilder("file:").append(resources) .append(File.separator).append(jarName) .toString()).start(); } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } } } catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); } catch (IOException e) { log.log(Level.WARNING,e.getMessage(),e); } }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
Override protected void installBundles(BundleContext context, String[] locations) throws InterruptedException, BundleException { if (context == null) { log.info("BundleContext is null"); return; } String[] bundles = locations; int n = 0; for (; n < bundles.length; n++) { try { String jarName = bundles[n]; String jarPath = new StringBuilder(resources).append( File.separator).append(jarName).toString(); if (installed.add(context.installBundle(jarPath))) { log.info(installed.get(installed.size() - 1) .getSymbolicName() + " installed"); } else { log.info("Error occured while installing " + jarPath); } } catch (Exception e) { log.log(Level.SEVERE,e.getMessage(),e); } } }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { int a = 1; if (args != null && args.length >= 1) { for (; a < args.length; a++) { String arg = args[a]; String[] argEls = arg.split("="); if (argEls.length == 2) { System.setProperty(argEls[0], argEls[1]); } } } Main main = new Main(); String clientOrServer = null; main.launch(((clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
Override // The method is overwritten for the Windows OS - "file:" prefix causes an exception public void launch(String example) throws InterruptedException, BundleException { init(); try { URL installedBundlesPropsURL = new File( new StringBuilder(resources).append(File.separator).append( "install_bundles.xml").toString()).toURI().toURL(); Properties install_bundles = new Properties(); install_bundles.loadFromXML(installedBundlesPropsURL.openStream()); String[] props = install_bundles.keySet().toArray(new String[0]); int n = 0; while (n < props.length) { String bundleNum = props[n++]; String[] jarData = install_bundles.getProperty(bundleNum) .split(":"); String toInstall = jarData[1]; String jarName = jarData[0]; if ("true".equals(toInstall)) { try { // System.out.println(jarName); getSystemBundleContext().installBundle( new StringBuilder(resources).append( File.separator).append(jarName) .toString()); } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } } URL launchedBundlesPropsURL = new File(new StringBuilder(resources) .append(File.separator).append("launch_bundles.xml") .toString()).toURI().toURL(); Properties launch_bundles = new Properties(); launch_bundles.loadFromXML(launchedBundlesPropsURL.openStream()); props = launch_bundles.keySet().toArray(new String[0]); n = 0; while (n < props.length) { String bundleNum = props[n++]; String[] jarData = launch_bundles.getProperty(bundleNum).split( ":"); String toInstall = jarData[1]; String jarName = jarData[0]; if ("true".equals(toInstall)) { System.out.println(jarName); try { getSystemBundleContext().installBundle( new StringBuilder(resources).append( File.separator).append(jarName) .toString()).start(); } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } } } } catch (InvalidPropertiesFormatException e) { log.log(Level.SEVERE,e.getMessage(),e); } catch (IOException e) { log.log(Level.SEVERE,e.getMessage(),e); } }
// in osgi/frascati-in-osgi/osgi/felix/src/main/java/org/ow2/frascati/osgi/frameworks/felix/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer = null; // Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port", "54461"); main.launch((args == null || args.length == 0 || (clientOrServer = args[0]) == null) ? "" : clientOrServer); }
// in osgi/frascati-in-osgi/osgi/concierge_r4/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
public static void main(String[] args) throws InterruptedException, BundleException, IOException { Main main = new Main(); String clientOrServer=null; //Install bundles needed to use the felix web console System.setProperty("org.osgi.service.http.port","8888"); main.run((args==null || args.length==0 || (clientOrServer=args[0])==null)?"":clientOrServer); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelContextImpl.java
protected final synchronized BPELInternalMessage waitReply() throws InterruptedException { while(this.reply == null) { this.wait(); } return this.reply; }
4
            
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (InterruptedException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectPanel.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/IntrospectThread.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); break; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (InterruptedException e) { log.log(Level.WARNING,e.getMessage(),e); }
0 0
unknown (Lib) InvalidPropertiesFormatException 0 0 0 3
            
// in osgi/frascati-in-osgi/osgi/framework/src/main/java/org/ow2/frascati/osgi/frameworks/Main.java
catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (InvalidPropertiesFormatException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/introspection/src/main/java/org/ow2/frascati/osgi/introspect/explorer/ResourceHelper.java
catch (InvalidPropertiesFormatException e) { log.log(Level.WARNING,e.getMessage(),e); }
0 0
unknown (Lib) InvalidSyntaxException 0 0 0 4
            
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (InvalidSyntaxException e) { log.info("filter " + filter + " is not valid"); filter = null; }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiStubContent.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/examples/from-frascati-to-osgi/client/src/main/java/org/ow2/frascati/osgi/ffto/client/binding/Activator.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (InvalidSyntaxException e) { log.log(Level.WARNING,e.getMessage(), e); }
0 0
unknown (Lib) InvocationTargetException 0 0 0 7
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (InvocationTargetException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InvocationTargetException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (InvocationTargetException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (InvocationTargetException e) { warning(new FrascatiException(e)); return null; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (InvocationTargetException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); }
3
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (InvocationTargetException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); }
2
unknown (Lib) JAXBException 0 0 3
            
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jaxb/JAXB.java
private static JAXBContext getJAXBContext(String javaPackageName) throws JAXBException { JAXBContext jc = jaxbContexts.get(javaPackageName); if(jc == null) { jc = JAXBContext.newInstance(javaPackageName); jaxbContexts.put(javaPackageName, jc); } return jc; }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jaxb/JAXB.java
public static String marshall(QName qname, Object object) throws JAXBException { Object value = object; if(value instanceof Holder) { value = ((Holder)value).value; } if(isPrimitiveTypeObject(value)) { return marshallPrimitiveTypeObject(qname, value); } else { String javaPackageName = getJavaPackageName(qname.getNamespaceURI()); Marshaller marshaller = jaxbMarshallers.get(javaPackageName); if(marshaller == null) { JAXBContext jc = getJAXBContext(javaPackageName); marshaller = jc.createMarshaller(); jaxbMarshallers.put(javaPackageName, marshaller); } StringWriter sw = new StringWriter(); // JAXB marshaller is not thread-safe. synchronized(marshaller) { if(value.getClass().getAnnotation(XmlRootElement.class) != null) { // Marshall the value which is annotated with @XmlRootElement. marshaller.marshal(value, sw); } else { // Marshall the value which is not annotated with @XmlRootElement. marshaller.marshal(new JAXBElement(qname, value.getClass(), value ), sw); } } return sw.toString(); } }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jaxb/JAXB.java
public static Object unmarshall(QName qname, String xml, Object holder) throws JAXBException { String javaPackageName = getJavaPackageName(qname.getNamespaceURI()); Unmarshaller unmarshaller = jaxbUnmarshallers.get(javaPackageName); if(unmarshaller == null) { JAXBContext jc = getJAXBContext(javaPackageName); unmarshaller = jc.createUnmarshaller(); jaxbUnmarshallers.put(javaPackageName, unmarshaller); } // Unmarshall the XML message. Object result = null; // JAXB unmarshaller is not thread-safe. synchronized(unmarshaller) { result = unmarshaller.unmarshal(new ByteArrayInputStream(xml.getBytes())); } if(result.getClass() == JAXBElement.class) { JAXBElement jaxbe = (JAXBElement)result; result = jaxbe.getValue(); } if(holder instanceof Holder) { ((Holder)holder).value = result; return holder; } return result; }
6
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jaxb/JAXB.java
catch (javax.xml.bind.JAXBException jaxbe) { System.out.println( "WARNING : No JAXBContext created for '" + factoryPackageName + "' package"); }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB context failed for " + toString(property), je)); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB unmarshaller failed for " + toString(property), je)); return; }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
catch (JAXBException je) { error(processingContext, property, "XML unmarshalling error: " + je.getMessage()); return; }
2
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
0
unknown (Lib) JDOMException 0 0 0 2
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JDOMException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); }
2
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JDOMException e) { throw new XPathException(e); }
// in modules/frascati-util-xml/src/main/java/org/ow2/frascati/jdom/JDOM.java
catch(JDOMException je) { throw new Error("Should not happen on the XML message " + xmlMessage, je); }
1
unknown (Lib) JMSException 0 0 2
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
public void start() throws JMSException, NamingException { log.info("******************************"); log.info("correlationScheme: " + jmsAttributes.getCorrelationScheme()); log.info("JndiURL: " + jmsAttributes.getJndiURL()); log.info("ConnFactName: " + jmsAttributes.getJndiConnectionFactoryName()); log.info("InitialContextFactory: " + jmsAttributes.getJndiInitialContextFactory()); log.info("DestinationName: " + jmsAttributes.getJndiDestinationName()); log.info("CreateDestinationMode: " + jmsAttributes.getCreateDestinationMode()); log.info("DestinationType: " + jmsAttributes.getDestinationType()); log.info("priority: " + jmsAttributes.getPriority()); log.info("ttl: " + jmsAttributes.getTimeToLive()); log.info("selector: " + jmsAttributes.getSelector()); log.info("persistent: " + jmsAttributes.getPersistent()); log.info("******************************"); // Retrieve initial context. Hashtable environment = new Hashtable(); if (!jmsAttributes.getJndiInitialContextFactory().equals(JmsConnectorConstants.NO_JNDI_INITCONTEXTFACT)) { environment.put(Context.INITIAL_CONTEXT_FACTORY, jmsAttributes.getJndiInitialContextFactory()); } if (!jmsAttributes.getJndiURL().equals(JmsConnectorConstants.NO_JNDI_URL)) { environment.put(Context.PROVIDER_URL, jmsAttributes.getJndiURL()); } Context ictx = new InitialContext(environment); // Lookup for elements in the JNDI. ConnectionFactory cf; try { cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } } try { destination = (Destination) ictx.lookup(jmsAttributes.getJndiDestinationName()); } catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } } // Create the connection jmsCnx = cf.createConnection(); session = jmsCnx.createSession(false, Session.AUTO_ACKNOWLEDGE); responseSession = jmsCnx.createSession(false, Session.AUTO_ACKNOWLEDGE); jmsCnx.start(); if (destination == null) { // Create destination if it doesn't exist in JNDI if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_QUEUE)) { destination = session.createQueue(jmsAttributes.getJndiDestinationName()); ictx.bind(jmsAttributes.getJndiDestinationName(), destination); } else if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_TOPIC)) { destination = session.createTopic(jmsAttributes.getJndiDestinationName()); ictx.bind(jmsAttributes.getJndiDestinationName(), destination); } else { throw new IllegalStateException("Unknown destination type: " + jmsAttributes.getDestinationType()); } } else { // Check that the object found in JNDI is correct if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_ALWAYS)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " already exists in JNDI."); } if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_QUEUE) && !(destination instanceof javax.jms.Queue)) { throw new IllegalStateException("Object found in JNDI " + jmsAttributes.getJndiDestinationName() + " does not match declared type 'queue'."); } if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_TOPIC) && !(destination instanceof javax.jms.Topic)) { throw new IllegalStateException("Object found in JNDI " + jmsAttributes.getJndiDestinationName() + " does not match declared type 'topic'."); } } try { responseDestination = (Destination) ictx.lookup(jmsAttributes.getJndiResponseDestinationName()); } catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); } ictx.close(); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
public void close() throws JMSException { if (jmsCnx != null) { jmsCnx.close(); } }
2
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (JMSException exc) { log.severe("JmsSkeletonContent.stopFc() -> " + exc.getMessage()); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubContent.java
catch (JMSException exc) { log.severe("stopFc -> " + exc.getMessage()); }
0 0
unknown (Lib) LinkageError 0 0 0 1
            
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (LinkageError e) { // A duplicate class definition error can occur if // two threads concurrently try to load the same class file - // this kind of error has been detected using binding-jms Class<?> clazz = findLoadedClass(origName); if (clazz != null) { System.out.println("LinkageError :" + origName + " class already resolved "); } return clazz; }
0 0
unknown (Lib) MBeanException 2
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
2
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new MBeanException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (RuntimeException e) { throw new MBeanException(e); }
2
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); propertyController.setValue(attribute.getName(), attribute.getValue()); } catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); } try { attributes.setAttribute(attribute.getName(), attribute.getValue()); } catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); } }
0 0 0
unknown (Lib) MBeanRegistrationException 0 0 3
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public ObjectName register(MBeanServer mbs) throws NoSuchInterfaceException, IllegalLifeCycleException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "registering component " + moduleName + " in MBeanServer"); } try { for (Component child : getContentController(component) .getFcSubComponents()) { new JmxComponent(child, prefix).register(mbs); } } catch (NoSuchInterfaceException e) { // current component is not container } mbs.registerMBean(this, moduleName); return moduleName; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
Destroy public void destroy() throws MBeanRegistrationException, InstanceNotFoundException, MalformedObjectNameException, NullPointerException { clean(); mbs.unregisterMBean(new ObjectName(PACKAGE + ":name=FrascatiJmx")); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
public void clean() throws MBeanRegistrationException, InstanceNotFoundException, MalformedObjectNameException { ObjectName name = new ObjectName(DOMAIN + ":name0=*,*"); Set<ObjectName> names = mbs.queryNames(name, name); for (ObjectName objectName : names) { mbs.unregisterMBean(objectName); } }
1
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (MBeanRegistrationException e) { log.log(Level.WARNING,e.getMessage(),e); }
0 0
unknown (Lib) MalformedObjectNameException 0 0 4
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public ObjectName register(MBeanServer mbs) throws NoSuchInterfaceException, IllegalLifeCycleException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "registering component " + moduleName + " in MBeanServer"); } try { for (Component child : getContentController(component) .getFcSubComponents()) { new JmxComponent(child, prefix).register(mbs); } } catch (NoSuchInterfaceException e) { // current component is not container } mbs.registerMBean(this, moduleName); return moduleName; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
Destroy public void destroy() throws MBeanRegistrationException, InstanceNotFoundException, MalformedObjectNameException, NullPointerException { clean(); mbs.unregisterMBean(new ObjectName(PACKAGE + ":name=FrascatiJmx")); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
public void clean() throws MBeanRegistrationException, InstanceNotFoundException, MalformedObjectNameException { ObjectName name = new ObjectName(DOMAIN + ":name0=*,*"); Set<ObjectName> names = mbs.queryNames(name, name); for (ObjectName objectName : names) { mbs.unregisterMBean(objectName); } }
1
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (MalformedObjectNameException e) { log.log(Level.WARNING,e.getMessage(),e); }
0 0
unknown (Lib) MalformedURLException 0 0 2
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
public static Object stringToValue(String propertyType, String propertyValue, ClassLoader cl) throws ClassNotFoundException, URISyntaxException, MalformedURLException { JavaType javaType = JavaType.VALUES.get(propertyType); return stringToValue(javaType, propertyValue, cl); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
public static Object stringToValue(JavaType propertyType, String propertyValue, ClassLoader cl) throws ClassNotFoundException, URISyntaxException, MalformedURLException { Object computedPropertyValue; switch (propertyType) { case BIG_DECIMAL_OBJECT: computedPropertyValue = new BigDecimal(propertyValue); break; case BIG_INTEGER_OBJECT: computedPropertyValue = new BigInteger(propertyValue); break; case BOOLEAN_PRIMITIVE: case BOOLEAN_OBJECT: computedPropertyValue = Boolean.valueOf(propertyValue); break; case BYTE_PRIMITIVE: case BYTE_OBJECT: computedPropertyValue = Byte.valueOf(propertyValue); break; case CLASS_OBJECT: computedPropertyValue = cl.loadClass(propertyValue); break; case CHAR_PRIMITIVE: case CHARACTER_OBJECT: computedPropertyValue = propertyValue.charAt(0); break; case DOUBLE_PRIMITIVE: case DOUBLE_OBJECT: computedPropertyValue = Double.valueOf(propertyValue); break; case FLOAT_PRIMITIVE: case FLOAT_OBJECT: computedPropertyValue = Float.valueOf(propertyValue); break; case INT_PRIMITIVE: case INTEGER_OBJECT: computedPropertyValue = Integer.valueOf(propertyValue); break; case LONG_PRIMITIVE: case LONG_OBJECT: computedPropertyValue = Long.valueOf(propertyValue); break; case SHORT_PRIMITIVE: case SHORT_OBJECT: computedPropertyValue = Short.valueOf(propertyValue); break; case STRING_OBJECT: computedPropertyValue = propertyValue; break; case URI_OBJECT: computedPropertyValue = new URI(propertyValue); break; case URL_OBJECT: computedPropertyValue = new URL(propertyValue); break; case QNAME_OBJECT: computedPropertyValue = QName.valueOf(propertyValue); break; default: return null; } return computedPropertyValue; }
31
            
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (MalformedURLException e) { System.err.println("Error while getting URL for : " + urls[i]); e.printStackTrace(); }
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (MalformedURLException e) { System.err.println("Malformed URL : " + url); System.err.println("Exiting..."); System.exit(-1); }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (MalformedURLException e) { log.info("Unable to initialize log4j properly"); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (MalformedURLException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/pojosr-util/src/main/java/org/ow2/frascati/osgi/resource/pojosr/Resource.java
catch (MalformedURLException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (MalformedURLException e) { log.log(Level.WARNING, e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbfile/Resource.java
catch (MalformedURLException e) { // TODO Auto-generated catch block log.log(Level.CONFIG, e.getMessage()); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/jboss-resources/src/main/java/org/ow2/frascati/util/resource/jbjar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (MalformedURLException e) { logg.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/VirtualHierarchicList.java
catch (MalformedURLException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/jar/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/file/Resource.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (MalformedURLException e) { log.log(Level.WARNING, e.getMessage(), e); }
// in osgi/frascati-processor/src/main/java/org/ow2/frascati/osgi/processor/OSGiResourceProcessor.java
catch (MalformedURLException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(MalformedURLException exc) { String msg = propName + " - Malformed URL '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(MalformedURLException exc) { error(processingContext, property, "Malformed URL '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (MalformedURLException e) { severe(new ManagerException(e)); return new Component[0]; }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException mue) { throw new RuntimeException(mue); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException e) { e.printStackTrace(); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
catch (MalformedURLException e) { showError("Invalid URL (" + name + "): " + e.getMessage()); return; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/LoadCommand.java
catch (MalformedURLException e) { showError("Invalid URL (" + url + "): " + e.getMessage()); return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (MalformedURLException e) { getLog().warn("Malformed URL for artifact " + artifact.getId()); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException e) { getLog().error("Could not add library path : " + lib); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + srcs.get(i)); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-test-compiler/src/main/java/org/ow2/frascati/mojo/FrascatiCompilerTestMojo.java
catch (MalformedURLException mue) { getLog().error("Invalid file: " + fr); }
4
            
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException mue) { throw new RuntimeException(mue); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
// in maven-plugins/frascati-launcher/src/main/java/org/ow2/frascati/mojo/FrascatiLauncherMojo.java
catch (MalformedURLException mue) { throw new FrascatiException("Could not add the current project artifact jar into the ClassRealm instance", mue); }
1
checked (Domain) ManagerException
public class ManagerException extends FrascatiException {

  private static final long serialVersionUID = 9035619800194492330L;

  /**
   * @see FrascatiException#FrascatiException()
   */
  public ManagerException() {
      super();
  }

  /**
   * @see FrascatiException#FrascatiException(String)
   */
  public ManagerException(String message) {
      super(message);
  }

  /**
   * @see FrascatiException#FrascatiException(String, Throwable)
   */
  public ManagerException(String message, Throwable cause) {
      super(message, cause);
  }

  /**
   * @see FrascatiException#FrascatiException(Throwable)
   */
  public ManagerException(Throwable cause) {
      super(cause);
  }

}
2
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
protected synchronized final Component internalProcessComposite(QName qname, ProcessingContext processingContext) throws ManagerException { logDo("Processing composite '" + qname + "'"); // Get the processing mode to use. ProcessingMode processingMode = processingContext.getProcessingMode(); if(processingMode == null) { // Default processing mode when caller does not set it. processingMode = ProcessingMode.all; } // The instantiated composite component. Component component = this.loadedComposites.get(qname.getLocalPart()); // Return it if already loaded. if(component != null) { return component; } // Use the SCA parser to create composite model instance. Composite composite; try { composite = compositeParser.parse(qname, processingContext); } catch (ParserException pe) { warning(new ManagerException("Error when parsing the composite file '" + qname + "'", pe)); return null; } // If composite is the first loaded, then put it in the processing context as the root composite. if(processingContext.getRootComposite() == null) { processingContext.setRootComposite(composite); } // Are errors detected during the parsing phase. // if(processingContext.getErrors() > 0) { // warning(new ManagerException("Errors detected during the parsing phase of composite '" + qname + "'")); // return null; // } // Previous was commented in order to also run the following checking phase. if(processingMode == ProcessingMode.parse) { return null; } // Checking phase for the composite. try { compositeProcessor.check(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when checking the composite instance '" + qname + "'", pe)); return null; } // Are errors detected during the checking phase. int nbErrors = processingContext.getErrors(); if(nbErrors > 0) { warning(new ManagerException(nbErrors + " error" + ((nbErrors > 1) ? "s" : "") + " detected during the checking phase of composite '" + qname + "'")); return null; } if(processingMode == ProcessingMode.check) { return null; } // Open a membrane generation phase with the given FraSCAti class loader. try { // TODO pass processingContext to open() or at least a Map membraneGeneration.open((FrascatiClassLoader)processingContext.getClassLoader()); } catch (FactoryException te) { severe(new ManagerException( "Cannot open a membrane generation phase for '" + qname + "'", te)); return null; } // Generating phase for the composite. try { compositeProcessor.generate(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when generating the composite instance '" + qname + "'", pe)); return null; } if(processingMode == ProcessingMode.generate) { return null; } // Close the membrane generation phase. try { membraneGeneration.close(); } catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; } if(processingMode == ProcessingMode.compile) { return null; } // Instantiating phase for the composite. try { compositeProcessor.instantiate(composite, processingContext); } catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); } // Retrieve the instantiated component from the processing context. component = processingContext.getData(composite, Component.class); if(processingMode == ProcessingMode.instantiate) { return component; } // Completing phase for the composite. try { compositeProcessor.complete(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when completing the composite instance '" + qname + "'", pe)); return null; } if(processingMode == ProcessingMode.complete) { return component; } log.fine("Starting the composite '" + qname + "'..."); try { // start the composite container. Component[] parents = Fractal.getSuperController(component).getFcSuperComponents(); if (parents.length > 0) { // There is a container for bindings startFractalComponent(parents[0]); } else { startFractalComponent(component); } log.info("SCA composite '" + composite.getName() + "': " + getFractalComponentState(component) + "\n"); } catch (Exception e) { severe(new ManagerException("Could not start the SCA composite '" + qname + "'", e)); return null; } if(processingMode == ProcessingMode.start) { return component; } addComposite(component); logDone("processing composite '" + qname + "'"); return component; }
2
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); }
18
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object processContribution(String contribution,ProcessingContext processingContext) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processContribution(contribution, newProcessingContext(processingContext)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object getContribution(String contribution) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processContribution(contribution, newProcessingContext()); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object processComposite(QName composite,ProcessingContext processingContext) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(composite, newProcessingContext(processingContext)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite) throws ManagerException, ResourceAlreadyManagedException { return getComposite(new QName(composite)); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(QName composite) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(composite, newProcessingContext()); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite,ClassLoader classLoader) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(new QName(composite), newProcessingContext(classLoader)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite,URL[] libs) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(new QName(composite), newProcessingContext(libs)); } finally { //calls can be intercepted again enabled = true; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final void loadLibraries(URL ... urls) throws ManagerException { // check if URLs are accessible. for (URL url : urls) { try { url.openConnection(); } catch(IOException ioe) { warning(new ManagerException(url.toString(), ioe)); return; } } // Add them to the main class laoder. for (URL url : urls) { log.info("Load library: " + url.toString()); this.mainClassLoader.addUrl(url); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component[] getContribution(String contribution) throws ManagerException { return processContribution(contribution, newProcessingContext()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component[] processContribution(String contribution, ProcessingContext processingContext) throws ManagerException { // Get the processing context class loader. FrascatiClassLoader frascatiClassLoader = (FrascatiClassLoader)processingContext.getClassLoader(); // Set the name of the FraSCAti class loader. frascatiClassLoader.setName("SCA contribution " + contribution); // sca-contribution.xml file QName scaContribution = null; try { // Load contribution zip file ZipFile zipFile = new ZipFile(contribution); // Get folder name for output final String folder = zipFile.getName().substring( zipFile.getName().lastIndexOf(File.separator), zipFile.getName().length() - ".zip".length()); // Set directory for extracted files // TODO : use system temp directory but should use output folder given by // runtime component. Will be possible once Assembly Factory modules will // be merged final String tempDir = System.getProperty("java.io.tmpdir") + File.separator + folder + File.separator; Enumeration<? extends ZipEntry> entries = zipFile.entries(); // Iterate over zip entries while (entries.hasMoreElements()) { ZipEntry entry = entries.nextElement(); log.info("ZIP entry: " + entry.getName()); // create directories if (entry.isDirectory()) { log.info("create directory : " + tempDir + entry.getName()); new File(tempDir, entry.getName()).mkdirs(); } else { File f = new File(tempDir, File.separator + entry.getName()); // register jar files if (entry.getName().endsWith("jar")) { log.info("Add to the class path " + f.toURI().toURL()); frascatiClassLoader.addUrl(f.toURI().toURL()); } // register contribution definition if (entry.getName().endsWith("sca-contribution.xml")) { scaContribution = new QName(f.toURI().toString()); } int idx = entry.getName().lastIndexOf(File.separator); if(idx != -1) { String tmp = entry.getName().substring(0, idx); log.info("create directory : " + tempDir + tmp); new File(tempDir, tmp).mkdirs(); } // extract entry from zip to tempDir InputStream is = zipFile.getInputStream(entry); OutputStream os = new BufferedOutputStream(new FileOutputStream(f)); Stream.copy(is, os); is.close(); os.close(); } } } catch (MalformedURLException e) { severe(new ManagerException(e)); return new Component[0]; } catch (IOException e) { severe(new ManagerException(e)); return new Component[0]; } if (scaContribution == null) { log.warning("No sca-contribution.xml in " + contribution); return new Component[0]; } // Call the EMF parser component log.fine("Reading contribution " + contribution); // SCA contribution instance given by EMF ContributionType contributionType = null; try { // Use SCA parser to create contribution model instance contributionType = contributionParser.parse(scaContribution, processingContext); } catch (ParserException pe) { severe(new ManagerException("Error when loading the contribution file " + contribution + " with the SCA XML Processor", pe)); return new Component[0]; } // Iterate over 'Deployable' defined in contribution descriptor ArrayList<Component> components = new ArrayList<Component>(); for (DeployableType deployable : contributionType.getDeployable()) { try { Component c = processComposite(deployable.getComposite(), processingContext); components.add(c); } catch(Exception exc) { severe(new ManagerException("Error when loading the composite " + deployable.getComposite(), exc)); return new Component[0]; } } // return loaded components return components.toArray(new Component[components.size()]); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component getComposite(String composite) throws ManagerException { return processComposite(new QName(composite), newProcessingContext()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component getComposite(QName qname) throws ManagerException { return processComposite(qname, newProcessingContext()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component getComposite(String composite, URL[] libs) throws ManagerException { return processComposite(new QName(composite), newProcessingContext(libs == null ? new URL[0] : libs)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component getComposite(String composite, ClassLoader classLoader) throws ManagerException { return processComposite(new QName(composite), newProcessingContext(classLoader)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
protected synchronized final Component internalProcessComposite(QName qname, ProcessingContext processingContext) throws ManagerException { logDo("Processing composite '" + qname + "'"); // Get the processing mode to use. ProcessingMode processingMode = processingContext.getProcessingMode(); if(processingMode == null) { // Default processing mode when caller does not set it. processingMode = ProcessingMode.all; } // The instantiated composite component. Component component = this.loadedComposites.get(qname.getLocalPart()); // Return it if already loaded. if(component != null) { return component; } // Use the SCA parser to create composite model instance. Composite composite; try { composite = compositeParser.parse(qname, processingContext); } catch (ParserException pe) { warning(new ManagerException("Error when parsing the composite file '" + qname + "'", pe)); return null; } // If composite is the first loaded, then put it in the processing context as the root composite. if(processingContext.getRootComposite() == null) { processingContext.setRootComposite(composite); } // Are errors detected during the parsing phase. // if(processingContext.getErrors() > 0) { // warning(new ManagerException("Errors detected during the parsing phase of composite '" + qname + "'")); // return null; // } // Previous was commented in order to also run the following checking phase. if(processingMode == ProcessingMode.parse) { return null; } // Checking phase for the composite. try { compositeProcessor.check(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when checking the composite instance '" + qname + "'", pe)); return null; } // Are errors detected during the checking phase. int nbErrors = processingContext.getErrors(); if(nbErrors > 0) { warning(new ManagerException(nbErrors + " error" + ((nbErrors > 1) ? "s" : "") + " detected during the checking phase of composite '" + qname + "'")); return null; } if(processingMode == ProcessingMode.check) { return null; } // Open a membrane generation phase with the given FraSCAti class loader. try { // TODO pass processingContext to open() or at least a Map membraneGeneration.open((FrascatiClassLoader)processingContext.getClassLoader()); } catch (FactoryException te) { severe(new ManagerException( "Cannot open a membrane generation phase for '" + qname + "'", te)); return null; } // Generating phase for the composite. try { compositeProcessor.generate(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when generating the composite instance '" + qname + "'", pe)); return null; } if(processingMode == ProcessingMode.generate) { return null; } // Close the membrane generation phase. try { membraneGeneration.close(); } catch (FactoryException te) { if(te.getMessage().startsWith("Errors when compiling ")) { throw new ManagerException(te.getMessage() + " for '" + qname + "'", te); } severe(new ManagerException( "Cannot close the membrane generation phase for '" + qname + "'", te)); return null; } if(processingMode == ProcessingMode.compile) { return null; } // Instantiating phase for the composite. try { compositeProcessor.instantiate(composite, processingContext); } catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); } // Retrieve the instantiated component from the processing context. component = processingContext.getData(composite, Component.class); if(processingMode == ProcessingMode.instantiate) { return component; } // Completing phase for the composite. try { compositeProcessor.complete(composite, processingContext); } catch (ProcessorException pe) { severe(new ManagerException("Error when completing the composite instance '" + qname + "'", pe)); return null; } if(processingMode == ProcessingMode.complete) { return component; } log.fine("Starting the composite '" + qname + "'..."); try { // start the composite container. Component[] parents = Fractal.getSuperController(component).getFcSuperComponents(); if (parents.length > 0) { // There is a container for bindings startFractalComponent(parents[0]); } else { startFractalComponent(component); } log.info("SCA composite '" + composite.getName() + "': " + getFractalComponentState(component) + "\n"); } catch (Exception e) { severe(new ManagerException("Could not start the SCA composite '" + qname + "'", e)); return null; } if(processingMode == ProcessingMode.start) { return component; } addComposite(component); logDone("processing composite '" + qname + "'"); return component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final Component processComposite(QName qname, ProcessingContext processingContext) throws ManagerException { // Get the processing context's FraSCAti class loader. FrascatiClassLoader frascatiClassLoader = (FrascatiClassLoader)processingContext.getClassLoader(); // Set the name of the FraSCAti class loader. frascatiClassLoader.setName(qname.toString()); // Uncomment next line for debugging the FraSCAti class loader. // FrascatiClassLoader.print(frascatiClassLoader); // Get the current thread's context class loader and set it. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getAndSetCurrentThreadContextClassLoader(frascatiClassLoader); try { return internalProcessComposite(qname, processingContext); } finally { // Reset the previous current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousCurrentThreadContextClassLoader); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final void addComposite(Component composite) throws ManagerException { // Retrieve the component name. String compositeName = getFractalComponentName(composite); if (this.loadedComposites.containsKey(compositeName)) { warning(new ManagerException("Composite '" + compositeName + "' already loaded into the top level domain composite")); return; } else { addFractalSubComponent(this.topLevelDomainComposite, composite); this.loadedComposites.put(compositeName, composite); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
public final void removeComposite(String name) // TODO QName instead of String throws ManagerException { // Retrieve component reference from its name Component component = this.loadedComposites.get(name); if (component == null) { severe(new ManagerException("Composite '" + name +"' does not exist")); } // Remove the component. removeFractalSubComponent(this.topLevelDomainComposite, component); // Remove component from loaded composites. this.loadedComposites.remove(name); // Stop the SCA component. stopFractalComponent(component); }
17
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(ManagerException me) { throw new WeaverException(me); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ClassCastException e) { // parent is the Domain CompositeManager domain = (CompositeManager) treeView.getParentObject(); try { domain.removeComposite( (String) treeView.getSelectedEntry().getName() ); } catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (ManagerException me) { String msg = "Cannot remove this composite!"; LOG.log(Level.SEVERE, msg, me); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch(ManagerException me) { warning(new ProcessorException("Error while getting intent '" + require + "'", me)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
catch(ManagerException me) { error(processingContext, scaBinding, "Composite '", compositeName, "' not found"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { LOG.warning("Cannot retrieve the '" + parentName + "' component"); return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); }
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiCompilerMojo.java
catch (ManagerException e) { e.printStackTrace(); }
// in maven-plugins/frascati-test-compiler/src/main/java/org/ow2/frascati/mojo/FrascatiCompilerTestMojo.java
catch (ManagerException e) { e.printStackTrace(); }
10
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + contribution + "' contribution");
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to process the '" + composite + "' composite"); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (ManagerException e) { log.log(Level.WARNING,e.getMessage(),e); throw new FraSCAtiServiceException("Enable to remove the '" + compositeName + "' component"); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ManagerException e) { log.log(Level.WARNING, "Loading process of the composite has " + "thrown an exception"); throw new FraSCAtiOSGiNotFoundCompositeException(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(ManagerException me) { throw new WeaverException(me); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); }
0
unknown (Lib) MessagingException 0 0 0 1
            
// in frascati-studio/src/main/java/org/easysoa/utils/MailServiceImpl.java
catch (MessagingException ex) { while ((ex = (MessagingException) ex.getNextException()) != null) { ex.printStackTrace();
0 0
unknown (Lib) MojoExecutionException 1
            
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
public final void execute() throws MojoExecutionException, MojoFailureException { // Get the absolute path of the base dir of the Maven project. this.projectBaseDirAbsolutePath = this.project.getBasedir().getAbsolutePath(); // Configure logging. if (loggingConfFile != null) { getLog().debug("Configure logging with " + loggingConfFile + "."); try { LogManager.getLogManager().readConfiguration( new FileInputStream(loggingConfFile)); } catch (Exception e) { getLog().warn("Could not load logging configuration file: " + loggingConfFile); } } // Get the current thread class loader. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getCurrentThreadContextClassLoader(); ClassLoader currentClassLoader = null; // Get the current System Properties. Properties previousSystemProperties = System.getProperties(); try { // Init the class loader used by this MOJO. getLog().debug("Init the current class loader."); currentClassLoader = initCurrentClassLoader(previousCurrentThreadContextClassLoader); if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Set the current thread's context class loader."); FrascatiClassLoader.setCurrentThreadContextClassLoader( currentClassLoader); } if (systemProperties != null) { getLog().debug("Configuring Java system properties."); Properties newSystemProperties = new Properties( previousSystemProperties); newSystemProperties.putAll(systemProperties); System.setProperties(newSystemProperties); getLog().debug(newSystemProperties.toString()); } // Execute the MOJO. getLog().debug("Execute the MOJO..."); executeMojo(); } catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); } finally { if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Reset the current thread's context class loader."); // Reset the current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader( previousCurrentThreadContextClassLoader); } getLog().debug("Reset the Java system properties."); System.setProperties(previousSystemProperties); } }
1
            
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); }
2
            
// in maven-plugins/frascati-mojo/src/main/java/org/ow2/frascati/mojo/AbstractFrascatiMojo.java
public final void execute() throws MojoExecutionException, MojoFailureException { // Get the absolute path of the base dir of the Maven project. this.projectBaseDirAbsolutePath = this.project.getBasedir().getAbsolutePath(); // Configure logging. if (loggingConfFile != null) { getLog().debug("Configure logging with " + loggingConfFile + "."); try { LogManager.getLogManager().readConfiguration( new FileInputStream(loggingConfFile)); } catch (Exception e) { getLog().warn("Could not load logging configuration file: " + loggingConfFile); } } // Get the current thread class loader. ClassLoader previousCurrentThreadContextClassLoader = FrascatiClassLoader.getCurrentThreadContextClassLoader(); ClassLoader currentClassLoader = null; // Get the current System Properties. Properties previousSystemProperties = System.getProperties(); try { // Init the class loader used by this MOJO. getLog().debug("Init the current class loader."); currentClassLoader = initCurrentClassLoader(previousCurrentThreadContextClassLoader); if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Set the current thread's context class loader."); FrascatiClassLoader.setCurrentThreadContextClassLoader( currentClassLoader); } if (systemProperties != null) { getLog().debug("Configuring Java system properties."); Properties newSystemProperties = new Properties( previousSystemProperties); newSystemProperties.putAll(systemProperties); System.setProperties(newSystemProperties); getLog().debug(newSystemProperties.toString()); } // Execute the MOJO. getLog().debug("Execute the MOJO..."); executeMojo(); } catch (FrascatiException exc) { throw new MojoExecutionException(exc.getMessage(), exc); } finally { if (currentClassLoader != previousCurrentThreadContextClassLoader) { getLog().debug("Reset the current thread's context class loader."); // Reset the current thread's context class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader( previousCurrentThreadContextClassLoader); } getLog().debug("Reset the Java system properties."); System.setProperties(previousSystemProperties); } }
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
public final void execute() throws MojoExecutionException, MojoFailureException { if (include != null) { if (excludeGroups == null) excludeGroups = new ArrayList<String>(); // by default, we automatically add "org.ow2.frascati" & // "org.objectweb.fractal.bf" to the ignore list // FIXME actually, there is a problem with the ${xxxxx.version} properties // which are not resolved by the Artifact Resolver excludeGroups.add("org.ow2.frascati"); excludeGroups.add("org.objectweb.fractal.bf"); // Get Base directory File baseDir = project.getBasedir(); // Get Target directory File targetDir = new File(baseDir.getAbsolutePath() + File.separator + "target"); // Manage dependencies Map<File,String> jars = new HashMap<File,String>(); try { recursivelyAddDependencies(Arrays.asList(include), jars); } catch (Exception e) { getLog().error("Problem with the dependency management."); getLog().error(e); } // Make the zip File contrib = ContributionUtil.makeContribution(jars, Arrays.asList(deployables), project.getArtifactId(), targetDir); projectHelper.attachArtifact(project, "zip", "frascati-contribution", contrib); } }
0 0 0
unknown (Domain) MyWebApplicationException
public class MyWebApplicationException extends WebApplicationException
{

    private static final long serialVersionUID = -6209569322081835480L;

    /**
     * The default HTTP status to send
     */
    private final static int DEFAULT_RESPONSE = 400;

    /**
     * The logger
     */
    protected final static Logger LOG = Logger.getLogger(MyWebApplicationException.class.getCanonicalName());

    /**
     * @param status HTTP status to send
     * @param message The message to send
     */
    public MyWebApplicationException(int status, String message)
    {
        super(Response.status(status).entity(message).type(MediaType.TEXT_PLAIN).build());
        LOG.severe("Error " + status + " " + MyWebApplicationException.class.getSimpleName() + " : " + message);
    }

    /**
     * @param exception The original Exception use to compose the message to send
     * @param status HTTP status to send
     * @param message A part of the message to send
     */
    public MyWebApplicationException(Exception exception, int status, String message)
    {
        super(exception, Response.status(status).entity(message).type(MediaType.TEXT_PLAIN).build());
        LOG.severe("Error " + status + " " + exception.getClass().getSimpleName() + " : " + message);
    }

    /**
     * @param message The message to send
     */
    public MyWebApplicationException(Exception exception)
    {
        this(exception,exception.getMessage());
    }
    
    /**
     * @param message The message to send
     */
    public MyWebApplicationException(String message)
    {
        this(DEFAULT_RESPONSE, message);
    }

    /**
     * @param exception The original Exception use to compose the message to send
     * @param message A part of the message to send
     */
    public MyWebApplicationException(Exception exception, String message)
    {
        this(exception, DEFAULT_RESPONSE, message);
    }

}
37
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public boolean startComponent(String fullComponentId) { org.objectweb.fractal.api.Component comp = getFractalComponent(fullComponentId); if(comp==null) { throw new MyWebApplicationException("Cannot find Fractal component for id "+fullComponentId); } startComponent(comp); return true; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private void startComponent(org.objectweb.fractal.api.Component owner) { try { LifeCycleController lcc = Fractal.getLifeCycleController(owner); lcc.startFc(); } catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); } catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public boolean stopComponent(String fullComponentId) { org.objectweb.fractal.api.Component comp = getFractalComponent(fullComponentId); if(comp==null) { throw new MyWebApplicationException("Cannot find Fractal component for id "+fullComponentId); } stopComponent(comp); return true; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private void stopComponent(org.objectweb.fractal.api.Component owner) { try { LifeCycleController lcc = Fractal.getLifeCycleController(owner); lcc.stopFc(); } catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); } catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); } catch (Exception e) { throw new MyWebApplicationException(e); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private org.objectweb.fractal.api.Interface findInterfaceByItfId(org.objectweb.fractal.api.Component owner, String itfId) { String itfName = itfId.substring(itfId.lastIndexOf('/') + 1); try { return (org.objectweb.fractal.api.Interface) owner.getFcInterface(itfName); } catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public Property getProperty(String componentPath, String propertyName) { // Obtain the Fractal component. org.objectweb.fractal.api.Component component = getFractalComponent(componentPath); // Obtain its SCA property controller. SCAPropertyController propertyController; try { propertyController = (SCAPropertyController) component.getFcInterface(SCAPropertyController.NAME); } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); } // Create the Property to return. Property property = new Property(); property.setName(propertyName); property.setValue(propertyController.getValue(propertyName).toString()); property.setType(propertyController.getType(propertyName).getName()); return property; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public void setProperty(String componentPath, String propertyName, String value) { // Obtain the Fractal component. org.objectweb.fractal.api.Component component = getFractalComponent(componentPath); // Obtain its SCA property controller. SCAPropertyController propertyController; try { propertyController = (SCAPropertyController) component.getFcInterface(SCAPropertyController.NAME); } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); } // Get the type of the property. Class<?> propertyType = propertyController.getType(propertyName); // Convert the value string as an object instance of the property type. Object propertyValue; try { propertyValue = ScaPropertyTypeJavaProcessor.stringToValue(propertyType.getCanonicalName(), value, this.getClass().getClassLoader()); } catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); } stopComponent(component); // Update the property. propertyController.setType(propertyName, propertyValue.getClass()); propertyController.setValue(propertyName, propertyValue); startComponent(component); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public void addBinding(String itfId, MultivaluedMap<String, String> params) { String clearItfId=clearId(itfId); org.objectweb.fractal.api.Component owner = findComponentByItfId(clearItfId); org.objectweb.fractal.api.Interface itf = findInterfaceByItfId(owner, clearItfId); String itfName = itf.getFcItfName(); stopComponent(owner); String kind = params.getFirst("kind"); Map<String, Object> hints = getHints(kind, params); if(hints==null) { throw new MyWebApplicationException("cannot create binding for kind parameter : "+kind); } hints.put(CLASSLOADER, itf.getClass().getClassLoader()); boolean isScaReference = itf instanceof TinfiComponentOutInterface<?>; try { LOG.fine("Calling binding factory\n bind: " + Fractal.getNameController(owner).getFcName() + " -> " + itfName); if (isScaReference) { bindingFactory.bind(owner, itfName, hints); } else { bindingFactory.export(owner, itfName, hints); } } catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); } startComponent(owner); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private org.objectweb.fractal.api.Component getBindingFromService(org.objectweb.fractal.api.Component owner, org.objectweb.fractal.api.Interface itf, int position) { int index = 0; try { List<org.objectweb.fractal.api.Component> children = ResourceUtil.getChildren(owner); for (org.objectweb.fractal.api.Component child : children) { String childName = Fractal.getNameController(child).getFcName(); if (childName.endsWith("-skeleton") || childName.endsWith("-connector")) { BindingController bindingController = Fractal.getBindingController(child); Interface servant = (Interface) bindingController.lookupFc(AbstractSkeleton.SERVANT_CLIENT_ITF_NAME); if (servant.equals(itf)) { if (index != position) { index++; } else { return child; } } } } } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); } throw new MyWebApplicationException("No binding found for interface : " + itf.getFcItfName() + " at position " + position); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private org.objectweb.fractal.api.Component getBindingFromReference(org.objectweb.fractal.api.Component owner, org.objectweb.fractal.api.Interface itf) { try { BindingController bindingController = Fractal.getBindingController(owner); org.objectweb.fractal.api.Interface boundInterface = (org.objectweb.fractal.api.Interface) bindingController.lookupFc(itf.getFcItfName()); if (boundInterface != null) { return boundInterface.getFcItfOwner(); } } catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); } throw new MyWebApplicationException("No binding found for interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public void removeBinding(String itfId, int position) { String clearItfId=clearId(itfId); org.objectweb.fractal.api.Component owner = findComponentByItfId(clearItfId); org.objectweb.fractal.api.Interface itf = findInterfaceByItfId(owner, clearItfId); boolean isScaReference = itf instanceof TinfiComponentOutInterface<?>; try { org.objectweb.fractal.api.Component boundedInterfaceOwner; if (isScaReference) { boundedInterfaceOwner = getBindingFromReference(owner, itf); bindingFactory.unbind(owner, itf.getFcItfName(), boundedInterfaceOwner); } else { boundedInterfaceOwner = getBindingFromService(owner, itf, position); bindingFactory.unexport(owner, boundedInterfaceOwner, new HashMap<String, Object>()); } } catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
private ProcessingContext getProcessingContext(File destFile) { ZipFile contribution = null; try { contribution = new ZipFile(destFile); } catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); } catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); } Enumeration<? extends ZipEntry> entries = contribution.entries(); String contributionName = null; // Search for the name of the contribution in the META-INF folder inside // contribution file while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); if ((entry.getName().startsWith("/META-INF/") || entry.getName().startsWith("META-INF/")) && !entry.getName().endsWith("/")) { int entryNameIndex = entry.getName().lastIndexOf('/'); contributionName = entry.getName().substring(entryNameIndex + 1); if (!"sca-contribution.xml".equals(contributionName)) { break; } } } if (contributionName == null) { LOG.log(Level.INFO, "No contribution name found. The contribution will be loaded in a new Processing Context."); } // If it doesn't exist a processing context corresponding to this // contribution, create a new one ProcessingContext processingContext = map.get(contributionName); if (processingContext == null) { LOG.log(Level.INFO, "No processing context found for " + contributionName + ". The contribution will be loaded in a new Processing Context."); processingContext = compositeManager.newProcessingContext(); map.put(contributionName, processingContext); } else { LOG.log(Level.INFO, "Processing context found for " + contributionName + ". The contribution will be loaded in an existing Processing Context."); } return processingContext; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public int deployContribution(String encodedContribution) { File destFile = null; File destDir = null; try { destFile = FileUtil.decodeFile(encodedContribution, "zip"); destDir = FileUtil.unZipHere(destFile); } catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); } catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); } try { ProcessingContext processingContext=getProcessingContext(destFile); compositeManager.processContribution(destFile.getAbsolutePath(), processingContext); } catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); } finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } FileUtil.deleteDirectory(destDir); } return 0; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public int deployComposite(String compositeName, String encodedComposite) { File destFile = null; try { destFile = FileUtil.decodeFile(encodedComposite,"jar"); } catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); } catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); } try { compositeManager.getComposite(compositeName, new URL[] { destFile.toURI().toURL() }); } catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); } catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); } finally { boolean isDeleted=destFile.delete(); if(isDeleted) { LOG.info("delete temp file "+destFile.getPath()); } } return 0; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public int undeployComposite(String fullCompositeId) { try { compositeManager.removeComposite(fullCompositeId); } catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); } return 0; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
public String getCompositeEntriesFromJar(String encodedComposite) { JarFile jarFile = null; try { File destFile = FileUtil.decodeFile(encodedComposite,"jar"); jarFile=new JarFile(destFile); } catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); } catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); } Enumeration<JarEntry> entries=jarFile.entries(); JarEntry entry; List<String> composites=new LinkedList<String>(); String entryName,extension; while(entries.hasMoreElements()) { entry=entries.nextElement(); entryName=entry.getName(); if(entryName.contains(".")) { extension=entryName.substring(entryName.lastIndexOf('.')+1); if("composite".equals(extension)) { composites.add(entryName.substring(0, entryName.lastIndexOf('.'))); } } } if(composites.size()==0) { return ""; } String result=""; int index; for(index=0;index<composites.size()-1;index++) { result.concat(composites.get(index)); result.concat("%S%"); } result+=composites.get(index); return result; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static Port getPortResource(org.objectweb.fractal.api.Interface itf) { Port port = new Port(); port.setName(itf.getFcItfName()); String signature = ((org.objectweb.fractal.api.type.InterfaceType) itf.getFcItfType()).getFcItfSignature(); org.ow2.frascati.remote.introspection.resources.Interface rItf = new org.ow2.frascati.remote.introspection.resources.Interface(); rItf.setClazz(signature); List<org.ow2.frascati.remote.introspection.resources.Method> methods = rItf.getMethods(); List<org.ow2.frascati.remote.introspection.resources.Parameter> parameters; org.ow2.frascati.remote.introspection.resources.Parameter parameter; int index; try { Class<?> interfaceClass = itf.getClass().getClassLoader().loadClass(signature); java.lang.reflect.Method[] jMethods = interfaceClass.getMethods(); for (java.lang.reflect.Method m : jMethods) { org.ow2.frascati.remote.introspection.resources.Method method = new Method(); method.setName(m.getName()); parameters = method.getParameters(); index = 0; for (Class<?> param : m.getParameterTypes()) { parameter = new Parameter(); parameter.setName("Parameter" + index); parameter.setType(param.getName()); parameters.add(parameter); index++; } methods.add(method); } } catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); } // SCA Interface port.setImplementedInterface(rItf); // SCA bindings addBindingsResource(itf, port.getBindings()); // SCA intents return port; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static void addBindingsResource(org.objectweb.fractal.api.Interface itf, Collection<Binding> bindings) { org.objectweb.fractal.api.Interface boundInterface = null; org.objectweb.fractal.api.Component owner = itf.getFcItfOwner(); Binding binding=null; BindingController bindingController=null; NameController ownerNameController = null; try { ownerNameController = Fractal.getNameController(owner); bindingController = Fractal.getBindingController(owner); boundInterface = (org.objectweb.fractal.api.Interface) bindingController.lookupFc(itf.getFcItfName()); if (boundInterface != null) { org.objectweb.fractal.api.Component boundInterfaceOwner = boundInterface.getFcItfOwner(); binding = getServiceBindingKind(boundInterfaceOwner); addAttributesResource(boundInterfaceOwner, binding.getAttributes()); bindings.add(binding); binding = new Binding(); } } catch (Exception exception) { if (ownerNameController != null) { log.info("no binding found for fractal component : " + ownerNameController.getFcName()); } } try { List<org.objectweb.fractal.api.Component> children = getChildren(owner); for (org.objectweb.fractal.api.Component child : children) { String childName = Fractal.getNameController(child).getFcName(); if (childName.endsWith("-skeleton") || childName.endsWith("-connector")) { // check that the skeleton is bound to owner bindingController = Fractal.getBindingController(child); try { Interface servant = (Interface) bindingController.lookupFc(AbstractSkeleton.SERVANT_CLIENT_ITF_NAME); if (itf.equals(servant)) { binding=getReferenceBindingKind(childName); if (binding != null) { addAttributesResource(child, binding.getAttributes()); bindings.add(binding); binding = new Binding(); } } } catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } } } } } catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); } }
30
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot start the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IllegalLifeCycleException e) { throw new MyWebApplicationException(e, "Cannot stop the component!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch(BadParameterTypeException bpte) { throw new MyWebApplicationException(bpte); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Error while invoking " + method.getName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Exception e) { throw new MyWebApplicationException(e, "Impossible to convert a string to an SCA property value!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " binding reference" : "exporting service") + ": " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (BindingFactoryException bfe) { throw new MyWebApplicationException(bfe, "Error while binding " + (isScaReference ? " unbinding reference" : "unexporting service") + ": " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException e) { throw new MyWebApplicationException(e, "Cannot create Zip from file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 encode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to deploy the jar"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (MalformedURLException e) { throw new MyWebApplicationException(e, "Cannot find the jar file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ManagerException e) { throw new MyWebApplicationException(e, "Error while trying to undeploy " + fullCompositeId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (Base64Exception b64e) { throw new MyWebApplicationException(b64e, "Cannot Base64 decode the file"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (IOException ioe) { throw new MyWebApplicationException(ioe, "IO Exception when trying to read or write contribution zip"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (ClassNotFoundException e) { throw new MyWebApplicationException("interface : "+itf.getFcItfName()+", can't load class for signature "+signature); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); }
0 0 0 0
unknown (Lib) NameNotFoundException 0 0 0 2
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); }
1
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } }
1
unknown (Lib) NamingException 0 0 1
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
public void start() throws JMSException, NamingException { log.info("******************************"); log.info("correlationScheme: " + jmsAttributes.getCorrelationScheme()); log.info("JndiURL: " + jmsAttributes.getJndiURL()); log.info("ConnFactName: " + jmsAttributes.getJndiConnectionFactoryName()); log.info("InitialContextFactory: " + jmsAttributes.getJndiInitialContextFactory()); log.info("DestinationName: " + jmsAttributes.getJndiDestinationName()); log.info("CreateDestinationMode: " + jmsAttributes.getCreateDestinationMode()); log.info("DestinationType: " + jmsAttributes.getDestinationType()); log.info("priority: " + jmsAttributes.getPriority()); log.info("ttl: " + jmsAttributes.getTimeToLive()); log.info("selector: " + jmsAttributes.getSelector()); log.info("persistent: " + jmsAttributes.getPersistent()); log.info("******************************"); // Retrieve initial context. Hashtable environment = new Hashtable(); if (!jmsAttributes.getJndiInitialContextFactory().equals(JmsConnectorConstants.NO_JNDI_INITCONTEXTFACT)) { environment.put(Context.INITIAL_CONTEXT_FACTORY, jmsAttributes.getJndiInitialContextFactory()); } if (!jmsAttributes.getJndiURL().equals(JmsConnectorConstants.NO_JNDI_URL)) { environment.put(Context.PROVIDER_URL, jmsAttributes.getJndiURL()); } Context ictx = new InitialContext(environment); // Lookup for elements in the JNDI. ConnectionFactory cf; try { cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } } try { destination = (Destination) ictx.lookup(jmsAttributes.getJndiDestinationName()); } catch (NameNotFoundException nnfe) { if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_NEVER)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " not found in JNDI."); } } // Create the connection jmsCnx = cf.createConnection(); session = jmsCnx.createSession(false, Session.AUTO_ACKNOWLEDGE); responseSession = jmsCnx.createSession(false, Session.AUTO_ACKNOWLEDGE); jmsCnx.start(); if (destination == null) { // Create destination if it doesn't exist in JNDI if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_QUEUE)) { destination = session.createQueue(jmsAttributes.getJndiDestinationName()); ictx.bind(jmsAttributes.getJndiDestinationName(), destination); } else if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_TOPIC)) { destination = session.createTopic(jmsAttributes.getJndiDestinationName()); ictx.bind(jmsAttributes.getJndiDestinationName(), destination); } else { throw new IllegalStateException("Unknown destination type: " + jmsAttributes.getDestinationType()); } } else { // Check that the object found in JNDI is correct if (jmsAttributes.getCreateDestinationMode().equals(JmsConnectorConstants.CREATE_ALWAYS)) { throw new IllegalStateException("Destination " + jmsAttributes.getJndiDestinationName() + " already exists in JNDI."); } if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_QUEUE) && !(destination instanceof javax.jms.Queue)) { throw new IllegalStateException("Object found in JNDI " + jmsAttributes.getJndiDestinationName() + " does not match declared type 'queue'."); } if (jmsAttributes.getDestinationType().equals(JmsConnectorConstants.TYPE_TOPIC) && !(destination instanceof javax.jms.Topic)) { throw new IllegalStateException("Object found in JNDI " + jmsAttributes.getJndiDestinationName() + " does not match declared type 'topic'."); } } try { responseDestination = (Destination) ictx.lookup(jmsAttributes.getJndiResponseDestinationName()); } catch (NameNotFoundException nnfe) { responseDestination = responseSession.createQueue(jmsAttributes.getJndiResponseDestinationName()); ictx.bind(jmsAttributes.getJndiResponseDestinationName(), responseDestination); } ictx.close(); }
1
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
1
            
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsModule.java
catch (NamingException exc) { if (exc.getCause() instanceof ConnectException) { log.log(Level.WARNING, "ConnectException while trying to reach JNDI server -> launching a collocated JORAM server instead."); JoramServer.start(jmsAttributes.getJndiURL()); cf = (ConnectionFactory) ictx.lookup(jmsAttributes.getJndiConnectionFactoryName()); } else { throw exc; } }
0
unknown (Lib) NoResultException 0 0 0 4
            
// in frascati-studio/src/main/java/org/easysoa/model/Town.java
catch(NoResultException nre){ return null; }
// in frascati-studio/src/main/java/org/easysoa/model/Preference.java
catch(NoResultException nre){ LOG.severe("No preference found for " + preferenceName + "!" ); return null; }
// in frascati-studio/src/main/java/org/easysoa/model/DeploymentServer.java
catch(NoResultException eNoResult){ Logger.getLogger("EasySOALogger").info("No result found for " + server + ". A new register will be created for this server."); return null; }
// in frascati-studio/src/main/java/org/easysoa/impl/UsersImpl.java
catch(NoResultException nre){ return false; }
0 0
unknown (Lib) NoSuchAlgorithmException 0 0 0 1
            
// in frascati-studio/src/main/java/org/easysoa/utils/PasswordManager.java
catch(NoSuchAlgorithmException nsae){ nsae.printStackTrace(); }
0 0
unknown (Lib) NoSuchBeanDefinitionException 1
            
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ParentApplicationContext.java
public final Object getBean (final String name, final Class requiredType) { log.finer("Spring parent context - getBean called for name: " + name); // Try to find the requested Spring bean as an internal interface of the Fractal component. try { Object bean = getFractalInternalInterface(component, name); // TODO: Check if bean is instance of requiredType! return bean; } catch(FrascatiException fe) { } // TODO: The requested bean is perhaps a property from the SCA composite file. // When not found then throw an exception. throw new NoSuchBeanDefinitionException("Unable to find Bean with name " + name); }
0 0 0 0 0
unknown (Lib) NoSuchComponentException 0 0 0 2
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchComponentException e) { logger.severe("Cannot found rmi-stub-primitive component in the " + boundInterfaceOwnerName + "composite!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchComponentException e) { logger.severe("Cannot found org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent component in the " + childName + "composite!"); }
0 0
unknown (Lib) NoSuchElementException 5
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyNode.java
public final void setProperty(String name, Object value) { checkSetRequest(name, value); if ("value".equals(name)) { setValue(value); } else { throw new NoSuchElementException(name); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object getAttributeValue(String name) throws NoSuchElementException, UnsupportedOperationException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isReadable()) { return attr.get(); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Attribute getAttribute(String name) throws NoSuchElementException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } return attr; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Class<?> getAttributeType(String name) throws NoSuchElementException { Attribute attr = (Attribute) attributes.get(name); if (attr != null) { return attr.getType(); } else { throw new NoSuchElementException("No attribute named " + name + "."); } }
0 4
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object getAttributeValue(String name) throws NoSuchElementException, UnsupportedOperationException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isReadable()) { return attr.get(); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Attribute getAttribute(String name) throws NoSuchElementException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } return attr; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Class<?> getAttributeType(String name) throws NoSuchElementException { Attribute attr = (Attribute) attributes.get(name); if (attr != null) { return attr.getType(); } else { throw new NoSuchElementException("No attribute named " + name + "."); } }
0 0 0
unknown (Lib) NoSuchFieldException 0 0 0 3
            
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (java.lang.NoSuchFieldException e) { log.log(Level.SEVERE,"The field relatives to the component cannot be retrieve"); return;
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (NoSuchFieldException e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (NoSuchFieldException e) { e.printStackTrace(); }
0 0
unknown (Lib) NoSuchInterfaceException 11
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Object getFcInterface(String interfaceName) throws NoSuchInterfaceException { log.finest("getFcInterface(\"" + interfaceName + "\") called"); Object result = interfaces.get(interfaceName); if(result == null) { throw new NoSuchInterfaceException(interfaceName); } return result; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Object getFcInternalInterface(String interfaceName) throws NoSuchInterfaceException { log.finest("getFcInternalInterface(\"" + interfaceName + "\") called"); throw new NoSuchInterfaceException(interfaceName); }
0 26
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
public static LifeCycleController getLifeCycleController (final Component component) throws NoSuchInterfaceException { return Fractal.getLifeCycleController(component); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
Override protected final void addIntentHandler(EObjectType baseReference, SCABasicIntentController intentController, IntentHandler intentHandler) throws NoSuchInterfaceException, IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler, baseReference.getName()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
Override protected final void addIntentHandler(EObjectType baseService, SCABasicIntentController intentController, IntentHandler intentHandler) throws NoSuchInterfaceException, IllegalLifeCycleException { intentController.addFcIntentHandler(intentHandler, baseService.getName()); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
Override protected final Component getParentComponent(Component comp) throws NoSuchInterfaceException { Component[] parents = Fractal.getSuperController(comp).getFcSuperComponents(); for (Component parent: parents) { if (Fractal.getNameController(parent).getFcName().endsWith("-container")) { return parent; } } return parents[0]; // No container found, keep the previous behavior: return the first parent }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public Object lookupFc(String clientItfName) throws NoSuchInterfaceException { if (BINDINGS[0].equals(clientItfName)) return this.servant; if (BINDINGS[1].equals(clientItfName)) return this.messageListener; if (BINDINGS[2].equals(clientItfName)) return this.membershipListener; return null; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { if (BINDINGS[0].equals(clientItfName)) this.servant = serverItf; if (BINDINGS[1].equals(clientItfName)) this.messageListener = (MessageListener) serverItf; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = (MembershipListener) serverItf; if ("component".equals(clientItfName)) this.comp = (Component) serverItf; }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public void unbindFc(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException{ if (BINDINGS[0].equals(clientItfName)) this.servant = null; if (BINDINGS[1].equals(clientItfName)) this.messageListener = null; if (BINDINGS[2].equals(clientItfName)) this.membershipListener = null; if ("component".equals(clientItfName)) this.comp = null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
public Object lookupFc(String clItfName) throws NoSuchInterfaceException { if (COMPOSITE_MANAGER_ITF.equals(clItfName)) { return this.compositeManager; } else if (CLASSLOADER_MANAGER_ITF.equals(clItfName)) { return this.classLoderManager; } else if (BINDING_FACTORY_ITF.equals(clItfName)) { return this.bindingFactory; } else { return super.lookupFc(clItfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
public void bindFc(String clItfName, Object srvItf) throws NoSuchInterfaceException { if (COMPOSITE_MANAGER_ITF.equals(clItfName)) { this.compositeManager = (CompositeManager) srvItf; } else if (CLASSLOADER_MANAGER_ITF.equals(clItfName)) { this.classLoderManager = (ClassLoaderManager) srvItf; } else if (BINDING_FACTORY_ITF.equals(clItfName)) { this.bindingFactory = (BindingFactory) srvItf; } else { super.bindFc(clItfName, srvItf); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/FraSCAtiModel.java
public void unbindFc(String clItfName) throws NoSuchInterfaceException { if (COMPOSITE_MANAGER_ITF.equals(clItfName)) { this.compositeManager = null; } else if (CLASSLOADER_MANAGER_ITF.equals(clItfName)) { this.classLoderManager = null; } else if (BINDING_FACTORY_ITF.equals(clItfName)) { this.bindingFactory = null; } else { super.unbindFc(clItfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
private List<ScaIntentNode> getIntentNodes(SCABasicIntentController ic, Interface itf) throws NoSuchInterfaceException { List<ScaIntentNode> nodes = new ArrayList<ScaIntentNode>(); String itfName = itf.getFcItfName(); if ( !itfName.endsWith("-controller") && !itfName.equals("component")) { // no intents on controllers List<IntentHandler> intents = ic.listFcIntentHandler( itf.getFcItfName() ); for (IntentHandler intent : intents) { Component impl = ((Interface) intent).getFcItfOwner(); String name = Fractal.getNameController(impl).getFcName(); nodes.add( new ScaIntentNode((FraSCAtiModel) this.model, ic, name, impl, itf) ); } } return nodes; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public void bindFc(String itfName, Object srvItf) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = (FraSCAtiModel) srvItf; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public Object lookupFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { return this.model; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
public void unbindFc(String itfName) throws NoSuchInterfaceException { if (MODEL_ITF_NAME.equals(itfName)) { this.model = null; } else { throw new NoSuchInterfaceException(itfName); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public ObjectName register(MBeanServer mbs) throws NoSuchInterfaceException, IllegalLifeCycleException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "registering component " + moduleName + " in MBeanServer"); } try { for (Component child : getContentController(component) .getFcSubComponents()) { new JmxComponent(child, prefix).register(mbs); } } catch (NoSuchInterfaceException e) { // current component is not container } mbs.registerMBean(this, moduleName); return moduleName; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
public static List<org.objectweb.fractal.api.Component> getChildren(org.objectweb.fractal.api.Component owner) throws NoSuchInterfaceException { List<org.objectweb.fractal.api.Component> children = new LinkedList<org.objectweb.fractal.api.Component>(); org.objectweb.fractal.api.Component[] parents = Fractal.getSuperController(owner).getFcSuperComponents(); for (org.objectweb.fractal.api.Component c : parents) { ContentController contentController = Fractal.getContentController(c); org.objectweb.fractal.api.Component[] subComponents = contentController.getFcSubComponents(); for (org.objectweb.fractal.api.Component child : subComponents) { children.add(child); } } return children; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
private static Binding getServiceBindingKind(org.objectweb.fractal.api.Component boundInterfaceOwner) throws NoSuchInterfaceException { Binding binding = new Binding(); String boundInterfaceOwnerName = Fractal.getNameController(boundInterfaceOwner).getFcName(); /* * first check the name's end to avoid a null attribute * controller check */ // JGroups binding if (boundInterfaceOwnerName.endsWith("-jgroups-connector")) { binding.setKind(BindingKind.JGROUPS); } // JNA binding else if (boundInterfaceOwnerName.endsWith("-jna-proxy")) { binding.setKind(BindingKind.JNA); } // JMS binding else if (boundInterfaceOwnerName.endsWith("-jms-stub")) { binding.setKind(BindingKind.JMS); } // RMI binding else if (boundInterfaceOwnerName.endsWith("-rmi-stub")) { binding.setKind(BindingKind.RMI); } else { AttributeController attributeController = Fractal.getAttributeController(boundInterfaceOwner); // WS binding if ((attributeController instanceof WsSkeletonContentAttributes) || (attributeController instanceof WsStubContentAttributes)) { binding.setKind(BindingKind.WS); } // RESTful binding else if ((attributeController instanceof RestSkeletonContentAttributes) || (attributeController instanceof RestStubContentAttributes)) { binding.setKind(BindingKind.REST); } // JSON-RPC binding else if ((attributeController instanceof JsonRpcSkeletonContentAttributes) || (attributeController instanceof JsonRpcStubContentAttributes)) { binding.setKind(BindingKind.JSON_RPC); } // UPnP binding else if ((attributeController instanceof UPnPSkeletonContentAttributes) || (attributeController instanceof UPnPStubContentAttributes)) { binding.setKind(BindingKind.UPNP); } // rmi-skelton have no AttributeController // else if ((ac instanceof RmiSkeletonAttributes) // || (ac instanceof RmiStubAttributes) ) { // binding.setKind(BindingKind.RMI); // } } return binding; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Object getFcInterface(String interfaceName) throws NoSuchInterfaceException { log.finest("getFcInterface(\"" + interfaceName + "\") called"); Object result = interfaces.get(interfaceName); if(result == null) { throw new NoSuchInterfaceException(interfaceName); } return result; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/AbstractFrascatiContainer.java
public Object getFcInternalInterface(String interfaceName) throws NoSuchInterfaceException { log.finest("getFcInternalInterface(\"" + interfaceName + "\") called"); throw new NoSuchInterfaceException(interfaceName); }
136
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoService.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' does not exist in " + componentName); }
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/fractal/fractal-bf-connectors-osgi/src/main/java/org/objectweb/fractal/bf/connectors/osgi/OSGiConnector.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiRegistryImpl.java
catch (NoSuchInterfaceException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); }
// in intents/bench/src/main/java/org/ow2/frascati/intent/bench/BenchStatistics.java
catch (NoSuchInterfaceException e) { name = " ## WARNING # can't get component name ##"; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceEventImpl.java
catch(NoSuchInterfaceException nsie) { componentName = "No NameController"; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceEventImpl.java
catch(NoSuchInterfaceException nsie) { return false; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
catch(NoSuchInterfaceException nsie) { // Return as component is not a composite. return; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); }
// in modules/frascati-component-factory-julia/src/main/java/org/ow2/frascati/component/factory/julia/Julia4FraSCAti.java
catch (NoSuchInterfaceException ignored) { }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
catch(NoSuchInterfaceException nsie) { // Should not happen! severe(new ProcessorException(httpBinding, "Internal Fractal error!", nsie)); return; }
// in modules/frascati-explorer/api/src/main/java/org/ow2/frascati/explorer/gui/AbstractSelectionPanel.java
catch(NoSuchInterfaceException nsie) { // nothing to do when the owner component has no LifeCycleController. }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ComponentContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ComponentContext.java
catch (NoSuchInterfaceException e) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ComponentContext.java
catch (NoSuchInterfaceException e) { // Nothing to do }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e) { return Collections.emptyList(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e1) { // Nothing to do // RMI specific case try { String name = Fractal.getNameController(boundInterfaceOwner).getFcName(); if ( name.contains("rmi-stub") ) { entries.add( new DefaultEntry(FcExplorer.getPrefixedName(boundInterface), new RmiBindingWrapper(boundInterface)) ); } } catch (NoSuchInterfaceException e2) { // Should not happen } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e2) { // Should not happen }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ScaInterfaceContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ServiceContext.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in ScaInterfaceContext.getRmiBindingEntriesFromComponentController() }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/context/ServiceContext.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentPropertyTable.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException ex) { logger.log(Level.WARNING, "Cannot find LifeCycleController for this AttributeController owner", ex); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e) { // RMI specific case : AC is in a sub-component try { Component[] children = FcExplorer.getContentController(this.owner).getFcSubComponents(); for (Component child : children) { String name = FcExplorer.getName(child); if ( name.equals("org.objectweb.fractal.bf.connectors.rmi.RmiSkeletonContent") || name.equals("rmi-stub-primitive") ) { ac = Fractal.getAttributeController(child); } } } catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/BindingsPanel.java
catch (NoSuchInterfaceException e1) { // Should not happen : bindings should have an attribute controller logger.log( Level.WARNING, "Cannot find an Attribute Controller for " + FcExplorer.getName(this.owner) + "!" ); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e) { // comp is an SCA composite title.setText("SCA components"); add(title); this.setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); try { ContentController cc = FcExplorer.getContentController( getSelection() ); Component[] components = cc.getFcSubComponents(); for (Component c : components) { try { c.getFcInterface(ComponentContext.SCA_COMPONENT_CONTEXT_CTRL_ITF_NAME); Icon icon = (Icon) ComponentIconProvider.getInstance().newIcon( getSelection() ); JLabel compLabel = new JLabel(FcExplorer.getName(c)); compLabel.setIcon(icon); add(compLabel); } catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ } } } catch (NoSuchInterfaceException e3) { // Nothing to do } }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e2) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/ComponentContentTable.java
catch (NoSuchInterfaceException e3) { // Nothing to do }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveIntentMenuItem.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot retrieve the interface name!"); LOG.log(Level.SEVERE, "Cannot retrieve the interface name!", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (NoSuchInterfaceException e) { return MenuItem.DISABLED_STATUS; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/RemoveComponentMenuItem.java
catch (NoSuchInterfaceException nsie) { String msg = "Cannot get content controller on " + treeView.getParentEntry().getName() + "!"; LOG.log(Level.SEVERE, msg, nsie); JOptionPane.showMessageDialog(null, msg); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/WireAction.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Cannot access to intent controller"); LOG.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddIntentOnDropAction.java
catch (NoSuchInterfaceException nsie) { LOG.log(Level.SEVERE, "Cannot find the Name Controller!", nsie); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddComponentOnDropAction.java
catch (NoSuchInterfaceException nsie) { JOptionPane.showMessageDialog(null, "Can only add an SCA component into an SCA composite!"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (NoSuchInterfaceException e) { LOG.severe("Error while getting component life cycle controller"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (NoSuchInterfaceException nsie) { LOG.severe("Error while getting component name controller"); return; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/UnwireAction.java
catch (NoSuchInterfaceException e1) { e1.printStackTrace(); }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/icon/ComponentIconProvider.java
catch (NoSuchInterfaceException e) { // Nothing to do. }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/icon/ComponentIconProvider.java
catch (NoSuchInterfaceException e) { return lccIcons[0]; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
catch (NoSuchInterfaceException e) { return null; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
catch (NoSuchInterfaceException e) { return "unknown"; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
catch (NoSuchInterfaceException e) { return new Component[0]; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/util/fractal/FractalHelper.java
catch (NoSuchInterfaceException e) { return new Component[0]; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch(NoSuchInterfaceException nsie) { severe(new FactoryException("Cannot get the GenericFactory interface of the " + membraneDescription + " Fractal bootstrap component", nsie)); return; }
// in modules/frascati-component-factory/src/main/java/org/ow2/frascati/component/factory/impl/ComponentFactoryImpl.java
catch(NoSuchInterfaceException nsie) { severe(new FactoryException("Cannot get the TypeFactory interface of the " + membraneDescription + " bootstrap component", nsie)); return; }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
catch(NoSuchInterfaceException nsie) { // Must never happen!!! throw new Error("Internal FraSCAti error!", nsie); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/FraSCAti.java
catch(NoSuchInterfaceException e) { severe(new FrascatiException("Cannot retrieve the '" + serviceName + "' service of an SCA composite!", e)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(element, "Cannot get to the FraSCAti intent controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
catch (NoSuchInterfaceException nsie) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
catch(NoSuchInterfaceException nsie) { error(processingContext, scaBinding, "Service '", serviceName, "' not found"); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractPropertyProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Can't get the SCA property controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
catch(NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller of the enclosing composite", nsie)); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (NoSuchInterfaceException e) { warning(new FrascatiException("Unable to get the service '" + serviceName + "'", e)); return null; }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/MyJulia.java
catch (NoSuchInterfaceException ignored) { }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (NoSuchInterfaceException e) { throw new TinfiRuntimeException(e);
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal binding controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not bind the Fractal component"); exc.initCause(nsie); severe(exc); }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal content controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal internal interface '" + interfaceName + "'"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal lifecycle controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-util/src/main/java/org/ow2/frascati/util/AbstractFractalLoggeable.java
catch(NoSuchInterfaceException nsie) { ExceptionType exc = newException("Can not get the Fractal name controller"); exc.initCause(nsie); severe(exc); return null; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/ClassPathAddCommand.java
catch (NoSuchInterfaceException nsie) { continue; }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/commands/AbstractCommand.java
catch (NoSuchInterfaceException e) { showWarning("The component does not have a 'lifecycle-controller'."); showWarning("Assuming it is ready to use."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/FraSCAtiFScript.java
catch (NoSuchInterfaceException e) { // should not happen e.printStackTrace(); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyNode.java
catch (NoSuchInterfaceException nsie) { // Ignore. }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaReferenceNode.java
catch (NoSuchInterfaceException nsie) { // Ignore. }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException e) { // No intent controller => no intents on this component return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException e) { log.warning("One interface cannot be retrieved on " + comp + "!"); e.printStackTrace(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot access to intent controller", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot find the Name Controller!", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot access to intent controller", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaIntentAxis.java
catch (NoSuchInterfaceException nsie) { log.log(Level.SEVERE, "Cannot retrieve the interface name!", nsie); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e1) { e1.printStackTrace(); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { logger.fine( e.toString() ); return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component => it's a binding component bindingNode = new ScaBindingNode((FraSCAtiModel) this.model, clientItfOwner); result.add( bindingNode ); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException e) { // components may not have a super controller logger.fine( e.toString() ); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaBindingAxis.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the Binding Factory!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaChildAxis.java
catch (NoSuchInterfaceException e) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaChildAxis.java
catch (NoSuchInterfaceException e) { // Not a composite, no children. return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e1) { logger.warning(comp + "should have a Name Controller!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e1) { logger.warning(parent + "should have a Name Controller!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e) { /* The sca-component-controller cannot be found! This component is not a SCA component => Nothing to do! */ }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaParentAxis.java
catch (NoSuchInterfaceException e) { // Not a composite, no children. return Collections.emptySet(); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaServiceNode.java
catch (NoSuchInterfaceException nsie) { // Ignore. }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the ClassLoder Manager!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Error while getting component life cycle controller", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Cannot retrieve the Binding Factory!", nsie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (NoSuchInterfaceException nsie) { logger.log(Level.SEVERE, "Error while getting component name controller", nsie); return; }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new MBeanException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { // current component is not container }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (NoSuchInterfaceException e) { return null; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.WARNING)) { logger.log(Level.WARNING, "error while creating MBean for " + comp, e); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { return null; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { LOG.warning("Cannot find a content controller on " + fullComponentId); return children; }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { /* * The sca-component-controller cannot be found! This component * is not a SCA component => Nothing to do! */ if (childNameController != null) { LOG.info("sca-component-controller cannot be found for component " + childNameController.getFcName()+ ", this component must not be a SCA component"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { log.warning("Cannot find a name controller on " + comp); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { log.warning("Cannot find a lifecycle controller on " + comp); compResource.setStatus(ComponentStatus.STARTED); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { /* * The sca-component-controller cannot be found! This * component is not a SCA component => Nothing to do! */ if (childNameController != null) { log.info("sca-component-controller cannot be found for component " + childNameController.getFcName()+ ", this component must not be a SCA component"); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // No sub-components if (componentNameController != null) { log.info("no sub-component found for component " + componentNameController.getFcName()); } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // RMI skeleton has no servant // Nothing to do, entry is added in // ScaInterfaceContext.getRmiBindingEntriesFromComponentController() if (childName.endsWith("-rmi-skeleton")) { // check that the rmi skeleton is bound to owner Interface delegate = (Interface) bindingController.lookupFc(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); String delegateName = Fractal.getNameController(delegate.getFcItfOwner()).getFcName(); if (delegateName.equals(Fractal.getNameController(owner).getFcName())) { // Interface delegateItf = (Interface) // child.getFcInterface(AbstractSkeleton.DELEGATE_CLIENT_ITF_NAME); binding.setKind(BindingKind.RMI); bindings.add(binding); binding = new Binding(); } } }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { // No properties if(compNameController!=null) { log.info("component "+compNameController.getFcName()+" has no properties"); } }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/MyJulia.java
catch (NoSuchInterfaceException ignored) { }
23
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/Registry.java
catch (NoSuchInterfaceException e) { e.printStackTrace(); throw new FraSCAtiServiceException("service '" + serviceName + "' does not exist in " + componentName); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (NoSuchInterfaceException e) { throw new FraSCAtiOSGiNotFoundServiceException(); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/ScriptEngineComponent.java
catch(NoSuchInterfaceException nsie) { // Must never happen!!! throw new Error("Internal FraSCAti error!", nsie); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (NoSuchInterfaceException e) { throw new TinfiRuntimeException(e);
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaPropertyAxis.java
catch (NoSuchInterfaceException e) { // Not an SCA component String compName = null; try { compName = Fractal.getNameController(comp).getFcName(); } catch (NoSuchInterfaceException e1) { // Should not happen e1.printStackTrace(); } throw new IllegalArgumentException("Invalid source node kind: "+ compName + " is not an SCA component!"); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FractalModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Invalid FraSCAtiModel component."); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaWireAxis.java
catch (NoSuchInterfaceException e) { throw new AssertionError("Node references non-existing interface."); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new MBeanException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, "Error while getting component life cycle controller"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException(e, itfId); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "SCA property controller not available!"); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error while getting component name controller for interface : " + itfName); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (NoSuchInterfaceException nsie) { throw new MyWebApplicationException(nsie, "Error when trying to instrospect interface : " + itf.getFcItfName()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/ResourceUtil.java
catch (NoSuchInterfaceException e) { throw new MyWebApplicationException("Cannot find BindingController for interface : "+itf.getFcItfName()); }
2
unknown (Lib) NoSuchMethodException 0 0 2
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object invokeFunction(String func, Object[] arg1) throws ScriptException, NoSuchMethodException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object invokeMethod(Object object, String method, Object[] args) throws ScriptException, NoSuchMethodException { return null; }
8
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (NoSuchMethodException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (NoSuchMethodException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (NoSuchMethodException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (NoSuchMethodException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (NoSuchMethodException e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
catch (NoSuchMethodException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (NoSuchMethodException e) { warning(new FrascatiException("The service '" + serviceName + "' does not provide the method " + methodName + '(' + paramList.toString() + ')', e)); return null; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchMethodException e) { throw new ReflectionException(e); }
1
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchMethodException e) { throw new ReflectionException(e); }
0
runtime (Lib) NullPointerException 1
            
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
Override protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { if (iHaveMadeThisCall) { return null; } if (name == null) { throw new NullPointerException(); } if (name.indexOf("/") != -1) { throw new ClassNotFoundException(name); } Class<?> clazz = findLoadedClass(name); if (clazz == null) { clazz = fManager.getLoaded(name); } if (clazz == null) { FraSCAtiOSGiClassLoader root = fManager.getClassLoader(); clazz = root.findClass(name); if (clazz == null) { try { iHaveMadeThisCall = true; ClassLoader parent = root.getParent(); if (parent == null) { clazz = ClassLoader.getSystemClassLoader().loadClass( name); } else { clazz = parent.loadClass(name); } } catch (ClassNotFoundException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); } catch (Exception e) { log.log(Level.CONFIG, e.getMessage(), e); } finally { iHaveMadeThisCall = false; } } if (clazz == null) { clazz = fManager.loadClass(name); } if (clazz != null) { fManager.registerClass(name, clazz); } } if (clazz == null) { throw new ClassNotFoundException(name); } if (resolve) { resolveClass(clazz); } return clazz; }
0 2
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public ObjectName register(MBeanServer mbs) throws NoSuchInterfaceException, IllegalLifeCycleException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "registering component " + moduleName + " in MBeanServer"); } try { for (Component child : getContentController(component) .getFcSubComponents()) { new JmxComponent(child, prefix).register(mbs); } } catch (NoSuchInterfaceException e) { // current component is not container } mbs.registerMBean(this, moduleName); return moduleName; }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/FrascatiJmx.java
Destroy public void destroy() throws MBeanRegistrationException, InstanceNotFoundException, MalformedObjectNameException, NullPointerException { clean(); mbs.unregisterMBean(new ObjectName(PACKAGE + ":name=FrascatiJmx")); }
7
            
// in nuxeo/frascati-nuxeo/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeo.java
catch (NullPointerException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch(NullPointerException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (NullPointerException e) { log.log(Level.CONFIG, e.getMessage(), e); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (NullPointerException e) { log.log(Level.CONFIG,e.getMessage(),e); }
// in osgi/frascati-starter/src/main/java/org/ow2/frascati/starter/core/Starter.java
catch (NullPointerException e) { log.warning("NullPointerException thrown" + " trying to call initialize method on " + initializable); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (NullPointerException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/io/IOUtils.java
catch (NullPointerException e) { logg.log(Level.WARNING,e.getMessage(),e); }
0 0
unknown (Lib) NumberFormatException 0 0 0 4
            
// in osgi/frascati-in-osgi/osgi/concierge_r4/src/main/java/org/ow2/frascati/osgi/frameworks/concierge/Main.java
catch(NumberFormatException e){ break; }
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(NumberFormatException nfe) { String msg = propName + " - Number format error in '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; }
0 0
unknown (Lib) ParseException 1
            
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static boolean compileAll(String sourcePath, String targetPath, List<File> classPath) throws IOException, ParseException{ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>(); StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); List<String> pathNameList= new ArrayList<String>(); List<String> options = new ArrayList<String>(); boolean success = true; File target = new File(targetPath); if (!target.exists() && !target.mkdirs()) { throw new IOException("Impossible to create directory " + targetPath); } File src = new File(sourcePath); if (!src.exists() && ! src.mkdirs()) { throw new IOException("Impossible to create directory " + sourcePath); } //Setting the directory for .class files options.add("-d"); options.add(targetPath); String libList = ""; for(int i = 0 ; i < classPath.size(); i++) { File classPathItem = classPath.get(i); if (i > 0) { if(SCAJavaCompilerImpl.isWindows()){ libList = libList.concat(";"); } else{ libList = libList.concat(":"); } } libList = libList.concat(classPathItem.getCanonicalPath()); } options.add("-classpath"); options.add(libList); if(checkFolder(src, pathNameList) == false){ success = false; } Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, compilationUnits); LOG.info("Compiling..."); if (task.call() == false){ success = false; LOG.severe("Fail!"); String errorMessage = "Compilation fail!\n\n"; for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) { LOG.severe(diagnostic.getMessage(null)); errorMessage = errorMessage.concat(diagnostic.getMessage(null) + "\n"); } throw new ParseException(errorMessage, 0); } else { LOG.info("Ok"); LOG.info("Compiled files:"); for (String filePath : pathNameList) { LOG.info(filePath); } } fileManager.close(); return success; }
0 1
            
// in frascati-studio/src/main/java/org/easysoa/compiler/SCAJavaCompilerImpl.java
public static boolean compileAll(String sourcePath, String targetPath, List<File> classPath) throws IOException, ParseException{ JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); DiagnosticCollector<JavaFileObject> diagnostics = new DiagnosticCollector<JavaFileObject>(); StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); List<String> pathNameList= new ArrayList<String>(); List<String> options = new ArrayList<String>(); boolean success = true; File target = new File(targetPath); if (!target.exists() && !target.mkdirs()) { throw new IOException("Impossible to create directory " + targetPath); } File src = new File(sourcePath); if (!src.exists() && ! src.mkdirs()) { throw new IOException("Impossible to create directory " + sourcePath); } //Setting the directory for .class files options.add("-d"); options.add(targetPath); String libList = ""; for(int i = 0 ; i < classPath.size(); i++) { File classPathItem = classPath.get(i); if (i > 0) { if(SCAJavaCompilerImpl.isWindows()){ libList = libList.concat(";"); } else{ libList = libList.concat(":"); } } libList = libList.concat(classPathItem.getCanonicalPath()); } options.add("-classpath"); options.add(libList); if(checkFolder(src, pathNameList) == false){ success = false; } Iterable<? extends JavaFileObject> compilationUnits = fileManager.getJavaFileObjectsFromStrings(pathNameList); JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager, diagnostics, options, null, compilationUnits); LOG.info("Compiling..."); if (task.call() == false){ success = false; LOG.severe("Fail!"); String errorMessage = "Compilation fail!\n\n"; for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) { LOG.severe(diagnostic.getMessage(null)); errorMessage = errorMessage.concat(diagnostic.getMessage(null) + "\n"); } throw new ParseException(errorMessage, 0); } else { LOG.info("Ok"); LOG.info("Compiled files:"); for (String filePath : pathNameList) { LOG.info(filePath); } } fileManager.close(); return success; }
2
            
// in tools/src/main/java/org/ow2/frascati/factory/FactoryCommandLine.java
catch (ParseException e) { e.printStackTrace(); }
// in tools/src/main/java/org/ow2/frascati/factory/WebServiceCommandLine.java
catch (ParseException e) { e.printStackTrace(); }
0 0
checked (Domain) ParserException
public class ParserException extends FrascatiException {

  // TODO set version uid
  private static final long serialVersionUID = 0L;

  /**
   * QName associated to the exception.
   */
  private QName qname;

  /**
   * @see FrascatiException#FrascatiException()
   */
  public ParserException() {
      super();
  }

  /**
   * @see FrascatiException#FrascatiException(String)
   */
  public ParserException(String message) {
      super(message);
  }

  /**
   * @see FrascatiException#FrascatiException(String, Throwable)
   */
  public ParserException(String message, Throwable cause) {
      super(message, cause);
  }

  /**
   * @see FrascatiException#FrascatiException(Throwable)
   */
  public ParserException(Throwable cause) {
      super(cause);
  }

  /**
   * Constructs a new ParserException instance.
   */
  public ParserException(QName qname, String message) {
      super(message);
      setQName(qname);
  }

  /**
   * Constructs a new ParserException instance.
   */
  public ParserException(QName qname, String message, Throwable cause) {
      super(message, cause);
      setQName(qname);
  }

 /**
   * Gets the qname associated to the exception.
   */
  public final QName getQName() {
      return this.qname;
  }

  /**
   * Sets the qname associated to the exception.
   */
  public final void setQName(QName qname) {
      this.qname = qname;
  }

}
0 0 7
            
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaContributionParser.java
public final ContributionType parse(QName qname, ParsingContext parsingContext) throws ParserException { return parseDocument(qname, parsingContext).getContribution(); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaParser.java
public final EObject parse(QName qname, ParsingContext parsingContext) throws ParserException { String documentUri = toStringURI(qname); log.fine("Getting EMF resource '" + documentUri + "'..."); // Parse the SCA document indicated by its uri. URI resourceUri = URI.createURI(documentUri); Resource resource; try { resource = resourceSet.getResource(resourceUri, true); } catch(Exception e) { Throwable cause = e.getCause(); if(cause instanceof FileNotFoundException) { warning(new ParserException(qname, "'" + documentUri + "' not found", cause)); } else { warning(new ParserException(qname, "'" + documentUri + "' invalid content", cause)); } return null; } // ResourceSet acts as a Resource cache, i.e., get several times a same URI always returns the same resource. // But when several <sca.implementation.composite name="C"> are declared, FraSCAti Assembly Factory requires // that different EMF object graphes are instantiated. This issue was pointed out by Jonathan. // So it is needed to clear the Resource cache after each getResource(). resourceSet.getResources().clear(); // Get the first element of the loaded resource. EObject result = resource.getContents().get(0); // Apply all resolvers. for(Resolver<EObject> resolver : resolvers) { result = resolver.resolve(result, parsingContext); } // Store the resourceUri as the document location URI of the parsed document root and all its contents. storeLocationURI(result, resourceUri, parsingContext); return result; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/AbstractDelegateScaParser.java
protected final DocumentRoot parseDocument(QName qn, ParsingContext parsingContext) throws ParserException { QName qname = qn; String localPart = qname.getLocalPart(); if(!localPart.endsWith(fileExtension)) { qname = new QName(qname.getNamespaceURI(), localPart + fileExtension, qname.getPrefix()); } return scaParser.parse(qname, parsingContext); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/AbstractCompositeParser.java
public Composite parse(QName qname, ParsingContext parsingContext) throws ParserException { // TODO following code must be factorized with similar code in ScaConstrainingType String compositeUri = asStringURI(qname); // Search all URLs in the class loader matching the composite uri. List<URL> compositeUrls; try { compositeUrls = Collections.list(parsingContext.getClassLoader().getResources(compositeUri)); } catch(IOException ioe) { severe(new ParserException(qname, qname.toString(), ioe)); return null; } log.fine("URLs for " + compositeUri + " are:"); for(URL url : compositeUrls) { log.fine("* " + url); } // // Compute the composite URI // QName compositeQN = null; if (compositeUrls.size() > 0) { compositeQN = new QName(compositeUrls.remove(0).toString()); } else { // Composite file not loaded as resource of the current class loader // Try to load from the local file system or an URL. compositeQN = new QName(compositeUri); } Composite composite = parseDocument(compositeQN, parsingContext).getComposite(); // Include other composite files found in the class loader. List<Include> includes = composite.getInclude(); for(URL url : compositeUrls) { Include include = ScaFactory.eINSTANCE.createInclude(); include.setName(new QName(url.toString())); includes.add(include); } return composite; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaConstrainingTypeParser.java
public final ConstrainingType parse(QName qname, ParsingContext parsingContext) throws ParserException { // TODO following code must be factorized with similar code in AbstractCompositeParser // perhaps could be put into AbstractDelegateScaParser#parseDocument. String constrainingTypeUri = asStringURI(qname); // Search the URL in the class loader matching the constraining type uri. URL url = parsingContext.getResource(constrainingTypeUri); log.fine("URL for " + constrainingTypeUri + " is: " + url); // // Compute the constraining type URI // QName constrainingTypeQN = null; if (url != null) { constrainingTypeQN = new QName(url.toString()); } else { // Composite file not loaded as resource of the current class loader // Try to load from the local file system or an URL. constrainingTypeQN = new QName(constrainingTypeUri); } return parseDocument(constrainingTypeQN, parsingContext).getConstrainingType(); }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaCompositeParser.java
public final Composite parse(QName qname, ParsingContext parsingContext) throws ParserException { Composite composite = super.parse(qname, parsingContext); // resolving on SCA model log.fine("Executing resolvers on " + qname); for(Resolver<Composite> resolver : resolvers) { composite = resolver.resolve(composite, parsingContext); } int nbErrors = parsingContext.getErrors(); if(nbErrors == 0) { // Try to validate try { Diagnostic diagnostic = Diagnostician.INSTANCE.validate(composite); if (diagnostic.getSeverity() != Diagnostic.OK) { StringBuffer stringBuffer = new StringBuffer(); printDiagnostic(diagnostic, "", stringBuffer); parsingContext.warning(stringBuffer.toString()); } // Write resulting composite file if debug is true if (debug || System.getProperty(OUTPUT_DIRECTORY_PROPERTY_NAME) != null) { try { writeComposite(composite); } catch (IOException ioe) { severe(new ParserException(qname, "Error when writting debug composite file", ioe)); } } } catch (Exception e) { // Report the exception. log.warning(qname + " can not be validated: " + e.getMessage()); parsingContext.error("SCA composite '" + qname + "' can not be validated: " + e.getMessage()); } } else { warning(new ParserException(qname, nbErrors + " error" + ((nbErrors==1)?"":"s") + " found in " + qname.toString())); } return composite; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/core/ScaComponentTypeParser.java
public final ComponentType parse(QName qname, ParsingContext parsingContext) throws ParserException { return parseDocument(qname, parsingContext).getComponentType(); }
5
            
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ConstrainingTypeResolver.java
catch(ParserException parserException) { if(parserException.getCause() instanceof IOException) { parsingContext.error("constraining type '" + qname.toString() + "' not found"); } else { parsingContext.error("constraining type '" + qname.toString() + "' invalid content"); } return null; }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/IncludeResolver.java
catch (ParserException e) { if(e.getCause() instanceof IOException) { parsingContext.error("<sca:include name='" + include.getName() + "'/> composite '" + include.getName() + "' not found"); } else { parsingContext.error("<sca:include name='" + include.getName() + "'/> invalid content"); } continue; // the for loop. }
// in modules/frascati-sca-parser/src/main/java/org/ow2/frascati/parser/resolver/ImplementationCompositeResolver.java
catch(ParserException pe) { parsingContext.error("<sca:implementation name='" + scaImplementation.getName() + "'> not loaded"); continue; // pass to the next component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ParserException pe) { severe(new ManagerException("Error when loading the contribution file " + contribution + " with the SCA XML Processor", pe)); return new Component[0]; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ParserException pe) { warning(new ManagerException("Error when parsing the composite file '" + qname + "'", pe)); return null; }
0 0
unknown (Lib) PatternSyntaxException 0 0 0 3
            
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (PatternSyntaxException e) { log.log(Level.INFO, "The syntax of the regular expression is no valid" + e.getMessage()); return; }
// in osgi/frascati-resources/src/main/java/org/ow2/frascati/util/resource/AbstractResource.java
catch (PatternSyntaxException e) { log.log(Level.INFO, "The syntax of the regular expression is no valid" + e.getMessage()); return; }
// in osgi/bundles/introspector/src/main/java/org/ow2/frascati/osgi/introspect/impl/IntrospectImpl.java
catch (PatternSyntaxException e) { log.log(Level.WARNING,e.getMessage(),e); }
0 0
checked (Domain) ProcessorException
public class ProcessorException extends FrascatiException {

  private static final long serialVersionUID = 1369416319243909331L;

  /**
   * The element associated to this exception.
   */
  private Object element;

  /**
   * Get the element associated to this exception.
   *
   * @return the element associated to this exception.
   */
  public final Object getElement() {
    return this.element;
  }

  /**
   * Construct a processor exception instance.
   *
   * @param element the element associated to this exception.
   */
  public ProcessorException(Object element) {
    super();
    this.element = element;
  }

  /**
   * Construct a processor exception instance.
   *
   * @param element the element associated to this exception.
   * @param message the message of this exception.
   */
  public ProcessorException(Object element, String message) {
    super(message);
    this.element = element;
  }

  /**
   * Constructs a processor exception instance.
   *
   * @param element the element associated to this exception.
   * @param message the message of this exception.
   * @param cause the cause of this exception.
   */
  public ProcessorException(Object element, String message, Throwable cause) {
    super(message, cause);
    this.element = element;
  }

  /**
   * Construct a processor exception instance.
   *
   * @param element the element associated to this exception.
   * @param cause the cause of this exception.
   */
  public ProcessorException(Object element, Throwable cause) {
    super(cause);
    this.element = element;
  }

}
9
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doInstantiate(Composite composite, ProcessingContext processingContext) throws ProcessorException { // Instantiate the composite container. Component containerComponent = null; // Create a container for root composites only and // not for composites enclosed into composites. boolean isTheRootComposite = processingContext.getRootComposite() == composite; if(isTheRootComposite) { try { logDo(processingContext, composite, "instantiate the composite container"); containerComponent = componentFactory.createScaCompositeComponent(null); logDone(processingContext, composite, "instantiate the composite container"); } catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to create the composite container", fe)); return; } // Set the name for the composite container. setComponentName(composite, "composite container", containerComponent, composite.getName() + "-container", processingContext); } // Retrieve the composite type from the processing context. ComponentType compositeComponentType = getFractalComponentType(composite, processingContext); // Instantiate the composite component. Component compositeComponent; try { logDo(processingContext, composite, "instantiate the composite component"); compositeComponent = componentFactory.createScaCompositeComponent(compositeComponentType); logDone(processingContext, composite, "instantiate the composite component"); } catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); } // Keep the composite component into the processing context. processingContext.putData(composite, Component.class, compositeComponent); // Set the name for this assembly. setComponentName(composite, "composite", compositeComponent, composite.getName(), processingContext); // Add the SCA composite into the composite container. if(isTheRootComposite) { addFractalSubComponent(containerComponent, compositeComponent); } // Instantiate the composite components. instantiate(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Instantiate the composite services. instantiate(composite, SCA_SERVICE, composite.getService(), serviceProcessor, processingContext); // Instantiate composite references. instantiate(composite, SCA_REFERENCE, composite.getReference(), referenceProcessor, processingContext); // Instantiate composite properties. instantiate(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Instantiate the composite wires. instantiate(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
private Component createProxyComponent(JnaBinding binding, ProcessingContext ctx) throws ProcessorException { Class<?> cls = getBaseReferenceJavaInterface(binding, ctx); try { Object library = Native.loadLibrary(binding.getLibrary(), cls); ComponentType proxyType = tf .createComponentType(new InterfaceType[] { tf .createInterfaceType(JNA_ITF, cls.getName(), false, false, false) }); return cf.createComponent(proxyType, "primitive", library); } catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); } catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); } }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doInstantiate(JnaBinding binding, ProcessingContext ctx) throws ProcessorException { Component proxy = createProxyComponent(binding, ctx); Component port = getFractalComponent(binding, ctx); try { getNameController(proxy).setFcName( getNameController(port).getFcName() + "-jna-proxy"); for (Component composite : getSuperController(port) .getFcSuperComponents()) { addFractalSubComponent(composite, proxy); } BaseReference reference = getBaseReference(binding); bindFractalComponent(port, reference.getName(), proxy.getFcInterface(JNA_ITF)); } catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); } logFine(ctx, binding, "importing done"); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
Override protected final void doCheck(JMSBinding jmsBinding, ProcessingContext processingContext) throws ProcessorException { // Check if getUri() is well-formed. if (jmsBinding.getUri() != null && !jmsBinding.getUri().equals("")) { Matcher matcher = JMS_URI_PATTERN.matcher(jmsBinding.getUri()); if (!matcher.matches()) { throw new ProcessorException(jmsBinding, "JMS URI is not well formed."); } String jmsvariant = matcher.group(1); try { jmsvariant = URLDecoder.decode(jmsvariant, "UTF-8"); } catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); } if (!jmsvariant.equals("jndi")) { throw new ProcessorException(jmsBinding, "Only jms:jndi: variant is supported."); } // When the @uri attribute is specified, the destination element // MUST NOT be present if (jmsBinding.getDestination() != null) { throw new ProcessorException(jmsBinding, "Binding can't have both a JMS URI and a destination element."); } } // Default checking done on any SCA binding. super.doCheck(jmsBinding, processingContext); }
6
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(Exception e) { // Should never happen but we never know! throw new ProcessorException(e); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
catch (Exception e) { throw new ProcessorException(binding, e); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); }
124
            
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
Override protected final void doCheck(OsgiImplementation osgiImplementation, ProcessingContext processingContext) throws ProcessorException { String osgiImplementationBundle = osgiImplementation.getBundle(); if(isNullOrEmpty(osgiImplementationBundle)) { error(processingContext, osgiImplementation, "The attribute 'bundle' must be set"); } else { // TODO check that bundles are available? } // check attributes 'policySets' and 'requires'. checkImplementation(osgiImplementation, processingContext); }
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
Override protected final void doGenerate(OsgiImplementation osgiImplementation, ProcessingContext processingContext) throws ProcessorException { try { getComponentFactory().generateMembrane(getFractalComponentType(osgiImplementation, processingContext), "osgiPrimitive", osgiImplementation.getBundle()); } catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); } }
// in modules/frascati-implementation-osgi/src/main/java/org/ow2/frascati/implementation/osgi/FrascatiImplementationOsgiProcessor.java
Override protected final void doInstantiate(OsgiImplementation osgiImplementation, ProcessingContext processingContext) throws ProcessorException { // get instance of an OSGI primitive component Component component; try { component = getComponentFactory().createComponent(getFractalComponentType(osgiImplementation, processingContext), "osgiPrimitive", osgiImplementation.getBundle()); } catch (FactoryException te) { severe(new ProcessorException(osgiImplementation, "Error while creating OSGI component instance", te)); return; } // Store the created component into the processing context. processingContext.putData(osgiImplementation, Component.class, component); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
Override protected final void doCheck(HTTPBinding httpBinding, ProcessingContext processingContext) throws ProcessorException { checkAttributeMustBeSet(httpBinding, "uri", httpBinding.getUri(), processingContext); checkAttributeNotSupported(httpBinding, "name", httpBinding.getName() != null, processingContext); if(!hasBaseService(httpBinding)) { error(processingContext, httpBinding, "Can only be child of <sca:service>"); } else { // Get the Java class of the interface of the service. Class<?> interfaceClass = getBaseServiceJavaInterface(httpBinding, processingContext); if(interfaceClass != null) { if(!Servlet.class.isAssignableFrom(interfaceClass)) { error(processingContext, httpBinding, "The service's interface '", interfaceClass.getCanonicalName(), "' must be compatible with '", Servlet.class.getCanonicalName(), "'"); } } } checkBinding(httpBinding, processingContext); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
Override protected final void doGenerate(HTTPBinding httpBinding, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, httpBinding, "nothing to generate"); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
Override protected final void doInstantiate(HTTPBinding httpBinding, ProcessingContext processingContext) throws ProcessorException { // The following is safe as it was checked in the method check(). BaseService service = getBaseService(httpBinding); Servlet servlet; try { // Get the component from the processing context. Component componentToBind = getFractalComponent(httpBinding, processingContext); // The following cast is safe as it was checked in the method check(). servlet = (Servlet)componentToBind.getFcInterface(service.getName()); } catch(NoSuchInterfaceException nsie) { // Should not happen! severe(new ProcessorException(httpBinding, "Internal Fractal error!", nsie)); return; } // TODO Here use Tinfi or Assembly Factory to create the binding component. final HttpBinding bindingHttp = new HttpBinding(); bindingHttp.uri = completeBindingURI(httpBinding); bindingHttp.servlet = servlet; bindingHttp.servletManager = servletManager; // TODO: Following could be moved into complete() or @Init method of the binding component. // // It seems to be not needed to run a Thread to initialize the new binding. // Moreover Google App Engine does not allow us to create threads. // // new Thread() { // public void run() { try { bindingHttp.initialize(); } catch(Exception exc) { log.throwing("", "", exc); } // } // }.start(); logFine(processingContext, httpBinding, "exporting done"); }
// in modules/frascati-binding-http/src/main/java/org/ow2/frascati/binding/http/FrascatiBindingHttpProcessor.java
Override protected final void doComplete(HTTPBinding httpBinding, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, httpBinding, "nothing to complete"); }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
Override protected final void doCheck(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // Obtain the property type for the given property. QName propertyType = processingContext.getData(property, QName.class); // When no propertyType set then return immediatly as this processor has nothing to do. if(propertyType == null) { return; } // Retrieve the package name associated to this property type. String packageName = NameConverter.standard.toPackageName(propertyType.getNamespaceURI()); try { // try to retrieve the JAXB package info. log.fine("Try to load " + packageName + ".package-info.class"); processingContext.loadClass(packageName + ".package-info"); log.fine(packageName + ".package-info.class found."); // This property type processor is attached to the given property. processingContext.putData(property, Processor.class, this); // Compute the property value. doComplete(property, processingContext); } catch(ClassNotFoundException cnfe) { log.fine("No " + packageName + ".package-info.class found."); return; } }
// in modules/frascati-property-jaxb/src/main/java/org/ow2/frascati/property/jaxb/ScaPropertyTypeJaxbProcessor.java
Override protected final void doComplete(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // Obtain the property type for the given property. QName propertyType = processingContext.getData(property, QName.class); // Set the property object as a root XML element. Map<Object, Object> options = new HashMap<Object, Object>(); options.put(XMLResource.OPTION_ROOT_OBJECTS, Collections.singletonList(property)); // Save the property resource in a new XML document. Document document = ((XMLResource) property.eResource()).save(null, options, null); // The XML node defining this SCA property value. Node node = document.getChildNodes().item(0).getChildNodes().item(0); // Search the first XML element. while(node != null && node.getNodeType() != Node.ELEMENT_NODE) { node = node.getNextSibling(); } // No XML element found. if(node == null) { error(processingContext, property, "No XML element"); return; } // Retrieve the package name. String packageName = NameConverter.standard.toPackageName(propertyType.getNamespaceURI()); // Retrieve the JAXB package info class. Class<?> packageInfoClass; try { packageInfoClass = processingContext.loadClass(packageName + ".package-info"); } catch (ClassNotFoundException cnfe) { // Should never happen but we never know. severe(new ProcessorException(property, "JAXB package info for " + toString(property) + " not found", cnfe)); return; } // Retrieve the JAXB Unmarshaller for the cache. Unmarshaller unmarshaller = cacheOfUnmarshallers.get(packageInfoClass); // If not found, then create the JAXB unmarshaller. if(unmarshaller == null) { // Create the JAXB context for the Java package of the property type. JAXBContext jaxbContext; try { jaxbContext = JAXBContext.newInstance(packageName, processingContext.getClassLoader()); } catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB context failed for " + toString(property), je)); return; } // Create the JAXB unmarshaller. try { unmarshaller = jaxbContext.createUnmarshaller(); // Turn on XML validation. // Not supported by sun's JAXB implementation. // unmarshaller.setValidating(true); } catch (JAXBException je) { severe(new ProcessorException(property, "create JAXB unmarshaller failed for " + toString(property), je)); return; } // Store the unmarshaller into the cache. cacheOfUnmarshallers.put(packageInfoClass, unmarshaller); } // Unmarshal the property node with JAXB. Object computedPropertyValue; try { computedPropertyValue = unmarshaller.unmarshal((Element) node); } catch (JAXBException je) { error(processingContext, property, "XML unmarshalling error: " + je.getMessage()); return; } // Attach the computed property value to the given property. processingContext.putData(property, Object.class, computedPropertyValue); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
Override protected final void doCheck(ScriptImplementation scriptImplementation, ProcessingContext processingContext) throws ProcessorException { String scriptImplementationScript = scriptImplementation.getScript(); if(isNullOrEmpty(scriptImplementationScript)) { error(processingContext, scriptImplementation, "The attribute 'script' must be set"); } else { if(processingContext.getResource(scriptImplementationScript) == null) { error(processingContext, scriptImplementation, "Script '", scriptImplementationScript, "' not found"); } } // TODO check that the required script engine is available? // TODO evaluate the script to see it is correct // check attributes 'policySets' and 'requires'. checkImplementation(scriptImplementation, processingContext); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
Override protected final void doInstantiate(ScriptImplementation scriptImplementation, ProcessingContext processingContext) throws ProcessorException { // Initialize the script engine manager if not already done. // At this moment the FraSCAti assembly factory runtime classloader // is initialized. // // TODO: Perhaps the script engine manager should be instantiated // each time a ScriptEngine is instantiated in order to be sure that // all script engines present in the runtime classloader are useable. // For instance, we could imagine a reconfiguration scenario where // we dynamically add a new script engine at runtime. if(scriptEngineManager == null) { initializeScriptEngineManager(processingContext.getClassLoader()); } // Get the script. String script = scriptImplementation.getScript(); log.info("Create an SCA component for <frascati:implementation.script script=\"" + script + "\" language=\"" + scriptImplementation.getLanguage() + "\"> and the Fractal component type " + getFractalComponentType(scriptImplementation, processingContext).toString()); // Obtain an input stream reader to the script. // TODO: Could 'script' contain a url or filename, and not just a resource in the classpath? // TODO move into check() URL scriptUrl = processingContext.getResource(script); if(scriptUrl == null) { severe(new ProcessorException(scriptImplementation, "Script '" + script + "' not found")); return; } InputStream scriptInputStream = null; try { scriptInputStream = scriptUrl.openStream(); } catch (IOException ioe) { severe(new ProcessorException(scriptImplementation, "Script '" + script + "' not found", ioe)); return; } InputStreamReader scriptReader = new InputStreamReader(scriptInputStream); // Obtain a scripting engine for evaluating the script. // TODO: Use scriptImplementation.getLanguage() if not null // TODO move into check String scriptExtension = script.substring(script.lastIndexOf('.') + 1); ScriptEngine scriptEngine = scriptEngineManager.getEngineByExtension(scriptExtension); if(scriptEngine == null) { severe(new ProcessorException(scriptImplementation, "ScriptEngine for '" + script + "' not found")); return; } // Add a reference to the SCA domain into the script engine scriptEngine.put("domain", compositeManager.getTopLevelDomainComposite()); // Switch the current thread's context class loader to the processing context class loader // in order to be sure that the script will be evaluated into the right class loader. ClassLoader previousClassLoader = FrascatiClassLoader.getAndSetCurrentThreadContextClassLoader(processingContext.getClassLoader()); // Evaluate the script. try { scriptEngine.eval(scriptReader); } catch(ScriptException se) { severe(new ProcessorException(scriptImplementation, "Error when evaluating '" + script + "'", se)); return; } finally { // Restore the previous class loader. FrascatiClassLoader.setCurrentThreadContextClassLoader(previousClassLoader); } // Create the Fractal component as a composite. Component component = doInstantiate(scriptImplementation, processingContext, scriptEngine); // Create a primitive component encapsulating the scripting engine. try { ScriptEngineComponent scriptEngineContent = new ScriptEngineComponent(component, scriptEngine); ComponentType scriptEngineType = tf.createComponentType(new InterfaceType[] { // type for attribute-controller tf.createInterfaceType("attribute-controller", ScriptEngineAttributes.class.getCanonicalName(), false, false, false) }); Component scriptEngineComponent = getComponentFactory().createComponent(scriptEngineType, "primitive", scriptEngineContent); // add the scripting engine component as a sub component of the SCA composite. addFractalSubComponent(component, scriptEngineComponent); } catch(Exception exc) { // This should not happen! severe(new ProcessorException(scriptImplementation, "Internal Fractal error!", exc)); return; } }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
Override protected final void doCheck(WSDLPortType wsdlPortType, ProcessingContext processingContext) throws ProcessorException { // Check the attribute 'interface'. String wsdlInterface = wsdlPortType.getInterface(); if(wsdlInterface == null || wsdlInterface.equals("") ) { error(processingContext, wsdlPortType, "The attribute 'interface' must be set"); } else { PortType portType = getPortType(wsdlPortType, processingContext, "interface", wsdlInterface); if(portType != null) { QName qname = portType.getQName(); // Compute the Java interface name for the WSDL port type. String localPart = qname.getLocalPart(); String javaInterface = NameConverter.standard.toPackageName(qname.getNamespaceURI()) + '.' + Character.toUpperCase(localPart.charAt(0)) + localPart.substring(1); log.info("The Java interface for '" + wsdlInterface + "' is " + javaInterface); // Load the Java interface. Class<?> clazz = null; try { clazz = processingContext.loadClass(javaInterface); } catch (ClassNotFoundException cnfe) { // If the Java interface is not found then this requires to compile WSDL to Java. } // TODO: check that this is a Java interface and not a Java class. // Store the Java class into the processing context. storeJavaInterface(wsdlPortType, processingContext, javaInterface, clazz); } } // Check the attribute 'callbackInterface'. wsdlInterface = wsdlPortType.getCallbackInterface(); if(wsdlInterface != null) { getPortType(wsdlPortType, processingContext, "callback interface", wsdlInterface); } }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
private PortType getPortType(WSDLPortType wsdlPortType, ProcessingContext processingContext, String what, String scaWsdlInterface) throws ProcessorException { logDo(processingContext, wsdlPortType, "check the WSDL " + what + " " + scaWsdlInterface); PortType portType = null; // Compute uri and portTypeName from the SCA WSDL interface. String wsdlUri = null; String portTypeName = null; int idx = scaWsdlInterface.indexOf("#wsdl.interface("); if(idx != -1 && scaWsdlInterface.endsWith(")")) { wsdlUri = scaWsdlInterface.substring(0, idx); portTypeName = scaWsdlInterface.substring(idx + ("#wsdl.interface(").length(), scaWsdlInterface.length() - 1); } if(wsdlUri == null || portTypeName == null) { error(processingContext, wsdlPortType, "Invalid 'interface' value, must be uri#wsdl.interface(portType)"); } else { // Search the WSDL file from the processing context's class loader. URL url = processingContext.getResource(wsdlUri); if(url != null) { wsdlUri = url.toString(); } // Read the requested WSDL definition. Definition definition = null; try { definition = this.wsdlCompiler.readWSDL(wsdlUri); } catch(WSDLException we) { processingContext.error(toString(wsdlPortType) + " " + wsdlUri + ": " + we.getMessage()); return null; } // Search the requested port type. portType = definition.getPortType(new QName(definition.getTargetNamespace(), portTypeName)); if(portType == null) { error(processingContext, wsdlPortType, "Unknown port type name '", portTypeName, "'"); return null; } } logDone(processingContext, wsdlPortType, "check the WSDL " + what + " " + scaWsdlInterface); return portType; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
Override protected final void doGenerate(WSDLPortType wsdlPortType, ProcessingContext processingContext) throws ProcessorException { // If no Java interface computed during doCheck() then compile the WDSL file. if(getClass(wsdlPortType, processingContext) == null) { String scaWsdlInterface = wsdlPortType.getInterface(); int idx = scaWsdlInterface.indexOf("#wsdl.interface("); String wsdlUri = scaWsdlInterface.substring(0, idx); // Search the WSDL file from the processing context's class loader. URL url = processingContext.getResource(wsdlUri); if(url != null) { wsdlUri = url.toString(); } // Compile the WSDL description. try { this.wsdlCompiler.compileWSDL(wsdlUri, processingContext); } catch(Exception exc) { severe(new ProcessorException("Error when compiling WSDL", exc)); return; } } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaWireProcessor.java
Override protected final void doCheck(Wire wire, ProcessingContext processingContext) throws ProcessorException { // Get the map of components stored into the processing context. ComponentMap mapOfComponents = processingContext.getData(wire.eContainer(), ComponentMap.class); if(wire.getSource() == null) { error(processingContext, wire, "The attribute 'source' must be set"); } else { if(wire.getSource2() == null) { // Retrieve both source component and reference. String source[] = wire.getSource().split("/"); if(source.length != 2) { error(processingContext, wire, "The attribute 'source' must be 'componentName/referenceName'"); } else { Component sourceComponent = mapOfComponents.get(source[0]); if(sourceComponent == null) { error(processingContext, wire, "Unknown source component '", source[0], "'"); } else { ComponentReference sourceReference = null; for(ComponentReference reference : sourceComponent.getReference()) { if(source[1].equals(reference.getName())) { sourceReference = reference; break; // the for loop } } if(sourceReference == null) { error(processingContext, wire, "Unknown source reference '", source[1], "'"); } else { wire.setSource2(sourceReference); } } } } } if(wire.getTarget() == null) { error(processingContext, wire, "The attribute 'target' must be set"); } else { if(wire.getTarget2() == null) { // Retrieve both target component and service. String target[] = wire.getTarget().split("/"); if(target.length != 2) { error(processingContext, wire, "The attribute 'target' must be 'componentName/serviceName'"); } else { org.eclipse.stp.sca.Component targetComponent = mapOfComponents.get(target[0]); if(targetComponent == null) { error(processingContext, wire, "Unknown target component '", target[0], "'"); } else { ComponentService targetService = null; for(ComponentService service : targetComponent.getService()) { if(target[1].equals(service.getName())) { targetService = service; break; // the for loop } } if(targetService == null) { error(processingContext, wire, "Unknown target service '", target[1], "'"); } else { wire.setTarget2(targetService); } } } } } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaWireProcessor.java
Override protected final void doComplete(Wire wire, ProcessingContext processingContext) throws ProcessorException { // Retrieve source reference, source reference name, source reference multiplicity, // source component, and source Fractal component. ComponentReference sourceReference = wire.getSource2(); String sourceReferenceName = sourceReference.getName(); Component sourceComponent = (Component)sourceReference.eContainer(); Multiplicity sourceReferenceMultiplicity = sourceReference.getMultiplicity(); org.objectweb.fractal.api.Component sourceComponentInstance = getFractalComponent(sourceComponent, processingContext); // Retrieve target service, target service name, target component, and target Fractal component. ComponentService targetService = wire.getTarget2(); String targetServiceName = targetService.getName(); Component targetComponent = (Component)targetService.eContainer(); org.objectweb.fractal.api.Component targetComponentInstance = getFractalComponent(targetComponent, processingContext); // when the source reference multiplicity is 0..n or 1..n // then add the target component name to the reference source name. // In this way, each Fractal collection client interface has a unique name. if(Multiplicity._0N.equals(sourceReferenceMultiplicity) || Multiplicity._1N.equals(sourceReferenceMultiplicity)) { sourceReferenceName = sourceReferenceName + '-' + targetComponent.getName(); } // etablish a Fractal binding between source reference and target service. try { bindFractalComponent( sourceComponentInstance, sourceReferenceName, getFractalInterface(targetComponentInstance, targetServiceName)); } catch (Exception e) { severe(new ProcessorException(wire, "Cannot etablish " + toString(wire), e)); return; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeServiceProcessor.java
Override protected final void doCheck(Service service, ProcessingContext processingContext) throws ProcessorException { // Check the attribute 'promote'. if(service.getPromote() == null) { error(processingContext, service, "The attribute 'promote' must be set"); } else { if(service.getPromote2() == null) { // Retrieve both target component and service. String promote[] = service.getPromote().split("/"); if(promote.length != 2) { error(processingContext, service, "The attribute 'promote' must be 'componentName/serviceName'"); } else { org.eclipse.stp.sca.Component promotedComponent = processingContext.getData(service.eContainer(), ComponentMap.class).get(promote[0]); if(promotedComponent == null) { error(processingContext, service, "Unknown promoted component '", promote[0], "'"); } else { ComponentService promotedService = null; for(ComponentService cs : promotedComponent.getService()) { if(promote[1].equals(cs.getName())) { promotedService = cs; break; // the for loop } } if(promotedService == null) { error(processingContext, service, "Unknown promoted service '", promote[1], "'"); } else { service.setPromote2(promotedService); } } } } } // Check the composite service as a base service. checkBaseService(service, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeServiceProcessor.java
Override protected final void doComplete(Service service, ProcessingContext processingContext) throws ProcessorException { // Retrieve the component from the processing context. Component component = getFractalComponent(service.eContainer(), processingContext); // Retrieve the promoted component service, and the promoted Fractal component. ComponentService promotedComponentService = service.getPromote2(); Component promotedComponentInstance = getFractalComponent(promotedComponentService.eContainer(), processingContext); // Etablish a Fractal binding between the composite service and the promoted component service. try { bindFractalComponent( component, service.getName(), getFractalInterface(promotedComponentInstance, promotedComponentService.getName())); } catch (Exception e) { severe(new ProcessorException(service, "Can't promote " + toString(service), e)); return ; } // Complete the composite service as a base service. completeBaseService(service, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
Override protected void doGenerate(ImplementationType implementation, ProcessingContext processingContext) throws ProcessorException { try { getComponentFactory().generateMembrane( getFractalComponentType(implementation, processingContext), getMembrane(), null); } catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while generating " + toString(implementation), te)); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
protected final Component doInstantiate(ImplementationType implementation, ProcessingContext processingContext, ContentType content) throws ProcessorException { // Create the SCA composite for the implementation. Component component = createFractalComposite(implementation, processingContext); // Connect the Fractal composite to the content. connectFractalComposite(implementation, processingContext, content); return component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
protected final Component createFractalComposite(ImplementationType implementation, ProcessingContext processingContext) throws ProcessorException { // Create the SCA composite for the implementation. Component component; try { component = getComponentFactory().createComponent( getFractalComponentType(implementation, processingContext), getMembrane(), null); } catch (FactoryException te) { severe(new ProcessorException(implementation, "Error while creating " + toString(implementation), te)); return null; } // Store the created composite into the processing context. processingContext.putData(implementation, Component.class, component); return component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractCompositeBasedImplementationProcessor.java
protected final void connectFractalComposite(ImplementationType implementation, ProcessingContext processingContext, ContentType content) throws ProcessorException { // Get the binding and content controller of the component. Component component = getFractalComponent(implementation, processingContext); BindingController bindingController = getFractalBindingController(component); ContentController contentController = getFractalContentController(component); // Traverse all the interface types of the component type. for (InterfaceType interfaceType : getFractalComponentType(implementation, processingContext).getFcInterfaceTypes()) { String interfaceName = interfaceType.getFcItfName(); String interfaceSignature = interfaceType.getFcItfSignature(); Class<?> interfaze; try { interfaze = processingContext.loadClass(interfaceSignature); } catch(ClassNotFoundException cnfe) { severe(new ProcessorException(implementation, "Java interface '" + interfaceSignature + "' not found", cnfe)); return; } if (!interfaceType.isFcClientItf()) { // When this is a server interface type. // Get a service instance. Object service = null; try { service = getService(content, interfaceName, interfaze); } catch(Exception exc) { severe(new ProcessorException(implementation, "Can not obtain the SCA service '" + interfaceName + "'", exc)); return; } // Bind the SCA composite to the service instance. bindFractalComponent(bindingController, interfaceName, service); } else { // When this is a client interface type. Object itf = getFractalInternalInterface(contentController, interfaceName); try { setReference(content, interfaceName, itf, interfaze); } catch(Exception exc) { severe(new ProcessorException(implementation, "Can not set the SCA reference '" + interfaceName + "'", exc)); return; } } } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositePropertyProcessor.java
Override protected final void doCheck(Property property, ProcessingContext processingContext) throws ProcessorException { // Check the property attribute 'name'. checkAttributeMustBeSet(property, "name", property.getName(), processingContext); // Check the property value. // // Until FraSCAti 1.4, the value of a composite property is mandatory. // // logDo(processingContext, property, "check the property value"); // if(property.getValue() == null) { // error(processingContext, property, "The property value must be set"); // } // logDone(processingContext, property, "check the property value"); // // Since FraSCAti 1.5, the value of a composite property is optional // in order to pass the OASIS CSA Assembly Model Test Suite. // // Check the property attribute 'many'. checkAttributeNotSupported(property, "many", property.isSetMany(), processingContext); // Check the property attribute 'mustSupply'. checkAttributeNotSupported(property, "mustSupply", property.isSetMustSupply(), processingContext); // TODO: check attribute 'promote': Has the enclosing composite a property of this name? // Check the component property type and value. QName propertyType = (property.getElement() != null) ? property.getElement() : property.getType(); checkProperty(property, propertyType, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositePropertyProcessor.java
Override protected final void doComplete(Property property, ProcessingContext processingContext) throws ProcessorException { // Since FraSCAti 1.5, the value of a composite property is optional // in order to pass the OASIS CSA Assembly Model Test Suite. if(property.getValue() != null) { // Set the composite property value. setProperty(property, property.getName(), processingContext); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
protected final void generateScaPrimitiveComponent(ImplementationType implementation, ProcessingContext processingContext, String className) throws ProcessorException { try { logDo(processingContext, implementation, "generate the implementation"); ComponentType componentType = getFractalComponentType(implementation, processingContext); getComponentFactory().generateScaPrimitiveMembrane(componentType, className); logDone(processingContext, implementation, "generate the implementation"); } catch(FactoryException fe) { severe(new ProcessorException(implementation, "generation failed", fe)); return; } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentFactoryBasedImplementationProcessor.java
protected final Component instantiateScaPrimitiveComponent(ImplementationType implementation, ProcessingContext processingContext, String className) throws ProcessorException { Component component; try { logDo(processingContext, implementation, "instantiate the implementation"); ComponentType componentType = getFractalComponentType(implementation, processingContext); // create instance of an SCA primitive component for this implementation. component = getComponentFactory().createScaPrimitiveComponent(componentType, className); logDone(processingContext, implementation, "instantiate the implementation"); } catch(FactoryException fe) { severe(new ProcessorException(implementation, "instantiation failed", fe)); return null; } processingContext.putData(implementation, Component.class, component); return component; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doCheck(Composite composite, ProcessingContext processingContext) throws ProcessorException { // The OW2 FraSCAti Parser already manages: // - attribute 'autowire' // - attribute 'constrainingType' // - list of <sca:include> // So we needn't to redo these checkings. // Check the composite name. checkAttributeMustBeSet(composite, "name", composite.getName(), processingContext); // Check the composite local. checkAttributeNotSupported(composite, "local", composite.isSetLocal(), processingContext); // Check the composite target namespace. checkAttributeNotSupported(composite, "targetNamespace", composite.getTargetNamespace() != null, processingContext); // Check the composite policy sets. checkAttributeNotSupported(composite, "policySets", composite.getPolicySets() != null, processingContext); // TODO: 'requires' must be checked here. // Does each intent composite exist? // Is each composite an intent (service Intent of interface IntentHandler)? // Check that each component has a unique name and // store all <component name, component> tuples into a map of components. ComponentMap mapOfComponents = new ComponentMap(); for(org.eclipse.stp.sca.Component component : composite.getComponent()) { String name = component.getName(); if(name != null) { if(mapOfComponents.containsKey(name)) { error(processingContext, composite, "<component name='", name, "'> is already defined"); } else { mapOfComponents.put(name, component); } } } // Store the map of components into the processing context. processingContext.putData(composite, ComponentMap.class, mapOfComponents); // Check the composite components. check(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Check the composite services. check(composite, SCA_SERVICE, composite.getService(), serviceProcessor, processingContext); // Check the composite references. check(composite, SCA_REFERENCE, composite.getReference(), referenceProcessor, processingContext); // Check the composite properties. check(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Check the composite wires. check(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doGenerate(Composite composite, ProcessingContext processingContext) throws ProcessorException { // Generate the composite container. try { logDo(processingContext, composite, "generate the composite container"); componentFactory.generateScaCompositeMembrane(null); logDone(processingContext, composite, "generate the composite container"); } catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite container", fe)); return; } // Generate the component type for this composite. // Also generate the composite services and references. ComponentType compositeComponentType = generateComponentType(composite, composite.getService(), serviceProcessor, composite.getReference(), referenceProcessor, processingContext); // Generating the composite. try { logDo(processingContext, composite, "generate the composite component"); componentFactory.generateScaCompositeMembrane(compositeComponentType); logDone(processingContext, composite, "generate the composite component"); } catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to generate the composite component", fe)); return; } // Generate the composite components. generate(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Generate the composite properties. generate(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Generate the composite wires. generate(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doInstantiate(Composite composite, ProcessingContext processingContext) throws ProcessorException { // Instantiate the composite container. Component containerComponent = null; // Create a container for root composites only and // not for composites enclosed into composites. boolean isTheRootComposite = processingContext.getRootComposite() == composite; if(isTheRootComposite) { try { logDo(processingContext, composite, "instantiate the composite container"); containerComponent = componentFactory.createScaCompositeComponent(null); logDone(processingContext, composite, "instantiate the composite container"); } catch (FactoryException fe) { severe(new ProcessorException(composite, "Unable to create the composite container", fe)); return; } // Set the name for the composite container. setComponentName(composite, "composite container", containerComponent, composite.getName() + "-container", processingContext); } // Retrieve the composite type from the processing context. ComponentType compositeComponentType = getFractalComponentType(composite, processingContext); // Instantiate the composite component. Component compositeComponent; try { logDo(processingContext, composite, "instantiate the composite component"); compositeComponent = componentFactory.createScaCompositeComponent(compositeComponentType); logDone(processingContext, composite, "instantiate the composite component"); } catch (FactoryException fe) { error(processingContext, composite, "Unable to instantiate the composite: " + fe.getMessage() + ".\nPlease check that frascati-runtime-factory-<major>.<minor>.jar is present into your classpath."); throw new ProcessorException(composite, "Unable to instantiate the composite", fe); } // Keep the composite component into the processing context. processingContext.putData(composite, Component.class, compositeComponent); // Set the name for this assembly. setComponentName(composite, "composite", compositeComponent, composite.getName(), processingContext); // Add the SCA composite into the composite container. if(isTheRootComposite) { addFractalSubComponent(containerComponent, compositeComponent); } // Instantiate the composite components. instantiate(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Instantiate the composite services. instantiate(composite, SCA_SERVICE, composite.getService(), serviceProcessor, processingContext); // Instantiate composite references. instantiate(composite, SCA_REFERENCE, composite.getReference(), referenceProcessor, processingContext); // Instantiate composite properties. instantiate(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Instantiate the composite wires. instantiate(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeProcessor.java
Override protected final void doComplete(Composite composite, ProcessingContext processingContext) throws ProcessorException { // Complete the composite components. complete(composite, SCA_COMPONENT, composite.getComponent(), componentProcessor, processingContext); // Complete the composite services. complete(composite, SCA_SERVICE, composite.getService(), serviceProcessor, processingContext); // Complete the composite references. complete(composite, SCA_REFERENCE, composite.getReference(), referenceProcessor, processingContext); // Complete the composite properties. complete(composite, SCA_PROPERTY, composite.getProperty(), propertyProcessor, processingContext); // Complete the composite wires. complete(composite, SCA_WIRE, composite.getWire(), wireProcessor, processingContext); // Retrieve the composite component from the processing context. Component compositeComponent = getFractalComponent(composite, processingContext); // Complete required intents for the composite. completeRequires(composite, composite.getRequires(), compositeComponent, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractIntentProcessor.java
protected final void completeRequires(EObjectType element, List<QName> requires, Component component, ProcessingContext processingContext) throws ProcessorException { logDo(processingContext, element, "complete required intents"); if(requires == null) { return; } // Get the intent controller of the given component. SCABasicIntentController intentController; try { intentController = (SCABasicIntentController) component.getFcInterface(SCABasicIntentController.NAME); } catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(element, "Cannot get to the FraSCAti intent controller", nsie)); return; } for (QName require : requires) { // Try to retrieve intent service from cache. Component intentComponent; try { intentComponent = intentLoader.getComposite(require); } catch(ManagerException me) { warning(new ProcessorException("Error while getting intent '" + require + "'", me)); return; } IntentHandler intentHandler; try { // Get the intent handler of the intent composite. intentHandler = (IntentHandler)intentComponent.getFcInterface("intent"); } catch (NoSuchInterfaceException nsie) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service", nsie)); return; } catch (ClassCastException cce) { warning(new ProcessorException(element, "Intent '" + require + "' does not provide an 'intent' service of interface " + IntentHandler.class.getCanonicalName(), cce)); return; } try { // Add the intent handler. logDo(processingContext, element, "adding intent handler"); addIntentHandler(element, intentController, intentHandler); logDone(processingContext, element, "adding intent handler"); } catch (Exception e) { severe(new ProcessorException(element, "Intent '" + require + "' cannot be added", e)); return; } } logDone(processingContext, element, "complete required intents"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationCompositeProcessor.java
Override protected final void doCheck(SCAImplementation scaImplementation, ProcessingContext processingContext) throws ProcessorException { // Check the implementation composite name. checkAttributeMustBeSet(scaImplementation, "name", scaImplementation.getName(), processingContext); if(scaImplementation.getName() != null) { // Retrieve the parsed composite from the processing context. // This data was put by the FraSCAti SCA Parser ImplementationCompositeResolver. Composite composite = processingContext.getData(scaImplementation, Composite.class); compositeProcessor.check(composite, processingContext); } // TODO: 'requires' must be checked here. // Does the intent composite exist? // Is this composite an intent (service Intent of interface IntentHandler)? // check attributes 'policySets' and 'requires'. checkImplementation(scaImplementation, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationCompositeProcessor.java
Override protected final void doGenerate(SCAImplementation scaImplementation, ProcessingContext processingContext) throws ProcessorException { // Retrieve the composite from the processing context. Composite composite = processingContext.getData(scaImplementation, Composite.class); // Generating the composite. compositeProcessor.generate(composite, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationCompositeProcessor.java
Override protected final void doInstantiate(SCAImplementation scaImplementation, ProcessingContext processingContext) throws ProcessorException { // Retrieve the composite from the processing context. Composite composite = processingContext.getData(scaImplementation, Composite.class); // Instantiating the composite component. compositeProcessor.instantiate(composite, processingContext); // store the component into the processing context. processingContext.putData(scaImplementation, Component.class, getFractalComponent(composite, processingContext)); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationCompositeProcessor.java
Override protected final void doComplete(SCAImplementation scaImplementation, ProcessingContext processingContext) throws ProcessorException { // Retrieve the composite from the processing context. Composite composite = processingContext.getData(scaImplementation, Composite.class); // Completing the composite. compositeProcessor.complete(composite, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractImplementationProcessor.java
protected final void checkImplementation(ImplementationType implementation, ProcessingContext processingContext) throws ProcessorException { // Check the implementation policy sets. checkAttributeNotSupported(implementation, "policySets", implementation.getPolicySets() != null, processingContext); // Check the composite requires. checkAttributeNotSupported(implementation, "requires", implementation.getRequires() != null, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
Override protected final void doCheck(SCABinding scaBinding, ProcessingContext processingContext) throws ProcessorException { String uri = scaBinding.getUri(); if(hasBaseService(scaBinding)) { // The parent of this binding is a <service>. if(uri != null) { warning(processingContext, scaBinding, "The attribute 'uri' on a SCA service is not supported by OW2 FraSCAti"); } } else { // The parent of this binding is a <reference>. if(isNullOrEmpty(uri)) { error(processingContext, scaBinding, "The attribute 'uri' must be 'compositeName/componentName*/serviceName'"); } else { String[] parts = uri.split("/"); if(parts.length < 2) { error(processingContext, scaBinding, "The attribute 'uri' must be 'compositeName/componentName*/serviceName'"); } else { // Obtain the composite. String compositeName = parts[0]; if(compositeName.equals(processingContext.getRootComposite().getName())) { // The searched composite is the currently processed root SCA composite. // TODO Check if the SCA service exists. } else { // The searched composite is another composite loaded into the domain, so get it. Component component = null; try { component = compositeManager.getComposite(compositeName); } catch(ManagerException me) { error(processingContext, scaBinding, "Composite '", compositeName, "' not found"); } if(component != null) { // Find the service from the uri. Object service = findService(scaBinding, processingContext, component, parts); if(service != null) { // Store the found service into the processing context. processingContext.putData(scaBinding, Object.class, service); } } } } } } // Check other attributes of the binding. checkBinding(scaBinding, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
protected final Object findService(SCABinding scaBinding, ProcessingContext processingContext, Component initialComponent, String[] parts) throws ProcessorException { Component component = initialComponent; boolean found = true; // Traverse the componentName parts of the uri. for(int i=1; i<parts.length-1; i++) { found = false; // Search the sub component having the searched component name. for(Component subComponent : getFractalSubComponents(component)) { if(parts[i].equals(getFractalComponentName(subComponent))) { component = subComponent; found = true; break; // the for loop. } } if(!found) { error(processingContext, scaBinding, "Component '", parts[i], "' not found"); return null; } } if(found) { // Get the service of the last found component. String serviceName = parts[parts.length - 1]; try { return component.getFcInterface(serviceName); } catch(NoSuchInterfaceException nsie) { error(processingContext, scaBinding, "Service '", serviceName, "' not found"); return null; } } return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
Override protected final void doComplete(SCABinding scaBinding, ProcessingContext processingContext) throws ProcessorException { if(hasBaseService(scaBinding)) { // Nothing to do. return; } // Obtain the service computed during doCheck() Object service = processingContext.getData(scaBinding, Object.class); if(service == null) { // The uri should refer to a service of the currently processed SCA composite. String[] parts = scaBinding.getUri().split("/"); if(parts[0].equals(processingContext.getRootComposite().getName())) { Component component = getFractalComponent(processingContext.getRootComposite(), processingContext); service = findService(scaBinding, processingContext, component, parts); } if(service == null) { // This case should never happen because it should be checked by doCheck() severe(new ProcessorException(scaBinding, "Should never happen!!!")); return; } } // Create a dynamic proxy invocation handler. BindingScaInvocationHandler bsih = new BindingScaInvocationHandler(); // Its delegates to the service found. bsih.setDelegate(service); // Create a dynamic proxy with the created invocation handler. Object proxy = Proxy.newProxyInstance( processingContext.getClassLoader(), new Class<?>[] { getBaseReferenceJavaInterface(scaBinding, processingContext) }, bsih); // Bind the proxy to the component owning this <binding.sca>. bindFractalComponent( getFractalComponent(scaBinding, processingContext), getBaseReference(scaBinding).getName(), proxy); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentProcessor.java
Override protected final void doCheck(Component component, ProcessingContext processingContext) throws ProcessorException { // Check the component's name. checkAttributeMustBeSet(component, "name", component.getName(), processingContext); // Check the component's policy sets. checkAttributeNotSupported(component, "policySets", component.getPolicySets() != null, processingContext); // Check the component's implementation. checkMustBeDefined(component, SCA_IMPLEMENTATION, component.getImplementation(), implementationProcessor, processingContext); // Check the component's services. check(component, SCA_SERVICE, component.getService(), serviceProcessor, processingContext); // Check the component's references. check(component, SCA_REFERENCE, component.getReference(), referenceProcessor, processingContext); // Check the component's properties. check(component, SCA_PROPERTY, component.getProperty(), propertyProcessor, processingContext); // TODO: 'requires' must be checked here. // Does the intent composite exist? // Is this composite an intent (service Intent of interface IntentHandler)? }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentProcessor.java
Override protected final void doGenerate(Component component, ProcessingContext processingContext) throws ProcessorException { // Generate the component type. // Also generate the component services and references. ComponentType componentType = generateComponentType(component, component.getService(), serviceProcessor, component.getReference(), referenceProcessor, processingContext); // Keep the component type into the processing context. processingContext.putData(component.getImplementation(), ComponentType.class, componentType); // Generate the component's implementation. generate(component, SCA_IMPLEMENTATION, component.getImplementation(), implementationProcessor, processingContext); // Generate the component's properties. generate(component, SCA_PROPERTY, component.getProperty(), propertyProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentProcessor.java
Override protected final void doInstantiate(Component component, ProcessingContext processingContext) throws ProcessorException { // Instantiate the component's implementation. instantiate(component, SCA_IMPLEMENTATION, component.getImplementation(), implementationProcessor, processingContext); org.objectweb.fractal.api.Component componentInstance = getFractalComponent(component.getImplementation(), processingContext); // Add the new component to its enclosing composite. org.objectweb.fractal.api.Component enclosingComposite = getFractalComponent(component.eContainer(), processingContext); addFractalSubComponent(enclosingComposite, componentInstance); // set the name for this component. setComponentName(component, "component", componentInstance, component.getName(), processingContext); // Keep the component instance into the processing context. processingContext.putData(component, org.objectweb.fractal.api.Component.class, componentInstance); // Instantiate the component's services. instantiate(component, SCA_SERVICE, component.getService(), serviceProcessor, processingContext); // Instantiate the component's references. instantiate(component, SCA_REFERENCE, component.getReference(), referenceProcessor, processingContext); // Instantiate the component's properties. instantiate(component, SCA_PROPERTY, component.getProperty(), propertyProcessor, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentProcessor.java
Override protected final void doComplete(Component component, ProcessingContext processingContext) throws ProcessorException { // Complete the component's implementation. complete(component, SCA_IMPLEMENTATION, component.getImplementation(), implementationProcessor, processingContext); // Complete the component's services. complete(component, SCA_SERVICE, component.getService(), serviceProcessor, processingContext); // Complete the component's references. complete(component, SCA_REFERENCE, component.getReference(), referenceProcessor, processingContext); // Complete the component's properties. complete(component, SCA_PROPERTY, component.getProperty(), propertyProcessor, processingContext); // Retrieve the component from the processing context. org.objectweb.fractal.api.Component componentInstance = getFractalComponent(component, processingContext); // Complete required intents for the component. completeRequires(component, component.getRequires(), componentInstance, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
Override protected final void doCheck(JavaImplementation javaImplementation, ProcessingContext processingContext) throws ProcessorException { // Test if the Java class is present in the current classloader. try { processingContext.loadClass(javaImplementation.getClass_()); } catch (ClassNotFoundException cnfe) { error(processingContext, javaImplementation, "class '", javaImplementation.getClass_(), "' not found"); return; } // check attributes 'policySets' and 'requires'. checkImplementation(javaImplementation, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
Override protected final void doGenerate(JavaImplementation javaImplementation, ProcessingContext processingContext) throws ProcessorException { // Generate a FraSCAti SCA primitive component. generateScaPrimitiveComponent(javaImplementation, processingContext, javaImplementation.getClass_()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaImplementationJavaProcessor.java
Override protected final void doInstantiate(JavaImplementation javaImplementation, ProcessingContext processingContext) throws ProcessorException { // Instantiate a FraSCAti SCA primitive component. instantiateScaPrimitiveComponent(javaImplementation, processingContext, javaImplementation.getClass_()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
Override protected final void doCheck(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // Obtain the property type for the given property. QName propertyType = processingContext.getData(property, QName.class); if(isMatchingOneJavaType(propertyType)) { // This property type processor is attached to the given property. processingContext.putData(property, Processor.class, this); if(propertyType != null) { // if the property type is set then compute the property value. doComplete(property, processingContext); } } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
Override protected final void doComplete(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // The property value as given in a .composite file. String propertyValue = property.getValue(); // Obtain the property type for the given property. QName propertyType = processingContext.getData(property, QName.class); // Search which the Java type is. JavaType javaType = JavaType.VALUES.get(propertyType.getLocalPart()); if(javaType == null) { // Should never happen but we never know! severe(new ProcessorException(property, "Java type '" + propertyType.getLocalPart() + "' not supported")); return; } // Compute the property value. Object computedPropertyValue; try { computedPropertyValue = stringToValue(javaType, propertyValue, processingContext.getClassLoader()); } catch(ClassNotFoundException cnfe) { error(processingContext, property, "Java class '", propertyValue, "' not found"); return; } catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; } catch(MalformedURLException exc) { error(processingContext, property, "Malformed URL '", propertyValue, "'"); return; } catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; } if (computedPropertyValue == null) { // Should never happen but we never know! severe(new ProcessorException("Java type known but not dealt by OW2 FraSCAti: " + propertyType)); return; } // Attach the computed property value to the given property. processingContext.putData(property, Object.class, computedPropertyValue); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
protected final Processor<ElementType> getProcessor(ElementType eObj) throws ProcessorException { if(processorsByID == null) { initializeProcessorsByID(); } // retrieve registered processor associated to eObj. Processor<ElementType> processor = processorsByID.get(getID(eObj)); if(processor == null) { severe(new ProcessorException(eObj, "No processor for " + getID(eObj))); return null; } return processor; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
Override protected final void doCheck(ElementType element, ProcessingContext processingContext) throws ProcessorException { getProcessor(element).check(element, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
Override protected final void doGenerate(ElementType element, ProcessingContext processingContext) throws ProcessorException { getProcessor(element).generate(element, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
Override protected final void doInstantiate(ElementType element, ProcessingContext processingContext) throws ProcessorException { getProcessor(element).instantiate(element, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessorManager.java
Override protected final void doComplete(ElementType element, ProcessingContext processingContext) throws ProcessorException { getProcessor(element).complete(element, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentReferenceProcessor.java
Override protected final void doCheck(ComponentReference componentReference, ProcessingContext processingContext) throws ProcessorException { // Check the attribute 'target'. if(componentReference.getTarget() == null) { // Let's note that this is not an error as a wire could have this reference as source. // TODO: perhaps a trace should be reported, or better // all component references without target must be stored in an array, and // check at the end of ScaCompositeProcessor.check() if these are promoted // by composite references or the source of a wire. // An error must be thrown for component references not promoted or wired. } else { if(componentReference.getTarget2() == null) { // Retrieve both target component and service. String target[] = componentReference.getTarget().split("/"); if(target.length != 2) { error(processingContext, componentReference, "The attribute 'target' must be 'componentName/serviceName'"); } else { // retrieve the map of components associated to the composite of the component of this reference. ComponentMap mapOfComponents = processingContext.getData(componentReference.eContainer().eContainer(), ComponentMap.class); org.eclipse.stp.sca.Component targetComponent = mapOfComponents.get(target[0]); if(targetComponent == null) { error(processingContext, componentReference, "Unknown target component '", target[0], "'"); } else { ComponentService targetComponentService = null; for(ComponentService service : targetComponent.getService()) { if(target[1].equals(service.getName())) { targetComponentService = service; break; // the for loop } } if(targetComponentService == null) { error(processingContext, componentReference, "Unknown target service '", target[1], "'"); } else { componentReference.setTarget2(targetComponentService); } } } } } // Check this component reference as a base reference. checkBaseReference(componentReference, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentReferenceProcessor.java
Override protected final void doComplete(ComponentReference componentReference, ProcessingContext processingContext) throws ProcessorException { // Retrieve the component from the processing context. Component component = getFractalComponent(componentReference.eContainer(), processingContext); // Etablish the binding to the target. if(componentReference.getTarget() != null) { // Retrieve the target component service, and the target Fractal component. BaseService targetComponentService = componentReference.getTarget2(); org.eclipse.stp.sca.Component targetComponent = (org.eclipse.stp.sca.Component)targetComponentService.eContainer(); String targetComponentServiceName = targetComponentService.getName(); Component targetComponentInstance = getFractalComponent(targetComponent, processingContext); // Etablish a Fractal binding between the reference and the target component service. try { bindFractalComponent( component, componentReference.getName(), getFractalInterface(targetComponentInstance, targetComponentServiceName)); } catch (Exception e) { severe(new ProcessorException(componentReference, "Can't promote " + toString(componentReference), e)); return; } } // Complete this component reference as a base reference. completeBaseReference(componentReference, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBindingProcessor.java
protected final void checkBinding(BindingType binding, ProcessingContext processingContext) throws ProcessorException { checkAttributeNotSupported(binding, "policySets", binding.getPolicySets() != null, processingContext); checkAttributeNotSupported(binding, "requires", binding.getRequires() != null, processingContext); checkChildrenNotSupported(binding, "sca:operation", binding.getOperation().size() > 0, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentServiceProcessor.java
Override protected final void doCheck(ComponentService componentService, ProcessingContext processingContext) throws ProcessorException { // Check the component service as a base service. checkBaseService(componentService, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentServiceProcessor.java
Override protected final void doComplete(ComponentService componentService, ProcessingContext processingContext) throws ProcessorException { // Complete the component service as a base service. completeBaseService(componentService, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void checkMustBeDefined(EObjectType element, String childName, T item, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "check <" + childName + '>'; logDo(processingContext, element, message); if(item == null) { error(processingContext, element, "<", childName, "> must be defined"); } else { processor.check(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void check(EObjectType element, String childName, List<T> list, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "check list of <" + childName + '>'; logDo(processingContext, element, message); for (T item : list) { processor.check(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void generate(EObjectType element, String childName, T item, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "generate <" + childName + '>'; logDo(processingContext, element, message); processor.generate(item, processingContext); logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void generate(EObjectType element, String childName, List<T> list, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "generate list of <" + childName + '>'; logDo(processingContext, element, message); for (T item : list) { processor.generate(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void instantiate(EObjectType element, String childName, T item, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "instantiate <" + childName + '>'; logDo(processingContext, element, message); processor.instantiate(item, processingContext); logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void instantiate(EObjectType element, String childName, List<T> list, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "instantiate list of <" + childName + '>'; logDo(processingContext, element, message); for (T item : list) { processor.instantiate(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void complete(EObjectType element, String childName, T item, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "complete <" + childName + '>'; logDo(processingContext, element, message); processor.complete(item, processingContext); logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected final <T> void complete(EObjectType element, String childName, List<T> list, Processor<T> processor, ProcessingContext processingContext) throws ProcessorException { String message = "complete list of <" + childName + '>'; logDo(processingContext, element, message); for (T item : list) { processor.complete(item, processingContext); } logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected void doCheck(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "nothing to check"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected void doGenerate(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "nothing to generate"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected void doInstantiate(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "nothing to instantiate"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
protected void doComplete(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "nothing to complete"); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
public final void check(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "check..."); doCheck(element, processingContext); logFine(processingContext, element, "checked."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
public final void generate(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "generate..."); doGenerate(element, processingContext); logFine(processingContext, element, "successfully generated."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
public final void instantiate(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "instantiate..."); doInstantiate(element, processingContext); logFine(processingContext, element, "successfully instantiated."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractProcessor.java
public final void complete(EObjectType element, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, element, "complete..."); doComplete(element, processingContext); logFine(processingContext, element, "successfully completed."); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
Override protected final void doCheck(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // Get the property type of the given property. QName propertyType = processingContext.getData(property, QName.class); // Check that this property type is an XSD datatype. if(getXsdType(propertyType) != null) { // Affect this property type processor to the given property. processingContext.putData(property, Processor.class, this); // Compute the property value to set. doComplete(property, processingContext); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
Override protected final void doComplete(SCAPropertyBase property, ProcessingContext processingContext) throws ProcessorException { // The property value as given in a .composite file. String propertyValue = property.getValue(); // Get the property type of the given property. QName propertyType = processingContext.getData(property, QName.class); // Search which the XSD datatype is. XsdType xsdType = getXsdType(propertyType); if(xsdType == null) { // Should never happen but we never know! severe(new ProcessorException("Error while converting XSD property datatype: unknown XML type '" + propertyType + "'")); return; } // Compute the property value. Object computedPropertyValue; try { switch (xsdType) { case ANYURI: try { computedPropertyValue = new URI(propertyValue); } catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; } break; case ANYSIMPLETYPE: computedPropertyValue = propertyValue; break; case BASE64BINARY: // TODO: is it the right thing to do? computedPropertyValue = propertyValue.getBytes(); break; case BOOLEAN: computedPropertyValue = Boolean.valueOf(propertyValue); break; case BYTE: computedPropertyValue = Byte.valueOf(propertyValue); break; case DATE: case DATETIME: case TIME: case G: try { computedPropertyValue = datatypeFactory.newXMLGregorianCalendar(propertyValue); } catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; } break; case DECIMAL: computedPropertyValue = new BigDecimal(propertyValue); break; case DOUBLE: computedPropertyValue = Double.valueOf(propertyValue); break; case DURATION: try { computedPropertyValue = datatypeFactory.newDuration(propertyValue); } catch(IllegalArgumentException iae) { error(processingContext, property, "Invalid lexical representation '", propertyValue, "'"); return; } break; case FLOAT: computedPropertyValue = Float.valueOf(propertyValue); break; case HEXBINARY: // TODO: is it the right thing to do? computedPropertyValue = propertyValue.getBytes(); break; case INT: computedPropertyValue = Integer.valueOf(propertyValue); break; case INTEGER: case LONG: computedPropertyValue = Long.valueOf(propertyValue); break; case NEGATIVEINTEGER: case NONPOSITIVEINTEGER: Long negativeInteger = Long.valueOf(propertyValue); if(negativeInteger.longValue() > 0) { error(processingContext, property, "The value must be a negative integer"); return; } computedPropertyValue = negativeInteger; break; case NONNEGATIVEINTEGER: Long nonNegativeInteger = Long.valueOf(propertyValue); if(nonNegativeInteger.longValue() < 0) { error(processingContext, property, "The value must be a non negative integer"); return; } computedPropertyValue = nonNegativeInteger; break; case POSITIVEINTEGER: BigInteger positiveInteger = new BigInteger(propertyValue); if(positiveInteger.longValue() < 0) { error(processingContext, property, "The value must be a positive integer"); return; } computedPropertyValue = positiveInteger; break; case NOTATION: computedPropertyValue = QName.valueOf(propertyValue); break; case UNSIGNEDBYTE: Short unsignedByte = Short.valueOf(propertyValue); if(unsignedByte.shortValue() < 0) { error(processingContext, property, "The value must be a positive byte"); return; } computedPropertyValue = unsignedByte; break; case UNSIGNEDINT: Long unsignedInt = Long.valueOf(propertyValue); if(unsignedInt.longValue() < 0) { error(processingContext, property, "The value must be a positive integer"); return; } computedPropertyValue = unsignedInt; break; case UNSIGNEDLONG: Long unsignedLong = Long.valueOf(propertyValue); if(unsignedLong.longValue() < 0) { error(processingContext, property, "The value must be a positive long"); return; } computedPropertyValue = unsignedLong; break; case UNSIGNEDSHORT: Integer unsignedShort = Integer.valueOf(propertyValue); if(unsignedShort.intValue() < 0) { error(processingContext, property, "The value must be a positive short"); return; } computedPropertyValue = unsignedShort; break; case SHORT: computedPropertyValue = Short.valueOf(propertyValue); break; case STRING: computedPropertyValue = propertyValue; break; case QNAME: computedPropertyValue = QName.valueOf(propertyValue); break; default: // Should never happen but we never know! severe(new ProcessorException(property, "The XSD-based '" + propertyType + "' property datatype is known but not dealt by OW2 FraSCAti!")); return ; } } catch(NumberFormatException nfe) { error(processingContext, property, "Number format error in '", propertyValue, "'"); return; } // Attach the computed property value to the given property. processingContext.putData(property, Object.class, computedPropertyValue); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
protected final void checkBaseReference(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Check the base reference name. checkAttributeMustBeSet(baseReference, "name", baseReference.getName(), processingContext); // Check the base reference policy sets. checkAttributeNotSupported(baseReference, "policySets", baseReference.getPolicySets() != null, processingContext); // Check the base reference wiredByImpl. checkAttributeNotSupported(baseReference, "wiredByImpl", baseReference.isSetWiredByImpl(), processingContext); // TODO: 'requires' must be checked here. // Does the intent composite exist? // Is this composite an intent (service Intent of interface IntentHandler)? // Check the base reference interface. checkMustBeDefined(baseReference, SCA_INTERFACE, baseReference.getInterface(), getInterfaceProcessor(), processingContext); // TODO check callback // interfaceProcessor.check(baseReference.getCallback(), processingContext); // Check the base reference bindings. check(baseReference, SCA_BINDING, baseReference.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
private void generateInterfaceType(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Generate the base reference interface. generate(baseReference, SCA_INTERFACE, baseReference.getInterface(), getInterfaceProcessor(), processingContext); // Corresponding Java interface class name. String interfaceClassName = processingContext.getData(baseReference.getInterface(), JavaClass.class) .getClassName(); // Name for the generated interface type. String interfaceName = baseReference.getName(); Multiplicity multiplicity = baseReference.getMultiplicity(); // Indicates if the interface is mandatory or optional. boolean contingency = CONTINGENCIES.get(multiplicity); // indicates if component interface is single or collection. boolean cardinality = CARDINALITIES.get(multiplicity); // Create the Fractal interface type. InterfaceType interfaceType; String logMessage = "create a Fractal client interface type " + interfaceClassName + " for " + interfaceName + " with contingency = " + contingency + " and cardinality = " + cardinality; try { logDo(processingContext, baseReference, logMessage); interfaceType = getTypeFactory().createInterfaceType(interfaceName, interfaceClassName, TypeFactory.CLIENT, contingency, cardinality); logDone(processingContext, baseReference, logMessage); } catch (FactoryException te) { severe(new ProcessorException(baseReference, "Could not " + logMessage, te)); return; } // Keep the Fractal interface type into the processing context. processingContext.putData(baseReference, InterfaceType.class, interfaceType); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
protected final void completeBaseReference(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Complete the composite reference interface. complete(baseReference, SCA_INTERFACE, baseReference.getInterface(), getInterfaceProcessor(), processingContext); // Complete the composite reference bindings. complete(baseReference, SCA_BINDING, baseReference.getBinding(), getBindingProcessor(), processingContext); // Retrieve the component from the processing context. Component component = getFractalComponent(baseReference.eContainer(), processingContext); // Complete the composite reference required intents. completeRequires(baseReference, baseReference.getRequires(), component, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
Override protected final void doGenerate(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Generate the base reference interface type. generateInterfaceType(baseReference, processingContext); // Generate the base reference bindings. generate(baseReference, SCA_BINDING, baseReference.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseReferencePortIntentProcessor.java
Override protected final void doInstantiate(EObjectType baseReference, ProcessingContext processingContext) throws ProcessorException { // Instantiate the base reference interface. instantiate(baseReference, SCA_INTERFACE, baseReference.getInterface(), getInterfaceProcessor(), processingContext); // Instantiate the base reference bindings. instantiate(baseReference, SCA_BINDING, baseReference.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractPropertyProcessor.java
protected final void checkProperty(PropertyType property, QName propertyType, ProcessingContext processingContext) throws ProcessorException { // Associate the property type to the property. processingContext.putData(property, QName.class, propertyType); // Search which property type processor matches the given property type. boolean isPropertyTypeMatchedByOnePropertyTypeProcessor = false; for(Processor<PropertyType> propertyTypeProcessor : propertyTypeProcessors) { // check the property type and value. propertyTypeProcessor.check(property, processingContext); if(processingContext.getData(property, Processor.class) != null) { // the current property type processor matched the property type. isPropertyTypeMatchedByOnePropertyTypeProcessor = true; break; // the for loop. } } // Produce an error when no property processor type matches the property type. if(!isPropertyTypeMatchedByOnePropertyTypeProcessor) { error(processingContext, property, "Unknown property type '", propertyType.toString(), "'"); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractPropertyProcessor.java
protected final void setProperty(PropertyType property, String propertyName, ProcessingContext processingContext) throws ProcessorException { // Retrieve the Fractal component associated to the SCA composite/component of the given property. Component component = getFractalComponent(property.eContainer(), processingContext); // Retrieve the SCA property controller of this Fractal component. SCAPropertyController propertyController; try { propertyController = (SCAPropertyController)component.getFcInterface(SCAPropertyController.NAME); } catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Can't get the SCA property controller", nsie)); return; } // Retrieve the property value set by the property type processor. Object propertyValue = processingContext.getData(property, Object.class); if(propertyValue == null) { // The property type processor didn't compute a property value during check() // Then it is needed to call complete() to compute this property value. // Retrieve the property type associated to this property. QName propertyType = processingContext.getData(property, QName.class); if(propertyType == null) { // When no property type then get the property type via the property controller. Class<?> clazz = propertyController.getType(propertyName); if(clazz == null) { // When no property type defined then consider that it is String clazz = String.class; } // Reput the property type into the processing context. processingContext.putData(property, QName.class, new QName(ScaPropertyTypeJavaProcessor.OW2_FRASCATI_JAVA_NAMESPACE, clazz.getCanonicalName())); } // Retrieve the property type processor set during the method checkProperty() @SuppressWarnings("unchecked") Processor<PropertyType> propertyTypeProcessor = (Processor<PropertyType>) processingContext.getData(property, Processor.class); // Compute the property value. propertyTypeProcessor.complete(property, processingContext); // Retrieve the property value set by the property type processor. propertyValue = processingContext.getData(property, Object.class); } // set the property value and type via the property controller. propertyController.setValue(propertyName, propertyValue); propertyController.setType(propertyName, propertyValue.getClass()); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeReferenceProcessor.java
Override protected final void doCheck(Reference reference, ProcessingContext processingContext) throws ProcessorException { // List for storing the promoted component references. List<ComponentReference> promotedComponentReferences = new ArrayList<ComponentReference>(); // Check the attribute 'promote'. String promoteAttribute = reference.getPromote(); if(promoteAttribute == null) { warning(processingContext, reference, "The attribute 'promote' is not set"); } else { // Retrieve the map of components for the composite of this reference. ComponentMap mapOfComponents = processingContext.getData(reference.eContainer(), ComponentMap.class); for (String promoteValue : promoteAttribute.split("\\s")) { // Retrieve both promoted component and reference. String promoted[] = promoteValue.split("/"); if(promoted.length != 2) { error(processingContext, reference, "The value '", promoteValue, "' must be 'componentName/referenceName'"); } else { org.eclipse.stp.sca.Component promotedComponent = mapOfComponents.get(promoted[0]); if(promotedComponent == null) { error(processingContext, reference, "Unknown promoted component '", promoted[0], "'"); } else { ComponentReference promotedComponentReference = null; for(ComponentReference cr : promotedComponent.getReference()) { if(promoted[1].equals(cr.getName())) { promotedComponentReference = cr; break; // the for loop } } if(promotedComponentReference == null) { error(processingContext, reference, "Unknown promoted reference '", promoted[1], "'"); } else { promotedComponentReferences.add(promotedComponentReference); } } } } } // store the promoted component references to be dealt later in method complete(). processingContext.putData(reference, ComponentReference[].class, promotedComponentReferences.toArray(new ComponentReference[promotedComponentReferences.size()])); // Check this composite reference as a base reference. checkBaseReference(reference, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaCompositeReferenceProcessor.java
Override protected final void doComplete(Reference reference, ProcessingContext processingContext) throws ProcessorException { // Retrieve the component from the processing context. Component component = getFractalComponent(reference.eContainer(), processingContext); // Promote component references. for(ComponentReference componentReference : processingContext.getData(reference, ComponentReference[].class)) { Component promotedComponent = getFractalComponent(componentReference.eContainer(), processingContext); bindFractalComponent( promotedComponent, componentReference.getName(), getFractalInternalInterface(component, reference.getName())); } // Complete this composite reference as a base reference. completeBaseReference(reference, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
protected final void checkBaseService(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Check the base service name. checkAttributeMustBeSet(baseService, "name", baseService.getName(), processingContext); // Check the base service policy sets. checkAttributeNotSupported(baseService, "policySets", baseService.getPolicySets() != null, processingContext); // TODO: 'requires' must be checked here. // Does the intent composite exist? // Is this composite an intent (service Intent of interface IntentHandler)? // Check the base service interface. checkMustBeDefined(baseService, SCA_INTERFACE, baseService.getInterface(), getInterfaceProcessor(), processingContext); // TODO interfaceProcessor.check(baseService.getCallback(), processingContext); // Check the base service operations. checkChildrenNotSupported(baseService, SCA_OPERATION, baseService.getOperation().size() > 0, processingContext); // TODO operationProcessor.check(baseService.getOperation(), processingContext); // Check the base service bindings. check(baseService, SCA_BINDING, baseService.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
private void generateInterfaceType(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Generate the base service interface. generate(baseService, SCA_INTERFACE, baseService.getInterface(), getInterfaceProcessor(), processingContext); // Corresponding Java interface class name. String interfaceClassName = processingContext.getData(baseService.getInterface(), JavaClass.class) .getClassName(); // Name for the generated interface type. String interfaceName = baseService.getName(); // Indicates if the interface is mandatory or optional. boolean contingency = TypeFactory.MANDATORY; // indicates if component interface is single or collection. boolean cardinality = TypeFactory.SINGLE; // Create the Fractal interface type. InterfaceType interfaceType; String logMessage = "create a Fractal server interface type " + interfaceClassName + " for " + interfaceName + " with contingency = " + contingency + " and cardinality = " + cardinality; try { logDo(processingContext, baseService, logMessage); interfaceType = getTypeFactory().createInterfaceType(interfaceName, interfaceClassName, TypeFactory.SERVER, contingency, cardinality); logDone(processingContext, baseService, logMessage); } catch (FactoryException te) { severe(new ProcessorException(baseService, "Could not " + logMessage, te)); return; } // Keep the Fractal interface type into the processing context. processingContext.putData(baseService, InterfaceType.class, interfaceType); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
protected final void completeBaseService(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Complete the base service interface. complete(baseService, SCA_INTERFACE, baseService.getInterface(), getInterfaceProcessor(), processingContext); // Complete the base service bindings. complete(baseService, SCA_BINDING, baseService.getBinding(), getBindingProcessor(), processingContext); // Retrieve the component from the processing context. Component component = getFractalComponent(baseService.eContainer(), processingContext); // Complete the base service required intents. completeRequires(baseService, baseService.getRequires(), component, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
Override protected final void doGenerate(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Generate the base service interface type. generateInterfaceType(baseService, processingContext); // Generate the base service bindings. generate(baseService, SCA_BINDING, baseService.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractBaseServicePortIntentProcessor.java
Override protected final void doInstantiate(EObjectType baseService, ProcessingContext processingContext) throws ProcessorException { // Instantiate the base service interface. instantiate(baseService, SCA_INTERFACE, baseService.getInterface(), getInterfaceProcessor(), processingContext); // Instantiate the base service bindings. instantiate(baseService, SCA_BINDING, baseService.getBinding(), getBindingProcessor(), processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
protected final ComponentType generateComponentType( ElementType element, List<ServiceType> services, Processor<ServiceType> serviceProcessor, List<ReferenceType> references, Processor<ReferenceType> referenceProcessor, ProcessingContext processingContext) throws ProcessorException { logDo(processingContext, element, "generate the component type"); // Create a list of Fractal interface types. List<InterfaceType> interfaceTypes = new ArrayList<InterfaceType>(); // Create interface types for services. for (ServiceType cs : services) { serviceProcessor.generate(cs, processingContext); interfaceTypes.add(processingContext.getData(cs, InterfaceType.class)); } // Create interface types for references. for (ReferenceType cr : references) { referenceProcessor.generate(cr, processingContext); interfaceTypes.add(processingContext.getData(cr, InterfaceType.class)); } InterfaceType[] itftype = interfaceTypes.toArray(new InterfaceType[interfaceTypes.size()]); ComponentType componentType; try { logDo(processingContext, element, "generate the associated component type"); componentType = typeFactory.createComponentType(itftype); logDone(processingContext, element, "generate the associated component type"); } catch(FactoryException te) { severe(new ProcessorException(element, "component type creation for " + toString(element) + " failed", te)); return null; } // Keep the component type into the processing context. processingContext.putData(element, ComponentType.class, componentType); logDone(processingContext, element, "generate the component type"); return componentType; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/AbstractComponentProcessor.java
protected final void setComponentName(ElementType element, String whatComponent, Component component, String name, ProcessingContext processingContext) throws ProcessorException { String message = "set the component name of the " + whatComponent + " to '" + name + "'"; logDo(processingContext, element, message); // set the name of the component. setFractalComponentName(component, name); logDone(processingContext, element, message); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
Override protected final void doCheck(PropertyValue property, ProcessingContext processingContext) throws ProcessorException { // Check the property name. checkAttributeMustBeSet(property, "name", property.getName(), processingContext); // Check the property value or source. String propertyValue = property.getValue(); String propertySource = property.getSource(); logDo(processingContext, property, "check the attributes 'value' or 'source'"); if( ( propertyValue == null && propertySource == null ) || ( propertyValue != null && propertySource != null ) ) { error(processingContext, property, "The property value or the attribute 'source' must be set"); } logDone(processingContext, property, "check the attributes 'value' or 'source'"); // Check the attribute 'source'. if(propertySource != null && propertyValue == null) { if(propertySource.equals("")) { error(processingContext, property, "The attribute 'source' must be set"); } else { if (propertySource.startsWith("$")) { propertySource = propertySource.substring(1); } // Has the enclosing composite a property of this name? Property compositeProperty = null; for(Property cp : ((Composite)property.eContainer().eContainer()).getProperty()) { if(propertySource.equals(cp.getName())) { compositeProperty = cp; break; // the for loop. } } if(compositeProperty == null) { error(processingContext, property, "The source composite property '", propertySource, "' is not defined"); } } } // Check the property attribute 'many'. checkAttributeNotSupported(property, "many", property.isSetMany(), processingContext); // Check the property attribute 'file'. checkAttributeNotSupported(property, "file", property.getFile() != null, processingContext); // Check the component property type and value. QName propertyType = (property.getElement() != null) ? property.getElement() : property.getType(); checkProperty(property, propertyType, processingContext); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaComponentPropertyProcessor.java
Override protected final void doComplete(PropertyValue property, ProcessingContext processingContext) throws ProcessorException { // Setting the property value. String propertySource = property.getSource(); if (propertySource != null) { if (propertySource.startsWith("$")) { propertySource = propertySource.substring(1); } // Retrieve the component from the processing context. Component component = getFractalComponent(property.eContainer(), processingContext); // Retrieve the SCA property controller of the component. SCAPropertyController propertyController; try { propertyController = (SCAPropertyController)component.getFcInterface(SCAPropertyController.NAME); } catch (NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller", nsie)); return; } // Retrieve the SCA property controller of the enclosing composite. Component enclosingComposite = getFractalComponent(property.eContainer().eContainer(), processingContext); SCAPropertyController enclosingCompositePropertyController; try { enclosingCompositePropertyController = (SCAPropertyController) enclosingComposite.getFcInterface(SCAPropertyController.NAME); } catch(NoSuchInterfaceException nsie) { severe(new ProcessorException(property, "Could not get the SCA property controller of the enclosing composite", nsie)); return; } try { enclosingCompositePropertyController.setPromoter(propertySource, propertyController, property.getName()); } catch (IllegalPromoterException ipe) { severe(new ProcessorException(property, "Property '" + property.getName() + "' cannot be promoted by the enclosing composite", ipe)); return; } } else { // Set the component property. setProperty(property, property.getName(), processingContext); } }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaInterfaceJavaProcessor.java
Override protected final void doCheck(JavaInterface javaInterface, ProcessingContext processingContext) throws ProcessorException { if(javaInterface.getInterface() == null) { error(processingContext, javaInterface, "the attribute 'interface' must be set"); } else { try { logDo(processingContext, javaInterface, "check the Java interface"); Class<?> clazz = processingContext.loadClass(javaInterface.getInterface()); logDone(processingContext, javaInterface, "check the Java interface"); // Store the Java class into the processing context. storeJavaInterface(javaInterface, processingContext, javaInterface.getInterface(), clazz); } catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java interface '", javaInterface.getInterface(), "' not found"); } } if(javaInterface.getCallbackInterface() != null) { try { logDo(processingContext, javaInterface, "check the Java callback interface"); processingContext.loadClass(javaInterface.getCallbackInterface()); logDone(processingContext, javaInterface, "check the Java callback interface"); } catch (ClassNotFoundException cnfe) { error(processingContext, javaInterface, "Java callback interface '", javaInterface.getCallbackInterface(), "' not found"); } } }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
Override protected final void doCheck(FractalImplementation fractalImplementation, ProcessingContext processingContext) throws ProcessorException { String fractalImplementationDefinition = fractalImplementation.getDefinition(); if(isNullOrEmpty(fractalImplementationDefinition)) { error(processingContext, fractalImplementation, "The attribute 'definition' must be set"); } else { int index = fractalImplementationDefinition.indexOf('('); String fractalFile = (index == -1) ? fractalImplementationDefinition : fractalImplementationDefinition.substring(0, index); if(processingContext.getResource(fractalFile.replace(".", "/") + ".fractal") == null) { error(processingContext, fractalImplementation, "Fractal definition '", fractalFile, "' not found"); } } // check attributes 'policySets' and 'requires'. checkImplementation(fractalImplementation, processingContext); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
Override protected final void doGenerate(FractalImplementation fractalImplementation, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, fractalImplementation, "nothing to generate"); }
// in modules/frascati-implementation-fractal/src/main/java/org/ow2/frascati/implementation/fractal/FrascatiImplementationFractalProcessor.java
Override protected final void doInstantiate(FractalImplementation fractalImplementation, ProcessingContext processingContext) throws ProcessorException { String definition = fractalImplementation.getDefinition(); Component component; try { // Try loading from definition generated with Juliac Class<?> javaClass = processingContext.loadClass(definition); Factory object = (Factory) javaClass.newInstance(); // Create the component instance. component = object.newFcInstance(); } catch (ClassNotFoundException e) { // Create the Julia bootstrap component the first time is needed. if(juliaBootstrapComponent == null) { try { juliaBootstrapComponent = new MyJulia().newFcInstance(); } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { // Error on MyJulia severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ie)); return; } } // Generated class not found try with fractal definition and Fractal ADL try { // init a Fractal ADL factory. org.objectweb.fractal.adl.Factory fractalAdlFactory = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); // init a Fractal ADL context. Map<Object, Object> context = new HashMap<Object, Object>(); // ask the Fractal ADL factory to the Julia Fractal bootstrap. context.put("bootstrap", juliaBootstrapComponent); // ask the Fractal ADL factory to use the current FraSCAti processing context classloader. context.put("classloader", processingContext.getClassLoader()); // load the Fractal ADL definition and create the associated Fractal component. component = (Component) fractalAdlFactory.newComponent(definition, context); } catch (ADLException ae) { // Error with Fractal ADL severe(new ProcessorException(fractalImplementation, "Error into the Fractal implementation : " + definition, ae)); return; } } catch (InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building instance for class " + definition, ie)); return; } catch (IllegalAccessException iae) { severe(new ProcessorException(fractalImplementation, "Can't access class " + definition, iae)); return; } catch (org.objectweb.fractal.api.factory.InstantiationException ie) { severe(new ProcessorException(fractalImplementation, "Error when building component instance: " + definition, ie)); return; } // Store the created component into the processing context. processingContext.putData(fractalImplementation, Component.class, component); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
Override protected void doCheck(BindingType binding, ProcessingContext processingContext) throws ProcessorException { checkBinding(binding, processingContext); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/AbstractBindingFactoryProcessor.java
Override protected final void doComplete(BindingType binding, ProcessingContext processingContext) throws ProcessorException { Component component = getFractalComponent(binding, processingContext); Map<String, Object> hints = createBindingFactoryHints(binding, processingContext.getClassLoader()); if(hasBaseReference(binding)) { BaseReference reference = getBaseReference(binding); String referenceName = reference.getName(); // Following deal with references having a 0..N or 1..N multiplicity and several bindings. Multiplicity multiplicity = reference.getMultiplicity(); if(Multiplicity._0N.equals(multiplicity) || Multiplicity._1N.equals(multiplicity)) { // Add a unique suffix to the reference name. int index = reference.getBinding().indexOf(binding); referenceName = referenceName + '-' + index; } try { log.fine("Calling binding factory\n bind: " + getFractalComponentName(component) + " -> " + referenceName); bindingFactory.bind(component, referenceName, hints); } catch (BindingFactoryException bfe) { severe(new ProcessorException(binding, "Error while binding reference: " + referenceName, bfe)); return; } return; } if(hasBaseService(binding)) { BaseService service = getBaseService(binding); String serviceName = service.getName(); try { log.fine("Calling binding factory\n export : " + getFractalComponentName(component) + " -> " + serviceName); bindingFactory.export(component, serviceName, hints); } catch (BindingFactoryException bfe) { severe(new ProcessorException("Error while binding service: " + serviceName, bfe)); return; } } }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/FrascatiImplementationResourceProcessor.java
Override protected final void doCheck(ResourceImplementation resourceImplementation, ProcessingContext processingContext) throws ProcessorException { String location = resourceImplementation.getLocation(); checkAttributeMustBeSet(resourceImplementation, "location", location, processingContext); // Check that location is present in the class path. if(!isNullOrEmpty(location) && processingContext.getClassLoader().getResourceAsStream(location) == null) { // Location not found. error(processingContext, resourceImplementation, "Location '" + location + "' not found"); } // Get the enclosing SCA component. Component component = getParent(resourceImplementation, Component.class); if(component.getProperty().size() != 0) { error(processingContext, resourceImplementation, "<implementation.resource> can't have SCA properties"); } if(component.getReference().size() != 0) { error(processingContext, resourceImplementation, "<implementation.resource> can't have SCA references"); } List<ComponentService> services = component.getService(); if(services.size() > 1) { error(processingContext, resourceImplementation, "<implementation.resource> can't have more than one SCA service"); } else { ComponentService service = null; if(services.size() == 0) { // The component has zero service then add a service to the component. service = ScaFactory.eINSTANCE.createComponentService(); service.setName("Resource"); services.add(service); } else { // The component has one service. service = services.get(0); } // Get the service interface. Interface itf = service.getInterface(); if(itf == null) { // The component service has no interface than add a Java Servlet interface. JavaInterface javaInterface = ScaFactory.eINSTANCE.createJavaInterface(); javaInterface.setInterface(Servlet.class.getName()); service.setInterface(javaInterface); } else { // Check if this is a Java Servlet interface. boolean isServletInterface = (itf instanceof JavaInterface) ? Servlet.class.getName().equals(((JavaInterface)itf).getInterface()) : false; if(!isServletInterface) { error(processingContext, resourceImplementation, "<service name=\"" + service.getName() + "\"> must have an <interface.java interface=\"" + Servlet.class.getName() + "\">"); } } } // check attributes 'policySets' and 'requires'. checkImplementation(resourceImplementation, processingContext); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/FrascatiImplementationResourceProcessor.java
Override protected final void doGenerate(ResourceImplementation resourceImplementation, ProcessingContext processingContext) throws ProcessorException { // Generate a FraSCAti SCA primitive component. generateScaPrimitiveComponent(resourceImplementation, processingContext, ImplementationResourceComponent.class.getName()); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/FrascatiImplementationResourceProcessor.java
Override protected final void doInstantiate(ResourceImplementation resourceImplementation, ProcessingContext processingContext) throws ProcessorException { // Instantiate a FraSCAti SCA primitive component. org.objectweb.fractal.api.Component component = instantiateScaPrimitiveComponent(resourceImplementation, processingContext, ImplementationResourceComponent.class.getName()); // Retrieve the SCA property controller of this Fractal component. SCAPropertyController propertyController = (SCAPropertyController)getFractalInterface(component, SCAPropertyController.NAME); // Set the classloader property. propertyController.setValue("classloader", processingContext.getClassLoader()); // Set the location property. propertyController.setValue("location", resourceImplementation.getLocation()); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
Override protected final void doCheck(VelocityImplementation velocityImplementation, ProcessingContext processingContext) throws ProcessorException { String location = velocityImplementation.getLocation(); checkAttributeMustBeSet(velocityImplementation, "location", location, processingContext); boolean checkDefaultInClassLoader = true; // Check that location is present in the class path. if(!isNullOrEmpty(location) && processingContext.getClassLoader().getResourceAsStream(location) == null) { // Location not found. error(processingContext, velocityImplementation, "Location '" + location + "' not found"); checkDefaultInClassLoader = false; } String default_ = velocityImplementation.getDefault(); checkAttributeMustBeSet(velocityImplementation, "default", default_, processingContext); // Check that default is present in the class path. if(checkDefaultInClassLoader && !isNullOrEmpty(default_) && processingContext.getClassLoader().getResourceAsStream(location + '/' + default_) == null) { // Default not found. error(processingContext, velocityImplementation, "Default '" + default_ + "' not found"); } // Get the enclosing SCA component. Component component = getParent(velocityImplementation, Component.class); List<ComponentService> services = component.getService(); if(services.size() > 1) { error(processingContext, velocityImplementation, "<implementation.velocity> cannot have more than one SCA service"); } else { ComponentService service = null; if(services.size() == 0) { // The component has zero service then add a service to the component. service = ScaFactory.eINSTANCE.createComponentService(); service.setName("Velocity"); services.add(service); } else { // The component has one service. service = services.get(0); } // Get the service interface. Interface itf = service.getInterface(); if(itf == null) { // The component service has no interface then add a Java Servlet interface. JavaInterface javaInterface = ScaFactory.eINSTANCE.createJavaInterface(); javaInterface.setInterface(Servlet.class.getName()); service.setInterface(javaInterface); itf = javaInterface; } // Stores if the component provides the Servlet interface or not processingContext.putData(velocityImplementation, String.class, ((JavaInterface)itf).getInterface()); processingContext.putData(velocityImplementation, Boolean.class, (itf instanceof JavaInterface) ? Servlet.class.getName().equals(((JavaInterface)itf).getInterface()) : false); } // check attributes 'policySets' and 'requires'. checkImplementation(velocityImplementation, processingContext); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
Override protected final void doGenerate(VelocityImplementation velocityImplementation, ProcessingContext processingContext) throws ProcessorException { // Get the parent component. Component component = getParent(velocityImplementation, Component.class); boolean isServletItf = processingContext.getData(velocityImplementation, Boolean.class); // Name of the content class. String contentFullClassName = null; if(isServletItf && component.getProperty().size() == 0 && component.getReference().size() == 0) { // if no property and no reference then use default ImplementationVelocity class. contentFullClassName = ServletImplementationVelocity.class.getName(); } else { String basename = isServletItf ? velocityImplementation.getLocation() : velocityImplementation.getLocation()+velocityImplementation.getDefault(); int hashCode =basename.hashCode(); if(hashCode < 0) hashCode = -hashCode; // if some property or some reference then generate an ImplementationVelocity class. String contentClassName = "ImplementationVelocity" + hashCode; // Add the package to the content class name. contentFullClassName = this.packageGeneration + '.' + contentClassName; try { processingContext.loadClass(contentFullClassName); } catch(ClassNotFoundException cnfe) { // If the class can not be found then generate it. log.info(contentClassName); // Create the output directory for generation. String outputDirectory = this.membraneGeneration.getOutputDirectory() + "/generated-frascati-sources"; // Add the output directory to the Java compilation process. this.membraneGeneration.addJavaSource(outputDirectory); try { // Generate a sub class of ImplementationVelocity declaring SCA references and properties. if (isServletItf) { ServletImplementationVelocity.generateContent(component, processingContext, outputDirectory, packageGeneration, contentClassName); } else { Class<?> itf = processingContext.loadClass(processingContext.getData(velocityImplementation, String.class)); ProxyImplementationVelocity.generateContent(component, itf, processingContext, outputDirectory, packageGeneration, contentClassName); } } catch(FileNotFoundException fnfe) { severe(new ProcessorException(velocityImplementation, fnfe)); } catch (ClassNotFoundException ex) { severe(new ProcessorException(velocityImplementation, ex)); } } } // Generate a FraSCAti SCA primitive component. generateScaPrimitiveComponent(velocityImplementation, processingContext, contentFullClassName); // Store the content class name to retrieve it from next doInstantiate method. processingContext.putData(velocityImplementation, String.class, contentFullClassName); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ImplementationVelocityProcessor.java
Override protected final void doInstantiate(VelocityImplementation velocityImplementation, ProcessingContext processingContext) throws ProcessorException { // Instantiate a FraSCAti SCA primitive component. org.objectweb.fractal.api.Component component = instantiateScaPrimitiveComponent(velocityImplementation, processingContext, processingContext.getData(velocityImplementation, String.class)); // Retrieve the SCA property controller of this Fractal component. SCAPropertyController propertyController = (SCAPropertyController)getFractalInterface(component, SCAPropertyController.NAME); // Set the classloader property. propertyController.setValue("classloader", processingContext.getClassLoader()); // Set the location property. propertyController.setValue("location", velocityImplementation.getLocation()); // Set the default property. propertyController.setValue("default", velocityImplementation.getDefault()); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
Override protected final void doCheck(JGroupsBinding binding, ProcessingContext ctx) throws ProcessorException { checkBinding(binding, ctx); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
Override protected final void doGenerate(JGroupsBinding binding, ProcessingContext ctx) throws ProcessorException { logFine(ctx, binding, "nothing to generate"); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
Override protected final void doInstantiate(JGroupsBinding binding, ProcessingContext ctx) throws ProcessorException { try { String cluster = binding.getCluster(); Class<?> itf = null; if (hasBaseReference(binding)) { // Client side itf = getBaseReferenceJavaInterface(binding, ctx); } if (hasBaseService(binding)) { // Server side itf = getBaseServiceJavaInterface(binding, ctx); } if (cluster == null || cluster.equals("")) cluster = itf.getName(); // TODO: Share connector instances for a given cluster @SuppressWarnings({ "rawtypes", "unchecked" }) JGroupsRpcConnector content = new JGroupsRpcConnector(itf); ComponentType connectorType = content.getComponentType(tf); Component connector = cf.createComponent(connectorType, "primitive", content); Component port = getFractalComponent(binding, ctx); getNameController(connector).setFcName( getNameController(port).getFcName() + "-jgroups-connector"); JGroupsRpcAttributes ac = (JGroupsRpcAttributes) getAttributeController(connector); ac.setCluster(cluster); ac.setProperties(binding.getConfiguration()); for (Component composite : getSuperController(port) .getFcSuperComponents()) { addFractalSubComponent(composite, connector); } if (hasBaseService(binding)) { // Server side BaseService service = getBaseService(binding); bindFractalComponent(connector, "servant", port.getFcInterface(service.getName())); } if (hasBaseReference(binding)) { // Client side BaseReference reference = getBaseReference(binding); bindFractalComponent(port, reference.getName(),content.getProxy(ctx.getClassLoader())); } }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/FrascatiBindingJGroupsProcessor.java
Override protected final void doComplete(JGroupsBinding binding, ProcessingContext ctx) throws ProcessorException { logFine(ctx, binding, "nothing to complete"); }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
Override protected final void doCheck(NativeInterface nativeItf, ProcessingContext processingContext) throws ProcessorException { // Check the attribute 'descriptor' String desc = nativeItf.getDescriptor(); if (desc == null || desc.equals("")) { error(processingContext, nativeItf, "The attribute 'descriptor' must be set"); return; } File file = new File(desc); if (!file.exists()) { log.severe("The descriptor '" + desc + "' does not exist on the system."); } else if (!file.canRead()) { log.severe("The descriptor '" + desc + "' is not readable."); } String javaInterface = this.compiler.packageName(file) + "." + this.compiler.interfaceName(file); Class<?> clazz = null; try { clazz = processingContext.loadClass(javaInterface); } catch (ClassNotFoundException cnfe) { // If the Java interface is not found then this requires to compile Native to Java. } storeJavaInterface(nativeItf, processingContext, javaInterface, clazz); }
// in modules/module-native/frascati-interface-native/src/main/java/org/ow2/frascati/native_/FraSCAtiInterfaceNativeProcessor.java
Override protected final void doGenerate(NativeInterface nativeItf, ProcessingContext processingContext) throws ProcessorException { // If no Java interface computed during doCheck() then compile if (getClass(nativeItf, processingContext) != null) { return; } final String filename = nativeItf.getDescriptor(); if (this.log.isLoggable(INFO)) { this.log.info("Compiling the descriptor '" + filename + "'..."); } File output = new File(this.membraneGen.getOutputDirectory() + "/" + targetDir); try { this.compiler.compile(new File(filename), output); } catch (IOException exc) { severe(new ProcessorException("Error when compiling descriptor", exc)); } // Ask OW2 FraSCAti Juliac to compile generated sources. this.membraneGen.addJavaSource(output.getAbsolutePath()); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doCheck(JnaBinding jnaBinding, ProcessingContext processingContext) throws ProcessorException { checkAttributeMustBeSet(jnaBinding, "library", jnaBinding.getLibrary(), processingContext); if (!hasBaseReference(jnaBinding)) { error(processingContext, jnaBinding, "<binding.jna> can only be child of <sca:reference>"); } checkBinding(jnaBinding, processingContext); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doGenerate(JnaBinding jnaBinding, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, jnaBinding, "nothing to generate"); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
private Component createProxyComponent(JnaBinding binding, ProcessingContext ctx) throws ProcessorException { Class<?> cls = getBaseReferenceJavaInterface(binding, ctx); try { Object library = Native.loadLibrary(binding.getLibrary(), cls); ComponentType proxyType = tf .createComponentType(new InterfaceType[] { tf .createInterfaceType(JNA_ITF, cls.getName(), false, false, false) }); return cf.createComponent(proxyType, "primitive", library); } catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); } catch (FactoryException e) { throw new ProcessorException(binding, "JNA Proxy component failed: ", e); } }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doInstantiate(JnaBinding binding, ProcessingContext ctx) throws ProcessorException { Component proxy = createProxyComponent(binding, ctx); Component port = getFractalComponent(binding, ctx); try { getNameController(proxy).setFcName( getNameController(port).getFcName() + "-jna-proxy"); for (Component composite : getSuperController(port) .getFcSuperComponents()) { addFractalSubComponent(composite, proxy); } BaseReference reference = getBaseReference(binding); bindFractalComponent(port, reference.getName(), proxy.getFcInterface(JNA_ITF)); } catch (NoSuchInterfaceException e) { throw new ProcessorException(binding, "JNA Proxy interface not found: ", e); } logFine(ctx, binding, "importing done"); }
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
Override protected final void doComplete(JnaBinding jnaBinding, ProcessingContext processingContext) throws ProcessorException { logFine(processingContext, jnaBinding, "nothing to complete"); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ScaImplementationSpringProcessor.java
Override protected final void doCheck(SpringImplementation springImplementation, ProcessingContext processingContext) throws ProcessorException { String springImplementationLocation = springImplementation.getLocation(); if(springImplementationLocation == null || springImplementationLocation.equals("")) { error(processingContext, springImplementation, "The attribute 'location' must be set"); } else { if(processingContext.getResource(springImplementationLocation) == null) { error(processingContext, springImplementation, "Location '", springImplementationLocation, "' not found"); } } // check attributes 'policySets' and 'requires'. checkImplementation(springImplementation, processingContext); }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ScaImplementationSpringProcessor.java
Override protected final void doInstantiate(SpringImplementation springImplementation, ProcessingContext processingContext) throws ProcessorException { // Get the Spring location. String springLocation = springImplementation.getLocation(); log.finer("Create an SCA component with the Spring implementation " + springLocation + " and the Fractal component type " + getFractalComponentType(springImplementation, processingContext).toString()); // TODO: Must handle location as described in the SCA specification. // location could be a Jar file or a directory. // Currently, location is considered to refer a Spring XML file in the class path. // Create the SCA composite. Component component = createFractalComposite(springImplementation, processingContext); // Create the Spring application context. // TODO: Must use another ApplicationContext to read XML files from JAR // files or directories. ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( new String[] { springLocation }, new ParentApplicationContext(component)); // It must use the current thread class loader to load Java classes. context.setClassLoader(processingContext.getClassLoader()); // Connect the Fractal composite to Spring beans. connectFractalComposite(springImplementation, processingContext, context); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
Override protected final void doCheck(JMSBinding jmsBinding, ProcessingContext processingContext) throws ProcessorException { // Check if getUri() is well-formed. if (jmsBinding.getUri() != null && !jmsBinding.getUri().equals("")) { Matcher matcher = JMS_URI_PATTERN.matcher(jmsBinding.getUri()); if (!matcher.matches()) { throw new ProcessorException(jmsBinding, "JMS URI is not well formed."); } String jmsvariant = matcher.group(1); try { jmsvariant = URLDecoder.decode(jmsvariant, "UTF-8"); } catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); } if (!jmsvariant.equals("jndi")) { throw new ProcessorException(jmsBinding, "Only jms:jndi: variant is supported."); } // When the @uri attribute is specified, the destination element // MUST NOT be present if (jmsBinding.getDestination() != null) { throw new ProcessorException(jmsBinding, "Binding can't have both a JMS URI and a destination element."); } } // Default checking done on any SCA binding. super.doCheck(jmsBinding, processingContext); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
Override protected final void doCheck(BpelImplementation bpelImplementation, ProcessingContext processingContext) throws ProcessorException { // Check the 'process' attribute. QName bpelImplementationProcess = bpelImplementation.getProcess(); if(bpelImplementationProcess == null) { error(processingContext, bpelImplementation, "The attribute 'process' must be set"); } else { String processNamespace = bpelImplementationProcess.getNamespaceURI(); String processUri = null; // When the process namespace starts by "classpath:" if(processNamespace.startsWith(CLASSPATH_NS)) { StringBuffer sb = new StringBuffer(); sb.append(processNamespace.substring(CLASSPATH_NS.length())); if(sb.length() > 0) { sb.append('/'); } sb.append(bpelImplementationProcess.getLocalPart()); // Search the process file into the processing context's class loader. URL resource = processingContext.getResource(sb.toString()); if(resource != null) { processUri = resource.toString(); } } if(processUri == null) { processUri = processNamespace + '/' + bpelImplementationProcess.getLocalPart(); } try { BPELProcess bpelProcess = bpelEngine.newBPELProcess(processUri); // Register of JAXB Object Factories. JAXB.registerObjectFactoryFromClassLoader(processingContext.getClassLoader()); // System.out.println(bpelProcess); // Store the created BPELProcess into the processing context. processingContext.putData(bpelImplementation, BPELProcess.class, bpelProcess); } catch(FrascatiException exc) { // exc.printStackTrace(); error(processingContext, bpelImplementation, "Can't read BPEL process ", bpelImplementationProcess.toString()); } catch(Exception exc) { severe(new ProcessorException(bpelImplementation, "Can not read BPEL process " + bpelImplementationProcess, exc)); return; } } // check attributes 'policySets' and 'requires'. checkImplementation(bpelImplementation, processingContext); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
Override protected final void doGenerate(BpelImplementation bpelImplementation, ProcessingContext processingContext) throws ProcessorException { // Obtain the BPELProcess stored during doCheck() BPELProcess bpelProcess = processingContext.getData(bpelImplementation, BPELProcess.class); // Compile all WSDL imported by the BPEL process. for(String wsdlUri : bpelProcess.getAllImportedWsdlLocations()) { // Check if the WSDL file is present in the processing context's class loader. URL url = processingContext.getResource(wsdlUri); if(url != null) { wsdlUri = url.toString(); } // Compile the WSDL file. try { this.wsdlCompiler.compileWSDL(wsdlUri, processingContext); } catch(Exception exc) { error(processingContext, bpelImplementation, "Can't compile WSDL '", wsdlUri, "'"); } } super.doGenerate(bpelImplementation, processingContext); }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/FrascatiImplementationBpelProcessor.java
Override protected final void doInstantiate(BpelImplementation bpelImplementation, ProcessingContext processingContext) throws ProcessorException { Component containerOfProcesses = null; // Obtain the BPELProcess stored during doCheck() BPELProcess bpelProcess = processingContext.getData(bpelImplementation, BPELProcess.class); try { containerOfProcesses = bpelProcess.deploy(); } catch(Exception e) { warning(new ProcessorException("Error during deployment of the BPEL process '" + bpelImplementation.getProcess() + "'", e)); return; } // Instantiate the SCA composite containing the process. doInstantiate(bpelImplementation, processingContext, bpelProcess); // Set the name of the EasyBPEL container component. setFractalComponentName(containerOfProcesses, "implementation.bpel"); // Add the EasyBPEL process component to the SCA BPEL composite. addFractalSubComponent( getFractalComponent(bpelImplementation, processingContext), containerOfProcesses); }
4
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when checking the composite instance '" + qname + "'", pe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when generating the composite instance '" + qname + "'", pe)); return null; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { severe(new ManagerException("Error when completing the composite instance '" + qname + "'", pe)); return null; }
1
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/manager/AssemblyFactoryManager.java
catch (ProcessorException pe) { throw new ManagerException("Error when instantiating the composite instance '" + qname + "'", pe); }
0
unknown (Lib) ReflectionException 9 9
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalLifeCycleException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchInterfaceException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (ClassNotFoundException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (NoSuchMethodException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (IllegalAccessException e) { throw new ReflectionException(e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (InvocationTargetException e) { throw new ReflectionException(e); }
2
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { if (STATE.equals(attribute)) { try { return Fractal.getLifeCycleController(component).getFcState(); } catch (NoSuchInterfaceException e) { throw new MBeanException(e); } } try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); return propertyController.getValue(attribute); } catch (NoSuchInterfaceException e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } try { return attributes.getAttributeValue(attribute); } catch (Exception e) { if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, e.getMessage(), e); } } throw new AttributeNotFoundException(); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException { try { SCAPropertyController propertyController = (SCAPropertyController) component .getFcInterface(SCAPropertyController.NAME); propertyController.setValue(attribute.getName(), attribute.getValue()); } catch (NoSuchInterfaceException e) { logger.log(Level.FINE, e.getMessage(), e); } try { attributes.setAttribute(attribute.getName(), attribute.getValue()); } catch (Exception e) { logger.log(Level.FINE, e.getMessage(), e); } }
0 0 0
checked (Domain) ResourceAlreadyManagedException
public class ResourceAlreadyManagedException extends Exception
{
    /**
     * Defaut SERIAL ID
     */
    private static final long serialVersionUID = 1L;

    /**
     * @param arg
     */
    public ResourceAlreadyManagedException(String arg)
    {
        super(new StringBuilder("Resource already known : ").append(arg)
                .toString());
    }
}
1 0 13
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object processContribution(String contribution,ProcessingContext processingContext) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processContribution(contribution, newProcessingContext(processingContext)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object getContribution(String contribution) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processContribution(contribution, newProcessingContext()); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private Object processComposite(QName composite,ProcessingContext processingContext) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(composite, newProcessingContext(processingContext)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite) throws ManagerException, ResourceAlreadyManagedException { return getComposite(new QName(composite)); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(QName composite) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(composite, newProcessingContext()); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite,ClassLoader classLoader) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(new QName(composite), newProcessingContext(classLoader)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private final Object getComposite(String composite,URL[] libs) throws ManagerException, ResourceAlreadyManagedException { //calls are no more intercepted enabled = false; try { return compositeManager.processComposite(new QName(composite), newProcessingContext(libs)); } finally { //calls can be intercepted again enabled = true; } }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private ProcessingContext newProcessingContext() throws ResourceAlreadyManagedException { return newProcessingContext(new URL[0]); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private ProcessingContext newProcessingContext(ClassLoader classLoader) throws ResourceAlreadyManagedException { //If the ClassLoader is an AbstractResourceClassLoader... if(AbstractResourceClassLoader.class.isAssignableFrom(classLoader.getClass())) { //Create a new ProcessingContext using it return compositeManager.newProcessingContext(classLoader); } //Otherwise prepare an list of URLs to create a new ClassLoader // for a new ProcessingContext List<URL> libs = new ArrayList<URL>(); //keep all urls that have been previously registered if(URLClassLoader.class.isAssignableFrom(classLoader.getClass())) { URL[] libraries = ((URLClassLoader)classLoader).getURLs(); for(URL library : libraries) { libs.add(library); } } return newProcessingContext(libs.toArray(new URL[0])); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private ProcessingContext newProcessingContext(ProcessingContext processingContext) throws ResourceAlreadyManagedException { //get the ProcessingContext's ClassLoader ClassLoader classLoader = processingContext.getClassLoader(); //if it's already an AbstractResourceClassLoader... if(AbstractResourceClassLoader.class.isAssignableFrom(classLoader.getClass()) || AbstractResourceClassLoader.class.isAssignableFrom(classLoader.getParent().getClass())) { //do nothing and return the processingContext argument return processingContext; } //otherwise prepare an list of URLs to create a new ClassLoader // for a new ProcessingContext List<URL> libs = new ArrayList<URL>(); //keep all urls that have been previously registered while(URLClassLoader.class.isAssignableFrom(classLoader.getClass()) && classLoader != foContext.getClassLoader() && classLoader != null) { URL[] libraries = ((URLClassLoader)classLoader).getURLs(); for(URL library : libraries) { libs.add(library); } classLoader = classLoader.getParent(); } //create the new ProcessingContext ProcessingContext newContext = newProcessingContext(libs.toArray(new URL[0])); //define its processing mode using the one of the ProcessingContext argument newContext.setProcessingMode(processingContext.getProcessingMode()); return newContext; }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
private ProcessingContext newProcessingContext(URL[] libs) throws ResourceAlreadyManagedException { //create a new AbstractResourceClassLoader... AbstractResourceClassLoader loader = new AbstractResourceClassLoader( foContext.getClassLoader(),foContext.getClManager(),null); //add it URLs passed on as a parameter for(URL library : libs) { loader.addUrl(library); } return compositeManager.newProcessingContext(loader); }
4
            
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ResourceAlreadyManagedException e) { log.log(Level.INFO, e.getMessage()); }
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage()); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (ResourceAlreadyManagedException e) { e.printStackTrace(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/service/FraSCAtiOSGiServiceImpl.java
catch (ResourceAlreadyManagedException e) { log.log(Level.WARNING, e.getMessage(),e); }
0 0
checked (Domain) ResourceCreateException
public class ResourceCreateException extends Exception
{
    /**
     * Default SERIAL ID
     */
    private static final long serialVersionUID = 1L;

    public ResourceCreateException()
    {
    }

    public ResourceCreateException(String arg0)
    {
        super(arg0);
    }

    public ResourceCreateException(Throwable arg0)
    {
        super(arg0);
    }

    public ResourceCreateException(String arg0, Throwable arg1)
    {
        super(arg0, arg1);
    }
}
0 0 0 0 0 0
unknown (Lib) ResourceNotFoundException 2
            
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
public InputStream getResourceStream(String name) throws ResourceNotFoundException { if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { return classLoader.getResourceAsStream(this.location + '/' + name); } catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); } }
1
            
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); }
1
            
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ClassLoaderResourceLoader.java
public InputStream getResourceStream(String name) throws ResourceNotFoundException { if (name == null || name.length() == 0) { throw new ResourceNotFoundException ("No template name provided"); } try { return classLoader.getResourceAsStream(this.location + '/' + name); } catch(Exception fnfe) { // convert to a general Velocity ResourceNotFoundException. throw new ResourceNotFoundException( fnfe.getMessage() ); } }
0 0 0
unknown (Lib) RmiRegistryCreationException 0 0 0 2
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/action/AddBindingMenuItem.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); LOG.log(Level.SEVERE, msg); //, rmie); return; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddBinding.java
catch (RmiRegistryCreationException rmie) { String msg = rmie.getMessage() + "\nAddress already in use?"; JOptionPane.showMessageDialog(null, msg); logger.log(Level.SEVERE, msg); //, rmie); return; }
0 0
runtime (Lib) RuntimeException 8
            
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
protected final void registerCommands() { // Internal commands register(new HelpCommand()); Properties commandsConfig = new Properties(); try { String resourceName = "org/ow2/frascati/fscript/console/commands.properties"; ClassLoader cl = FraSCAtiFScript.getSingleton().getClassLoaderManager().getClassLoader(); InputStream commandsStream = cl.getResourceAsStream(resourceName); if (commandsStream == null) { showError("Could not find configuration file " + resourceName + "."); throw new RuntimeException("Could not find configuration file " + resourceName + "."); } commandsConfig.load(commandsStream); } catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); } for (Object o : commandsConfig.keySet()) { String key = (String) o; if (key.endsWith(".class")) { String name = key.substring("command.".length(), key.lastIndexOf('.')); String klass = commandsConfig.getProperty(key); String shortDesc = commandsConfig.getProperty("command." + name + ".shortDesc"); String longDesc = commandsConfig.getProperty("command." + name + ".longDesc"); Command cmd = createCommand(name, klass, shortDesc, longDesc); if (cmd != null) { register(cmd); } } } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object get() { try { return reader.invoke(target, new Object[0]); } catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); } catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void set(Object value) throws IllegalArgumentException { try { writer.invoke(target, new Object[] { value }); } catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); } catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); } }
7
            
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch (MalformedURLException mue) { throw new RuntimeException(mue); }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
catch(Exception exc) { throw new RuntimeException(exc); }
// in modules/frascati-fscript/console/src/main/java/org/ow2/frascati/fscript/console/TextConsole.java
catch (IOException e) { showError("Could not read commands configuration file.", e); throw new RuntimeException("Could not read commands configuration file.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while reading attribute " + name + ".", ite); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (IllegalAccessException e) { throw new RuntimeException( "Access control errors not handled.", e); }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
catch (InvocationTargetException ite) { throw new RuntimeException("Error while writing attribute " + name + ".", ite); }
0 1
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (RuntimeException e) { throw new MBeanException(e); }
1
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/JmxComponent.java
catch (RuntimeException e) { throw new MBeanException(e); }
0
unknown (Lib) ScriptException 4
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object eval(String script, ScriptContext sctx) throws ScriptException { try { return eval(new FileReader(script),sctx); } catch (FileNotFoundException e) { throw new ScriptException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object eval(Reader reader, ScriptContext ctx) throws ScriptException { this.log("compile xquery script "); //Create default configuration and add JaxbObjectModel implementation this.saxonConfiguration = new Configuration(); this.saxonConfiguration.getExternalObjectModels().add(new JaxBObjectModel()); //Create default static query context final StaticQueryContext context = new StaticQueryContext(saxonConfiguration); String script = null; try { //convert the reader in String script = this.convertStreamToString(reader); //compilation script this.compiledScript = context.compileQuery(script); } catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); } catch (IOException e) {throw new ScriptException(e);} log("script compiled"); return this.compiledScript; }
4
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (FileNotFoundException e) { throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e1) {throw new ScriptException(e1);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (IOException e) {throw new ScriptException(e);}
8
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object eval(String script, ScriptContext sctx) throws ScriptException { try { return eval(new FileReader(script),sctx); } catch (FileNotFoundException e) { throw new ScriptException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object eval(Reader reader, ScriptContext ctx) throws ScriptException { this.log("compile xquery script "); //Create default configuration and add JaxbObjectModel implementation this.saxonConfiguration = new Configuration(); this.saxonConfiguration.getExternalObjectModels().add(new JaxBObjectModel()); //Create default static query context final StaticQueryContext context = new StaticQueryContext(saxonConfiguration); String script = null; try { //convert the reader in String script = this.convertStreamToString(reader); //compilation script this.compiledScript = context.compileQuery(script); } catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); } catch (IOException e) {throw new ScriptException(e);} log("script compiled"); return this.compiledScript; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object invokeFunction(String func, Object[] arg1) throws ScriptException, NoSuchMethodException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public Object invokeMethod(Object object, String method, Object[] args) throws ScriptException, NoSuchMethodException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public CompiledScript compile(String script) throws ScriptException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
public CompiledScript compile(Reader arg0) throws ScriptException { return null; }
// in modules/frascati-introspection/frascati-introspection-fscript-impl/src/main/java/org/ow2/frascati/remote/introspection/ReconfigurationImpl.java
public Collection<Node> eval(String script) throws ScriptException { Object evalResults = engine.eval(script); Collection<Node> results = new ArrayList<Node>(); if (evalResults instanceof Collection) { Collection<?> objects = (Collection<?>) evalResults; for (Object obj : objects) { Node resource = getResourceFor(obj); results.add(resource); } } else { Node resource = getResourceFor(evalResults); results.add(resource); } return results; }
// in modules/frascati-introspection/frascati-introspection-fscript-impl/src/main/java/org/ow2/frascati/remote/introspection/ReconfigurationImpl.java
public String register(String script) throws ScriptException { Reader reader = new StringReader(script.trim()); @SuppressWarnings("unchecked") Set<String> loadedProc = (Set<String>) engine.eval(reader); return loadedProc.toString(); }
4
            
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException ise) { displayError(ise); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException e) { displayError(e); }
// in modules/frascati-explorer/fscript-plugin/src/main/java/org/ow2/frascati/explorer/fscript/gui/Console.java
catch (ScriptException e2) { displayError(e2); }
// in modules/frascati-implementation-script/src/main/java/org/ow2/frascati/implementation/script/FrascatiImplementationScriptProcessor.java
catch(ScriptException se) { severe(new ProcessorException(scriptImplementation, "Error when evaluating '" + script + "'", se)); return; }
0 0
unknown (Lib) ScriptExecutionError 2
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { String compositeName = (String) args.get(0); CompositeManager domain = getDomain(); Object newComponent; try { newComponent = domain.getComposite(compositeName); } catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); } return model.createScaComponentNode((Component) newComponent); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { String compositeName = (String) args.get(0); CompositeManager domain = getDomain(); try { domain.removeComposite(compositeName); } catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); } return null; }
2
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); }
4
            
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaNewAction.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { String compositeName = (String) args.get(0); CompositeManager domain = getDomain(); Object newComponent; try { newComponent = domain.getComposite(compositeName); } catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to instanciate composite " + compositeName); throw new ScriptExecutionError(err, e); } return model.createScaComponentNode((Component) newComponent); }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/model/ScaRemoveAction.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { String compositeName = (String) args.get(0); CompositeManager domain = getDomain(); try { domain.removeComposite(compositeName); } catch (ManagerException e) { Diagnostic err = new Diagnostic(ERROR, "Unable to remove composite " + compositeName); throw new ScriptExecutionError(err, e); } return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddRestBinding.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { Map<String, Object> hints = new HashMap<String, Object>(); InterfaceNode itf = (InterfaceNode) args.get(0); String uri = (String) args.get(1); hints.put(PLUGIN_ID, "rest"); hints.put(RestConnectorConstants.URI, uri); this.createBinding(itf.getName(), itf.getInterface().getFcItfOwner(), itf.isClient(), hints); return null; }
// in modules/frascati-fscript/core/src/main/java/org/ow2/frascati/fscript/procedures/AddWsBinding.java
public Object apply(List<Object> args, Context ctx) throws ScriptExecutionError { Map<String, Object> hints = new HashMap<String, Object>(); InterfaceNode itf = (InterfaceNode) args.get(0); String uri = (String) args.get(1); hints.put(PLUGIN_ID, "ws"); hints.put(WsConnectorConstants.URI, uri); this.createBinding(itf.getName(), itf.getInterface().getFcItfOwner(), itf.isClient(), hints); return null; }
0 0 0
unknown (Lib) SecurityException 1
            
// in osgi/frascati-in-osgi/bundles/activator/src/main/java/org/ow2/frascati/osgi/launcher/FraSCAtiOSGiClassLoader.java
private Class<?> createClass(String origName, String packageName, URL codeSourceURL, InputStream is) { if (is == null) { return null; } byte[] clBuf = null; try { byte[] buf = new byte[4096]; ByteArrayOutputStream bos = new ByteArrayOutputStream(4096); int count; while ((count = is.read(buf)) > 0) { bos.write(buf, 0, count); } clBuf = bos.toByteArray(); } catch (IOException e) { return null; } finally { try { is.close(); } catch (IOException e) { } } if (packageName != null) { Package packageObj = getPackage(packageName); if (packageObj == null) { definePackage(packageName, null, null, null, null, null, null, null); } else { if (packageObj.isSealed()) { throw new SecurityException(); } } } try { CodeSource cs = new CodeSource(codeSourceURL, (Certificate[]) null); Class<?> clazz = defineClass(origName, clBuf, 0, clBuf.length, cs); return clazz; } catch (LinkageError e) { // A duplicate class definition error can occur if // two threads concurrently try to load the same class file - // this kind of error has been detected using binding-jms Class<?> clazz = findLoadedClass(origName); if (clazz != null) { System.out.println("LinkageError :" + origName + " class already resolved "); } return clazz; } catch (Exception e) { log.log(Level.WARNING,e.getMessage(),e); } return null; }
0 0 11
            
// in nuxeo/frascati-nuxeo-service/src/main/java/org/ow2/frascati/nuxeo/FraSCAtiNuxeoInitializer.java
catch (SecurityException e) { log.log(Level.WARNING,e.getMessage(),e); }
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/ParserEventWeaver.java
catch (SecurityException e) { log.log(Level.SEVERE,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reference/ServiceReferenceUtil.java
catch (SecurityException e) { logg.log(Level.WARNING,e.getMessage(),e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { log.log(Level.SEVERE, e.getMessage(), e); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/frascati-util/src/main/java/org/ow2/frascati/util/reflect/ReflectionUtil.java
catch (SecurityException e) { // log.log(Level.INFO,e.getMessage()); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/FraSCAtiOSGiContextImpl.java
catch (SecurityException e) { e.printStackTrace(); }
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
catch (SecurityException e) { log.log(Level.WARNING,e.getMessage(),e);
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/Launcher.java
catch (SecurityException e) { warning(new FrascatiException("Unable to get the method '" + methodName + "'", e)); return null; }
0 0
unknown (Lib) ServletException 2 2
            
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(FileUploadException fue) { throw new ServletException(fue);
// in frascati-studio/src/main/java/org/easysoa/impl/UploaderImpl.java
catch(Exception e) { throw new ServletException(e); }
5
            
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/manager/JettyServletManager.java
Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Check if this request is for this handler. if(target.startsWith(getName())) { // Remove the path from the path info of this request. String old_path_info = baseRequest.getPathInfo(); baseRequest.setPathInfo(old_path_info.substring(getName().length())); // Dispatch the request to the servlet. this.servlet.service(request, response); // Restore the previous path info. baseRequest.setPathInfo(old_path_info); // This request was handled. baseRequest.setHandled(true); } }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
Override public final void init(ServletConfig servletConfig) throws ServletException { log.fine("OW2 FraSCAti Servlet - Initialization..."); // Init the CXF servlet. super.init(servletConfig); // Keep this as the FraSCAtiServlet singleton instance. singleton = this; String frascatiBootstrap = servletConfig.getInitParameter(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME); if(frascatiBootstrap != null) { System.setProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME, frascatiBootstrap); } // Set that no prefix is added to <sca:binding uri>. AbstractBindingProcessor.setEmptyBindingURIBase(); try { frascati = FraSCAti.newFraSCAti(); } catch (FrascatiException e) { log.severe("Cannot instanciate FraSCAti!"); return; } // Get the list of composites to launch. String composite = servletConfig.getInitParameter("composite"); if(composite == null) { log.warning("OW2 FraSCAti Servlet - No SCA composites to launch."); } else { // SCA composites are separated by spaces. String[] composites = composite.split("\\s+"); // Launch SCA composites. launch(composites); } }
// in modules/frascati-servlet-cxf/src/main/java/org/ow2/frascati/servlet/FraSCAtiServlet.java
Override public void service(ServletRequest request, ServletResponse response) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; String pathInfo = httpRequest.getPathInfo(); if(pathInfo != null) { // Search a deployed servlet that could handle this request. for(Entry<String, Servlet> entry : servlets.entrySet()) { if(pathInfo.startsWith(entry.getKey())) { entry.getValue().service(new MyHttpServletRequestWrapper(httpRequest, pathInfo.substring(entry.getKey().length())), response); return; } } } // If no deployed servlet for this request then dispatch this request via Apache CXF. super.service(request, response); }
// in modules/frascati-implementation-resource/src/main/java/org/ow2/frascati/implementation/resource/ImplementationResourceComponent.java
Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // The requested resource. String pathInfo = request.getPathInfo(); if(pathInfo == null) { pathInfo = ""; } int idx = pathInfo.lastIndexOf('.'); String extension = (idx != -1) ? pathInfo.substring(idx) : ""; // Search the requested resource into the class loader. InputStream is = this.classloader.getResourceAsStream(this.location + pathInfo); if(is == null) { // Requested resource not found. super.doGet(request, response); return; } // Requested resource found. response.setStatus(HttpServletResponse.SC_OK); String mimeType = extensions2mimeTypes.getProperty(extension); if(mimeType == null) { mimeType = "text/plain"; } response.setContentType(mimeType); // Copy the resource stream to the servlet output stream. Stream.copy(is, response.getOutputStream()); }
// in modules/frascati-implementation-velocity/src/main/java/org/ow2/frascati/implementation/velocity/ServletImplementationVelocity.java
Override protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // The requested resource. String requestedResource = request.getPathInfo(); // System.out.println("Requested " + requestedResource); // If no requested resource then redirect to '/'. if (requestedResource == null || requestedResource.equals("")) { response.sendRedirect(request.getRequestURL().append('/') .toString()); return; } // If the requested resource is '/' then use the default resource. if (requestedResource.equals("/")) { requestedResource = '/' + this.defaultResource; } // Compute extension of the requested resource. int idx = requestedResource.lastIndexOf('.'); String extension = (idx != -1) ? requestedResource.substring(idx) : ".txt"; // Set response status to OK. response.setStatus(HttpServletResponse.SC_OK); // Set response content type. response.setContentType(extensions2mimeTypes.getProperty(extension)); // Is a templatable requested resource? if (templatables.contains(extension)) { // Get the requested resource as a Velocity template. Template template = null; try { template = this.velocityEngine.getTemplate(requestedResource .substring(1)); } catch (Exception exc) { exc.printStackTrace(System.err); // Requested resource not found. super.service(request, response); return; } // Create a Velocity context connected to the component's Velocity // context. VelocityContext context = new VelocityContext(this.velocityContext); // Put the HTTP request and response into the Velocity context. context.put("request", request); context.put("response", response); // inject HTTP parameters as Velocity variables. Enumeration<?> parameterNames = request.getParameterNames(); while (parameterNames.hasMoreElements()) { String parameterName = (String) parameterNames.nextElement(); context.put(parameterName, request.getParameter(parameterName)); } // TODO: should not be called but @Lifecycle does not work as // expected. registerScaProperties(); // Process the template. OutputStreamWriter osw = new OutputStreamWriter( response.getOutputStream()); template.merge(context, osw); osw.flush(); } else { // Search the requested resource into the class loader. InputStream is = this.classLoader.getResourceAsStream(this.location + requestedResource); if (is == null) { // Requested resource not found. super.service(request, response); return; } // Copy the requested resource to the HTTP response output stream. Stream.copy(is, response.getOutputStream()); is.close(); } }
0 0 0
checked (Lib) Throwable 3
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
public Object invoke(Object object, Method method, Object[] args) throws Throwable { //numbers of function arguments int arity = 0; if (args != null) arity= args.length; //Look invoke function in compiled script final UserFunction caller = engine.getCompiledScript().getStaticContext().getUserDefinedFunction( this.namespace, method.getName(),arity); if (caller == null){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append(" cannot find function "); buffer.append(this.namespace); buffer.append(":"); buffer.append(method.getName()); buffer.append(" with "+arity+" arguments"); throw new Throwable(buffer.toString()); } //Convert Java args to XPath args final Controller controller = this.engine.getCompiledScript().newController(); final ValueRepresentation[] xpathArgs = new ValueRepresentation[arity]; for (int i=0;i<xpathArgs.length;i++){ xpathArgs[i] = XQConvertJP.convertObjectToXPath(args[i],controller); } //Bind global variable external with references //and properties given by frascati try{ this.bindGlobaleVariable(caller,controller); } catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); } //Call Function ValueRepresentation vr = null; try{ vr = caller.call(xpathArgs, controller); } catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); } //Convert final result final Object result = XQConvertPJ.convertXPathToJava(vr, method.getReturnType(), controller); return result; }
2
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); }
8
            
// in osgi/core/src/main/java/org/ow2/frascati/osgi/context/ProcessingIntentHandler.java
public Object invoke(IntentJoinPoint intentJP) throws Throwable { //if the call has to be intercepted... if(enabled) { //find the called method... Method method = getClass().getDeclaredMethod(intentJP.getMethod().getName(), intentJP.getMethod().getParameterTypes()); method.setAccessible(true); //and invoke its overwritten version return method.invoke(this,intentJP.getArguments()); } else { //otherwise just proceed return intentJP.proceed(); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
public final Object invoke(final IntentJoinPoint ijp) throws Throwable { // Get the trace associated to the current thread. Trace trace = Trace.TRACE.get(); boolean isNewTrace = (trace == null); if(isNewTrace) { // Create a new trace. trace = traceManager.newTrace(); // Attach the trace to the current thread. Trace.TRACE.set(trace); } Method invokedMethod = ijp.getMethod(); boolean asyncCall = (invokedMethod.getAnnotation(Oneway.class) != null) // WS oneway || (invokedMethod.getAnnotation(OneWay.class) != null); // SCA oneway if(asyncCall) { // Add a new trace event async call to the trace. trace.addTraceEvent(new TraceEventAsyncCallImpl(ijp)); try { // Process the invocation. ijp.proceed(); } finally { if(isNewTrace) { // Deattach the trace from the current thread. Trace.TRACE.set(null); } } // Add a new trace event async end to the trace. trace.addTraceEvent(new TraceEventAsyncEndImpl(ijp)); return null; } else { // Add a new trace event call to the trace. trace.addTraceEvent(new TraceEventCallImpl(ijp)); Object result = null; try { // Process the invocation. result = ijp.proceed(); } catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; } finally { if(isNewTrace) { // Deattach the trace from the current thread. Trace.TRACE.set(null); } } // Add a new trace event return to the trace. trace.addTraceEvent(new TraceEventReturnImpl(ijp, result)); return result; } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
public Object invoke(Object object, Method method, Object[] args) throws Throwable { //numbers of function arguments int arity = 0; if (args != null) arity= args.length; //Look invoke function in compiled script final UserFunction caller = engine.getCompiledScript().getStaticContext().getUserDefinedFunction( this.namespace, method.getName(),arity); if (caller == null){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append(" cannot find function "); buffer.append(this.namespace); buffer.append(":"); buffer.append(method.getName()); buffer.append(" with "+arity+" arguments"); throw new Throwable(buffer.toString()); } //Convert Java args to XPath args final Controller controller = this.engine.getCompiledScript().newController(); final ValueRepresentation[] xpathArgs = new ValueRepresentation[arity]; for (int i=0;i<xpathArgs.length;i++){ xpathArgs[i] = XQConvertJP.convertObjectToXPath(args[i],controller); } //Bind global variable external with references //and properties given by frascati try{ this.bindGlobaleVariable(caller,controller); } catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); } //Call Function ValueRepresentation vr = null; try{ vr = caller.call(xpathArgs, controller); } catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); } //Convert final result final Object result = XQConvertPJ.convertXPathToJava(vr, method.getReturnType(), controller); return result; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaBindingScaProcessor.java
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return method.invoke(this.delegate, args); }
// in modules/module-gcs/frascati-binding-jgroups/src/main/java/org/ow2/frascati/gcs/binding/JGroupsRpcConnector.java
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { return this.dispatcher.callRemoteMethods(null, method.getName(), args, method.getParameterTypes(), this.requestOption); }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsBroker.java
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable { // Create a JMS message. JmsMessage message = new JmsMessage(); // Store the invoked method name into the message. message.methodName = method.getName(); if(args == null || args.length == 0) { message.xmlMessage = null; } else { // If args then marshall them as an XML message. message.xmlMessage = marshallInvocation(method, args); } log.fine("Invoked method is '" + message.methodName + "'"); log.fine("Marshalled XML message is " + message.xmlMessage); // Send the message to the queue. queue.send(message); return null; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsStubInvocationHandler.java
public Object invoke(Object proxy, Method m, Object[] args) throws Throwable { log.fine("Send message"); TextMessage msg = jmsModule.getSession().createTextMessage(); msg.setStringProperty(JmsConnectorConstants.OPERATION_SELECTION_PROPERTY, m.getName()); msg.setJMSReplyTo(jmsModule.getResponseDestination()); if (args != null) { msg.setText(marshallInvocation(m, args)); } producer.send(msg, persistent ? DeliveryMode.PERSISTENT : DeliveryMode.NON_PERSISTENT, priority, timeToLive); // Return if no response is expected if (m.getReturnType().equals(void.class) && m.getExceptionTypes().length == 0) { return null; } String selector = "JMSCorrelationID = '" + msg.getJMSMessageID() + "'"; Session respSession = jmsModule.getJmsCnx().createSession(false, Session.AUTO_ACKNOWLEDGE); MessageConsumer responseConsumer = respSession.createConsumer(jmsModule.getResponseDestination(), selector); Message responseMsg = responseConsumer.receive(); responseConsumer.close(); respSession.close(); log.fine("Response received. " + ((TextMessage) responseMsg).getText()); // TODO use a WSDLDelegate to unmarshall response Object response = JAXB .unmarshall(getQNameOfFirstArgument(m), ((TextMessage) responseMsg).getText(), null); return response; }
// in modules/frascati-implementation-bpel/src/main/java/org/ow2/frascati/implementation/bpel/easybpel/EasyBpelPartnerLinkInput.java
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable { log.fine("Invoke the BPEL partner link input '" + easyBpelPartnerLinkInput.easyBpelPartnerLink.getName() + "' with method " + method); // Marshall invocation, i.e.: method and arguments. String inputXmlMessage = marshallInvocation(method, args); log.fine("Input XML message " + inputXmlMessage); // Create an EasyBPEL internal message. log.fine("Create an EasyBPEL BPELInternalMessage"); BPELInternalMessage bpelMessage = new BPELInternalMessageImpl(); bpelMessage.setService(easyBpelPartnerLinkInput.service); bpelMessage.setEndpoint(easyBpelPartnerLinkInput.endpoint); bpelMessage.setOperationName(method.getName()); Operation op = easyBpelPartnerLinkInput.roleInterfaceType.getOperation(new QName(easyBpelPartnerLinkInput.roleInterfaceType.getQName().getNamespaceURI(), method.getName())); bpelMessage.setQName(op.getInput().getMessageName()); bpelMessage.setContent(JDOM.toElement(inputXmlMessage)); // Invoke the BPEL partner link. log.fine("Invoke EasyBPEL"); log.fine(" message.qname=" + bpelMessage.getQName()); log.fine(" message.content=" + bpelMessage.toString()); EasyBpelContextImpl context = new EasyBpelContextImpl(); context.easyBpelPartnerLinkInput = easyBpelPartnerLinkInput; easyBpelPartnerLinkInput.easyBpelProcess.getCore().getEngine().accept(bpelMessage, context); if(method.getAnnotation(Oneway.class) != null) { // When oneway invocation return nothing immediately. return null; } else { // When twoway invocation then wait for a reply. BPELInternalMessage replyBpelMsg = context.waitReply(); log.fine("Output XML message " + replyBpelMsg.toString()); // Unmarshall the output XML message. return unmarshallResult(method, args, replyBpelMsg.getContent()); } }
4
            
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch(Throwable throwable) { dispatcher.pushCheckError(eObject,throwable); throw throwable; }
// in osgi/frascati-in-osgi/osgi/jboss/src/main/java/org/ow2/frascati/osgi/frameworks/jboss/Main.java
catch (Throwable e) { log.info("URL.setURLStreamHandlerFactory Error :" + e.getMessage()); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; }
// in modules/frascati-binding-jms/src/main/java/org/objectweb/fractal/bf/connectors/jms/JmsSkeletonContent.java
catch (Throwable exc) { log.log(Level.SEVERE, "JmsSkeletonContent.onMessage() -> " + exc.getMessage(), exc); }
2
            
// in nuxeo/frascati-event-parser/src/main/java/org/ow2/frascati/parser/event/intent/ProcessorIntent.java
catch(Throwable throwable) { dispatcher.pushCheckError(eObject,throwable); throw throwable; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/trace/lib/TraceIntentHandlerImpl.java
catch(Throwable throwable) { // Add a new trace event throw to the trace. trace.addTraceEvent(new TraceEventThrowImpl(ijp, throwable)); throw throwable; }
0
unknown (Lib) TinfiRuntimeException 3 3
            
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (NoSuchInterfaceException e) { throw new TinfiRuntimeException(e);
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalBindingException e) { throw new TinfiRuntimeException(e); }
// in modules/frascati-binding-factory/src/main/java/org/ow2/frascati/binding/factory/BindingFactorySCAImpl.java
catch (IllegalLifeCycleException e) { throw new TinfiRuntimeException(e); }
0 0 0 0
unknown (Lib) ToolException 1
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
private void compile(String userId, String wsdlLocation) throws ToolException{ try { if (!wsdlLocation.startsWith("http://")) { wsdlLocation = "http://" + wsdlLocation; } WebServiceCommandLine cmd = new WebServiceCommandLine("wsdl2java"); String[] args = new String[4]; args[0] = "-u"; args[1] = wsdlLocation; args[2] = "-o"; String outputDirectory = null; Application application = serviceManager.getCurrentApplication(userId); application.setCurrentWorskpacePath(preferences.getWorkspacePath()); if(application.getPackageName() != null && !application.getPackageName().equals("")){ outputDirectory = application .retrieveAbsoluteSources().substring(0, serviceManager.getCurrentApplication(userId) .retrieveAbsoluteSources().indexOf(serviceManager.getCurrentApplication(userId).getPackageName().replace(".", File.separator))); } else{ outputDirectory = application.retrieveAbsoluteSources(); } args[3] = outputDirectory; cmd.parse(args); File wsdlF = cmd.getWsdlFile(); URL wsdlUrl = cmd.getWsdlUrl(); if ((wsdlF == null) && (wsdlUrl == null)) { System.err.println("Please set the WSDL file/URL to parse"); } if ((wsdlF != null) && (wsdlUrl != null)) { System.err .println("Please choose either a WSDL file OR an URL to parse (not both!)."); } String wsdl = (wsdlF == null ? wsdlUrl.toString() : wsdlF .getAbsolutePath()); String[] params = new String[] { "-d", outputDirectory, wsdl }; ToolContext toolContext = new ToolContext(); if(application.getPackageName() != null && !application.getPackageName().equals("")){ toolContext.setPackageName(application.getPackageName()+".impl.generated"); } else{ toolContext.setPackageName("impl.generated"); } new WSDLToJava(params).run(toolContext); } catch(ToolException te){ throw new ToolException(); } catch (Exception e) { e.printStackTrace(); } }
1
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ throw new ToolException(); }
1
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
private void compile(String userId, String wsdlLocation) throws ToolException{ try { if (!wsdlLocation.startsWith("http://")) { wsdlLocation = "http://" + wsdlLocation; } WebServiceCommandLine cmd = new WebServiceCommandLine("wsdl2java"); String[] args = new String[4]; args[0] = "-u"; args[1] = wsdlLocation; args[2] = "-o"; String outputDirectory = null; Application application = serviceManager.getCurrentApplication(userId); application.setCurrentWorskpacePath(preferences.getWorkspacePath()); if(application.getPackageName() != null && !application.getPackageName().equals("")){ outputDirectory = application .retrieveAbsoluteSources().substring(0, serviceManager.getCurrentApplication(userId) .retrieveAbsoluteSources().indexOf(serviceManager.getCurrentApplication(userId).getPackageName().replace(".", File.separator))); } else{ outputDirectory = application.retrieveAbsoluteSources(); } args[3] = outputDirectory; cmd.parse(args); File wsdlF = cmd.getWsdlFile(); URL wsdlUrl = cmd.getWsdlUrl(); if ((wsdlF == null) && (wsdlUrl == null)) { System.err.println("Please set the WSDL file/URL to parse"); } if ((wsdlF != null) && (wsdlUrl != null)) { System.err .println("Please choose either a WSDL file OR an URL to parse (not both!)."); } String wsdl = (wsdlF == null ? wsdlUrl.toString() : wsdlF .getAbsolutePath()); String[] params = new String[] { "-d", outputDirectory, wsdl }; ToolContext toolContext = new ToolContext(); if(application.getPackageName() != null && !application.getPackageName().equals("")){ toolContext.setPackageName(application.getPackageName()+".impl.generated"); } else{ toolContext.setPackageName("impl.generated"); } new WSDLToJava(params).run(toolContext); } catch(ToolException te){ throw new ToolException(); } catch (Exception e) { e.printStackTrace(); } }
2
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ te.printStackTrace(); LOG.info("wsdl not supported by cxf"); return "wsdl not supported by cxf";
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ throw new ToolException(); }
1
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch(ToolException te){ throw new ToolException(); }
0
unknown (Lib) URISyntaxException 0 0 2
            
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
public static Object stringToValue(String propertyType, String propertyValue, ClassLoader cl) throws ClassNotFoundException, URISyntaxException, MalformedURLException { JavaType javaType = JavaType.VALUES.get(propertyType); return stringToValue(javaType, propertyValue, cl); }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
public static Object stringToValue(JavaType propertyType, String propertyValue, ClassLoader cl) throws ClassNotFoundException, URISyntaxException, MalformedURLException { Object computedPropertyValue; switch (propertyType) { case BIG_DECIMAL_OBJECT: computedPropertyValue = new BigDecimal(propertyValue); break; case BIG_INTEGER_OBJECT: computedPropertyValue = new BigInteger(propertyValue); break; case BOOLEAN_PRIMITIVE: case BOOLEAN_OBJECT: computedPropertyValue = Boolean.valueOf(propertyValue); break; case BYTE_PRIMITIVE: case BYTE_OBJECT: computedPropertyValue = Byte.valueOf(propertyValue); break; case CLASS_OBJECT: computedPropertyValue = cl.loadClass(propertyValue); break; case CHAR_PRIMITIVE: case CHARACTER_OBJECT: computedPropertyValue = propertyValue.charAt(0); break; case DOUBLE_PRIMITIVE: case DOUBLE_OBJECT: computedPropertyValue = Double.valueOf(propertyValue); break; case FLOAT_PRIMITIVE: case FLOAT_OBJECT: computedPropertyValue = Float.valueOf(propertyValue); break; case INT_PRIMITIVE: case INTEGER_OBJECT: computedPropertyValue = Integer.valueOf(propertyValue); break; case LONG_PRIMITIVE: case LONG_OBJECT: computedPropertyValue = Long.valueOf(propertyValue); break; case SHORT_PRIMITIVE: case SHORT_OBJECT: computedPropertyValue = Short.valueOf(propertyValue); break; case STRING_OBJECT: computedPropertyValue = propertyValue; break; case URI_OBJECT: computedPropertyValue = new URI(propertyValue); break; case URL_OBJECT: computedPropertyValue = new URL(propertyValue); break; case QNAME_OBJECT: computedPropertyValue = QName.valueOf(propertyValue); break; default: return null; } return computedPropertyValue; }
3
            
// in modules/frascati-explorer/core/src/main/java/org/ow2/frascati/explorer/gui/PropertyPanel.java
catch(URISyntaxException exc) { String msg = propName + " - Syntax error in URI '" + propValueTextField.getText() + "'"; JOptionPane.showMessageDialog(null, msg); logger.warning(msg); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeJavaProcessor.java
catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; }
// in modules/frascati-assembly-factory/src/main/java/org/ow2/frascati/assembly/factory/processor/ScaPropertyTypeXsdProcessor.java
catch(URISyntaxException exc) { error(processingContext, property, "Syntax error in URI '", propertyValue, "'"); return; }
0 0
unknown (Lib) UnsatisfiedLinkError 0 0 0 1
            
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); }
1
            
// in modules/module-native/frascati-binding-jna/src/main/java/org/ow2/frascati/native_/binding/FrascatiBindingJnaProcessor.java
catch (java.lang.UnsatisfiedLinkError ule) { throw new ProcessorException(binding, "Internal JNA Error: ", ule); }
0
unknown (Lib) UnsupportedEncodingException 0 0 0 6
            
// in frascati-studio/src/main/java/org/easysoa/utils/EMFModelUtilsImpl.java
catch (UnsupportedEncodingException e) { e.printStackTrace();
// in frascati-studio/src/main/java/org/easysoa/utils/EMFModelUtilsImpl.java
catch (UnsupportedEncodingException e) { e.printStackTrace(); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
// in modules/frascati-binding-jms/src/main/java/org/ow2/frascati/binding/jms/FrascatiBindingJmsProcessor.java
catch (UnsupportedEncodingException e) { log.severe("UTF-8 format not supported: can't decode JMS URI."); }
0 0
runtime (Lib) UnsupportedOperationException 5
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object getAttributeValue(String name) throws NoSuchElementException, UnsupportedOperationException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isReadable()) { return attr.get(); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-implementation-spring/src/main/java/org/ow2/frascati/implementation/spring/ParentApplicationContext.java
public final boolean isTypeMatch (final String name, final Class targetType) { log.finer("Spring parent context - isTypeMatch called for name: " + name); throw new UnsupportedOperationException(); }
0 2
            
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public Object getAttributeValue(String name) throws NoSuchElementException, UnsupportedOperationException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isReadable()) { return attr.get(); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
// in modules/frascati-jmx/src/main/java/org/ow2/frascati/jmx/AttributesHelper.java
public void setAttribute(String name, Object value) throws NoSuchElementException, UnsupportedOperationException, IllegalArgumentException { Attribute attr = (Attribute) attributes.get(name); if (attr == null) { throw new NoSuchElementException("No attribute named " + name + "."); } else if (attr.isWritable()) { attr.set(value); } else { throw new UnsupportedOperationException("Attribute " + name + " is not readable."); } }
0 0 0
unknown (Lib) WSDLException 0 0 1
            
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
public final Definition readWSDL(String wsdlUri) throws WSDLException { return this.wsdlReader.readWSDL(wsdlUri); }
3
            
// in frascati-studio/src/main/java/org/easysoa/impl/CodeGeneratorWsdlToJSImpl.java
catch (WSDLException e) { e.printStackTrace(); }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/ScaInterfaceWsdlProcessor.java
catch(WSDLException we) { processingContext.error(toString(wsdlPortType) + " " + wsdlUri + ": " + we.getMessage()); return null; }
// in modules/frascati-interface-wsdl/src/main/java/org/ow2/frascati/wsdl/WsdlCompilerCXF.java
catch (WSDLException we) { severe(new FrascatiException("Could not initialize WSDLReader", we));
0 0
checked (Domain) WeaverException
public class WeaverException
     extends FrascatiException
{
  // TODO: set serial version UID
  private static final long serialVersionUID = 0L;

  /**
   * Constructs a weaver exception instance.
   */
  public WeaverException()
  {
    super();
  }

  /**
   * Constructs a weaver exception instance.
   *
   * @param message the message of this exception.
   */
  public WeaverException(String message)
  {
    super(message);
  }

  /**
   * Constructs a weaver exception instance.
   *
   * @param message the message of this exception.
   * @param cause the cause of this exception.
   */
  public WeaverException(String message, Throwable cause)
  {
    super(message, cause);
  }

  /**
   * Constructs a weaver exception instance.
   *
   * @param cause the cause of this exception.
   */
  public WeaverException(Throwable cause)
  {
    super(cause);
  }
}
2
            
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
protected final Weaver getWeaver() throws WeaverException { String intentCompositeName = getIntentCompositeName(); try { Component intentComposite = getFraSCAtiExplorerService(CompositeManager.class).getComposite(intentCompositeName); return (Weaver)intentComposite.getFcInterface(Weaver.NAME); } catch(ManagerException me) { throw new WeaverException(me); } catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); } }
2
            
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(ManagerException me) { throw new WeaverException(me); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); }
10
            
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
protected final boolean addIntentHandler(Component component) throws WeaverException { try { getSCABasicIntentController(component).addFcIntentHandler(this.intentHandler); return true; } catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); } catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not add intent handler", ilce)); } return false; }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
protected final void removeIntentHandler(Component component) throws WeaverException { try { getSCABasicIntentController(component).removeFcIntentHandler(this.intentHandler); } catch(NoSuchInterfaceException nsie) { log.warning("A component has no SCA intent controller"); } catch(IllegalLifeCycleException ilce) { severe(new WeaverException("Can not remove intent handler", ilce)); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
protected final void traverse(Component component, Applier applier) throws WeaverException { if(excludesImplementationBpel && "implementation.bpel".equals(getFractalComponentName(component))) { log.warning("Could not traverse a BPEL implementation"); return; } // Apply on the component. applier.apply(component); // Try to get the Fractal content controller. ContentController contentController = null; try { contentController = Fractal.getContentController(component); } catch(NoSuchInterfaceException nsie) { // Return as component is not a composite. return; } // Traverse the sub components of the component. for(Component c: getFractalSubComponents(contentController)) { traverse(c, applier); } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
public final void weave(Component scaComposite) throws WeaverException { nbApplies = 0; long startTime = System.nanoTime(); // Begin the reconfiguration. stopFractalComponent(scaComposite); // Add the intent handler on the SCA composite recursively. traverse(scaComposite, new Applier() { public final void apply(Component component) throws WeaverException { if(addIntentHandler(component)) { nbApplies++; } } } ); // End the reconfiguration. startFractalComponent(scaComposite); long endTime = System.nanoTime(); log.info("Weare the intent on " + nbApplies + " components in " + (endTime - startTime) + "ns."); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
public final void apply(Component component) throws WeaverException { if(addIntentHandler(component)) { nbApplies++; } }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
public final void unweave(Component scaComposite) throws WeaverException { // Begin the reconfiguration. stopFractalComponent(scaComposite); // Remove the intent handler on the SCA composite recursively. traverse(scaComposite, new Applier() { public final void apply(Component component) throws WeaverException { removeIntentHandler(component); } } ); // End the reconfiguration. startFractalComponent(scaComposite); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/lib/IntentHandlerWeaver.java
public final void apply(Component component) throws WeaverException { removeIntentHandler(component); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaveMenuItem.java
Override protected final void execute(Component component) throws WeaverException { getWeaver().weave(component); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractUnweaveMenuItem.java
Override protected final void execute(Component component) throws WeaverException { getWeaver().unweave(component); }
// in intents/uml-sequence-diagram/src/main/java/org/ow2/frascati/intent/explorer/AbstractWeaverMenuItem.java
protected final Weaver getWeaver() throws WeaverException { String intentCompositeName = getIntentCompositeName(); try { Component intentComposite = getFraSCAtiExplorerService(CompositeManager.class).getComposite(intentCompositeName); return (Weaver)intentComposite.getFcInterface(Weaver.NAME); } catch(ManagerException me) { throw new WeaverException(me); } catch(NoSuchInterfaceException nsie) { throw new WeaverException(nsie); } }
0 0 0
unknown (Lib) XPathException 4
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public Object convertXPathValueToObject(Value value, Class targetClass, XPathContext context) throws XPathException { //iterate the result of the value representation final SequenceIterator iterator = value.iterate(); //Properties for output xml output format final Properties props = new Properties(); props.setProperty(OutputKeys.METHOD, "xml"); props.setProperty(OutputKeys.OMIT_XML_DECLARATION,"no"); props.setProperty(OutputKeys.INDENT, "yes"); // creation of the xml document in outstream final ByteArrayOutputStream outstream = new ByteArrayOutputStream(); QueryResult.serialize((NodeInfo)value.asItem(), new StreamResult(outstream), props); final ByteArrayInputStream instream = new ByteArrayInputStream(outstream.toByteArray()); try { //rebuilding of the jaxb object final JAXBContext jaxbcontext = JAXBContext.newInstance(targetClass); final Unmarshaller unmarshall = jaxbcontext.createUnmarshaller(); return unmarshall.unmarshal(instream); } catch (JAXBException e) { throw new XPathException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public ValueRepresentation convertJaxbToXPath(Object object, XPathContext context) throws XPathException{ // with the jaxb api, we convert object to xml document try{ final JAXBContext jcontext = JAXBContext.newInstance(object.getClass()); final Marshaller marshall = jcontext.createMarshaller(); marshall.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,true); //xml document in outstream final ByteArrayOutputStream outstream = new ByteArrayOutputStream(); marshall.marshal(object,outstream); //also we create a Jdom object final ByteArrayInputStream instream = new ByteArrayInputStream(outstream.toByteArray()); final SAXBuilder builder = new SAXBuilder(); Document document = builder.build(instream); JDOMObjectModel jdomobject = new JDOMObjectModel(); return jdomobject.convertObjectToXPathValue(document, context.getConfiguration()); } catch (JDOMException e) { throw new XPathException(e); } catch (IOException e) { throw new XPathException(e); } catch (JAXBException e) { throw new XPathException(e); } }
4
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JDOMException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (IOException e) { throw new XPathException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
catch (JAXBException e) { throw new XPathException(e); }
9
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
private void bindGlobaleVariable(UserFunction caller, Controller controller) throws XPathException{ final Map map = caller.getExecutable().getCompiledGlobalVariables(); if (map != null){ for (Object o : map.keySet()){ final GlobalVariable gv = (GlobalVariable) map.get(o); final Object inject = this.engine.get(gv.getVariableQName().getDisplayName()); System.out.println(gv.getVariableQName().getDisplayName()); if (inject != null){ controller.getBindery().assignGlobalVariable(gv,new ObjectValue(inject)); } } } controller.preEvaluateGlobals(controller.newXPathContext()); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/convert/XQConvertPJ.java
public static Object convertXPathToJava(ValueRepresentation value, Class<?> clazz,Controller controller) throws XPathException{ System.out.println("convert XPathttoJava"); // if the function return void if (clazz.isAssignableFrom(void.class)) return null; final Value v = Value.asValue(value); final ItemType itemType = v.getItemType(controller.getConfiguration().getTypeHierarchy()); final PJConverter converter = PJConverter.allocate(controller.getConfiguration(), itemType,v.getCardinality(), clazz); return converter.convert(value, clazz, controller.newXPathContext()); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/convert/XQConvertJP.java
public static ValueRepresentation convertObjectToXPath(Object object,Controller controller) throws XPathException{ final JPConverter converter = JPConverter.allocate(object.getClass(), controller.getConfiguration()); return converter.convert(object, controller.newXPathContext()); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public PJConverter getPJConverter(Class targetClass) { if (isRecognizedNode(targetClass)){ return new PJConverter() { public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException { return convertXPathValueToObject(Value.asValue(value), targetClass, context); } }; } else return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public Object convert(ValueRepresentation value, Class targetClass, XPathContext context) throws XPathException { return convertXPathValueToObject(Value.asValue(value), targetClass, context); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public JPConverter getJPConverter(Class targetClass) { if (isRecognizedNode(targetClass)){ return new JPConverter(){ public ValueRepresentation convert(Object object,XPathContext context) throws XPathException { return convertJaxbToXPath(object, context); } public ItemType getItemType() { return AnyNodeTest.getInstance(); } }; } else return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public ValueRepresentation convert(Object object,XPathContext context) throws XPathException { return convertJaxbToXPath(object, context); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public Object convertXPathValueToObject(Value value, Class targetClass, XPathContext context) throws XPathException { //iterate the result of the value representation final SequenceIterator iterator = value.iterate(); //Properties for output xml output format final Properties props = new Properties(); props.setProperty(OutputKeys.METHOD, "xml"); props.setProperty(OutputKeys.OMIT_XML_DECLARATION,"no"); props.setProperty(OutputKeys.INDENT, "yes"); // creation of the xml document in outstream final ByteArrayOutputStream outstream = new ByteArrayOutputStream(); QueryResult.serialize((NodeInfo)value.asItem(), new StreamResult(outstream), props); final ByteArrayInputStream instream = new ByteArrayInputStream(outstream.toByteArray()); try { //rebuilding of the jaxb object final JAXBContext jaxbcontext = JAXBContext.newInstance(targetClass); final Unmarshaller unmarshall = jaxbcontext.createUnmarshaller(); return unmarshall.unmarshal(instream); } catch (JAXBException e) { throw new XPathException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public ValueRepresentation convertJaxbToXPath(Object object, XPathContext context) throws XPathException{ // with the jaxb api, we convert object to xml document try{ final JAXBContext jcontext = JAXBContext.newInstance(object.getClass()); final Marshaller marshall = jcontext.createMarshaller(); marshall.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,true); //xml document in outstream final ByteArrayOutputStream outstream = new ByteArrayOutputStream(); marshall.marshal(object,outstream); //also we create a Jdom object final ByteArrayInputStream instream = new ByteArrayInputStream(outstream.toByteArray()); final SAXBuilder builder = new SAXBuilder(); Document document = builder.build(instream); JDOMObjectModel jdomobject = new JDOMObjectModel(); return jdomobject.convertObjectToXPathValue(document, context.getConfiguration()); } catch (JDOMException e) { throw new XPathException(e); } catch (IOException e) { throw new XPathException(e); } catch (JAXBException e) { throw new XPathException(e); } }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public Receiver getDocumentBuilder(Result result) throws XPathException { return null; }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/saxon/JaxBObjectModel.java
public boolean sendSource(Source source, Receiver receiver, PipelineConfiguration pipe) throws XPathException { return false; }
4
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e1) {throw new ScriptException(e1);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); }
4
            
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e) { //in xquery, we can't just define function without eof token //we check just this error for compilation if (e.getErrorCodeLocalPart().equals("XPST0003")) { //we add eof token to the script script+= " 0"; try { //and run again the compilation this.compiledScript = context.compileQuery(script); } catch (XPathException e1) {throw new ScriptException(e1);} } else throw new ScriptException(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryScriptEngine.java
catch (XPathException e1) {throw new ScriptException(e1);}
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException e){ final StringBuffer buffer = new StringBuffer(); buffer.append("[xquery-engine invoke error] :"); buffer.append("error globale variable binding"); System.err.println(buffer.toString()); e.printStackTrace(); throw new Throwable(e); }
// in modules/frascati-xquery/src/main/java/org/ow2/frascati/xquery/jsr223/XQueryInvocationHandler.java
catch(XPathException ex){ ex.printStackTrace(); throw new Throwable(ex); }
0
unknown (Lib) XmlPullParserException 0 0 0 1
            
// in maven-plugins/frascati-contribution/src/main/java/org/ow2/frascati/mojo/FrascatiContributionMojo.java
catch (XmlPullParserException e) { getLog().error("can't read pom file", e); }
0 0
unknown (Lib) ZipException 0 0 1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/FileUtil.java
public static File unZipHere(File toUnzip) throws ZipException, IOException { String destFilePath = toUnzip.getAbsolutePath(); String destDirPath = destFilePath.substring(0, destFilePath.lastIndexOf('.')); File destDir = new File(destDirPath); boolean isDirMade=destDir.mkdirs(); if(isDirMade) { Log.info("build directory for file "+destDirPath); } ZipFile zfile = new ZipFile(toUnzip); Enumeration<? extends ZipEntry> entries = zfile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = entries.nextElement(); File file = new File(destDir, entry.getName()); if (entry.isDirectory()) { isDirMade=file.mkdirs(); if(isDirMade) { Log.info("build directory for zip entry "+entry.getName()); } } else { isDirMade=file.getParentFile().mkdirs(); if(isDirMade) { Log.info("build parent directory for zip entry "+entry.getName()); } InputStream inputStream; inputStream = zfile.getInputStream(entry); try { copy(inputStream, file); }finally { inputStream.close(); } } } return destDir; }
2
            
// in osgi/frascati-util/src/main/java/org/ow2/frascati/osgi/util/io/OSGiIOUtils.java
catch (java.util.zip.ZipException z) { logg.warning(z.getMessage()); }
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); }
1
            
// in modules/frascati-introspection/frascati-introspection-impl/src/main/java/org/ow2/frascati/remote/introspection/RemoteScaDomainImpl.java
catch (ZipException e) { throw new MyWebApplicationException(e, "File is not a Zip"); }
0

Miscellanous Metrics

nF = Number of Finally 33
nF = Number of Try-Finally (without catch) 17
Number of Methods with Finally (nMF) 29 / 2623 (1.1%)
Number of Finally with a Continue 0
Number of Finally with a Return 0
Number of Finally with a Throw 0
Number of Finally with a Break 0
Number of different exception types thrown 45
Number of Domain exception types thrown 12
Number of different exception types caught 70
Number of Domain exception types caught 9
Number of exception declarations in signatures 624
Number of different exceptions types declared in method signatures 62
Number of library exceptions types declared in method signatures 50
Number of Domain exceptions types declared in method signatures 12
Number of Catch with a continue 5
Number of Catch with a return 207
Number of Catch with a Break 3
nbIf = Number of If 1960
nbFor = Number of For 470
Number of Method with an if 776 / 2623
Number of Methods with a for 286 / 2623
Number of Method starting with a try 77 / 2623 (2.9%)
Number of Expressions 36830
Number of Expressions in try 8032 (21.8%)