ジオコーディングを使用して特定の郵便番号の座標(緯度と経度)を取得する「java」プログラムを作成しました。自宅でそのプログラムをテストしましたが、正常に動作していますが、オフィスで同じプログラムを実行すると、「ネットワークエラー」がスローされます。スタックトレースは次のようになります。
[2012-10-04 10:50:34.337 MESZ] [main]エラーcom.google.code.geocoder.Geocoder-接続が拒否されました:接続が拒否されましたjava.net.ConnectException:接続が拒否されました:java.net.DualStackPlainSocketImpl.connect0(ネイティブメソッド)〜[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]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]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 ]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 ]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]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]21)[lib /:na] at de.dmc.intersport.enfinity.ch.b2c.app.capi.GoogleGeoLocation.main(GoogleGeoLocation.java:67)[lib /:na]21)[lib /:na] at de.dmc.intersport.enfinity.ch.b2c.app.capi.GoogleGeoLocation.main(GoogleGeoLocation.java:67)[lib /:na]
「ファイアウォール設定」の問題だと思います。これを取り除くために私は何ができますか。どんな助けでも大いに活用されます