{ "id": "99208", "key": "TIMOB-11501", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-10-18T19:31:19.000+0000", "created": "2012-08-14T15:07:50.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Android", "module", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:29:50.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I'm using a custom C2DM module that calls Log.d() to send some stuff to the debug console. With 2.1.0GA everything works fine. With 2.2CI I see this stack dump:\r\n\r\n{code}\r\nW/System.err( 5628): java.lang.NoClassDefFoundError: org.appcelerator.titanium.util.Log\r\nW/System.err( 5628): \tat com.findlaw.c2dm.C2dmModule.registerC2dm(C2dmModule.java:57)\r\nW/System.err( 5628): \tat org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\nW/System.err( 5628): \tat org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:140)\r\nW/System.err( 5628): \tat org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:284)\r\nW/System.err( 5628): \tat org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:166)\r\nW/System.err( 5628): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nW/System.err( 5628): \tat android.os.Looper.loop(Looper.java:137)\r\nW/System.err( 5628): \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:108)\r\n{code}\r\n\r\nHere's the first 57 lines of C2dmModule.java:\r\n\r\n{code}\r\n\r\n/**\r\n * This file was auto-generated by the Titanium Module SDK helper for Android\r\n * Appcelerator Titanium Mobile\r\n * Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved.\r\n * Licensed under the terms of the Apache Public License\r\n * Please see the LICENSE included with this distribution for details.\r\n *\r\n */\r\n \r\npackage com.findlaw.c2dm;\r\n\r\nimport org.appcelerator.kroll.KrollInvocation;\r\nimport org.appcelerator.kroll.KrollDict;\r\nimport org.appcelerator.kroll.KrollModule;\r\nimport org.appcelerator.kroll.annotations.Kroll;\r\n\r\nimport org.appcelerator.titanium.ITiAppInfo;\r\nimport org.appcelerator.titanium.TiContext;\r\nimport org.appcelerator.titanium.TiApplication;\r\nimport org.appcelerator.titanium.util.Log;\r\nimport java.util.HashMap;\r\nimport org.appcelerator.kroll.KrollFunction;\r\n\r\nimport android.app.Notification;\r\nimport android.app.NotificationManager;\r\nimport android.app.PendingIntent;\r\nimport android.content.Context;\r\nimport android.content.Intent;\r\nimport android.content.pm.PackageManager;\r\nimport android.net.Uri;\r\n\r\nimport com.google.android.c2dm.C2DMessaging;\r\n\r\nimport android.app.AlertDialog;\r\nimport android.content.DialogInterface;\r\n\r\n@Kroll.module(name=\"C2dm\", id=\"com.findlaw.c2dm\")\r\npublic class C2dmModule extends KrollModule\r\n{\r\n\t// Standard Debugging variables\r\n\tprivate static final String LCAT = \"C2dmModule\";\r\n\t\r\n\tprivate static C2dmModule _THIS;\r\n\t\r\n\tprivate KrollFunction successCallback;\r\n\tprivate KrollFunction errorCallback;\r\n\tprivate KrollFunction messageCallback;\r\n\t\r\n\tpublic C2dmModule() {\r\n\t\tsuper();\r\n\t\t_THIS = this;\r\n\t}\r\n\r\n\t// Methods\r\n\t@Kroll.method\r\n\tpublic void registerC2dm(String senderId, HashMap options) {\r\n\t\tLog.d(LCAT, \"registerC2dm called\");\r\n{code}", "attachment": [], "flagged": false, "summary": "org.appcelerator.titanium.util.Log package missing", "creator": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "environment": "Android\r\nTitanium 2.2.0.v20120810194112", "comment": { "comments": [ { "id": "215613", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "The Google Analtyics module for Android is not loading with a newer 2.2 CI build. I have a feeling that there's a broader issue here with the java interface that modules use. I don't have access to the source for the module, but it is in the marketplace: https://marketplace.appcelerator.com/apps/927", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-08-22T10:48:32.000+0000", "updated": "2012-08-22T10:48:32.000+0000" }, { "id": "222626", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "The Google Analytics module still doesn't work in 3.0CI. It does work fine in 2.1.3GA.\r\n\r\nHere's the error I get:\r\n\r\n{quote}\r\nE/TiExceptionHandler(10202): (main) [531,779] ----- Titanium Javascript Runtime Error -----\r\nE/TiExceptionHandler(10202): (main) [0,779] - In app.js:22,18\r\nE/TiExceptionHandler(10202): (main) [0,779] - Message: Uncaught TypeError: Cannot call method 'startTracker' of undefined\r\nE/TiExceptionHandler(10202): (main) [0,779] - Source: \tGoogleAnalytics.startTracker({\r\n{quote}\r\n\r\nHere's my code:\r\n\r\n{code}\r\n\tvar GoogleAnalytics = require('com.thinkorange.google.analytics');\r\n\t\r\n\tGoogleAnalytics.startTracker({\r\n\t accountID: Settings.GAID, // put a valid ID here. I remember an issue with using a fake ID\r\n\t debug: true\r\n\t});\r\n{code}", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-08T22:31:21.000+0000", "updated": "2012-10-08T22:32:09.000+0000" }, { "id": "222903", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Shannon, we're trying to see if we can get the source code for that one.\r\n\r\nTo confirm, you get errors with both your custom module at the top, _and_ the Google analytics module? Does it seem to happen with all modules, or just some modules (say you tried a module provided by Appcelerator)", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T14:21:25.000+0000", "updated": "2012-10-10T14:25:12.000+0000" }, { "id": "222920", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "My custom module (it was a build of the c2dm module) now works. It's the Google analytics module that's causing me pain now. I don't have time today to test out some other Appcelerator modules today... so I'll race you to whomever can get to it sooner!", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-10T16:56:55.000+0000", "updated": "2012-10-10T16:56:55.000+0000" }, { "id": "223059", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "Just tried an app with the modules \"sg.flurry\" \"ti.urbanairship\", and it worked. Looks like a bug with com.thinkorange.google.analytics", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-11T12:52:55.000+0000", "updated": "2012-10-11T12:52:55.000+0000" }, { "id": "224258", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "ThinkOrange has tested the Google Analytics module with the latest 3.0.0 version, and it works as expected. Please reopen this if the issue is still reproducible.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T19:31:19.000+0000", "updated": "2012-10-18T19:31:19.000+0000" }, { "id": "414576", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:29:50.000+0000", "updated": "2017-03-21T22:29:50.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }