Package com.substanceofcode.utils

Examples of com.substanceofcode.utils.CauseMemoryException


                //#ifndef DTESTUI
                if (m_debugOutput) System.out.println("Feed list parsing isn't ready");
                //#endif
              }
            } catch(OutOfMemoryError e) {
              throw new CauseMemoryException(
                  "Error importing feeds from " +
                  m_listParser.getUrl() + " " +
                  e.getMessage(), e);
            }
          } catch(CauseMemoryException ex) {
View Full Code Here


        m_settings.setStringProperty("bookmarks","");
        gauge.setValue(m_settings.MAX_REGIONS + 1);
        pl = -1;
      } catch(OutOfMemoryError e) {
        /* Error during save out of memory. */
        throw new CauseMemoryException(ResourceProviderME.get("exc.sv.om"), e);
      }
    } catch(CauseRecStoreException e) {
      if ((e.getFirstCause() != null) &&
        !(e.getFirstCause() instanceof RecordStoreFullException)) {
        /* Error saving feeds to database.  Database error. */
 
View Full Code Here

//#ifdef DLOGGING
      logger.severe("Out of memory parse read error ", e);
//#endif
      System.out.println("Out of memory parse read error " + e + " " + e.getMessage());
      e.printStackTrace();
      CauseMemoryException ce = new CauseMemoryException(
          "Parse read error. Out of memory.", e);
      throw ce;
    } catch (Throwable e) {
//#ifdef DLOGGING
      logger.severe("Internal error parse read error ", e);
View Full Code Here

      // Replace special chars like left quote, etc.
      text = m_encodingUtil.replaceSpChars(text);
     
    } catch (OutOfMemoryError t) {
      CauseMemoryException ce = new CauseMemoryException(
          "Unable to read text. Out of memory.", t);
//#ifdef DLOGGING
      logger.severe(ce.getMessage(), ce);
//#endif
      System.out.println("getTextStream Could not read a char run time." + t +
                     " " + t.getMessage());
      t.printStackTrace();
      throw ce;
    } catch (Throwable t) {
      CauseException ce = new CauseException("Unable to read text. " +
          "Internal error.", t);
//#ifdef DLOGGING
      logger.severe(ce.getMessage(), ce);
//#endif
      System.out.println("getTextStream Could not read a char run time." + t +
                     " " + t.getMessage());
      t.printStackTrace();
      if (m_acceptErrors) {
View Full Code Here

//#ifdef DLOGGING
      logger.severe("Out of memory parse attribute error ", e);
//#endif
      System.out.println("Out of memory parse attribute error " + e + " " + e.getMessage());
      e.printStackTrace();
      CauseMemoryException ce = new CauseMemoryException(
          "Parse attribute read error. Out of memory.", e);
      throw ce;
    } catch (Throwable t) {
//#ifdef DLOGGING
      logger.severe("getAttributeValue error.", t);
View Full Code Here

            System.err.println("FeedListParser.run(): Error while parsing feeds: " + ex.toString());
      m_ex = new CauseException("Error while parsing feed " + m_url, ex);
        } catch( CauseMemoryException ex ) {
      m_feeds = null;
      System.gc();
      m_ex = new CauseMemoryException("Out of memory error while " +
          "parsing feed " + m_url, ex);
      //#ifdef DLOGGING
      logger.severe(m_ex.getMessage(), ex);
      //#endif
        } catch( Exception ex ) {
      //#ifdef DLOGGING
      logger.severe("FeedListParser.run(): Error while parsing " +
                "feeds: " + m_url, ex);
      //#endif
            System.err.println("FeedListParser.run(): Error while parsing feeds: " + ex.toString());
      m_ex = new CauseException("Error while parsing feed " + m_url, ex);
        } catch( OutOfMemoryError t ) {
      m_feeds = null;
      System.gc();
      //#ifdef DLOGGING
      logger.severe("FeedListParser.run(): Out Of Memory Error while " +
          "parsing feeds: " + m_url, t);
      //#endif
            System.err.println("FeedListParser.run(): " +
          "Out Of Memory Error while parsing feeds: " + t.toString());
      m_ex = new CauseMemoryException("Out Of Memory Error while " +
          "parsing feed " + m_url, t);
        } catch( Throwable t ) {
      //#ifdef DLOGGING
      logger.severe("FeedListParser.run(): Error while parsing " +
                "feeds: " + m_url, t);
View Full Code Here

      //#endif
      if ((m_url != null) && m_url.startsWith("file://")) {
        System.err.println("Cannot process file.");
      }
            /* Out Of Memory Error while parsing RSS data */
            throw new CauseMemoryException(ResourceProviderME.get(
            "exc.om.rsd", m_url), t);
        } catch(Throwable t) {
      //#ifdef DLOGGING
      logger.severe("parseFeeds error with " + m_url, t);
      //#endif
View Full Code Here

    } catch (CauseMemoryException e) {
      if (m_rssFeed != null) {
        m_rssFeed.setItems(null);
        m_rssFeed.setItems(new Vector());
      }
            CauseMemoryException ce =
          new CauseMemoryException("Out of memory error while " +
          "parsing RSS data: " + e.toString(), e);
      //#ifdef DLOGGING
      logger.severe(ce.getMessage(), e);
      //#endif
      if ((url != null) && url.startsWith("file://")) {
        System.err.println("Cannot process file.");
      }
            throw ce;
        } catch(Exception e) {
      //#ifdef DLOGGING
      logger.severe("parseRssFeedUrl error with " + url, e);
      //#endif
      if ((url != null) && url.startsWith("file://")) {
        System.err.println("Cannot process file.");
      }
            throw new CauseException("Error while parsing RSS data: "
                    + e.toString(), e);
    } catch (OutOfMemoryError e) {
      if (m_rssFeed != null) {
        m_rssFeed.setItems(null);
        m_rssFeed.setItems(new Vector());
      }
            CauseMemoryException ce =
          new CauseMemoryException("Out of memory error while " +
          "parsing RSS data: " + e.toString(), e);
      //#ifdef DLOGGING
      logger.severe(ce.getMessage(), e);
      //#endif
      if ((url != null) && url.startsWith("file://")) {
        System.err.println("Cannot process file.");
      }
            throw ce;
View Full Code Here

      //#endif
            System.err.println(ce.getMessage() + " " + e.toString());
      e.printStackTrace();
      throw ce;
        } catch(OutOfMemoryError e) {
      CauseMemoryException ce = new CauseMemoryException(
          "Out of memory error during deserialize", e);
      //#ifdef DLOGGING
      Logger logger = Logger.getLogger("RssItunesFeed");
      logger.severe(ce.getMessage(), e);
      //#endif
            System.err.println(ce.getMessage() + " " + e.toString());
      e.printStackTrace();
      throw ce;
        } catch(Throwable e) {
      CauseException ce = new CauseException(
          "Internal error during deserialize", e);
      //#ifdef DLOGGING
      Logger logger = Logger.getLogger("RssItunesFeed");
      logger.severe(ce.getMessage(), e);
      //#endif
            System.err.println(ce.getMessage() + " " + e.toString());
      e.printStackTrace();
      throw ce;
        }
  }
View Full Code Here

      //#endif
            System.err.println(ce.getMessage() + " " + e.toString());
      e.printStackTrace();
      throw ce;
        } catch(OutOfMemoryError e) {
      CauseMemoryException ce = new CauseMemoryException(
          "Out of memory error during initialize of RssItunesFeed", e);
      //#ifdef DLOGGING
      logger.severe(ce.getMessage(), e);
      //#endif
            System.err.println(ce.getMessage() + " " + e.toString());
      e.printStackTrace();
      throw ce;
        } catch(Throwable e) {
      CauseException ce = new CauseException(
          "Internal error during initialize of RssItunesFeed", e);
      //#ifdef DLOGGING
      logger.severe(ce.getMessage(), e);
      //#endif
            System.err.println(ce.getMessage() + " " + e.toString());
      e.printStackTrace();
      throw ce;
        }
    }
View Full Code Here

TOP

Related Classes of com.substanceofcode.utils.CauseMemoryException

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.