java.lang.IllegalArgumentException: Bad type name being set, something is going haywire: 'My-controller --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 50500Controller'

Appcelerator JIRA | Ewan Harris | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h5.Description When creating a alloy resource with a name like {{test"/my-controller}} on Windows the name of the generated file is like so {{my-controller --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 50500.js}}. It is only the Alloy items that allow a user to enter a special character, all other options that run the appc CLI do not allow {{"}}. On mac the file file is created as expected i.e {{my-controller.js}} in the folder {{test"}}, but both platforms throw the following error {code} !ENTRY com.aptana.js.core 2 0 2016-09-27 14:39:16.444 !MESSAGE (Build 4.8.0.201609232005) [WARNING] Bad type name being set, something is going haywire: 'My-controller --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 50500Controller' !STACK 0 java.lang.IllegalArgumentException: Bad type name being set, something is going haywire: 'My-controller --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 50500Controller' at com.aptana.js.core.inferencing.JSTypeUtil.validateTypeName(JSTypeUtil.java:495) at com.aptana.js.core.model.ReturnTypeElement.setType(ReturnTypeElement.java:123) at com.aptana.js.core.model.PropertyElement.addType(PropertyElement.java:121) at com.appcelerator.titanium.alloy.internal.core.build.ViewIndexingParticipant.ensureControllerTypeExists(ViewIndexingParticipant.java:118) at com.appcelerator.titanium.alloy.internal.core.build.ViewIndexingParticipant.index(ViewIndexingParticipant.java:75) at com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:132) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:614) at com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:525) at com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:497) at com.aptana.core.build.UnifiedBuilder.incrementalBuild(UnifiedBuilder.java:263) at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:197) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} h5.Steps to reproduce # Right click in an alloy project and select {{New->Alloy Controller}} # Enter a name like {{"doublequote}} h5.Actual result The file created will be called {{doublequote--no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 50500.js}}, the error above will be show in the logs h5.Expected result No error should be in the logs, Studio should handle the quote

    Appcelerator JIRA | 7 months ago | Ewan Harris
    java.lang.IllegalArgumentException: Bad type name being set, something is going haywire: 'My-controller --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 50500Controller'
  2. 0

    Eclipse Community Forums: IMP ยป Cannot uninstall IMP

    eclipse.org | 2 years ago
    java.lang.IllegalArgumentException: No matching artifact found for: osgi.bundle,org.eclipse.imp.doc,0.1.17.v201001291500. at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.I nstallBundleAction.installBundle(InstallBundleAction.java:62 ) at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.I nstallBundleAction.execute(InstallBundleAction.java:29) at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisio ningAction.execute(ParameterizedProvisioningAction.java:35) at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mai nPerform(Phase.java:129) at org.eclipse.equinox.internal.provisional.p2.engine.Phase.per form(Phase.java:72) at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet. perform(PhaseSet.java:44) at org.eclipse.equinox.internal.provisional.p2.engine.Engine.pe rform(Engine.java:54) at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ovisioningUtil.performProvisioningPlan(ProvisioningUtil.java :389) at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ofileModificationOperation.doExecute(ProfileModificationOper ation.java:61) at org.eclipse.equinox.internal.provisional.p2.ui.operations.Pr ovisioningOperation.execute(ProvisioningOperation.java:37) at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningO perationRunner$1.run(ProvisioningOperationRunner.java:94)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Bad type name being set, something is going haywire: 'My-controller --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 50500Controller'

      at com.aptana.js.core.inferencing.JSTypeUtil.validateTypeName()
    2. com.aptana.js
      PropertyElement.addType
      1. com.aptana.js.core.inferencing.JSTypeUtil.validateTypeName(JSTypeUtil.java:495)
      2. com.aptana.js.core.model.ReturnTypeElement.setType(ReturnTypeElement.java:123)
      3. com.aptana.js.core.model.PropertyElement.addType(PropertyElement.java:121)
      3 frames
    3. com.appcelerator.titanium
      ViewIndexingParticipant.index
      1. com.appcelerator.titanium.alloy.internal.core.build.ViewIndexingParticipant.ensureControllerTypeExists(ViewIndexingParticipant.java:118)
      2. com.appcelerator.titanium.alloy.internal.core.build.ViewIndexingParticipant.index(ViewIndexingParticipant.java:75)
      2 frames
    4. com.aptana.core
      UnifiedBuilder.build
      1. com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:132)
      2. com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72)
      3. com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:614)
      4. com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:525)
      5. com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:497)
      6. com.aptana.core.build.UnifiedBuilder.incrementalBuild(UnifiedBuilder.java:263)
      7. com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:197)
      7 frames
    5. Core Resource Management
      BuildManager$2.run
      1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
      1 frame
    6. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    7. Core Resource Management
      BuildManager$1.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
      2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
      3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
      3 frames
    8. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    9. Core Resource Management
      AutoBuildJob.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
      2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
      3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
      4. org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
      5. org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
      5 frames
    10. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame