Error in hitting url

i wanna hit a url and retrieve the data.i`m using teh simple code given below.i just realized that my net connection uses a proxy server to connect.does that create any issues????i tried the url on the browser and it works.plz help.its urgent.the run time exception is also given below
thanks
import java.io.*;
import java.net.*;
public class MConnection
public MConnection()
public static void main(String args[])
byte b[];
b=new byte[20000];
try
URL url=new URL("http://www.mumbailinks.com/citytransport/DisplayStops.asp?RouteNo=007SF");
//URL url=new URL("http://www.yahoo.com");
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
     System.out.println(inputLine);
in.close();
catch(Exception e)
e.printStackTrace();
//Exception
java.net.ConnectException: Operation timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.<init>(Socket.java:268)
at java.net.Socket.<init>(Socket.java:95)
at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:334)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:270)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:280)
at sun.net.www.http.HttpClient.New(HttpClient.java:292)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:417)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:510)
at java.net.URL.openStream(URL.java:793)
at MConnection.main(MConnection.java:16)

Have you tried something like:
public void setSOCKS(String host,
                     String port,
                     String userid,
                     String password)
   Properties p = System.getProperties();
   p.put("socksProxyHost", host);
   p.put("socksProxyPort", port);
   p.put("java.net.socks.username", username);
   p.put("java.net.socks.password", password);
   System.setProperties(p);
}Matt

Similar Messages

  • Error opening file/URL reference by alias and Administrative limit exceeded

    Hello All,
    Problem:
    SMTP Error: 4.5.0 error opening file/URL reference by alias
    and
    Search failed with: netscape.ldap.LDAPException: error result (11); Administrative limit exceeded
    Here is my configuration:
    Windows 2000 server (without Active Directory)
    SP4
    Iplanet Messaging Server 5.2
    Netscape Directory Server 4.16
    IPlanet Messaging Server 5.2 Hotfix 1.09 (built Jan 7 2003)
    We have a group which we use to flash messages to all the users of the mail server. Till last week it was working fine but now I am not able to send messages to this group <group-name>.
    There are around 800 (Eight Hundred) E-mail id the messaging server and the flashed message is supposed to go to all 800 + users.
    Note: I have another group of 300 users and I am able to send an E-mail to this group of 300 users.
    I am using Dynamic Group for Members list.
    The error message I get while trying to send message to this group is
    SMTP Error: 4.5.0 error opening file/URL reference by alias.
    The corresponding error in mail.log file is
    30-Jan-2004 10:55:21.40 41c.7e4.1098 tcp_intranet J 0 <group-name>@domain rfc822; <group-name>@domain domain (localhost [127.0.0.1]) 452 4.5.0 error opening file/URL referenced by alias: <group-name>@domain
    Now when I construct and Test the LDAP URL from Console, the error I get is:
    Search failed with: netscape.ldap.LDAPException: error result (11); Administrative limit exceeded
    I have increased the various limits but I still get the same error when I send mail to that group or do a LDAP Test:
    The deafult and new limits are:
    Sizelimit: Default 2000 New 10000
    Timelimit Default 3600 New 3600
    Lookthroughlimit Default 5000 New 6000
    The corresponding error entry in access log of slapd is:
    30/Jan/2004:12:19:26 +051800] conn=34 op=213 RESULT err=11 tag=101 nentries=0 etime=2 notes=U
    My search for Administrative limit problem and error opening file/URL error in Sun forum and other groups did get some hits but that did not solve my problem.
    I will appreciate any suggestion/comments.
    Thanks and Regards,
    Maneesh Bisht

    Thanks Jay.
    My problem has been fixed.
    Your suggestion was to increase the lookthrough limit. As you would have noticed in my posting that I had increased this limit to 6000 but that did not solve my problem. Today I increased this limit to 10000. And after that I did not get "administrative limit exceeded" error. Also I do not get "error opening file/URL reference by alias" error while sending E-mail to a particular group of 800+ ids.
    Regards,
    Maneesh Bisht

  • Problem with Home Sharing.  Getting the error "The Requested URL was not Found on this Server"

    I recently purchased an iPhone 5.  As I do with all of my AppleTVs, iPads, iPods and an iPhone 4 in my home, I connected the 5 to my home network and accessed the shared video library using home sharing.  My iTunes library is roughly 85% iTunes purchases, a handful of videos taken with iOS devices, and some video ripped with Handbrake.  All of these videos work fine on all devices in my home except my new iPhone 5.  When I access the shared video library on my iPhone 5, all of the textual data for all of the videos appears, however, I can only get the iPhone to play 1 video of the dozens in my iTunes library. When I try to play any other, I get the error, "The Requested URL was not Found on this Server."
    Interestingly, only one video in my entire shared library displays the artwork associated with it in my iTunes library on my iPhone 5, and that's the one I can stream without a problem. Even more interestingly, that video I am able to stream was ripped using Handbrake (there are a number in my library ripped using Handbrake, but just this one will stream to my iPhone 5 for some reason).
    I'm using the latest version of iTunes (10.7) on my home (iMac) computer (running OSX 10.8.2- Mountain Lion)and of course iOS 6 on the iPhone 5. I've tried resetting my iPhone several times as well as restarting my iMac which holds my iTunes library.
    Does anyone have any ideas as to what's going on?

    Can you see if you can view index page from a browser on iPhone.
    Have you seen live streams working from a different computer...
    if not then check if a proper crossdomain.xml file in its place(webroot folder).

  • After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server"

    After uprading to iOS 5.1 I can no longer play videos in my camera roll. I just get the following error "The  requested URL was not found on this server".
    Anyone have any ideas?

    You have two choices to try & fix this: 1. Backup your phone, then restore as a new device, then restore from the backup you first created, or 2. Follow the advise from this poster:
    I had the same problem with the black blocks after upgrading to iOS4 on my iPhone. The reason for the black blocks is that the thumbnail images for those particular images have not been created when the Photo Library has been updated to iOS4. I followed the advice on a couple of blogs and fixed the problem.
    1. I downloaded iPhone Explorer free software (http://www.macroplant.com/iphoneexplorer/) so I could view the photo data folders on my phone. I could see that the thumbnail images were missing.
    2. I followed a slight variation on the instructions on this blog. (http://blog.mbentley.net/2010/06/iphone-ios-4-upgrade-restore-lost-pictures-in-c amera-roll/)
    3. First I copied the Photo Data folder by dragging it from the iPhone Explorer window to my Mac desktop.
    4. Through iPhone Explorer I deleted the info.plist file in the Media/PhotoData/MISC folder.
    5. I also deleted the Photos.sqlite and PhotosAux.sqlite files in Media/PhotoData.
    6. I then rebooted the phone and launched the Photo Library.
    7. The Library rebuilt it's self again and recreated the thumbnails.
    8. The problem was fixed!!! Thank you M Bentley!
    I hope this helps - this has been bugging me for 2 weeks.
    Regards
    Alijm23

  • Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded." How can I repair?

    Private Browsing function is suddenly not working. Error message :"The URL is not valid and cannot be loaded."
    How can I fix it?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I am getting this error message, " The URL is not valid and cannot be loaded" when I try to go to Firefox home. I have uninstalled add-ons, uninstaleed and reinstalled a fresh new firefox which did not help

    I am getting the following error message, " The URL is not valid and cannot be loaded" when I try to go to firefox home. I uninstalled add-ons , uninstalled Firefox and then installed a fresh version. Still have the problem.
    Thanks for the help

    That issue can be caused by a corrupted or incomplete Visual C++ installation (multiple versions can be installed side-by-side; SxS) that is missing some runtime components (Redistributable Packages) that Firefox depends on (problem with an embedded manifest file that specifies a specific runtime version).
    You need to install the missing components (e.g. VisualC++ 2005 Redistrbutable).
    * https://www.microsoft.com/download/en/details.aspx?id=5638
    *[[/questions/908165]] The URL is not valid and cannot be loaded
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=713167 bug 713167] - Microsoft.VC80.CRT SideBySide errors, browsercomps.dll

  • Netflix viewed perfect for over a month, then it didn't with this error msge: Invalid URL The requested URL "/home", is invalid. Reference #9.9d0bc841.1320231048.92bcc44 --What's up with this now?

    Been watching Netflix on my Verizon HP Notebook, it's less than 3mo old. runs windows xp...pretty standard stuff. Anyway tried to login to netflix and Firefox gave this error message--Invalid URL
    The requested URL "/home", is invalid. Reference #9.9d0bc841.1320231048.92bcc44 -- I called Netflix & there system running perfectly. My pc running perfectly as well. Logged into netflix using IE--worked just fine. So by process of elimination, it's Firefox's Problem! I have NO CLUE about it, never seen it before on ANY browser. Tried opening & closing FFx, restarting puter, etc...Don't know what else to tell you except Firefox works on every other website now EXCEPT NETFLIX, it's the darnedest (I know that's not a word LOL) I've seen--it happened 10/2/11 @ about 3am!

    As I understand:
    The procedure works.
    The link 'appears' to work. (ie you saw the procedure run a 2nd at the database level)
    But it doesn't actually work (because you get a 404)
    I think I ran into an issue, on a completely different page type, that produced an 'error 404'. (I can't seem to reproduce it, though)
    The only way I discovered what was really going on was with an HTTP sniffer. (eg HTTPFox for FireFox)
    Through that, I noticed that the browser was (for some reason) calling a completely non-sensible APEX page. (hence the PAGE NOT FOUND error)
    My solution was to add a "submit to self" branch point.
    If that doesn't work, I'm at a loss.
    MK

  • I updated my iPhone 3GS on iOS 5.1 everything is ok but when I tap a message in notification area a SMS error comes "This URL wasn't loaded: sms:/open?groupid=1." and when i tap on messages app open and then close certainly... Please anyone helpe me......

    I updated my iPhone 3GS on iOS 5.1 everything is ok but when I tap a message in notification area a SMS error comes "This URL wasn't loaded: sms:/open?groupid=1." and when i tap on messages app open and then close certainly... Please anyone helpe me......

    Forgot to mention I live in Peru Southamerica, the cell provider is Claro (America Moviles).

  • Error: The requested URL was not found, or cannot be served at this time.

    Hi gurus,
    I have a report that has a parameter file. When I call the report the parameter form is displayed but after I enter the parameter values and click SUBMIT QUERY, I receive this error:
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - Reports Server name is not specified.
    If I run the report without parameter file it runs fine.
    Does anyone have an idea on how I can make this work.
    Thanks

    * Can you please tell what version of Reports you are using ie 6i or 9i and the exact version [ In builder give Help->About] . In this problem we cannot deduce anything from the version. But if it is very old, we can recommend installing the latest patch.
    * Please post the full command line request. If you have used any keys in cgicmd.dat , please post the expansion of that keys also.
    * If possible as a workaround give paramform=no&paramName=paramValue ... in request till this problem is resolved.
    Thanks
    The Oracle Reports Team

  • Script error line 2107 char 1 error unspecifie​d error code 0 url://iefr​ame.dll/pr​iview.js

    officejet 4500 all-in-one will not print emails or webpages?
    I get this error message?
    script error
    line 2107
    char 1
    error unspecified error
    code 0
    url://ieframe.dll/priview.js

    Bana sürekli sorun yaşatan HP problemler bir yenisini daha ekledi ! Bilgisayarımı servisten alıp ofisime geldiğimde fark ettim ki, internete bağlanmayı sağlayan data hattın girdiği yuva boşlukta. yani ya kırılmış veya içinden parça çıkarılmış. Kartı takmaya çalışırken kart içeri kaçtı ve çıkmıyor. HP bilgisayarımı 2 ay boyunca hiç bir şey yapmaksızın serviste beklettiği için bilgisayarın garantisi 03/06/2011 da doldu ve ben şu anda bu sorunu nasıl çözeceğimi bilmiyorum. Bilgisayarım garantisi kasten doldurulup kasten kart girişi bozulmadıysa, HP den acil çözüm bekliyorum. batarya ile ilgili tüketici mahkemesine başvuru işlemlerini başlattım, bir de kart yuvası ve serviste kasıtlı bekletip garanti doldurmayla ilgili sorun yaşamak istemiyorlarsa, HP den birileri artık çözüm amaçlı bana dönsün. 14/06/2011 18:34

  • ERROR 47: Invalid URL () Needs To Be Fixed...

    Hi,
    I have read a lot of discussions on this website and others,
    When I do a web search for this error it brings up a lot of unanswered topics.
    And it looks like there s a error that needs fixing by the developers of Quicktime Player.
    ERROR 47: Invalid URL () Needs
    This error appears in a pop up window when I try to play certain URLs in quicktime player,
    We also tested it with the pro version and the same error occurs.
    It was working fine then it just throws this error.
    This type of hashed URL use to work fine:
    http://www.site.com/file-a5f81d6-bb2c-4aa4-8737-4a3a81a529a6&MovieID=314

    I got some code a few years back, I used it to build a video delivery application.
    The system can deliver video URLs, when the user clicks the system, it fetches a fake/hashed URL from the database.
    The user receives an URL similar to the one I posted above, when they put the URL in Quicktime player it loads up the actual .mov file.
    But the hashed URL is all that's seen, I tested it in QuicktimePlayer 100's of times, even in web browser, it would open Quicktime plugin.
    Not any more.

  • Error 47: Invalid URL. ()

    For the last few weeks when trying to download an HD trailer (480p, 720p, 1080p) for ANY movie, I keep getting the message Error 47: Invalid URL. ().  I have tried in IE 9.0, Firefox 5.0 and Chrome (12.0.742.112) and ALL give me the same result.
    I am running the lastest version of QuickTime Player - 7.6.9 (1680.9) [QuickTime Version 7.6.9 (1680.9)] on Windows 7 Enterprise 64-bit.
    I have also tried on Windows Vista Business 32-bit SP2 running QuickTime Player - 7.6.5 (518.4) [QuickTime Version 7.6.5 (1327.80)] with IE 9.0, Firefox 3.5.4 and still giving me the same results.
    I have found suggestions from posts that are anywhere from 2007-2009 but they do NOT work.
    This has obviously been an issue for quite some time and with NO resolution.
    I do hope an Apple developer or someone reads this so that we can find out what is being done.
    If nothing gets done, then I guess I have no choice but to go to other sites like Yahoo or HD-Trailers, to view trailers that actually work.

    I have the "Error 47: Invalid URL" problem, too. Startet a few weeks ago, never had this problem in the past.
    My current system:
    PC
    Intel Core i5 750 (4x 2.67 GHz)
    8 GB RAM
    Nvidia GeForce GTX 275
    Windows 7 x64 Home Premium SP1 (german) - all updates installed
    Quicktime 7.6.9 (german)
    I testet with Firefox 5.0 and Internet Explorer 9.0.1, a few seconds after selecting HD Trailer on trailers.apple.com (e.g. 720p), I got the error 47 messagebox and "QuickTimePlayer.exe*32" was listet in the Taskmanager under processes, but no GUI loaded. I had to kill the process.
    I also tried disabling my Norton Internet Security, but has no effect.
    When I "save to ..." and try to open the (very small) *.mov file in Quicktime I get an error, too.
    Other *.mov files from my HDD working fine.
    Yesterday I tried my old PC (Pentium 4  3.2 GHz, 2 GB RAM, Windows XP 32-bit SP3) and I could watch the HD Trailers with Firefox 5.0 and IE 8.0 with no problems!
    While the "invalid URL" points to a problem on the apple website, maybe it only happends on Windows 7 / 64-bit systems.

  • HTTP connection to ABAP Runtime failed. Error: 403 Forbidden URL

    HI experts,
    I am tsting Test configuration in ID in Quality environment. I am getting below error for all interfaces.
    but same interfaces are working fine in Develoment environment.
    Internal Error
    HTTP connection to ABAP Runtime failed. Error: 403 Forbidden URL: http://abcdxi06.abcdk.abcpower.com.sg:8000/sap/xi/simulation?sap-client=300 User: PIDIRUSER.
    thanks
    Srinivas

    Similar problem discussed here:
    HTTP connection to ABAP Runtime failed : 403 : forbidden
    Error testing configuration: "HTTP connection failed"
    Check if the port is defined, as suggested in second link.
    Regards,
    Abhishek.
    Edited by: abhishek salvi on Oct 1, 2009 1:27 PM

  • Trying to update iTunes but keep getting the error messag "the url could not be opened" when it's always worked fine in the past. What does this mean?

    Trying to update my iTunes but keep getting the error message "the URL could not be opened" what does this mean and how do I resolve this? It's always worked fine in the past!

    Select a broken track and press ctrl-i to Get Info. Look on the summary tab for the location where iTunes "thinks" the file should be. Where is it really? Post back the two locations and I can suggest the best approach.
    tt2

  • ERROR when hitting the "helpful" or "solved" buttons

    Here's the message I get, any system admins know how to fix it?
    Error
    An error in the system has occurred. Please contact the system administrator if the problem persists.

    KevinC & Others,
    This is a wide spread issue, caused by the recent Maintenance on the  Discussions system.
    See these previously posted Topics in Feedback About Discussions, posted below.
    Please review the responses.
    Error when attempting to click "Solved" button in forum
    Error when trying to mark a reply as "solved"
    Thank you for maintenance and another error
    This Thread ERROR when hitting the "helpful" or "solved" buttons
    ali b

Maybe you are looking for

  • Using remote machines for report generation

    Since LabView does not have cross-platform openoffice support, I was looking at ways of generating reports from a LabView session (2010) running on a mac. The report generation VI contains a somewhat suggestive machine name input. Can one connect to

  • How do i get the software to burn a disc on my Mac Air

    Does anybody know wich is the best software ( hopefully free ) to burn home vidioes so i can put them in my blueray player to watch on tv.

  • SOA SUITE 11g MDS lock

    I am not able to deploy the artifacts to the SOA server. I am getting the following error messages while deploying for each and every file in the composite: MDS-00001: exception in Metadata Services layer MDS-00522: failure to save document /deployed

  • How can I delete iTunes?

    I don't use itunes so I decline the agreement thing that pops up. But now it keeps popping up, again, and again, and again. Have rebooted and tried to delete but then there it was again. Very frustrating.

  • Replace the text in DUTCH language to ENGLISH in sap-scripts

    1)In a layout am having a text say "posisdvnsdb" in dutch language i know the form name print prog name and the window name. how can i find whether it is hardcoded or getting the text from print program by looking at the script editor solution requir