Results 1 to 5 of 5

Thread: problem with sencha phonegap init

  1. #1

    Default problem with sencha phonegap init

    i'm getting the error Cannot find module '''asn1''' when i run sencha cordova init in my sencha project. does anyone have any suggestions? i'm using Sencha Touch 2.3 and Sencha Cmd 4.0. I have already installed Node.js and phonegap. i'm using windows xp. I assume I forgot to install something, but I'm not sure what.

    C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\sae>sench

    a cordova init
    Sencha Cmd v4.0.0.203
    [INF]
    [INF] sencha-cordova-init:
    [INF]
    [INF] init-cordova:
    [INF] [echo] Adding Cordova to Application
    [INF] [echo] Adding Cordova template files
    [INF] [echo] Adding Native properties
    [INF] [x-property-file] Updating property file: C:\Program Files\Apach
    e Software Foundation\Apache2.2\htdocs\sae\.sencha\app\native.properti
    es
    [INF] [x-property-file] Updating property file: C:\Program Files\Apach
    e Software Foundation\Apache2.2\htdocs\sae\.sencha\app\build.propertie
    s
    [INF] [echo] Patching build.xml for Cordova Support
    [INF] [echo] ApplicationID was NOT specified, defaulting to foo.b
    ar.sae. You can edit this in your Cordova config.json
    [INF] [echo] Building Cordova App
    [INF] [shellscript]
    [INF] [shellscript] C:\Program Files\Apache Software Foundation\Apache
    2.2\htdocs\sae>cordova create "C:\Program Files\Apache Software Founda
    tion\Apache2.2\htdocs\sae/cordova" foo.bar.sae sae
    [INF] [shellscript] '{' [Error: Cannot find module '''asn1'''] code: '
    ''MODULE_NOT_FOUND''' '}'
    [ERR] The following error occurred while executing this line:
    C:\Programs\Sencha\Cmd\4.0.0.203\extensions\cmd-cordova-packager\cmd-c
    ordova-packager.plugin.xml:127: The following error occurred while exe
    cuting this line:
    jar:file:/C:/Programs/Sencha/Cmd/4.0.0.203/sencha.jar!/com/sencha/ant/
    antlib.xml:584: shellscript returned: 1
    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.ja
    va:105)
    at com.sencha.ant.CallTask.execute(CallTask.java:108)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.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(Def
    aultExecutor.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.ant.AntExtensionCommand.execute(AntExtensio
    nCommand.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.j
    ava: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:
    jar:file:/C:/Programs/Sencha/Cmd/4.0.0.203/sencha.jar!/com/sencha/ant/
    antlib.xml:584: shellscript returned: 1
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException
    (ProjectHelper.java:551)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInsta
    nce.java:401)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.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.ja
    va:105)
    at com.sencha.ant.CallTask.execute(CallTask.java:108)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.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(Def
    aultExecutor.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.ant.AntExtensionCommand.execute(AntExtensio
    nCommand.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.j
    ava: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: shellscript returned: 1
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.jav
    a:646)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:6
    72)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:4
    98)
    at net.sf.antcontrib.platform.ShellScriptTask.execute(ShellScript
    Task.java:132)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInsta
    nce.java:398)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.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.ja
    va:105)
    at com.sencha.ant.CallTask.execute(CallTask.java:108)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.ja
    va:68)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.java:106)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)


    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav
    a:291)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUt
    ils.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(Def
    aultExecutor.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.ant.AntExtensionCommand.execute(AntExtensio
    nCommand.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source
    )
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.j
    ava: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)




    /edit: meant to say "sencha cordova init" in topic title, but not sure how to edit the title now

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    See the following guide
    http://docs.sencha.com/touch/2.3.0/#!/guide/cordova
    The command should be:

    sencha phonegap init [AppID] [AppName]The AppID must come from Apple for iOS and can be any unique reverse domain format string for Android.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Jul 2013
    Posts
    21

    Default

    Hey I have different problem with this command...
    Error which I receiving:

    Code:
    Unknown command: "phonegap"
    Full command which I used::
    Code:
    sencha phonegap init com.domx domx

  4. #4
    Sencha User
    Join Date
    Aug 2012
    Location
    Fabrgues, France
    Posts
    50
    Answers
    4

    Default

    did you install phonegap first ?

    sudo npm install -g phonegap

  5. #5
    Sencha User
    Join Date
    Jul 2013
    Posts
    21

    Default

    Yes, upgrade sencha cmd to the latest version solved my problem.

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
  •