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

UnsupportedOperationException when updating the npm packages

    Details

    • Story Points:
      5

      Description

      User reported the following exception is seen in the log when prompted for updating the npm packages, and the installation failed:

      !ENTRY com.appcelerator.titanium.update 4 4 2013-01-01 16:24:30.649
      !MESSAGE Error encountered during update
      !SUBENTRY 1 com.appcelerator.titanium.nodejs.core 4 0 2013-01-01
      16:24:30.649
      !MESSAGE
      !STACK 0
      java.lang.UnsupportedOperationException
           at java.util.Collections$UnmodifiableMap.put(Unknown Source)
           at
      com.appcelerator.titanium.nodejs.internal.core.NodePackageManager.install(NodePackageManager.java:174)
           at
      com.appcelerator.titanium.update.TitaniumNPMRelease.install(TitaniumNPMRelease.java:43)
           at
      com.appcelerator.titanium.update.TitaniumSDKUpdater.installTitaniumUpdates(TitaniumSDKUpdater.java:591)
           at
      com.appcelerator.titanium.update.TitaniumSDKUpdater.access$0(TitaniumSDKUpdater.java:556)
           at
      com.appcelerator.titanium.update.TitaniumSDKUpdater$2.run(TitaniumSDKUpdater.java:388)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 com.appcelerator.titanium.nodejs.core 4 0 2013-01-01
      16:24:30.649
      !MESSAGE
      !STACK 0
      java.lang.UnsupportedOperationException
           at java.util.Collections$UnmodifiableMap.put(Unknown Source)
           at
      com.appcelerator.titanium.nodejs.internal.core.NodePackageManager.install(NodePackageManager.java:174)
           at
      com.appcelerator.titanium.update.TitaniumNPMRelease.install(TitaniumNPMRelease.java:43)
           at
      com.appcelerator.titanium.update.TitaniumSDKUpdater.installTitaniumUpdates(TitaniumSDKUpdater.java:591)
           at
      com.appcelerator.titanium.update.TitaniumSDKUpdater.access$0(TitaniumSDKUpdater.java:556)
           at
      com.appcelerator.titanium.update.TitaniumSDKUpdater$2.run(TitaniumSDKUpdater.java:388)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
       
      !ENTRY com.appcelerator.titanium.alloy.ui 4 0 2013-01-01 16:24:30.659
      !MESSAGE (Build 3.0.1.201212181159) [ERROR]  Failed to add Alloy templates
      !STACK 1
      org.eclipse.core.runtime.CoreException: Unable to find 'alloy' binary.
           at
      com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.getTemplatesWithNewCommand(AlloyTemplateInstaller.java:261)
           at
      com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.getTemplates(AlloyTemplateInstaller.java:246)
           at
      com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller.access$0(AlloyTemplateInstaller.java:244)
           at
      com.appcelerator.titanium.alloy.internal.ui.AlloyTemplateInstaller$1.run(AlloyTemplateInstaller.java:151)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 com.appcelerator.titanium.alloy.ui 4 0 2013-01-01 16:24:30.659
      !MESSAGE Unable to find 'alloy' binary.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mxia Michael Xia
                Reporter:
                mxia Michael Xia
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: