Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3613142
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:05:13+00:00 2026-05-18T22:05:13+00:00

java.lang.OutOfMemoryError at com.solvoterra.xmlengine.Element.<init>(Element.java:9) at com.solvoterra.xmlengine.XML_Handler_Main.startElement(XML_Handler_Main.java:71) at org.apache.harmony.xml.ExpatParser.startElement(ExpatParser.java:146) at org.apache.harmony.xml.ExpatParser.append(Native Method) at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:505) at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:492)

  • 0
java.lang.OutOfMemoryError
at com.solvoterra.xmlengine.Element.<init>(Element.java:9)
at com.solvoterra.xmlengine.XML_Handler_Main.startElement(XML_Handler_Main.java:71)
at org.apache.harmony.xml.ExpatParser.startElement(ExpatParser.java:146)
at org.apache.harmony.xml.ExpatParser.append(Native Method)
at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:505)
at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:492)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:308)
at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:264)
at com.solvoterra.xmlengine.Project_Man.readXML_File(Project_Man.java:148)
at com.solvoterra.xmlengine.Project_Man.run(Project_Man.java:83)
at java.lang.Thread.run(Thread.java:1102)

I can see from this the error has occurred whilst running a new process which only contains the function to SAX Parse an XML file into memory (RAM) I don’t know all the details as this information has been provided by an anonymous user on the market.

Before the function to Parse is called all buffers and memory is cleared of existing data.

Q: Is it possible that the user is trying to Parse a HUGE XML database into memory and the RAM allocated by his phone simply isn’t enough to handle his database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:05:13+00:00Added an answer on May 18, 2026 at 10:05 pm

    Sax parsing method doesn’t load things in memory itself (as opposed to DOM). Only your way of handling events generated by SAX can cause memory overload.

    If you allow your users to chose freely an XML source, you have to either:

    • build a parsing algorithm which stores in BD or file the result of the parsing one element at a time
    • build a parsing algorithm which loads the first X elements of the XML source and if possible allows to fetch following elements when requested (paginate)
    • check the length of the XML source before parsing in order to display an error message to the user asking him to load a smaller source

    Another reason for this OutOfMemoryError could be a memory leak in your application which is not related to your XML parser. For example, orientation changes, if not handled carefully, can easily cause memory leaks. If your application memory is saturated, the OutOfMemoryError can be triggered by ANY memory allocation, but this single memory allocation may not be responsible for the whole process memory saturation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Exception in thread AWT-EventQueue-0 java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(Unknown Source) at java.awt.image.Raster.createPackedRaster(Unknown Source)
I've been hitting a java.lang.OutOfMemoryError: PermGen error when compiling a project with ant under
Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's
JBOSS is throwing a: java.lang.NoSuchMethodError: org.w3c.dom.Document.getDocumentURI()Ljava/lang/String; Error when loading a wsdl. Can I configure
I am getting this error: Exception in thread main java.lang.OutOfMemoryError: Java heap space at
java.lang.annotation.ElementType : A program element type. The constants of this enumerated type provide a
I get 12-21 21:19:09.384: ERROR/AndroidRuntime(4063): java.lang.OutOfMemoryError Thanks! @Override public void initScene() { //openOptionsMenu(); //plane
When I build an application with ant in eclipse . I met java.lang.OutOfMemoryError: Java
Is there any point catching an out of memory error ( java.lang.OutOfMemoryError ) in
I am getting this out of memory error: java.lang.RuntimeException: java.lang.OutOfMemoryError: <classname>: Unable to expand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.