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 274C4C183 for ; Wed, 16 May 2012 23:21:30 +0000 (UTC) Received: (qmail 72443 invoked by uid 500); 16 May 2012 23:21:29 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 72423 invoked by uid 500); 16 May 2012 23:21:29 -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 72415 invoked by uid 99); 16 May 2012 23:21:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 23:21:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 23:21:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 54DA9872D for ; Wed, 16 May 2012 23:21:08 +0000 (UTC) Date: Wed, 16 May 2012 23:21:08 +0000 (UTC) From: "Joe Bowser (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1105284287.6549.1337210468396.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <425336340.6174.1337205667405.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (CB-800) Fix preferences for the CordovaWebView MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Bowser reopened CB-800: --------------------------- OK, I do have a test case. Run the test project. You will notice that under the current implementation, we have a null pointer exception. I need to figure out what would cause this null pointer exception: int id = getResources().getIdentifier("cordova", "xml", this.mCtx.getActivity().getPackageName()); Here's the extremely long stack trace: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.apache.cordova.test/org.apache.cordova.test.CordovaWebViewTestActivity}: android.view.InflateException: Binary XML file line #25: Error inflating class org.apache.cordova.CordovaWebView E/AndroidRuntime(22755): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956) E/AndroidRuntime(22755): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981) E/AndroidRuntime(22755): at android.app.ActivityThread.access$600(ActivityThread.java:123) E/AndroidRuntime(22755): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147) E/AndroidRuntime(22755): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(22755): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(22755): at android.app.ActivityThread.main(ActivityThread.java:4424) E/AndroidRuntime(22755): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(22755): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(22755): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) E/AndroidRuntime(22755): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) E/AndroidRuntime(22755): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(22755): Caused by: android.view.InflateException: Binary XML file line #25: Error inflating class org.apache.cordova.CordovaWebView E/AndroidRuntime(22755): at android.view.LayoutInflater.createView(LayoutInflater.java:606) E/AndroidRuntime(22755): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680) E/AndroidRuntime(22755): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739) E/AndroidRuntime(22755): at android.view.LayoutInflater.inflate(LayoutInflater.java:489) E/AndroidRuntime(22755): at android.view.LayoutInflater.inflate(LayoutInflater.java:396) E/AndroidRuntime(22755): at android.view.LayoutInflater.inflate(LayoutInflater.java:352) E/AndroidRuntime(22755): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251) E/AndroidRuntime(22755): at android.app.Activity.setContentView(Activity.java:1835) E/AndroidRuntime(22755): at org.apache.cordova.test.CordovaWebViewTestActivity.onCreate(CordovaWebViewTestActivity.java:37) E/AndroidRuntime(22755): at android.app.Activity.performCreate(Activity.java:4465) E/AndroidRuntime(22755): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) E/AndroidRuntime(22755): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920) E/AndroidRuntime(22755): ... 11 more E/AndroidRuntime(22755): Caused by: java.lang.reflect.InvocationTargetException E/AndroidRuntime(22755): at java.lang.reflect.Constructor.constructNative(Native Method) E/AndroidRuntime(22755): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) E/AndroidRuntime(22755): at android.view.LayoutInflater.createView(LayoutInflater.java:586) E/AndroidRuntime(22755): ... 22 more E/AndroidRuntime(22755): Caused by: java.lang.NullPointerException E/AndroidRuntime(22755): at org.apache.cordova.CordovaWebView.loadConfiguration(CordovaWebView.java:589) E/AndroidRuntime(22755): at org.apache.cordova.CordovaWebView.(CordovaWebView.java:110) E/AndroidRuntime(22755): ... 25 more For some reason it works under the example app that I put in GitHub earlier, but it doesn't work in the test. > Fix preferences for the CordovaWebView > -------------------------------------- > > Key: CB-800 > URL: https://issues.apache.org/jira/browse/CB-800 > Project: Apache Cordova > Issue Type: Sub-task > Components: Android > Affects Versions: 1.8.0 > Reporter: Joe Bowser > Assignee: Joe Bowser > Fix For: 1.8.0 > > > The CordovaWebView used to handle preferences and whitelisting, however with the recent re-write of Preferences, we lost that capability. We need it back before we can release CordovaWebView. -- 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