Examples of RegistryException


Examples of org.apache.airavata.common.registry.api.exception.RegistryException

      URL url = new URL(urlString);
      URLConnection conn = url.openConnection();
      conn.connect();
    } catch (MalformedURLException e) {
      // the URL is not in a valid form
      throw new RegistryException("Given Axis2 Service URL : "
          + urlString + " is Invalid", e);
    } catch (IOException e) {
      // the connection couldn't be established
      throw new RegistryException("Given Axis2 Service URL : "
          + urlString + " is Invalid", e);
    }
    return originalURL;
  }
View Full Code Here

Examples of org.apache.airavata.registry.api.exception.RegistryException

    private OMElement getInParameters() throws AiravataAPIInvocationException, RegistryException, XMLStreamException {
        OMFactory omFactory = OMAbstractFactory.getOMFactory();
        OMElement invoke_inputParams = omFactory.createOMElement(new QName("invoke_InputParams"));
        ServiceDescription serviceDescription = airavataAPI.getApplicationManager().getServiceDescription(this.serviceName);
        if (serviceDescription == null) {
            throw new RegistryException(new Exception("Service Description not found in registry."));
        }
        ServiceDescriptionType serviceDescriptionType = serviceDescription.getType();
        for (String inputName : this.inputNames) {
            OMElement omElement = omFactory.createOMElement(new QName(inputName));
            int index = this.inputNames.indexOf(inputName);
View Full Code Here

Examples of org.apache.airavata.registry.cpi.RegistryException

                    addErrorDetails(errror, experimentID);
                }
            }
        } catch (Exception e) {
            logger.error("Error while saving experiment to registry", e);
            throw new RegistryException(e);
        }
        return experimentID;
    }
View Full Code Here

Examples of org.apache.archiva.redback.components.registry.RegistryException

        if ( !writeFile( "user configuration", userConfigFilename, contents ) )
        {
            fileLocation = altConfigFilename;
            if ( !writeFile( "alternative configuration", altConfigFilename, contents ) )
            {
                throw new RegistryException(
                    "Unable to create configuration file in either user [" + userConfigFilename + "] or alternative ["
                        + altConfigFilename
                        + "] locations on disk, usually happens when not allowed to write to those locations."
                );
            }
View Full Code Here

Examples of org.apache.archiva.redback.components.registry.RegistryException

            {
                fileConfiguration.save();
            }
            catch ( ConfigurationException e )
            {
                throw new RegistryException( e.getMessage(), e );
            }
        }
        else
        {
            throw new RegistryException( "Can only save file-based configurations" );
        }
    }
View Full Code Here

Examples of org.apache.archiva.redback.components.registry.RegistryException

                logger.debug( "Loading properties configuration from classloader resource: {}", resource );
                configuration.addConfiguration( new PropertiesConfiguration( resource ), null, prefix );
            }
            catch ( ConfigurationException e )
            {
                throw new RegistryException(
                    "Unable to add configuration from resource '" + resource + "': " + e.getMessage(), e );
            }
        }
        else if ( resource.endsWith( ".xml" ) )
        {
            try
            {
                logger.debug( "Loading XML configuration from classloader resource: {}", resource );
                configuration.addConfiguration( new XMLConfiguration( resource ), null, prefix );
            }
            catch ( ConfigurationException e )
            {
                throw new RegistryException(
                    "Unable to add configuration from resource '" + resource + "': " + e.getMessage(), e );
            }
        }
        else
        {
            throw new RegistryException(
                "Unable to add configuration from resource '" + resource + "': unrecognised type" );
        }
    }
View Full Code Here

Examples of org.apache.archiva.redback.components.registry.RegistryException

                logger.debug( "Loading properties configuration from file: {}", file );
                configuration.addConfiguration( new PropertiesConfiguration( file ), null, prefix );
            }
            catch ( ConfigurationException e )
            {
                throw new RegistryException(
                    "Unable to add configuration from file '" + file.getName() + "': " + e.getMessage(), e );
            }
        }
        else if ( file.getName().endsWith( ".xml" ) )
        {
            try
            {
                logger.debug( "Loading XML configuration from file: {}", file );
                configuration.addConfiguration( new XMLConfiguration( file ), null, prefix );
            }
            catch ( ConfigurationException e )
            {
                throw new RegistryException(
                    "Unable to add configuration from file '" + file.getName() + "': " + e.getMessage(), e );
            }
        }
        else
        {
            throw new RegistryException(
                "Unable to add configuration from file '" + file.getName() + "': unrecognised type" );
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.components.portletregistry.RegistryException

            if (pa != null)
            {
                if (portletFactory.getPortletApplicationClassLoader(pa) != null)
                {
                    throw new RegistryException("Portlet Application " + paName + " still running");
                }

                unregisterPortletApplication(pa, true);
            }
        }
View Full Code Here

Examples of org.apache.jetspeed.exception.RegistryException

        {
            String msg = "Unable to register portlet application, " + paName + ", through the portlet registry: "
                    + e.toString();
            log.error(msg, e);
           
            throw new RegistryException(msg, e);
        }

    }
View Full Code Here

Examples of org.apache.jetspeed.om.registry.RegistryException

            PortletCategoryPeer.doDelete(criteria);           
        }
        catch (TorqueException e)
        {
            logger.error("Exception Removing Portlet Entry Accesses: " + id, e);
            throw new RegistryException("Exception Removing Portlet Entry: "
                    + id + ", " + e.toString());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.