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

Unable to distribute iPhone app due to NPE in loading local provisioning profile

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: Titanium Studio 2.1.1
    • Fix Version/s: None
    • Component/s: Publishing
    • Labels:
      None
    • Environment:

      TiStudio 2.1.1.201207271312

    • Story Points:
      5

      Description

      When trying to build for distribution, the distribute window never opens and the user cannot distribute their app. An error ops up with a NullPointer Exception.

      Here is the provisioning profile info:

      {"wwdr": true, "iphone_dist_name": ["*****"], "sdks": [], "iphone_dev_name": [*****], "iphone_dist_message": null, "wwdr_message": null, "itunes_message": null, "itunes": true, "iphone_dev_message": null, "iphone_dev": true, "iphone_dist": true, "ipad": false, "itunes_version": "10.0"}

      The error log is below:

      !ENTRY org.eclipse.jface 4 2 2012-08-23 14:35:53.615
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
      !STACK 0
      java.lang.NullPointerException
      at com.appcelerator.titanium.mobile.iphone.IOSConfigurationHelper.loadLocalProvisioningProfile(IOSConfigurationHelper.java:276)
      at com.appcelerator.titanium.mobile.iphone.IOSConfigurationHelper.loadLocalProvisioningProfiles(IOSConfigurationHelper.java:179)
      at com.appcelerator.titanium.mobile.iphone.IOSConfiguration.loadLocalProvisioningProfiles(IOSConfiguration.java:507)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.SimpleiPhonePackagingComponent.refreshProfiles(SimpleiPhonePackagingComponent.java:511)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.SimpleiPhonePackagingComponent.createPageContents(SimpleiPhonePackagingComponent.java:99)
      at com.appcelerator.titanium.mobile.ui.iphone.wizard.AbstractiPhonePackagingComponent.createContents(AbstractiPhonePackagingComponent.java:61)
      at com.appcelerator.titanium.mobile.ui.iphone.launch.BaseIOSLaunchConfigurationTab.createPlatformControl(BaseIOSLaunchConfigurationTab.java:70)
      at com.appcelerator.titanium.ui.launching.BaseTitaniumLaunchConfigurationTab.createControl(BaseTitaniumLaunchConfigurationTab.java:74)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.showInstanceTabsFor(LaunchConfigurationTabGroupViewer.java:803)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:735)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:623)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:640)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:602)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:578)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:941)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$3.selectionChanged(LaunchConfigurationsDialog.java:560)
      at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:888)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:886)
      at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1726)
      at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1139)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationView.handleConfigurationAdded(LaunchConfigurationView.java:283)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationView.access$1(LaunchConfigurationView.java:272)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationView$2.run(LaunchConfigurationView.java:261)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
      at org.eclipse.jface.window.Window.open(Window.java:801)
      at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1132)
      at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:579)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:587)
      at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:521)
      at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:81)
      at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:89)
      at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
      at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      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)
      !SESSION 2012-08-23 14:38:05.046 -----------------------------------------------
      eclipse.buildId=unknown
      java.version=1.6.0_33
      java.vendor=Apple Inc.
      BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
      Framework arguments: -keyring /Users/mark_allen/.eclipse_keyring -showlocation
      Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/mark_allen/.eclipse_keyring -consoleLog -showlocation

      !ENTRY org.eclipse.core.net 1 0 2012-08-23 14:38:19.204
      !MESSAGE System property http.nonProxyHosts has been set to local|.local|169.254/16|.169.254/16 by an external source. This value will be overwritten using the values from the preferences

      !ENTRY org.eclipse.ui 4 0 2012-08-23 14:39:29.166
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.NullPointerException
      at com.appcelerator.titanium.mobile.iphone.IOSConfigurationHelper.loadLocalProvisioningProfile(IOSConfigurationHelper.java:276)
      at com.appcelerator.titanium.mobile.iphone.IOSConfigurationHelper.loadLocalProvisioningProfiles(IOSConfigurationHelper.java:179)
      at com.appcelerator.titanium.mobile.iphone.IOSConfiguration.loadLocalProvisioningProfiles(IOSConfiguration.java:507)
      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:43)
      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)

      !ENTRY org.eclipse.ui 4 0 2012-08-23 14:39:55.355
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.NullPointerException
      at com.appcelerator.titanium.mobile.iphone.IOSConfigurationHelper.loadLocalProvisioningProfile(IOSConfigurationHelper.java:276)
      at com.appcelerator.titanium.mobile.iphone.IOSConfigurationHelper.loadLocalProvisioningProfiles(IOSConfigurationHelper.java:179)
      at com.appcelerator.titanium.mobile.iphone.IOSConfiguration.loadLocalProvisioningProfiles(IOSConfiguration.java:507)
      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:43)
      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:
                aleard Alan Leard
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: