Sitemap

Amicuk Programming Answers

Url connections

-0001-11-30   Views:0

Advertisement

When I try to open a connection calling the CONNECTION method of the URlConnection class, it doesn't work and stucks until trhowing a TimeOut Exception. It doesn't matter which URL I try to connect to, it never works. I get an URlConnection object by

When I try to open a connection calling the CONNECTION method of the URlConnection class, it doesn't work and stucks until trhowing a TimeOut Exception. It doesn't matter which URL I try to connect to, it never works. I get an URlConnection object by invoking the "openConnection" method of an URL object. Can someone suggest me a solution?
Thanks.
Fabio

The replay answer
Advertisement
My internet connection works properly, even though it has some limitations, since I have to pass through my company firewall for accessing internet sites. For example, I cannot open Ftp connections with external Ftp servers.
I think that connections to external sites should be treated in the same way, even if they're made by the browser or bye Java applications. Am I right or not? And could you suggest me a way to check it, please?
Thank you anyway ofr your suggestion.
Fabio

Go to See the other 5 answers

Close URL Connection netstat

Category:DefaultRelease time:2015-10-11Views:130

hello all, I hope you can help me. Please have a look at my code below I open an URL Connection but I can't close it. If i type in a DOS Box netstat I see a lot of connection. Now my question is how can I close the connection. m_http.disconnect() see[More]

Map Viewer URL Connection Issue

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have an UI project, for which i have created a Deployment Profile named 'adfXXXXXUI' nothing but created a adflibrary for that UI project. While creating the adf jar, i have come across an Option called 'Connections' . Here i have selected Conn[More]

How to make pool of  url connections in wls?

Category:DefaultRelease time:2015-10-11Views:130

Hi, i have a project in which i have to make a http post to multiple web           servers to retrieve           XML files in response to user requests. Right now i just open the           url for each request.           Is there any way to pool URL[More]

Regarding URL Connection Creation.

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I am trying to create a URL Connection in JDev 11.1.2, and using the following JDev RSS URL: http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/132361.xml However, when I am testing the connection, its saying "Specified URL Connec[More]

Set timeout for URL connection in java1.4

Category:DefaultRelease time:-0001-11-30Views:130

hi I want to set timeout for URL connection in java 1.4.. java 5.0 provides with a setTimeout(int ) method but how should it be done in 1.4 environment Thanks in advance snehasun.net.client.defaultConnectTimeout (default: -1) sun.net.client.defaultRe[More]

Encrypting authentication details - HTTP URL Connection

Category:DefaultRelease time:-0001-11-30Views:130

Hi, We have a Java application which retreives HTML content from intranet page using HTTPURLConnection, displays the portion of the content. The site to which we are connecting using HTTPURLConnection requires baisc user authentication and we are pas[More]

HttpsURLConnection URL connection issue

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, I need to create URL connection with HTTPS URL. I can run Main java class successfully in machine which hosted in SAP Java server, but fail to run integrate it with e-commence application. When depployed in to SAP Java server cannot open Http[More]

Http Request through URL Connection?

Category:DefaultRelease time:-0001-11-30Views:130

Hi , Iam using an Applet (under JRE 1.3.0). Iam trying to send a Http Request using URL Connection. It is working fine . However, if the response time of the server is more than 3 minutes , the Response is not coming back to the server and the Applet[More]

Ssl URL connection

Category:DefaultRelease time:-0001-11-30Views:130

Does anybody know if a way in jdk 1.3 to open a URL connection using SSL. I know of the javax.net.ssl.HttpsURLConnection class in 1.4 but it wasn't in the JSSE jar files I downloaded? Has anyone any ideas?It is definetely in there! But you will need[More]

How set up URL Connection Factory/Resource?

Category:DefaultRelease time:-0001-11-30Views:130

Hi, How to set up URL connection Factory, Exactly like JDBC connection Pool i.e. specifying Max. No. of Connection, Intial capacity etc. I'm able to find this much only. <WebServer URLResource="weblogic.httpd.url.myURL=http://localhost:7701/blah&q[More]

Could not contact the agent. check wheather the url connected to the agent.

Category:DefaultRelease time:-0001-11-30Views:130

i am having the problem with the error message " could not contact the agent. check wheather the url connected to the agent is null". This error occurs while login with credentials, and because of this i cant open the em page, please help me to[More]

Hot
I see that Firefox is now truncating the "title" of web pages. I cannot see any good reason for this because the space to the right of the title is blank. I think it was done in the "do anything to make changes to Firefox" department b [More]
I just received my new ipod touch 4G 32GB in the mail today. It's running 4.1 (the latest firmware). I also have itunes 10. But itunes doesn't recognize my device but my laptop (Windows 7) does. Although, it is recognizing it as a digital camera, not [More]
Some, but not all, text on some web pages is arbitrarily appearing as a dingbats font.Clear Cookies & Cache * https://support.mozilla.com/en-US/kb/Template:clearCookiesCache Clear the Network Cache * https://support.mozilla.com/en-US/kb/How%20to%20cl [More]
Dear All, I need to register with "SAP Process Orchestration Trial in Public Cloud" as per the guidance mentioned in the document SAP Process Orchestration Trial in Public Cloud - Getting Started But I am not able to see the link for Registratio [More]
Hi all, There is a form which has to get approved for further processing. When the requestor submits it for approval, the workitem goes into the approver's inbox. There are three approvers. When one of the approvers rejects it, it goes back to the re [More]
hi apple company my name is Ibrahim who have Iphone 4 and i saw attention to uptodate software so i don't have any idea about this software is iOS 6.1.3 could you help me how can i use this softwareTake a look at this link, http://support.apple.com/k [More]
Hello, please help..... I installed OEM version 10.1.0.2.0 on windows 2000 PC. All the database instances are displayed under Network Navigator. when i log on to the database either as normal / sysoper /sysdba, I got "closed connection" error ri [More]
4260 Sensors connected to Active/ Active firewalls I have the following scenario: We  have two edge firewalls with Active/ standbye setup connected directly to  two core switches5600. New two IPS sensor s4260 are required to be  connected inline betw [More]
can't open photoshop after updating imac error says legacy java se 6 runtimePhotoshop does not use java se 6 runtime Photoshop has its own ScriptingSupport plug-in.  Also Java se 6 runtime has security issues   You should update to java se 8 version [More]
I am trying to do a program for a class where I have to have 3 trains that attempt to enter 1 tunnel. inTunnel is how long they spend in the tunnel (in seconds) and outTunnel is how long they stay outside before trying to enter again (I have these 2 [More]