Skip to content

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space #10

@nupurjaiswal

Description

@nupurjaiswal

Hi, I'm getting an OutOfMemmoryError while running the program. Below is the complete exception:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at org.json.simple.parser.Yylex.zzUnpackCMap(Yylex.java:302) at org.json.simple.parser.Yylex.<clinit>(Yylex.java:40) at org.json.simple.parser.JSONParser.<init>(JSONParser.java:34) at edu.jhu.nlp.language.Language.getJsonObject(Language.java:70) at edu.jhu.nlp.language.Language.<init>(Language.java:47) at edu.jhu.nlp.wikipedia.WikiTextParser.<init>(WikiTextParser.java:45) at edu.jhu.nlp.wikipedia.WikiPage.setWikiText(WikiPage.java:39) at edu.jhu.nlp.wikipedia.SAXPageCallbackHandler.endElement(SAXPageCallbackHandler.java:55) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:597) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:676) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1646) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324) at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845) at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1201) at edu.jhu.nlp.wikipedia.WikiXMLSAXParser.parse(WikiXMLSAXParser.java:68) at com.accenture.WikiLogic.main(WikiLogic.java:222)

Can you please assist regarding this? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions