Examples of PluginException


Examples of org.socialmusicdiscovery.server.api.plugin.PluginException

            if (database != null && (database.endsWith("-test"))) {
                execute(connection);
            }
        } catch (SQLException e) {
            e.printStackTrace();
            throw new PluginException(getClass().getSimpleName() + " failure", e);
        }
        return false;
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.api.plugin.PluginException

                    ClassLoaderResourceAccessor(),
                    new JdbcConnection(connection));
            liquibase.update("");
        } catch (LiquibaseException e) {
            e.printStackTrace();
            throw new PluginException(getClass().getSimpleName() + " failure", e);
        }
    }
View Full Code Here

Examples of org.socialmusicdiscovery.server.api.plugin.PluginException

        try {
            browseMenuManager.loadMenusFromXml(getClass().getResourceAsStream("/org/socialmusicdiscovery/server/plugins/mediaimport/lastfm/lastfm-menus.xml"));
            browseMenuManager.loadMenusFromXml(getClass().getResourceAsStream("/org/socialmusicdiscovery/server/plugins/mediaimport/lastfm/lastfm-experimental-menus.xml"));
        } catch (IOException e) {
            throw new PluginException(e);
        } catch (ParsingException e) {
            throw new PluginException(e);
        }
        return true;
    }
View Full Code Here

Examples of org.vosao.common.PluginException

   */
  public void install(String filename, byte[] data) throws IOException,
      PluginException, DocumentException {
    Map<String, WarItem> war = readWar(data);
    if (!war.containsKey(VOSAO_PLUGIN)) {
      throw new PluginException(VOSAO_PLUGIN + " not found");
    }
    PluginEntity plugin = readPluginConfig(war.get(VOSAO_PLUGIN));
    if (StringUtils.isEmpty(plugin.getEntryPointClass())) {
      throw new PluginException("Entry point class not defined.");
    }
    PluginEntity p = getDao().getPluginDao().getByName(plugin.getName());
    if (p != null) {
      plugin.setConfigData(p.getConfigData());
      uninstall(p);
View Full Code Here

Examples of org.webharvest.exception.PluginException

            try {
                WebHarvestPlugin plugin = (WebHarvestPlugin) pluginClass.newInstance();
                plugin.setDef(this);
                return plugin;
            } catch (Exception e) {
                throw new PluginException(e);
            }
        }

        throw new PluginException("Cannot create plugin!");
    }
View Full Code Here

Examples of org.webharvest.exception.PluginException

        Variable body = executeBody(scraper, context);
        try {
            JSONObject jsonObject = XML.toJSONObject(body.toString());
            return new NodeVariable(jsonObject.toString());
        } catch (JSONException e) {
            throw new PluginException("Error converting XML to JSON: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.webharvest.exception.PluginException

        Variable body = executeBody(scraper, context);
        try {
            JSONObject jsonObject = new JSONObject(body.toString());
            return new NodeVariable( XML.toString(jsonObject) );
        } catch (JSONException e) {
            throw new PluginException("Error converting JSON to XML: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.webharvest.exception.PluginException

        }

        if (index >= 0) {
            return get(index);
        } else {
            throw new PluginException("Invalid column name: " + columnName);
        }
    }
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.