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 | 4 months ago
  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 | 4 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
    Probably you try to create an actor using actorSystem.actorOf(Props(classOf[AnyActor], args...)) where args does not match AnyActor constructor parameters.
  3. 0
    This error is caused by malformed HTTP request. You are trying to access unsecured page through https.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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