Menu

java.lang.OutOfMemoryError

Chris
2011-04-26
2012-09-04
  • Chris

    Chris - 2011-04-26

    I have been using web harvest GUI for about a month and have had no problems,
    but then today I went to open it and nothing happened. After a few attempts, I
    decided to run it via the command line and saw that I was getting an
    OutOfMemoryError. I increased the memory (using -Xmx1024m) and still got an
    out of memory error. Any ideas of how I could fix this?

    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap
    space

    at org.webharvest.gui.Settings.readString(Unknown Source)

    at org.webharvest.gui.Settings.readObject(Unknown Source)

    at org.webharvest.gui.Settings.readFromFile(Unknown Source)

    at org.webharvest.gui.Settings.<init>(Unknown Source)

    at org.webharvest.gui.Ide.<init>(Unknown Source)

    at CommandLine$1.run(Unknown Source)

    at java.awt.event.InvocationEvent.dispatch(Unknown Source)

    at java.awt.EventQueue.dispatchEvent(Unknown Source)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

    at java.awt.EventDispatchThread.run(Unknown Source)

    I have a class project due in 2 days, so any help is greatly appreciated.

    Thank you,

    Chris

     
  • Alex Wajda

    Alex Wajda - 2011-04-26

    It's a know issue. You need to remove webharvest.config file in your local
    temp directory (in linux it's usually /tmp, have no idea where it is on
    windows)

     
  • Chris

    Chris - 2011-04-29

    Wonderful! That solved it, thank you!

    Also, on a Windows box, at least a Vista one, webharvest.config is stored in
    C:\Users\USERNAME\AppData\Local\Temp.

    Thanks again!

     

Log in to post a comment.