Results 1 to 2 of 2

Thread: Sencha Cmd v5.0.3.324 - error on cordova init

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    2

    Default Sencha Cmd v5.0.3.324 - error on cordova init

    REQUIRED INFORMATION


    Sencha Cmd version(s) tested:
    Sencha Cmd 5.0.3.324

    Operating System:
    OSX 10.9.5 ( Macbook pro )
    Java V8 update 25 ( build 1.8.0_25-b17)


    Framework used:
    Sencha Touch 2.4.1
    Cordova 4.1.2

    Description:
    installed all of the latest software.
    After successfully generating a new app, when I try to init Cordova it just gives an error.

    Code:
    [ERR] The following error occurred while executing this line:
    /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager/cmd-packager.plugin.xml:131: com.sencha.exceptions.ExScript: Function importClass must be called with a class; had "[JavaPackage java.nio.charset.StandardCharsets]" instead. (anonymous#3)

    The cordova folder is created

    Diagnostic Output:
    The output from sencha diag show:

    Code:
    Sencha Cmd v5.0.3.324
    [INF]                          app.archivePath : archive                                           
    [INF]                       app.bootstrap.base : /Users/tim/Projects/TestApp                       
    [INF]                            app.build.dir : /Users/tim/Projects/TestApp/build/TestApp         
    [INF]                            app.classpath : /Users/tim/Projects/TestApp/app.js,/Users/tim/Projects/TestApp/app
    [INF]                          app.cmd.version : 5.0.3.324                                         
    [INF]                           app.config.dir : /Users/tim/Projects/TestApp/.sencha/app           
    [INF]                    app.cordova.config.id : com.domain.TestApp                                
    [INF]                  app.cordova.config.name : TestApp                                           
    [INF]                  app.cordova.config.path : /Users/tim/Projects/TestApp/cordova               
    [INF]                app.cordova.config.target :                                                   
    [INF]               app.cordova.config.verbose : false                                             
    [INF]                    app.cordova.js.0.path : cordova.js                                        
    [INF]                app.cordova.js.0.priority : 1000                                              
    [INF]                  app.cordova.js.0.remote : true                                              
    [INF]                    app.cordova.js.length : 1                                                 
    [INF]                  app.cordova.microloader : /Users/tim/Projects/TestApp/.sencha/app/microloader/testing.js
    [INF]                  app.cordova.output.base : /Users/tim/Projects/TestApp/cordova/www           
    [INF]          app.cordova.output.cache.enable : false                                             
    [INF]         app.cordova.output.deltas.enable : false                                             
    [INF]        app.cordova.output.manifest.embed : true                                              
    [INF]                                  app.dir : /Users/tim/Projects/TestApp                       
    [INF]                            app.framework : touch                                             
    [INF]                    app.framework.version : 2.4.1.527                                         
    [INF]                                   app.id : 961ec47d-c29f-443c-8ba7-2fc3de6299a4              
    [INF]                        app.indexHtmlPath : index.html                                        
    [INF]                                 app.name : TestApp                                           
    [INF]                          app.output.base : /Users/tim/Projects/TestApp/build/${build.environment}/TestApp
    [INF]            app.output.microloader.enable : true                                              
    [INF]                   app.phonegap.config.id : com.domain.TestApp                                
    [INF]                 app.phonegap.config.name : TestApp                                           
    [INF]                 app.phonegap.config.path : /Users/tim/Projects/TestApp/phonegap              
    [INF]               app.phonegap.config.remote : false                                             
    [INF]              app.phonegap.config.verbose : false                                             
    [INF]                   app.phonegap.js.0.path : phonegap.js                                       
    [INF]               app.phonegap.js.0.priority : 1000                                              
    [INF]                 app.phonegap.js.0.remote : true                                              
    [INF]                   app.phonegap.js.length : 1                                                 
    [INF]                 app.phonegap.microloader : /Users/tim/Projects/TestApp/.sencha/app/microloader/testing.js
    [INF]                 app.phonegap.output.base : /Users/tim/Projects/TestApp/phonegap/www          
    [INF]         app.phonegap.output.cache.enable : false                                             
    [INF]        app.phonegap.output.deltas.enable : false                                             
    [INF]       app.phonegap.output.manifest.embed : true                                              
    [INF]                       app.requires.names :                                                   
    [INF]                    app.requires.packages :                                                   
    [INF]                       app.resource.paths :                                                   
    [INF]         app.slicer.js.0.isWidgetManifest : true                                              
    [INF]                     app.slicer.js.0.path : /Users/tim/Projects/TestApp/sass/example/custom.js
    [INF]                     app.slicer.js.length : 1                                                 
    [INF]                     buildenvironment.dir : /Users/tim/Projects/TestApp                       
    [INF]                buildenvironment.load.dir : /Users/tim/Projects/TestApp                       
    [INF]                           cmd.config.dir : /Users/tim/bin/Sencha/Cmd/5.0.3.324               
    [INF]                                  cmd.dir : /Users/tim/bin/Sencha/Cmd/5.0.3.324               
    [INF]                     cmd.framework.minver : 2.2.0                                             
    [INF]                    cmd.framework.version : 2.99.99.99999                                     
    [INF]                             cmd.jvm.args : -Xms128m -Xmx1024m -Dapple.awt.UIElement=true     
    [INF]               cmd.merge.tool.args.araxis : -wait -merge -3 -a1 {base} {user} {generated} {out}
    [INF]               cmd.merge.tool.args.kdiff3 : {base} {user} {generated} -o {out}                
    [INF]              cmd.merge.tool.args.p4merge : {base} {user} {generated} {out}                   
    [INF]            cmd.merge.tool.args.smartsync : {user} {generated} {base}                         
    [INF]           cmd.merge.tool.args.sourcegear : --merge --result={out} {user} {base} {generated}  
    [INF]             cmd.merge.tool.args.tortoise : -base:{base} -theirs:{generated} -mine:{user} -merged:{out}
    [INF]                               cmd.minver : 3.0.0.0                                           
    [INF]                             cmd.platform : osx                                               
    [INF]                          cmd.server.port : 1841                                              
    [INF]                              cmd.version : 5.0.3.324                                         
    [INF]                             cmd.web.port : 1841                                              
    [INF]                      framework.classpath : /Users/tim/Projects/TestApp/touch/src             
    [INF]                     framework.cmd.minver : 3.1.0.53                                          
    [INF]                    framework.cmd.version : 4.0.5.87                                          
    [INF]                     framework.config.dir : /Users/tim/bin/Sencha/Cmd/5.0.3.324/plugins/touch/2.3
    [INF]                            framework.dir : /Users/tim/Projects/TestApp/touch                 
    [INF]                        framework.ignores : src/locale,src/platform,auth2/Auth.js,scroller/Infinite.js
    [INF]                           framework.name : touch                                             
    [INF]                   framework.packages.dir : /Users/tim/Projects/TestApp/touch/packages        
    [INF]              framework.preprocessor.opts : charts:no                                         
    [INF]                        framework.version : 2.4.1.527                                         
    [INF]                           repo.local.dir : /Users/tim/bin/Sencha/Cmd/repo                    
    [INF]         system.java.net.useSystemProxies : true                                              
    [INF]                                touch.dir : /Users/tim/Projects/TestApp/touch                 
    [INF]                      workspace.build.dir : /Users/tim/Projects/TestApp/build                 
    [INF]                    workspace.cmd.version : 5.0.3.324                                         
    [INF]                     workspace.config.dir : /Users/tim/Projects/TestApp/.sencha/workspace     
    [INF]                            workspace.dir : /Users/tim/Projects/TestApp                       
    [INF]                   workspace.packages.dir : /Users/tim/Projects/TestApp/packages              
    [INF]                      workspace.theme.dir : /Users/tim/Projects/TestApp/packages/${args.themeName} [INF]                     xcmd.merge.tool.args : {user} {generated} {base}
    [INF]
    Steps to reproduce the problem:

    cd to projects folder.
    Create a new app

    Code:
    gypsy:projects tim$ sencha -sdk /sdks/sencha/touch-2.4.1/ generate app TestApp TestApp
    run cordova init command


    Code:
    gypsy:projects tim$ sencha -debug cordova init com.tester.TestApp TestApp

    log details.
    Code:
    Sencha Cmd v5.0.3.324
    [DBG] Loading configuration from /Users/tim/Projects/TestApp
    [DBG] Scanning for extensions in /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions
    [DBG] Loaded extension: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager
    [DBG] Loaded extension: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-compass
    [DBG] Loaded extension: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-fashion
    [DBG] Loaded extension: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-licenses
    [DBG] Loaded extension: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-service
    [DBG] creating workspace for /Users/tim/Projects/TestApp
    [DBG] Framework dependency detected
    [DBG] Loading framework touch from /Users/tim/Projects/TestApp/touch
    [DBG] attempting to load framework from /Users/tim/Projects/TestApp/touch
    [DBG] Detecting framework plugin
    [DBG] Resolving framework config overrides for 'touch'
    [DBG] Detected framework version 2.4.1.527
    [DBG] Detected framework override at '/Users/tim/bin/Sencha/Cmd/5.0.3.324/plugins/touch/2.3'
    [DBG] using framework plugin located at '/Users/tim/bin/Sencha/Cmd/5.0.3.324/plugins/touch/2.3'
    [DBG] Loaded framework from /Users/tim/Projects/TestApp/touch
    [DBG] Loading CommandProviders
    [DBG] Scanning extensions directory /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager for extensions
    [DBG] Scanning extensions directory /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-compass for extensions
    [DBG] Located /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-compass/sencha-compass.jar
    [DBG] loading manifest for jar /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-compass/sencha-compass.jar
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-compass/sencha-compass.jar!/
    [DBG] Scanning extensions directory /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-fashion for extensions
    [DBG] Located /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-fashion/sencha-fashion.jar
    [DBG] loading manifest for jar /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-fashion/sencha-fashion.jar
    [DBG] Add extension classpath entry 'sencha-fashion' : jar:file:/Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-fashion/sencha-fashion.jar!/
    [DBG] Scanning extensions directory /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-licenses for extensions
    [DBG] Scanning extensions directory /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-service for extensions
    [DBG] Located /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-service/sencha-service.jar
    [DBG] loading manifest for jar /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-service/sencha-service.jar
    [DBG] Add extension classpath entry 'sencha-service' : jar:file:/Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-service/sencha-service.jar!/
    [DBG] adding service server extension commands for sencha
    [DBG] extending 'sencha' with command 'com.sencha.command.rpc.SerivceCommands'
    [DBG] Scanning for plugins in folder: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager
    [DBG] Loading plugin: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager/cmd-packager.plugin.xml
    [DBG] Scanning for plugins in folder: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-compass
    [DBG] Scanning for plugins in folder: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-fashion
    [DBG] Scanning for plugins in folder: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-licenses
    [DBG] Loading plugin: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-licenses/sencha-licenses.plugin.xml
    [DBG] Scanning for plugins in folder: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/sencha-service
    [DBG] adding service server extension commands for sencha.cordova
    [DBG] Running ant target sencha-cordova-init in /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager/cmd-packager.plugin.xml
    [DBG] Loading plugin: /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager/cmd-packager.plugin.xml
    [DBG] Resolving packages for : TestApp
    [DBG] scanning directory /Users/tim/Projects/TestApp/touch for packages
    [DBG] scanning directory /Users/tim/Projects/TestApp/packages for packages
    [DBG] initializing remote directory /Users/tim/bin/Sencha/Cmd/repo/.sencha/repo/remotes/sencha
    [DBG] Loading plugin: /Users/tim/bin/Sencha/Cmd/repo/.sencha/repo/plugin.xml
    [DBG] Invoking sencha-cordova-init on all plugins...
    [DBG] Invoking plugin (/Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager/cmd-packager.plugin.xml) - supported targets: sencha-cordova-init
    [DBG] Executing targets sencha-cordova-init in Ant file /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager/cmd-packager.plugin.xml
    [INF] 
    [INF] sencha-cordova-init:
    [INF] 
    [INF] init-packaged-app:
    [INF] Creating App
    [DBG] 
                    x-shell: in directory : /Users/tim/Projects/TestApp
                    x-shell: running command => 
                cordova create "/Users/tim/Projects/TestApp/cordova" com.tester.TestApp TestApp
           
               
    [INF] [shellscript] Creating a new cordova project with name "TestApp" and id "com.tester.TestApp" at location "/Users/tim/Projects/TestApp/cordova"
    [ERR] The following error occurred while executing this line:
    /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager/cmd-packager.plugin.xml:131: com.sencha.exceptions.ExScript: Function importClass must be called with a class; had "[JavaPackage java.nio.charset.StandardCharsets]" instead. (anonymous#3)
       x_check_multi_build (anonymous:2)
         at com.sencha.exceptions.BasicException.wrap(BasicException.java:54)
         at com.sencha.ant.AntScript.execute(AntScript.java:121)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:122)
         at com.sencha.command.ant.AntCommandFactory$1.execute(AntCommandFactory.java:51)
         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 com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:140)
       Caused by: The following error occurred while executing this line:
    /Users/tim/bin/Sencha/Cmd/5.0.3.324/extensions/cmd-packager/cmd-packager.plugin.xml:131: com.sencha.exceptions.ExScript: Function importClass must be called with a class; had "[JavaPackage java.nio.charset.StandardCharsets]" instead. (anonymous#3)
       x_check_multi_build (anonymous:2)
         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:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.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:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:122)
         at com.sencha.command.ant.AntCommandFactory$1.execute(AntCommandFactory.java:51)
         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 com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:140)
       Caused by: com.sencha.exceptions.ExScript: Function importClass must be called with a class; had "[JavaPackage java.nio.charset.StandardCharsets]" instead. (anonymous#3)
       x_check_multi_build (anonymous:2)
         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:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.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:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:122)
         at com.sencha.command.ant.AntCommandFactory$1.execute(AntCommandFactory.java:51)
         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 com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:140)
       Caused by: Function importClass must be called with a class; had "[JavaPackage java.nio.charset.StandardCharsets]" instead. (anonymous#3)
       x_check_multi_build (anonymous:2)
         at com.sencha.util.JavaScriptHost.runContextAction(JavaScriptHost.java:207)
         at com.sencha.util.JavaScriptHost.call(JavaScriptHost.java:166)
         at com.sencha.util.JavaScriptHost.call(JavaScriptHost.java:161)
         at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:83)
         at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         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:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.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:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:122)
         at com.sencha.command.ant.AntCommandFactory$1.execute(AntCommandFactory.java:51)
         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 com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:140)
       Caused by: Function importClass must be called with a class; had "[JavaPackage java.nio.charset.StandardCharsets]" instead. (anonymous#3)
         at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:77)
         at org.mozilla.javascript.Context.reportRuntimeError(Context.java:913)
         at org.mozilla.javascript.Context.reportRuntimeError(Context.java:969)
         at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:932)
         at org.mozilla.javascript.ImporterTopLevel.js_importClass(ImporterTopLevel.java:162)
         at org.mozilla.javascript.ImporterTopLevel.execIdCall(ImporterTopLevel.java:237)
         at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
         at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
         at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
         at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
         at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
         at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
         at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
         at com.sencha.util.JavaScriptHost$4.process(JavaScriptHost.java:170)
         at com.sencha.util.JavaScriptHost$4.process(JavaScriptHost.java:166)
         at com.sencha.util.JavaScriptHost.runContextAction(JavaScriptHost.java:200)
         at com.sencha.util.JavaScriptHost.call(JavaScriptHost.java:166)
         at com.sencha.util.JavaScriptHost.call(JavaScriptHost.java:161)
         at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:83)
         at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         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:130)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
         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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         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.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:117)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:122)
         at com.sencha.command.ant.AntCommandFactory$1.execute(AntCommandFactory.java:51)
         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 com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.command.Sencha.dispatch(Sencha.java:72)
         at com.sencha.command.Sencha.main(Sencha.java:140)...
    The result that was expected:
    A simple app with cordova intialize

    The result that occurs instead:
    Error which results in an unusable app it will build but not run

    HELPFUL INFORMATION


    Debugging already done:

    the cordova folder is created.
    The app appears to build ok but will not run on emulator.

    Possible fix:
    ???

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    2

    Default error on cordova init - follow up

    So I have now tested this by using the previous version of CMD installed on my machine ( 4.0.4.84 ) before I did the upgrade to current version ( 5.0.3.324 ).
    results
    create a fresh new app

    Code:
    sencha-4.0.4.84 -sdk /sdks/sencha/touch-2.4.1/  generate app test4 test4
    it looks ok no errors
    so now init cordova

    Code:
    sencha-4.0.4.84 cordova init com.test.test4 test4
    this is now ok - no errors this time
    so now I try to run it

    Code:
    sencha-4.0.4.84 app build -run native
    appears to run ok -
    and it adds the platform for ios correctly etc.
    but nothing appears in the simulator...

    when I do a debug run, I get the following

    Code:
    [DBG] Invoking -after-app-build on all plugins...
    [DBG] Skipping plugin (/Users/tim/Projects/test4/.sencha/app/plugin.xml) - no supported targets: -after-app-build
    [DBG] Skipping plugin (/Users/tim/bin/Sencha/Cmd/4.0.4.84/extensions/cmd-phonegap-packager/cmd-phonegap-packager.plugin.xml) - no supported targets: -after-app-build
    [DBG] Skipping plugin (/Users/tim/bin/Sencha/Cmd/4.0.4.84/extensions/cmd-cordova-packager/cmd-cordova-packager.plugin.xml) - no supported targets: -after-app-build
    [DBG] Skipping plugin (/Users/tim/bin/Sencha/Cmd/4.0.4.84/plugins/schema.plugin.xml) - no supported targets: -after-app-build
    [DBG] Skipping plugin (/Users/tim/bin/Sencha/Cmd/4.0.4.84/plugins/package.plugin.xml) - no supported targets: -after-app-build
    [DBG] Skipping plugin (/Users/tim/bin/Sencha/Cmd/4.0.4.84/plugins/architect.plugin.xml) - no supported targets: -after-app-build
    I then tried running with the current version of cmd ( 5.0.3.324 )
    Code:
    sencha app build -run native
    which told me to upgrade with the following command
    Code:
    sencha app upgrade -noframework
    that gives the following error


    Code:
    Sencha Cmd v5.0.3.324
    [INF] building application
    [INF] Backing up application files from /Users/tim/Projects/test4 to /Users/tim/Projects/test4/.sencha_backup/test4/2.4.1.527
    [INF] Updating application and workspace files
    [INF] A backup of pre-upgrade application files is available at /Users/tim/Projects/test4/.sencha_backup/test4/2.4.1.527
    [INF] Existing native support was found, upgrading native packaging
    [ERR] com.sencha.exceptions.ExScript: Function importClass must be called with a class; had "[JavaPackage java.nio.charset.StandardCharsets]" instead. (anonymous#3)
       x_check_multi_build (anonymous:2)
    [ERR] 
    The application was last modified by an older version of Sencha Cmd (4.0.4.84)
    the current is 5.0.3.324.
    Please run "sencha app upgrade" to update to 5.0.3.324.
    I feel like I am chasing my tail here......
    when I use the command "sencha app upgrade" I get the following


    Code:
    Sencha Cmd v5.0.3.324
    [INF] building application
    [INF] Application structure already at current cmd version
    [INF] Existing native support was found, upgrading native packaging
    [ERR] com.sencha.exceptions.ExScript: Function importClass must be called with a class; had "[JavaPackage java.nio.charset.StandardCharsets]" instead. (anonymous#3)
       x_check_multi_build (anonymous:2)
    please can anyone out there offer some advice or help on this, thanks.

    Tim

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •