You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Olivier Louvignes (Created) (JIRA)" <ji...@apache.org> on 2012/01/16 12:38:43 UTC
[jira] [Created] (CB-175) Weinre crashes on Android 2.3.3
Weinre crashes on Android 2.3.3
-------------------------------
Key: CB-175
URL: https://issues.apache.org/jira/browse/CB-175
Project: Apache Callback
Issue Type: Bug
Components: weinre
Reporter: Olivier Louvignes
Assignee: Patrick Mueller
Weinre does not work correctly on Android 2.3.3 :
After only one correct log, i keep getting this error :
01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) error when XHR contentType is null
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217656#comment-13217656 ]
Patrick Mueller commented on CB-175:
------------------------------------
A build with this fix is available at GitHub:
https://github.com/pmuellr/incubator-cordova-weinre/downloads
in the file:
https://github.com/downloads/pmuellr/incubator-cordova-weinre/weinre-node-1.7.0-pre-2012-02-27--22-31-18.tar.gz
You can install this directly with npm, with the following command:
{noformat}
sudo npm -g install {tar.gz url above}
{noformat}
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) error when XHR contentType is null
Posted by "Jesse Cai (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235481#comment-13235481 ]
Jesse Cai commented on CB-175:
------------------------------
Hi Patrick Mueller,
Can you have a binary version to download? I'm running mac os, can not finish the npm install.
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) error when XHR contentType is null
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235524#comment-13235524 ]
Patrick Mueller commented on CB-175:
------------------------------------
https://github.com/pmuellr/incubator-cordova-weinre/downloads
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) error when XHR contentType is null
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217659#comment-13217659 ]
Patrick Mueller commented on CB-175:
------------------------------------
if you didn't get any notifications on this bug change, please check again; there's a fix in and a build available
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Updated] (CB-175) error when XHR contentType is null
Posted by "Patrick Mueller (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Mueller updated CB-175:
-------------------------------
Summary: error when XHR contentType is null (was: Weinre crashes on Android 2.3.3)
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) error when XHR contentType is null
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217641#comment-13217641 ]
Patrick Mueller commented on CB-175:
------------------------------------
Committed fix to master:
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-weinre.git;a=commit;h=e455568d9fa924f2833a04330a3c2ea047b5a772
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) error when XHR contentType is null
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217538#comment-13217538 ]
Patrick Mueller commented on CB-175:
------------------------------------
No, doesn't look like it's fixed yet.
The problem is here: [NetworkRequest.coffee:123|https://github.com/apache/incubator-cordova-weinre/blob/master/weinre.web/modules/weinre/target/NetworkRequest.coffee#L123].
In addition, I just noticed there's a problem here: [NetworkRequest.coffee:131|https://github.com/apache/incubator-cordova-weinre/blob/master/weinre.web/modules/weinre/target/NetworkRequest.coffee#L131] - we should be pulling the Content-Length header as well, and setting it the {{expectedContentLength}} property.
In the case of Content-Type, I think if there isn't one provided, we should default to something - and I'm thinking {{application/octet-stream}} or {{text/plain}}, leaning towards the first.
In the case of Content-Length, I think the first thing to try is to not set the {{expectedContentLength}} property at all, but we'll need to make sure the client can survive without it. Given that it's currently being set to the Content-Type, the client can clearly tolerate a non-numeric value.
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Issue Comment Edited] (CB-175) error when XHR contentType
is null
Posted by "Jesse Cai (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235481#comment-13235481 ]
Jesse Cai edited comment on CB-175 at 3/22/12 9:41 AM:
-------------------------------------------------------
Hi Patrick Mueller,
Can you have a binary version to download? I'm running mac os, can not finish the npm install.
udo npm -g install pmuellr-incubator-cordova-weinre-1.6.1-13-g344f764.tar.gz
Password:
npm ERR! couldn't unpack /tmp/npm-1332409276750/1332409276750-0.444108875002712/tmp.tgz to /tmp/npm-1332409276750/1332409276750-0.444108875002712/contents
npm ERR! 404 'pmuellr-incubator-cordova-weinre-1.6.1-13-g344f764.tar.gz' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it.
npm ERR! 404 Note that you can also install from a tarball or folder.
npm ERR!
npm ERR! System Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "-g" "install" "pmuellr-incubator-cordova-weinre-1.6.1-13-g344f764.tar.gz"
npm ERR! cwd /Users/jesse/Downloads
npm ERR! node -v v0.4.8
npm ERR! npm -v 1.0.27
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/jesse/Downloads/npm-debug.log
npm not ok
was (Author: jessecai):
Hi Patrick Mueller,
Can you have a binary version to download? I'm running mac os, can not finish the npm install.
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) Weinre crashes on Android 2.3.3
Posted by "Olivier Louvignes (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186916#comment-13186916 ]
Olivier Louvignes commented on CB-175:
--------------------------------------
I'm using Sencha Touch 2.0 pr3 :
http://www.sencha.com/blog/sencha-touch-2-developer-preview/
You could try this code to replicate this.
https://gist.github.com/1620901
There may be a way to override ContentType in Sencha Touch, i'm looking into this.
> Weinre crashes on Android 2.3.3
> -------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Resolved] (CB-175) error when XHR contentType is null
Posted by "Patrick Mueller (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Mueller resolved CB-175.
--------------------------------
Resolution: Fixed
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) error when XHR contentType is null
Posted by "Chris Del Guercio (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217457#comment-13217457 ]
Chris Del Guercio commented on CB-175:
--------------------------------------
I get this error when attempting to use weinre 1.6.1 with PhoneGap. Has this issue been resolved?
> error when XHR contentType is null
> ----------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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
[jira] [Commented] (CB-175) Weinre crashes on Android 2.3.3
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186905#comment-13186905 ]
Patrick Mueller commented on CB-175:
------------------------------------
Thanks for the bug report.
This seems to be a problem with target/NetworkRequest.coffee in the getResponse() function. It's getting a null back as the Content-Type header. This shouldn't be a big deal to fix, though there may be a handful of additional things I need to do/check.
I'm wondering how I can create an easy test case for this, so I can at least try the fix and see if it works.
In the meantime, I wonder if you have the ability to set the Content-Type header for your XHRs to work around the bug ...
> Weinre crashes on Android 2.3.3
> -------------------------------
>
> Key: CB-175
> URL: https://issues.apache.org/jira/browse/CB-175
> Project: Apache Callback
> Issue Type: Bug
> Components: weinre
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
>
> Weinre does not work correctly on Android 2.3.3 :
> After only one correct log, i keep getting this error :
> 01-16 12:33:56.196: E/Web Console(465): TypeError: Result of expression 'contentType' [null] is not an object. at http://192.168.22.27:8080/target/target-script-min.js#anonymous:2772
> and does not get any more log (only errors), app works & i get logs in eclipse logcat without weinre correctly.
--
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