Package org.apache.slide.common

Examples of org.apache.slide.common.ServiceInitializationFailedException


            } catch (Exception e) {
                getLogger().log(
                    "Loading and registering driver '" + driver + "' failed (" + e.getMessage() + ")",
                    LOG_CHANNEL,
                    Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e);
            } finally {
                alreadyInitialized = true;
            }
        }
View Full Code Here


                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } catch (NamingException e) {
                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } catch (Exception e) {
                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } finally {
                alreadyInitialized = true;
            }

            if (ds == null) {
                getLogger().log("Datasource is null, can't initialize store");
                throw new ServiceInitializationFailedException(this, "Null datasource from context");
            }
        }
    }
View Full Code Here

               Object[] ctorArgs = { toBeWrapped };
               this.store = (TransactionalMapWrapper)ctor.newInstance(ctorArgs);
            }
            catch (NoSuchMethodException ee) {
               error("Initialization error: ", ee);
               throw new ServiceInitializationFailedException(this, ee);
            }
         }
      }
      catch (ClassNotFoundException e) {
         error("Initialization error: ", e);
         throw new ServiceInitializationFailedException(this, e);
      }
      catch (InstantiationException e) {
         error("Initialization error: ", e);
         throw new ServiceInitializationFailedException(this, e);
      }
      catch (IllegalAccessException e) {
         error("Initialization error: ", e);
         throw new ServiceInitializationFailedException(this, e);
      }
      catch (InvocationTargetException e) {
         error("Initialization error: ", e);
         throw new ServiceInitializationFailedException(this, e);
      }
      catch (ClassCastException e) {
         error("Initialization error: ", e);
         throw new ServiceInitializationFailedException(this,
               "class in parameter '" + MAP_IMPL_PARAMETER + "' must " +
                     "be derived from TransactionalMapWrapper");
      }
     
      this.xaResource = new MapXAResource(this.store);
View Full Code Here

                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } catch (NamingException e) {
                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } catch (Exception e) {
                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } finally {
                alreadyInitialized = true;
            }

            if (ds == null) {
                getLogger().log("Datasource is null, can't initialize store");
                throw new ServiceInitializationFailedException(this, "Null datasource from context");
            }
        }
    }
View Full Code Here

            } catch (Exception e) {
                getLogger().log(
                    "Loading and registering driver '" + driver + "' failed (" + e.getMessage() + ")",
                    LOG_CHANNEL,
                    Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e);
            } finally {
                alreadyInitialized = true;
            }
        }
View Full Code Here

        try {
            m_parser = SAXParserFactory.newInstance().newSAXParser();           
        }
        catch (ParserConfigurationException e) {
            getLogger().log("Error creating parser for indexer", LOG_CHANNEL, Logger.ERROR);
            throw new ServiceInitializationFailedException(this, e);
        }
        catch (SAXException e) {
            getLogger().log("Error creating parser for indexer", LOG_CHANNEL, Logger.ERROR);
            throw new ServiceInitializationFailedException(this, e);
        }
    }
View Full Code Here

                // create index
                indexWriter = new IndexWriter(indexpath, new StandardAnalyzer(), true);
            }
            catch (IOException ex)
            {
                throw new ServiceInitializationFailedException (this, ex);
            }
        }
       
        try
        {
            indexWriter.close();
        }
        catch (IOException e)
        {
            throw new ServiceInitializationFailedException (this, e);
        }
    }
View Full Code Here

            } catch (Exception e) {
                getLogger().log(
                    "Loading and registering driver '" + driver + "' failed (" + e.getMessage() + ")",
                    LOG_CHANNEL,
                    Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e);
            } finally {
                alreadyInitialized = true;
            }
        }
View Full Code Here

                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } catch (NamingException e) {
                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } catch (Exception e) {
                getLogger().log(
                    "Loading and registering datasource " + datasource + " failed",
                    LOG_CHANNEL,
                    Logger.ERROR);
                getLogger().log(e.toString(), LOG_CHANNEL, Logger.ERROR);
                throw new ServiceInitializationFailedException(this, e.getMessage());
            } finally {
                alreadyInitialized = true;
            }

            if (ds == null) {
                getLogger().log("Datasource is null, can't initialize store");
                throw new ServiceInitializationFailedException(this, "Null datasource from context");
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.slide.common.ServiceInitializationFailedException

Copyright © 2018 www.massapicom. 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.