Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDB0EDC35 for ; Mon, 13 Aug 2012 14:14:38 +0000 (UTC) Received: (qmail 28197 invoked by uid 500); 13 Aug 2012 14:14:38 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 28133 invoked by uid 500); 13 Aug 2012 14:14:38 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 28120 invoked by uid 99); 13 Aug 2012 14:14:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2012 14:14:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 35A8B2C5ACE for ; Mon, 13 Aug 2012 14:14:38 +0000 (UTC) Date: Tue, 14 Aug 2012 01:14:38 +1100 (NCT) From: "David Sauvier (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1234340373.1827.1344867278220.JavaMail.jiratomcat@arcas> In-Reply-To: <580045744.128.1335472013388.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CB-587) CallbackServer.run() SocketException on ICS 4.0.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Sauvier updated CB-587: ----------------------------- Comment: was deleted (was: Here is something else I think maybe related to this issue. On an unlocked Google Nexus Phone with 4.1.1 Step 1. Turn-off Wifi and Turn-off Cell Antenna via the phone testing menu (*#*#4636#*#* (entered in the dialer) under sub-menu 1). Step 2. Open an app and try to write to a local file using Phonegap File API. Step 3. I get W/SocketClient - write error (Broken pipe) I also get sporadic ETIMEDOUT (Connection timed out) What's funny is, if I have both antennas off and then go into airplane mode it seems to start working again... It's a little subtler then what I'm experiencing on the Xoom Tablets which is similar to what is described above... ) > CallbackServer.run() SocketException on ICS 4.0.4 > -------------------------------------------------- > > Key: CB-587 > URL: https://issues.apache.org/jira/browse/CB-587 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 1.4.0, 1.7.0 > Environment: Motorola Xoom ICS 4.0.4. > PhoneGap 1.7.0rc1 example application. > Reporter: Wayne Fisher > Assignee: Joe Bowser > Priority: Critical > Fix For: 2.1.0 > > Attachments: log.txt, PGexample-2.0.0.zip > > > I have recently started to see SocketExceptions from CallbackServer.run() on my Motorola Xoom. I don't know exactly when it started, but it would appear to line up with the update of the Xoom to ICS 4.0.4 that occurred a couple of weeks (or so) ago. I don't recall seeing it on the previous version of ICS (4.0.3?). > The exception information from LogCat follows: > {quote} > 04-26 15:57:58.730: W/System.err(10655): java.net.SocketException: sendto failed: ETIMEDOUT (Connection timed out) > 04-26 15:57:58.730: W/System.err(10655): at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:496) > 04-26 15:57:58.730: W/System.err(10655): at libcore.io.IoBridge.sendto(IoBridge.java:465) > 04-26 15:57:58.740: W/System.err(10655): at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507) > 04-26 15:57:58.740: W/System.err(10655): at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46) > 04-26 15:57:58.740: W/System.err(10655): at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269) > 04-26 15:57:58.740: W/System.err(10655): at java.io.OutputStream.write(OutputStream.java:82) > 04-26 15:57:58.740: W/System.err(10655): at java.io.DataOutputStream.writeBytes(DataOutputStream.java:156) > 04-26 15:57:58.740: W/System.err(10655): at org.apache.cordova.CallbackServer.run(CallbackServer.java:275) > 04-26 15:57:58.740: W/System.err(10655): at java.lang.Thread.run(Thread.java:856) > 04-26 15:57:58.740: W/System.err(10655): Caused by: libcore.io.ErrnoException: sendto failed: ETIMEDOUT (Connection timed out) > 04-26 15:57:58.740: W/System.err(10655): at libcore.io.Posix.sendtoBytes(Native Method) > 04-26 15:57:58.750: W/System.err(10655): at libcore.io.Posix.sendto(Posix.java:146) > 04-26 15:57:58.750: W/System.err(10655): at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177) > 04-26 15:57:58.750: W/System.err(10655): at libcore.io.IoBridge.sendto(IoBridge.java:463) > 04-26 15:57:58.750: W/System.err(10655): ... 7 more > {quote} > This may be related to another issue that I have noticed with ICS 4.0.4 which is that it drops the WIFI connection a lot. It drops it *WAY* more frequently than the previous version did even with "Keep Wi-Fi on during sleep" set to "Always". > My app is based on PhoneGap v1.4.0. I see this exception with my app on the Xoom. I have not seen it on my Samsung Galaxy S with 2.3.3 on it. > The LogCat information above is from the 1.7.0rc1. For this test I simply created a new Android application in Eclipse using the Android example code as is. The exception happens even without interacting with the example app. Just leave it sit there and eventually... boom. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira