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


        }
            }
            while( (elementType = parser.parse()) != XmlParser.END_DOCUMENT );
           
        } catch (CauseMemoryException ex) {
      CauseMemoryException cex = new CauseMemoryException(
          "Out of memory error while parsing HTML Link feed " + url,
          ex);
      throw cex;
        } catch (Exception ex) {
      CauseException cex = new CauseException(
          "Error while parsing HTML Link feed " + url, ex);
            System.err.println(cex.getMessage() + " " + ex + " " + ex.toString());
      ex.printStackTrace();
//#ifdef DLOGGING
//@      logger.severe(cex.getMessage(), cex);
//#endif
      throw cex;
        } catch (Throwable t) {
      CauseException cex = new CauseException(
          "Error while parsing HTML Link feed " + url, t);
            System.err.println(cex.getMessage() + " " + t + " " + t.toString());
      t.printStackTrace();
//#ifdef DLOGGING
//@      logger.severe(cex.getMessage(), cex);
//#endif
      throw cex;
View Full Code Here

      }
            while( parser.parse() != XmlParser.END_DOCUMENT );
           
        } catch (CauseMemoryException ex) {
      rssFeeds = null;
      CauseMemoryException cex = new CauseMemoryException(
          "Out of memory error while parsing OPML feed " +
          m_url, ex);
      throw cex;
        } catch (Exception ex) {
            System.err.println("OpmlParser.parseFeeds(): Exception " + ex.toString());
      ex.printStackTrace();
      //#ifdef DLOGGING
//@      m_logger.severe("FeedListParser.run(): Error while parsing " +
//@                  "feeds: " + m_url, ex);
      //#endif
      CauseException cex = new CauseException(
          "Error while parsing Opml feed " + m_url, ex);
      throw cex;
        } catch (OutOfMemoryError ex) {
      rssFeeds = null;
      CauseMemoryException cex = new CauseMemoryException(
          "Out of memory error while parsing OPML feed " +
          m_url, ex);
      //#ifdef DLOGGING
//@      m_logger.severe("FeedListParser.run(): Error while parsing " +
//@                  "feeds: " + m_url, ex);
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://")) {
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

      //#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 RssFeed", 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 RssFeed", e);
      //#ifdef DLOGGING
//@      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 while RssItem init ", 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.