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

  • SEARCH
  • Home
  • 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 8439187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:56:25+00:00 2026-06-10T07:56:25+00:00

I am trying to parse xml, but i am getting error while setInput method

  • 0

I am trying to parse xml, but i am getting error while setInput method parser.setInput(responseStream, null);

responseStream value are getting fine.

error is like this,

08-28 15:47:37.069: WARN/System.err(5429): Invalid stream or encoding: java.io.IOException: Attempted read on closed stream. (position:START_DOCUMENT null@1:1) caused by: java.io.IOException: Attempted read on closed stream.; nested exception is:
08-28 15:47:37.107: WARN/System.err(5429): java.io.IOException: Attempted read on closed stream.
08-28 15:47:37.165: WARN/System.err(5429):     at org.apache.http.conn.EofSensorInputStream.isReadAllowed(EofSensorInputStream.java:127)
08-28 15:47:37.165: WARN/System.err(5429):     at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
08-28 15:47:37.186: WARN/System.err(5429):     at org.kxml2.io.KXmlParser.setInput(KXmlParser.java:1623)
08-28 15:47:37.196: WARN/System.err(5429):     atin.project.parser.Getparser.parser(Getparser.java:31)
08-28 15:47:37.246: WARN/System.err(5429):     atin.project.home.HomePgae$DataProvide.doInBackground(HomePgae.java:313)
08-28 15:47:37.279: WARN/System.err(5429):     atin.project.home.HomePgae$DataProvide.doInBackground(HomePgae.java:1)
08-28 15:47:37.279: WARN/System.err(5429):     at android.os.AsyncTask$2.call(AsyncTask.java:264)
08-28 15:47:37.286: WARN/System.err(5429):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
08-28 15:47:37.306: WARN/System.err(5429):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
08-28 15:47:37.306: WARN/System.err(5429):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
08-28 15:47:37.446: WARN/System.err(5429):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
08-28 15:47:37.516: WARN/System.err(5429):     at java.lang.Thread.run(Thread.java:856)

thanks,

  • 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-06-10T07:56:26+00:00Added an answer on June 10, 2026 at 7:56 am

    The error is telling you that the responseStream has already had .close() called on it. Have you used responseStream previously in your code or wrapped it with any other streams that have had .close() called on it?

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

Sidebar

Related Questions

I am getting this error while trying to Parse the Xml response from the
I'm getting this error (see title) while trying to parse an XML file in
I am trying to parse XML with Python but not getting very far. I
I am trying to parse xml using the touchXML library but not getting the
Trying to parse some XML but apparently this is too much for a lazy
I am trying to parse XML with jsoup, but I can't find any examples
I am trying to parse a document that is formatted similar to Xml (but
I am trying to parse an XML file with python using lxml, but get
I am trying to write a query expression to parse an XML tree, but
I'm trying to download an xml file to parse from a server, but the

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.