connectionexception

    0熱度

    2回答

    我想通過java從openweathermap.org獲取一些數據,但是當我運行代碼時,我得到一個ConnectionException。 我的代碼是: public static void openweathermapTest1() { String uri = "http://openweathermap.org/data/2.1/find/station?lat=55&lon=37

    2熱度

    2回答

    我將創建一個套接字並獲取InputStream。這是我如何嘗試。 try { final String serverIP = "111.111.111.111"; final int serverPort = Integer.parseInt(server_port); final InetAddress serverAd=InetAddress.getByName(

    0熱度

    1回答

    我正在與數據庫在php mysql travez中通信以在ListView中顯示結果,但我試圖爲3G或WIFI實現ExeptionConnection,但應用程序無法連接,返回到上一個Activity並顯示吐司。但不是如何在我的代碼中實現它,我只能實現JsonExeption。 這是我的代碼: protected String doInBackground(String... args) {

    0熱度

    3回答

    我正在寫一個服務器的測試程序。在測試應用程序,我儘量給客戶的大量連接到服務器,但過了一會兒,一個讓所有喜歡這類型的錯誤: Connection reset by peer: socket write error 或 java.net.SocketException: Connection reset 或 java.net.ConnectException: Connect