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

"Distribute Ad Hoc/Enterprise" results in immediate NullPointerException in Titanium Studio

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: Titanium Studio 2.1.2
    • Fix Version/s: None
    • Component/s: Build, Publishing
    • Environment:

      Mac OS X Lion 10.7.5, xcode 4.5.2 (4G2008a), Late model MacBook Pro

      Description

      Attempting to create an ad/hoc distribution of a titanium mobile project configured for iPhone and iPad fails with a java.lang.NullPointerException. The steps to reproduce are to right click on the project in the app explorer, go to the 'Publish' option, and select 'Distribute Ad Hoc/Enterprise'. Within the UI, there is no effect, clicking on this option causes the right-click popup menu to disappear, but no interface/wizard for creating an Ad Hoc/Enterprise build for the mobile project pops up. Titanium Studio functions otherwise normally afterwards. By starting Titanium Studio from the command line, and performing the steps described above, the following exception stack trace is output to the console when the 'Distribute Ad Hoc/Enterprise' option is selected:

      !ENTRY org.eclipse.ui 4 0 2012-11-19 15:58:00.038
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.NullPointerException
      at com.appcelerator.titanium.mobile.iphone.IOSConfigurationHelper.loadLocalProvisioningProfile(IOSConfigurationHelper.java:337)
      at com.appcelerator.titanium.mobile.iphone.IOSConfigurationHelper.loadLocalProvisioningProfiles(IOSConfigurationHelper.java:185)
      at com.appcelerator.titanium.mobile.iphone.IOSConfiguration.loadLocalProvisioningProfiles(IOSConfiguration.java:520)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.IOSProvisioningComponent.createPageContents(IOSProvisioningComponent.java:62)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.AbstractiPhonePackagingComponent.createContents(AbstractiPhonePackagingComponent.java:61)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.AbstractiPhonePackagingPage.createControl(AbstractiPhonePackagingPage.java:62)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.IOSProvisioningPage.createControl(IOSProvisioningPage.java:38)
      at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
      at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
      at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608)
      at org.eclipse.jface.window.Window.create(Window.java:431)
      at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
      at org.eclipse.jface.window.Window.open(Window.java:790)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.PackageHandler.execute(PackageHandler.java:44)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.AdhocHandler.execute(AdhocHandler.java:52)
      at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
      at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
      at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
      at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
      at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
      at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
      at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
      at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
      at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      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:344)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mxia Michael Xia
                Reporter:
                mikematan Mike Matan
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: