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 A8E7ADEA3 for ; Wed, 17 Oct 2012 17:36:04 +0000 (UTC) Received: (qmail 68960 invoked by uid 500); 17 Oct 2012 17:36:04 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 68934 invoked by uid 500); 17 Oct 2012 17:36:04 -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 68889 invoked by uid 99); 17 Oct 2012 17:36:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 17:36:04 +0000 Date: Wed, 17 Oct 2012 17:36:04 +0000 (UTC) From: "Patrick Mueller (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <260242579.58817.1350495364334.JavaMail.jiratomcat@arcas> In-Reply-To: <693796502.56795.1350465723434.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CB-1666) [weinre] "INVALID_STATE_ERR: DOM Exception 11" with chbrody/Cordova-SQLitePlugin 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-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478063#comment-13478063 ] Patrick Mueller commented on CB-1666: ------------------------------------- I have a patch available in a build. You can install it via: sudo npm -g uninstall weinre # for good measure sudo npm -g install http://people.apache.org/~pmuellr/weinre/builds/2.0.0-pre-H8EOSCLN-incubating/apache-cordova-weinre-2.0.0-pre-H8EOSCLN-incubating-bin.tar.gz # sorry for the long url If you get a chance to try this, let me know how it goes. > [weinre] "INVALID_STATE_ERR: DOM Exception 11" with chbrody/Cordova-SQLitePlugin > -------------------------------------------------------------------------------- > > Key: CB-1666 > URL: https://issues.apache.org/jira/browse/CB-1666 > Project: Apache Cordova > Issue Type: Bug > Components: weinre > Affects Versions: 2.1.0 > Environment: OS X Lion 10.7.4, Google Chrome 22.0.1229.94, iOS6 iPhone Simulator > Reporter: Christiaan van Zyl > Assignee: Patrick Mueller > > When using weinre with Cordova-SQLitePlugin we get a javascript error: > "INVALID_STATE_ERR: DOM Exception 11: An attempt was made to use an object that is not, or is no longer, usable. File: http://192.168.1.169:1337/target/target-script-min.js?_=1350463351336 Line Number: 2794" > Above line number corresponds to the function NetworkRequest.prototype.handleDone in target-script-min.js. > As a work around I have just wrapped a try catch and made it fail silently: > NetworkRequest.prototype.handleDone = function() { > try { > var description, sourceString, status, statusText, success, time; > sourceString = this.xhr.responseText; > Weinre.wi.NetworkNotify.setInitialContent(this.id, sourceString, "XHR"); > time = Date.now() / 1000.0; > status = this.xhr.status; > if (status === 0) { > status = 200; > } > statusText = this.xhr.statusText; > success = status >= 200 && status < 300; > if (success) { > return Weinre.wi.NetworkNotify.didFinishLoading(this.id, time); > } else { > description = "" + status + " - " + statusText; > return Weinre.wi.NetworkNotify.didFailLoading(this.id, time, description); > } > } catch (e) { > return; > } > }; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira