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 6641939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:52:14+00:00 2026-05-25T23:52:14+00:00

i have created one application which parsed the data and it will displyed in

  • 0

i have created one application which parsed the data and it will displyed in ListRow,for that i have created http connection as below.

enter code here
  public void run() {  
            System.out.println("Run Method called");


            HttpConnection Conn = null; 
            InputStream is = null;  
            try {      
                System.out.println("Before Connection");
                Conn = (HttpConnection)   Connector.open("MYURL;deviceside=true" );
                System.out.println("HTTP connection called");
                //conn = (StreamConnection) Connector.open("http://xyz.com/Verandah/RSS/RSSContent.aspx?CatId=4;deviceside=true");
                DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();

                    documentBuilderFactory.setCoalescing(true);
                    DocumentBuilder docBuilder = documentBuilderFactory.newDocumentBuilder();
                    Document doc = docBuilder.parse(is);

when i am running my application i am getting IllegalArgumentException.i have compiled my application and i found i am getting the above exception in this line Document doc = docBuilder.parse(is); am i doing wrong anything wrong while creating a connection? need your suggestion why i am getting exception at this line.
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-05-25T23:52:15+00:00Added an answer on May 25, 2026 at 11:52 pm

    You forgot to open inputstream over httpconnection before passing it to parse() method.

    In your code is == null at this line.

    Add this line

    is = Conn.getInputStream();
    

    before passing is to parse() method.

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

Sidebar

Related Questions

I have created one application in flex that is accessing the Java webservice using
I have two windows application, one is a windows service which create EventWaitHandle and
hello i have created one windows application in c# .net and its working fine
I have created two forms in my Windows Application. One Form acts as a
I have created one table using the below command: create table Table1( Id int
I have created one aspx Page from that i need to access the property
I have created a new method in one of the project's controllers that it
I have created a raw socket which takes all IPv4 packets from data link
We have created a multi-threaded application which process/parse big files (few hundred MB's) simultaneously.
I have created one user named tuser with create database rights in SQL server

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.