Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-6510

Android Module packaging to a project is throwing java.lang.reflect.InvocationTargetException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.3.0
    • Fix Version/s: Release 3.3.0
    • Component/s: Android, Modules
    • Environment:

      Appcelerator Studio, build: 3.3.0.201405161313
      MobileSDK : 3.3.0.v20140516180912
      ├── acs@1.0.14
      ├── alloy@1.4.0-alpha
      ├──titanium@ 3.3.0-alpha2
      └── titanium-code-processor@1.1.1
      Windows 8, Ubuntu 12.04

    • Story Points:
      3
    • Sprint:
      2014 Sprint 10 Studio

      Description

      This is a regression issue. It didn't happen in 3.2.3 release.
      Precondition:
      Add Android NDK in Studio preferences path.
      Install gperf and make sure its in your path.
      I have Platform 10 and platform 19 Google API intalled.

      Test Steps:
      1. Create an android module.
      2. Package it to a mobile project.

      Actual Result:
      Error occurs. Screenshot and logs attached.

      !MESSAGE Error within Debug UI: 
      !STACK 0
      java.lang.reflect.InvocationTargetException
      	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
      	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
      	at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
      	at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:960)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
      	at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin.launchInForeground(DebugUIPlugin.java:1112)
      	at org.eclipse.debug.ui.DebugUITools.launch(DebugUITools.java:759)
      	at com.appcelerator.titanium.ui.module.AbstractModulePackagingWizard.performFinish(AbstractModulePackagingWizard.java:82)
      	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
      	at org.eclipse.jface.window.Window.open(Window.java:802)
      	at com.appcelerator.titanium.android.internal.ui.launching.distribution.AndroidModulePackageHandler.execute(AndroidModulePackageHandler.java:34)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
      	at com.appcelerator.titanium.ui.launching.AbstractPackagingLaunchShortcut.launch(AbstractPackagingLaunchShortcut.java:47)
      	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:434)
      	at com.appcelerator.titanium.ui.LaunchAppToolbarContribution$3.widgetSelected(LaunchAppToolbarContribution.java:390)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      Caused by: java.lang.NullPointerException
      	at com.appcelerator.titanium.android.internal.ui.launching.AndroidModulePackageLaunchConfigurationDelegate.launch(AndroidModulePackageLaunchConfigurationDelegate.java:82)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1104)
      	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      Root exception:
      java.lang.NullPointerException
      	at com.appcelerator.titanium.android.internal.ui.launching.AndroidModulePackageLaunchConfigurationDelegate.launch(AndroidModulePackageLaunchConfigurationDelegate.java:82)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1104)
      	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                dpandey Deepti Pandey
              • Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: