Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24524] Android: module build fails for some native modules with 'mthodMap is not defined'

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-03-22T18:32:10.000+0000
Affected Version/sRelease 6.0.2
Fix Version/sRelease 6.0.3
ComponentsAndroid, CLI
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2017-03-21T14:38:46.000+0000
Updated2017-03-22T19:00:11.000+0000

Description

07:14:00 [android] [INFO] :   Producing [ModuleName]Bootstrap files using /Users/build/jenkins/workspace/tor.encrypteddatabase_PR-19-X7JGISBVTNPBEH5ZK5CE6LTAG34IFQ6RMKRXFQOG3ENF4ZEGLVOQ/android/build/generated/json/org/appcelerator/titanium/bindings/encrypteddatabase.json
07:14:00 [android] 2017-03-21T14:13:01.519Z | ERROR  | An uncaught exception was thrown!
07:14:00 [android] mthodMap is not defined
07:14:00 [android] 2017-03-21T14:13:01.520Z | ERROR  | mthodMap is not defined
[Pipeline] [android] sh

Comments

  1. Christopher Williams 2017-03-21

    master: https://github.com/appcelerator/titanium_mobile/pull/8898 6.0.x: https://github.com/appcelerator/titanium_mobile/pull/8899
  2. Christopher Williams 2017-03-21

    The error is seen building the android side of the appcelerator.ecnrypteddatabase native module, as seen here: https://jenkins.appcelerator.org/job/modules/job/appcelerator.encrypteddatabase/view/change-requests/job/PR-19/1/console
  3. Abir Mukherjee 2017-03-21

    [~cwilliams] Do you have a testcase, or instructions on how to validate the fix?
  4. Christopher Williams 2017-03-22

       git clone git@github.com:appcelerator-modules/appcelerator.encrypteddatabase.git
       cd appcelerator.encrypteddatabase/android
       app run -p android --build-only
       
  5. Abir Mukherjee 2017-03-22

    FR Passed with this environment: NPM Version: 2.15.9 Node Version: 4.5.0 Mac OS: 10.12.3 Appc CLI: 6.1.0 Appc CLI NPM: 4.2.8 Xcode 8.2.1 I tried building with this PR, and no error messages were there. I tried with 6.0.2.GA to see if I can repro the original failure, and I did see "mthodMap is not defined". FR passed on both 6.1.0 and 6.0.3. Closing this ticket as the fixes are seen in the following builds: SDK 6.0.3.v20170322110758 SDK 6.1.0.v20170322113253

JSON Source