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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:13:25+00:00 2026-06-12T15:13:25+00:00

I worte a ‘java’ program to get coordinates(latitude and longitude) for a given postalcode

  • 0

I worte a ‘java’ program to get coordinates(latitude and longitude) for a given postalcode using geocoding.
I tested that program at my home it is working fine, but when i run the same program in my office it is throwing ‘network error’. the stack trace is like below.

[2012-10-04 10:50:34.337 MESZ] [main] ERROR
com.google.code.geocoder.Geocoder – Connection refused: connect
java.net.ConnectException: Connection refused: connect at
java.net.DualStackPlainSocketImpl.connect0(Native Method)
~[na:1.7.0_03] at
java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)
~[na:1.7.0_03] at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
~[na:1.7.0_03] at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
~[na:1.7.0_03] at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
~[na:1.7.0_03] at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
~[na:1.7.0_03] at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
~[na:1.7.0_03] at java.net.Socket.connect(Socket.java:579)
~[na:1.7.0_03] at java.net.Socket.connect(Socket.java:528)
~[na:1.7.0_03] at
sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[na:1.7.0_03]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
~[na:1.7.0_03] at
sun.net.www.http.HttpClient.openServer(HttpClient.java:483)
~[na:1.7.0_03] at
sun.net.www.http.HttpClient.(HttpClient.java:213) ~[na:1.7.0_03]
at sun.net.www.http.HttpClient.New(HttpClient.java:300)
~[na:1.7.0_03] at
sun.net.www.http.HttpClient.New(HttpClient.java:316) ~[na:1.7.0_03]
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:992)
~[na:1.7.0_03] at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:928)
~[na:1.7.0_03] at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:846)
~[na:1.7.0_03] at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1296)
~[na:1.7.0_03] at java.net.URL.openStream(URL.java:1035)
~[na:1.7.0_03] at
com.google.code.geocoder.Geocoder.request(Geocoder.java:72)
~[geocoder-java-0.9.jar:na] at
com.google.code.geocoder.Geocoder.geocode(Geocoder.java:63)
~[geocoder-java-0.9.jar:na] at
de.dmc.intersport.enfinity.ch.b2c.app.capi.GoogleGeoLocation.getGeoResults(GoogleGeoLocation.java:36)
[lib/:na] at
de.dmc.intersport.enfinity.ch.b2c.app.capi.GoogleGeoLocation.(GoogleGeoLocation.java:21)
[lib/:na] at
de.dmc.intersport.enfinity.ch.b2c.app.capi.GoogleGeoLocation.main(GoogleGeoLocation.java:67)
[lib/:na]

I think it is the problem with ‘firewall setting’. What can i do to get rid of this.
Any help will be greatly appriciated

  • 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-12T15:13:26+00:00Added an answer on June 12, 2026 at 3:13 pm

    i found the solution to the above problem, one has to set proxy setting like below in you r java code

    System.getProperties().put(“http.proxyHost”, “proxyname”);
    System.getProperties().put(“http.proxyPort”, “portnumber”);

    then things should be fine

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

Sidebar

Related Questions

I worte a little Web Proxy program that uses a TcpListener, which listen on
I wrote a main program in C#, and I worte also a small tool
I wrote a windows service using VB that read some legacy data from Visual
I wrote a simple tool to generate a DBUnit XML dataset using queries that
I wrote a java program to test the capabilities of processors by running an
I wrote a function that tries to get a y/n (yes/no) answer from a
Wrote a simple program that calls ls, then passes each line through regexp filtering
Wrote a quick Java proggy to spawn 10 threads with each priority and calculate
I wrote a process explorer using C with GUI interface. I want to add
I wrote a PHP script that retrieves values from a MySQL Query. I used

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.