PDA

View Full Version : Extend conditional



fabio.policeno
30 Oct 2013, 2:15 PM
Is there any way to extend class conditionally?



extend: window.isDesktop ? 'Ext.ux.desktop.Module' : 'Abstracts.panel.Module'


It even works in dev mode, but when running sencha app refresh gives error: com.sencha.exceptions.ExParse: Failed parsing / Development / php / BaseStandardDesktopPermissao / app / abstracts / panel / Report.js

mankz
30 Oct 2013, 3:18 PM
This is likely the same bug in Sencha Cmd reported a while ago. http://www.sencha.com/forum/showthread.php?268822-Sencha-Cmd-v3.1.2.342-Dynamic-quot-requires-quot-option-analyze-failure&p=984639

fabio.policeno
30 Oct 2013, 6:11 PM
I try update sencha cmd to fix this problem, but where execute sencha app refresh, when update (sencha app upgrade) but when try update, show this error:


[INF] Updating application and workspace from Ext JS 4.2.1.883 / Cmd 3.0.0.250[ERR] com.sencha.exceptions.ExScript: Wrapped java.lang.NullPointerException (x-app-upgrade#364)
runAppUpgrade (x-app-upgrade:364)
[anonymous] (x-app-upgrade:449)
x_app_upgrade (x-app-upgrade:447)
<script> (anonymous:1)

fabio.policeno
31 Oct 2013, 2:53 AM
Has no relation with another error, I created a new project with sencha cmd 4, when trying to extend dynamic:

extend: window.isDesktop ? 'Ext.container.Container' : 'Ext.panel.Panel',

When trying to the sencha app refresh, this error occurred:



[ERR]
[ERR] BUILD FAILED
[ERR] java.lang.ClassCastException: org.mozilla.javascript.ast.ConditionalExpression cannot be cast to org.mozilla.javascript.ast.StringLiteral
[ERR] at com.sencha.command.S
[ERR] encha.dispatch(Sencha.java:81)
[ERR]
[ERR] Total time: 9 seconds
[ERR] The following error occurred while executing this line:
/Applications/Sencha/Cmd/4.0.0.203/plugins/ext/4.2/plugin.xml:383: The following error occurred while executing this line:
/Development/php/Teste/.sencha/app/build-impl.xml:359: The following error occurred while executing this line:
/Development/php/Teste/.sencha/app/js-impl.xml:11: java.lang.ClassCastException: org.mozilla.javascript.ast.ConditionalExpression cannot be cast to org.mozilla.javascript.ast.StringLiteral
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at com.sencha.ant.CallTask.execute(CallTask.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at com.sencha.ant.AntScript.execute(AntScript.java:127)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:245)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:394)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
at com.sencha.command.app.AppCommands$RefreshCommand.execute(AppCommands.java:500)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
at com.sencha.cli.Command.dispatch(Command.java:42)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.command.Sencha.dispatch(Sencha.java:81)
at com.sencha.command.Sencha.main(Sencha.java:149)
Caused by: The following error occurred while executing this line:
/Development/php/Teste/.sencha/app/build-impl.xml:359: The following error occurred while executing this line:
/Development/php/Teste/.sencha/app/js-impl.xml:11: java.lang.ClassCastException: org.mozilla.javascript.ast.ConditionalExpression cannot be cast to org.mozilla.javascript.ast.StringLiteral
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at com.sencha.ant.CallTask.execute(CallTask.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at com.sencha.ant.AntScript.execute(AntScript.java:127)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:245)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:394)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
at com.sencha.command.app.AppCommands$RefreshCommand.execute(AppCommands.java:500)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
at com.sencha.cli.Command.dispatch(Command.java:42)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.command.Sencha.dispatch(Sencha.java:81)
at com.sencha.command.Sencha.main(Sencha.java:149)
Caused by: The following error occurred while executing this line:
/Development/php/Teste/.sencha/app/js-impl.xml:11: java.lang.ClassCastException: org.mozilla.javascript.ast.ConditionalExpression cannot be cast to org.mozilla.javascript.ast.StringLiteral
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at com.sencha.ant.CallTask.execute(CallTask.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at com.sencha.ant.CallTask.execute(CallTask.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at com.sencha.ant.AntScript.execute(AntScript.java:127)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:245)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:394)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
at com.sencha.command.app.AppCommands$RefreshCommand.execute(AppCommands.java:500)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
at com.sencha.cli.Command.dispatch(Command.java:42)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.command.Sencha.dispatch(Sencha.java:81)
at com.sencha.command.Sencha.main(Sencha.java:149)
Caused by: java.lang.ClassCastException: org.mozilla.javascript.ast.ConditionalExpression cannot be cast to org.mozilla.javascript.ast.StringLiteral
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at com.sencha.ant.CallTask.execute(CallTask.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at com.sencha.ant.CallTask.execute(CallTask.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at com.sencha.ant.AntScript.execute(AntScript.java:127)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:245)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:394)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
at com.sencha.command.app.AppCommands$RefreshCommand.execute(AppCommands.java:500)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
at com.sencha.cli.Command.dispatch(Command.java:42)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.command.Sencha.dispatch(Sencha.java:81)
at com.sencha.command.Sencha.main(Sencha.java:149)
Caused by: org.mozilla.javascript.ast.ConditionalExpression cannot be cast to org.mozilla.javascript.ast.StringLiteral
at com.sencha.tools.compiler.sources.MetaClassDefinition.processObjLiteral(MetaClassDefinition.java:132)
at com.sencha.tools.compiler.sources.MetaClassDefinition.processConfig(MetaClassDefinition.java:233)
at com.sencha.tools.compiler.sources.MetaClassDefinition.<init>(MetaClassDefinition.java:45)
at com.sencha.tools.compiler.sources.DeclarationVisitor.processDefineObject(DeclarationVisitor.java:226)
at com.sencha.tools.compiler.sources.DeclarationVisitor.processDefineObject(DeclarationVisitor.java:218)
at com.sencha.tools.compiler.sources.DeclarationVisitor.processDefineObject(DeclarationVisitor.java:28)
at com.sencha.tools.compiler.sources.BaseDefineVisitor.processExtDefine(BaseDefineVisitor.java:67)
at com.sencha.tools.compiler.sources.BaseDefineVisitor.visit(BaseDefineVisitor.java:132)
at com.sencha.tools.compiler.sources.DeclarationVisitor.visit(DeclarationVisitor.java:59)
at com.sencha.tools.compiler.sources.DeclarationVisitor.visit(DeclarationVisitor.java:28)
at com.sencha.tools.compiler.ast.AstTranslator.dispatch(AstTranslator.java:562)
at com.sencha.tools.compiler.ast.AstTranslator.visit(AstTranslator.java:513)
at org.mozilla.javascript.ast.FunctionCall.visit(FunctionCall.java:157)
at org.mozilla.javascript.ast.ExpressionStatement.visit(ExpressionStatement.java:120)
at org.mozilla.javascript.ast.ScriptNode.visit(ScriptNode.java:312)
at com.sencha.tools.compiler.sources.SymbolData.loadFileSymbols(SymbolData.java:66)
at com.sencha.tools.compiler.sources.SymbolData.<init>(SymbolData.java:49)
at com.sencha.tools.compiler.sources.SourceFile.getSymbols(SourceFile.java:205)
at com.sencha.tools.compiler.sources.SymbolCache.accumulateSymbols(SymbolCache.java:92)
at com.sencha.tools.compiler.sources.SymbolCache.processSymbols(SymbolCache.java:196)
at com.sencha.tools.compiler.sources.ClassPathScope.getScopeSymbols(ClassPathScope.java:383)
at com.sencha.tools.compiler.sources.ClassPathScope.getSourceFilesInScope(ClassPathScope.java:369)
at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:530)
at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:528)
at com.sencha.tools.compiler.CompilerContext.excludeAll(CompilerContext.java:212)
at com.sencha.tools.page.AppBuilder.load(AppBuilder.java:180)
at com.sencha.command.compile.app.LoadAppCommand.execute(LoadAppCommand.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
at com.sencha.cli.Command.dispatch(Command.java:42)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.command.compile.CompileCommands.dispatch(CompileCommands.java:290)
at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:132)
at com.sencha.ant.CompileTask$CompileToken.initialize(CompileTask.java:153)
at com.sencha.ant.AppBuilderPropertyLoader.doExecute(AppBuilderPropertyLoader.java:32)
at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at com.sencha.ant.CallTask.execute(CallTask.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at com.sencha.ant.CallTask.execute(CallTask.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at com.sencha.ant.AntScript.execute(AntScript.java:127)
at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:245)
at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:394)
at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
at com.sencha.command.app.AppCommands$RefreshCommand.execute(AppCommands.java:500)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
at com.sencha.cli.Command.dispatch(Command.java:42)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.cli.Commands.dispatch(Commands.java:68)
at com.sencha.command.Sencha.dispatch(Sencha.java:81)
at com.sencha.command.Sencha.main(Sencha.java:149)


Why it works in dev and sencha cmd not accepted? :(