FileNotFoundException

51 views
Skip to first unread message

Teddy

unread,
Apr 25, 2011, 8:57:27 PM4/25/11
to acra-discuss
I'm probably doing something wrong, but I'm getting a
FileNotFoundException when it tries to send a crash report. The URL in
question is http://spreadsheets.google.com/formResponse?formkey=dHRSX1lOZ3RSelJXU3loWUJGSkZFeVE6MQ&ifq
I'm pretty sure I set it up correctly because it was working
yesterday.

Great work, btw. This is incredibly useful.

b0b

unread,
Apr 26, 2011, 7:03:15 AM4/26/11
to acra-discuss
I have the exact same problem since yesterday. The form used to work
the day before IIRC.
I'm using Acra 3.1.1. Here's the exception (form key masked):

04-26 12:57:01.167: WARN/System.err(21706):
java.io.FileNotFoundException:
http://spreadsheets.google.com/formResponse?formkey=aaaaaaaaaaaaaaaaaaaaaaaaaaaa&ifq
04-26 12:57:01.169: WARN/System.err(21706): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:
1162)
04-26 12:57:01.169: WARN/System.err(21706): at
org.acra.HttpUtils.doPost(HttpUtils.java:95)
04-26 12:57:01.173: WARN/System.err(21706): at
org.acra.ErrorReporter.sendCrashReport(ErrorReporter.java:655)
04-26 12:57:01.175: WARN/System.err(21706): at
org.acra.ErrorReporter.checkAndSendReports(ErrorReporter.java:759)
04-26 12:57:01.179: WARN/System.err(21706): at
org.acra.ErrorReporter$ReportsSenderWorker.run(ErrorReporter.java:109)
04-26 12:57:03.455: WARN/PowerManagerService(3238): Timer 0x7->0x3|0x3


b0b

unread,
Apr 26, 2011, 7:13:11 AM4/26/11
to acra-discuss
Precision: the URL works in a browser, although google is a bit slow
to respond.
Maybe there is a too low read timeout for the URLConnection ?

roberto

unread,
Apr 26, 2011, 7:33:48 AM4/26/11
to acra-discuss
Hi All ,

I have the same exact problem, It used to work very well, I have
several crash report logged but and all of a sudden last week crash
report stopped being logged.

The error I can see from logcat is the following :

04-26 12:32:14.893: WARN/System.err(11394):
java.io.FileNotFoundException: http://spreadsheets.google.com/formResponse?formkey=[***my
form key ***]&ifq

Kevin Gaudin

unread,
Apr 26, 2011, 7:54:16 AM4/26/11
to acra-d...@googlegroups.com

Hi all,

I'm wondering if this could be due to Google's progressive migration to https for all their services.

Could someone try using formUri instead of formKey with the whole form url but starting with https instead of http?

Unfortunately I can't test myself until several hours.

The default protocol is already switched to https in the upcoming release.

Kevin

b0b

unread,
Apr 26, 2011, 8:21:49 AM4/26/11
to acra-discuss
Your theory is correct as I just tested with ACRA trunk which uses https://
and it works (using formKey)
So google is now denying http:// requests since probably yesterday.
Not a good news for existing apps that will probably stop having
crashes submitted until they are updated.



On Apr 26, 1:54 pm, Kevin Gaudin <kevin.gau...@gmail.com> wrote:
> Hi all,
>
> I'm wondering if this could be due to Google's progressive migration to
> https for all their services.
>
> Could someone try using formUri instead of formKey with the whole form url
> but starting with https instead of http?
>
> Unfortunately I can't test myself until several hours.
>
> The default protocol is already switched to https in the upcoming release.
>
> Kevin
> Le 26 avr. 2011 13:33, "roberto" <robe...@daft.ie> a écrit :> Hi All ,

b0b

unread,
Apr 26, 2011, 8:26:24 AM4/26/11
to acra-discuss
Google redirects old http requests to https, that why it works in a
browser. But not on Android as the apache HttpURLConnection probably
do not manage redirects.

Kevin Gaudin

unread,
Apr 26, 2011, 8:37:10 AM4/26/11
to acra-d...@googlegroups.com
This change must have been packaged with these new features published yesterday: http://googledocs.blogspot.com/2011/04/simpler-file-upload-in-google-docs.html

If the simple workaround of using formUri instead of formKey works, I would prefer communicating on this instead of using the unstable trunk version. I had a case this weekend of a single report being sent 5 times, and I have not fixed this yet.

Kevin

b0b

unread,
Apr 26, 2011, 8:54:28 AM4/26/11
to acra-discuss
I confirm that it works with 3.1.1 using formUri with https:


@ReportsCrashes(...
formUri= "https://spreadsheets.google.com/formResponse?
formkey=dFFOTVc0bkZBUFpFbmpCVTE1MU12b3c6MQ&amp;ifq",
...)

Kevin Gaudin

unread,
Apr 26, 2011, 8:56:12 AM4/26/11
to acra-d...@googlegroups.com
Actually, it would be better for future upgrades that I publish a fixed 3.1.2 version... as the fix is as simple as adding a 's' in a String.... ;-)

I will do this tonight (Paris, France time)

Kevin

Kevin Gaudin

unread,
Apr 26, 2011, 8:57:22 AM4/26/11
to acra-d...@googlegroups.com
Thanks a lot for your help !

Kevin

b0b

unread,
Apr 26, 2011, 10:12:16 AM4/26/11
to acra-discuss
My pleasure. Can't imagine releasing an app without acra.

Merci de Bordeaux :)

Kevin Gaudin

unread,
Apr 26, 2011, 7:04:50 PM4/26/11
to acra-d...@googlegroups.com
The new version is available. You should all upgrade to acra 3.1.2.

Kevin

William Ferguson

unread,
Apr 26, 2011, 7:26:02 PM4/26/11
to acra-discuss
Great work Kevin.

NB any apps still using the old version will keep attempting (and
failing) to send reports on startup.
Making it look to users as if the app keeps crashing over and over.
I'd love to see a silent send on startup.



On Apr 27, 9:04 am, Kevin Gaudin <kevin.gau...@gmail.com> wrote:
> The new version is available<https://groups.google.com/d/msg/acra-discuss/zORUPurwZ0M/8CqaAgkVmVAJ>.

Viktor Bresan

unread,
May 4, 2011, 10:25:49 AM5/4/11
to acra-discuss
I have checked my reports, it looks like since May the 2nd everything
works as before (ACRA 3.1.1)

Viktor.


On Apr 27, 1:26 am, William Ferguson <william.ferguson...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages