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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:00:36+00:00 2026-05-25T17:00:36+00:00

And some times i’m getting java.net.MalFormedURLException what’s the reason behind this and how can

  • 0
 And some times i'm getting java.net.MalFormedURLException what's the reason behind this and how can i resolve this..

My code is as follows..


SAXParserFactory spf = SAXParserFactory.newInstance();
        SAXParser sp = spf.newSAXParser();
        XMLReader xr = sp.getXMLReader();

        /** Send URL to parse XML Tags */
        URL sourceUrl = new URL(
                "http://w3devadv.liveproj.com  /api/apiRequest.php?Method=getdealdetails&DealId=2&SessionId=EA3JQ0RZJT4e66223143fc5");

        /**
         * Create handler to handle XML Tags ( extends DefaultHandler )
         */
        DealsHandler myXMLHandler = new DealsHandler();
        xr.setContentHandler(myXMLHandler);
        xr.parse(new InputSource(sourceUrl.openStream()));


In handler i'm writing the following code in startelement  

public void startElement(String uri, String localName, String qName,
        Attributes attributes) throws SAXException {
    currentElement = true;
    if (localName.equalsIgnoreCase("data")) {
        dealsdata = new DealsData();
    } else if (localName.equalsIgnoreCase("dealdetails")) {
        deals = new Deals();
    } else if (localName.equalsIgnoreCase("title")) {
        deals.title = attributes.getLocalName(0);
    }

i'm getting the above said exception how can i resolve this.
  • 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-25T17:00:37+00:00Added an answer on May 25, 2026 at 5:00 pm

    You are getting this error because…..

    "This exception is thrown when a program attempts to create an URL from an
    incorrect specification."
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this error some times Fatal error: Uncaught GraphMethodException: Unsupported get request. thrown
While debugging Java code that uses reflection in Eclipse, some times I need to
Eclipse can some times fail to load plugins. I have experienced this E3.7 with
I have to print Java code that some times reaches 300 columns (characters per
I am getting some open/closed times as integers since midnight. For example: 1140 =
Some times whenever I restart the application, which is built on Java, Struts, Mysql,
When I run my website,sometimes run without error and some times this exception accord.
This Action Filter doesn't seem to work consistently. Some times it turns SSL off
I need to round some times. I would like to know how I can
When i send: Result = CInt(NetApiBufferFree(pBuffer)) I receive (SOME TIMES) this error: Arithmetic operation

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.