Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    48
    Vote Rating
    0
    $p00ky is on a distinguished road

      0  

    Default "sencha app build" error

    "sencha app build" error


    Sencha Cmd 3.0.0.230
    Sencha Touch 2.1.0-rc2

    Steps:

    1. In touch-sdk folder, create a new project using the Sencha Cmd:
    sencha generate app -p my/path
    2. Host the generated code on your web server and go test it <== Works
    3. Move to my/path and run "sencha app build" <= Fails (see error below)
    4. Edit packager.json
    Mine:
    Code:
    {
        "applicationName":"MyApplication",
        "applicationId":"com.mycompany.myAppID",
        "bundleSeedId":"KPXFEPZ6EF",
        "versionString":"1.0",
        "versionCode":"1",
        "icon": {
            "57":"resources/icons/Icon.png",
            "72":"resources/icons/Icon~ipad.png",
            "114":"resources/icons/Icon@2x.png",
            "144":"resources/icons/Icon~ipad@2x.png"
        },
        "inputPath":"./",
        "outputPath":"./bin/",
        "configuration":"Debug",
        "platform":"Android",
        "deviceType":"Universal",
        "certificatePath":"C:/Users/.../my-release-key.keystore",
        "certificateAlias":"alias_name",
        "certificatePassword":"pass",
        "provisionProfile":"APP_NAME.mobileprovision",
        "sdkPath":"C:/android-sdk",
        "androidAPILevel":"7",
        "permissions":[
                        "INTERNET",
                        "ACCESS_NETWORK_STATE",
                        "CAMERA",
                        "VIBRATE",
                        "ACCESS_FINE_LOCATION",
                        "ACCESS_COARSE_LOCATION",
                        "CALL_PHONE"],
        "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    5. run "sencha package build -p packager.json" <== Works

    Code:
    C:\Users\...\SenchaCmd>sencha app build
    Sencha Cmd v3.0.0.230
    [INFO ]
    [INFO ]         init-properties:
    [INFO ]
    [INFO ]
    [INFO ]         init-sencha-command:
    [INFO ]
    [INFO ]
    [INFO ]         init:
    [INFO ]
    [INFO ]
    [INFO ]         -before-app-build:
    [INFO ]
    [INFO ]
    [INFO ]         app-build-impl:
    [INFO ]
    [INFO ]
    [INFO ]         production:
    [INFO ]
    [INFO ]
    [INFO ]         -before-init-local:
    [INFO ]
    [INFO ]
    [INFO ]         -init-local:
    [INFO ]
    [INFO ]
    [INFO ]         -after-init-local:
    [INFO ]
    [INFO ]
    [INFO ]         init-local:
    [INFO ]
    [INFO ]
    [INFO ]         find-cmd:
    [INFO ]
    [INFO ]
    [INFO ]         -before-init:
    [INFO ]
    [INFO ]
    [INFO ]         -init:
    [INFO ]
    [INFO ]
    [INFO ]         -after-init:
    [INFO ]
    [INFO ]
    [INFO ]         init:
    [INFO ]
    [INFO ]
    [INFO ]         -before-build:
    [INFO ]
    [INFO ]
    [INFO ]         sass:
    [INFO ]
    [INFO ]
    [INFO ]         -before-sass:
    [INFO ]
    [INFO ]
    [INFO ]         -sass:
    [INFO ]
    [INFO ]         [shellscript] '''compass''' is not recognized as an internal or external command,
    [INFO ]
    [INFO ]         [shellscript]
    [INFO ]
    [INFO ]         [shellscript] C:\Users\...\SenchaCmd\resources\sass>compass compile --boring --force operable program or batch f
    ile.
    [INFO ]
    [INFO ]         [shellscript]
    [INFO ]
    [ERROR]
    [ERROR]         BUILD FAILED
    [ERROR]         com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERROR]         C:\Users\...\SenchaCmd\.sencha\app\build-impl.xml:92: The following error occurred while executing this line:
    [ERROR]         jar:file:/C:/Users/.../bin/Sencha/Cmd/3.0.0.230/sencha.jar!/com/sencha/ant/antlib.xml:347: shellscript returned: 1
    [ERROR]                 at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
    [ERROR]                 at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERROR]                 at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERROR]                 at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)
    [ERROR]                 at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:58)
    [ERROR]                 at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERROR]                 at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERROR]                 at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERROR]                 at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERROR]                 at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERROR]                 at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERROR]                 at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERROR]                 at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERROR]                 at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:80)
    [ERROR]                 at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:120)
    [ERROR]                 at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:96)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERROR]                 at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERROR]                 at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERROR]                 at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:184)
    [ERROR]                 at com.sencha.command.Sencha.main(Sencha.java:58)
    [ERROR]         Caused by: C:\Users\...\SenchaCmd\.sencha\app\build-impl.xml:100: The following error occurred while executing t
    his line:
    [ERROR]         C:\Users\...\SenchaCmd\.sencha\app\build-impl.xml:92: The following error occurred while executing this line:
    [ERROR]         jar:file:/C:/Users/.../bin/Sencha/Cmd/3.0.0.230/sencha.jar!/com/sencha/ant/antlib.xml:347: shellscript returned: 1
    [ERROR]                 at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERROR]                 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
    [ERROR]                 at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERROR]                 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERROR]                 at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERROR]                 at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERROR]                 at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERROR]                 at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERROR]                 at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERROR]                 at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERROR]                 at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERROR]                 at com.sencha.command.ant.AntCommand.execute(AntCommand.java:74)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERROR]                 ... 31 more
    [ERROR]         Caused by: C:\Users\...\SenchaCmd\.sencha\app\build-impl.xml:92: The following error occurred while executing th
    is line:
    [ERROR]         jar:file:/C:/Users/.../bin/Sencha/Cmd/3.0.0.230/sencha.jar!/com/sencha/ant/antlib.xml:347: shellscript returned: 1
    [ERROR]                 at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERROR]                 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:401)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERROR]                 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERROR]                 at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERROR]                 at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERROR]                 at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERROR]                 at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERROR]                 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERROR]                 ... 52 more
    [ERROR]         Caused by: jar:file:/C:/Users/.../bin/Sencha/Cmd/3.0.0.230/sencha.jar!/com/sencha/ant/antlib.xml:347: shellscript returned: 1
    [ERROR]                 at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
    [ERROR]                 at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
    [ERROR]                 at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
    [ERROR]                 at net.sf.antcontrib.platform.ShellScriptTask.execute(ShellScriptTask.java:132)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERROR]                 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERROR]                 at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERROR]                 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERROR]                 at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERROR]                 at sun.reflect.GeneratedMethodAcc
    [ERROR]         essor8.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERROR]                 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    [ERROR]                 ... 64 more
    [ERROR]
    [ERROR]         Total time: 1 second
    [ERROR]
    [ERROR]         com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    C:\Users\...\SenchaCmd\.sencha\app\build-impl.xml:92: The following error occurred while executing this line:
    jar:file:/C:/Users/.../bin/Sencha/Cmd/3.0.0.230/sencha.jar!/com/sencha/ant/antlib.xml:347: shellscript returned: 1

    Any help to solve the build error?
    Any other way to compact the app before packaging it with Sencha Cmd 3?
    Last edited by $p00ky; 26 Oct 2012 at 11:12 PM. Reason: add info

  2. #2
    Sencha Premium Member
    Join Date
    Apr 2008
    Posts
    243
    Vote Rating
    21
    themightychris will become famous soon enough themightychris will become famous soon enough

      1  

    Default


    Your first error is:
    Code:
    [shellscript] '''compass''' is not recognized as an internal or external command
    You need to install compass, it's one of CMD's dependencies. First install the "rubygems" package on your system (mac comes with it) and then run "gem install compass". Before running CMD again make sure you can type just "compass" on your shell and it runs instead of complaining about command not found
    Chief Architect @ Jarv.us Innovations
    Co-captain @ Code for Philly
    Co-founder @ Devnuts - Philadelphia Hackerspace

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    48
    Vote Rating
    0
    $p00ky is on a distinguished road

      0  

    Default


    Worked!
    Thanks for your help.

  4. #4
    Sencha Premium Member akpotosufredrick's Avatar
    Join Date
    Jan 2011
    Posts
    68
    Vote Rating
    0
    akpotosufredrick is on a distinguished road

      0  

    Default


    ruby compass and sass are installed but i still get the same error

  5. #5
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,334
    Vote Rating
    129
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    Quote Originally Posted by akpotosufredrick View Post
    ruby compass and sass are installed but i still get the same error
    Does this thread look like what you are seeing?

    http://www.sencha.com/forum/showthre...ror-on-windows
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  6. #6
    Sencha Premium Member akpotosufredrick's Avatar
    Join Date
    Jan 2011
    Posts
    68
    Vote Rating
    0
    akpotosufredrick is on a distinguished road

      0  

    Default


    no itsmore like this: but my java_home is set to the jdk:
    Code:
         [echo] ----------
         [echo] Handling BuildConfig class...
    [buildconfig] Generating BuildConfig class.
    
    
    -pre-compile:
    
    
    -compile:
    
    
    BUILD FAILED
    C:\Android\android-sdk\tools\ant\build.xml:679: The following error occurred whi
    le executing this line:
    C:\Android\android-sdk\tools\ant\build.xml:692: Unable to find a javac compiler;
    
    
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "C:\Program Files (x86)\Java\jre7"
    
    
    Total time: 1 second
    ""C:/Android/android-sdk\tools\android" create project --target android-8 --name
     DerLiebesrechner --activity STActivity --path "C:\xampp\htdocs\liebesrechner-2.
    0\build\native\/" --package com.freakpwebdesign.liebesrechner"
    Could not run ant with error: 1
    Failed to package application
    
    
    [ERROR]
    [ERROR]         BUILD FAILED
    [ERROR]         com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    [ERROR]         C:\xampp\htdocs\liebesrechner-2.0\.sencha\app\build-impl.xml:120
    : javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedExcep
    tion: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (<Un
    known source>#673) in <Unknown source> at line number 673
    [ERROR]                 at com.sencha.exceptions.BasicException.wrap(BasicExcept
    ion.java:43)
    [ERROR]                 at com.sencha.cli.Command.dispatch(Command.java:104)
    [ERROR]                 at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERROR]                 at com.sencha.cli.AbstractCommand.dispatch(AbstractComma
    nd.java:184)
    [ERROR]                 at com.sencha.ant.SenchaCommandTask.doExecute(SenchaComm
    andTask.java:58)
    [ERROR]                 at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:2
    2)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERROR]                 at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERROR]                 at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERROR]                 at org.apache.tools.ant.Project.executeTarget(Project.ja
    va:1368)
    [ERROR]                 at org.apache.tools.ant.helper.DefaultExecutor.executeTa
    rgets(DefaultExecutor.java:41)
    [ERROR]                 at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERROR]                 at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERROR]                 at com.sencha.ant.AntRunner.run(AntRunner.java:72)
    [ERROR]                 at com.sencha.command.BasePluginCommands$BasePluginComma
    nd.run(BasePluginCommands.java:80)
    [ERROR]                 at com.sencha.command.BasePluginCommands$BaseNamePathCom
    mand.run(BasePluginCommands.java:120)
    [ERROR]                 at com.sencha.command.app.AppCommands$BuildCommand.execu
    te(AppCommands.java:96)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERROR]                 at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERROR]                 at com.sencha.cli.Commands.dispatch(Commands.java:49)
    [ERROR]                 at com.sencha.cli.AbstractCommand.dispatch(AbstractComma
    nd.java:184)
    [ERROR]                 at com.sencha.command.Sencha.main(Sencha.java:58)
    [ERROR]         Caused by: C:\xampp\htdocs\liebesrechner-2.0\.sencha\app\build-i
    mpl.xml:126: The following error occurred while executing this line:
    [ERROR]         C:\xampp\htdocs\liebesrechner-2.0\.sencha\app\build-impl.xml:120
    : javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedExcep
    tion: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (<Un
    known source>#673) in <Unknown source> at line number 673
    [ERROR]                 at org.apache.tools.ant.ProjectHelper.addLocationToBuild
    Exception(ProjectHelper.java:551)
    [ERROR]                 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
    4)
    [ERROR]                 at org.apache.tools.ant.taskdefs.CallTarget.execute(Call
    Target.java:105)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERROR]                 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
    ource)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERROR]                 at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERROR]                 at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERROR]                 at org.apache.tools.ant.Project.executeTarget(Project.ja
    va:1368)
    [ERROR]                 at org.apache.tools.ant.helper.DefaultExecutor.executeTa
    rgets(DefaultExecutor.java:41)
    [ERROR]                 at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERROR]                 at com.sencha.ant.AntRunner.run(AntRunner.java:156)
    [ERROR]                 at com.sencha.ant.AntRunner.run(AntRunner.java:80)
    [ERROR]                 at com.sencha.command.ant.AntCommand.execute(AntCommand.
    java:74)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at com.sencha.cli.Command.dispatch(Command.java:78)
    [ERROR]                 ... 31 more
    [ERROR]         Caused by: C:\xampp\htdocs\liebesrechner-2.0\.sencha\app\build-i
    mpl.xml:120: javax.script.ScriptException: sun.org.mozilla.javascript.internal.W
    rappedException: Wrapped com.sencha.exceptions.ExBuild: failed running native pa
    ckager (<Unknown source>#673) in <Unknown source> at line number 673
    [ERROR]                 at org.apache.tools.ant.util.ReflectUtil.toBuildExceptio
    n(ReflectUtil.java:183)
    [ERROR]                 at org.apache.tools.ant.util.ReflectUtil.throwBuildExcep
    tion(ReflectUtil.java:166)
    [ERROR]                 at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectU
    til.java:110)
    [ERROR]                 at org.apache.tools.ant.util.ReflectWrapper.invoke(Refle
    ctWrapper.java:81)
    [ERROR]                 at org.apache.tools.ant.util.optional.JavaxScriptRunner.
    evaluateScript(JavaxScriptRunner.java:103)
    [ERROR]                 at org.apache.tools.ant.util.optional.JavaxScriptRunner.
    executeScript(JavaxScriptRunner.java:67)
    [ERROR]                 at org.apache.tools.ant.taskdefs.optional.script.ScriptD
    ef.executeScript(ScriptDef.java:350)
    [ERROR]                 at org.apache.tools.ant.taskdefs.optional.script.ScriptD
    efBase.execute(ScriptDefBase.java:50)
    [ERROR]                 at org.apache.tools.ant.UnknownElement.execute(UnknownEl
    ement.java:291)
    [ERROR]                 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
    ource)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
    ispatchUtils.java:106)
    [ERROR]                 at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERROR]                 at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERROR]                 at org.apache.tools.ant.Target.performTasks(Target.java:
    413)
    [ERROR]                 at org.apache.tools.ant.Project.executeSortedTargets(Pro
    ject.java:1399)
    [ERROR]                 at org.apache.tools.ant.helper.SingleCheckExecutor.execu
    teTargets(SingleCheckExecutor.java:38)
    [ERROR]                 at org.apache.tools.ant.Project.executeTargets(Project.j
    ava:1251)
    [ERROR]                 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
    2)
    [ERROR]                 ... 52 more
    [ERROR]         Caused by: javax.script.ScriptException: sun.org.mozilla.javascr
    ipt.internal.WrappedException: Wrapped com.sencha.exceptions.ExBuild: failed run
    ning native packager (<Unknown source>#673) in <Unknown source> at line number 6
    73
    [ERROR]                 at com.sun.script.javascript.RhinoScriptEngine.eval(Unkn
    own Source)
    [ERROR]                 at com.sun.script.javascript.RhinoScriptEngine.eval(Unkn
    own Source)
    [ERROR]                 at javax.script.AbstractScriptEngine.eval(Unknown Source
    )
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
    ethod)
    [ERROR]                 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
    ource)
    [ERROR]                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
    wn Source)
    [ERROR]                 at java.lang.reflect.Method.invoke(Unknown Source)
    [ERROR]                 at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectU
    til.java:108)
    [ERROR]                 ... 69 more
    [ERROR]         Caused by: sun.org.mozilla.javascript.internal.WrappedException:
     Wrapped com.sencha.exceptions.ExBuild: failed running native packager (<Unknown
     source>#673)
    [ERROR]                 at sun.org.mozilla.javascript.internal.Context.throwAsSc
    riptRuntimeEx(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.MemberBox.invoke(
    Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.NativeJavaMethod.
    call(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.Interpreter.inter
    pretLoop(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.Interpreter.inter
    pret(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.InterpretedFuncti
    on.call(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.ContextFactory.do
    TopCall(Unknown Source)
    [ERROR]                 at com.sun.script.javascript.RhinoScriptEngine$1.superDo
    TopCall(Unknown Source)
    [ERROR]                 at com.sun.script.javascript.RhinoScriptEngine$1.doTopCa
    ll(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.ScriptRuntime.doT
    opCall(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.InterpretedFuncti
    on.exec(Unknown Source)
    [ERROR]                 at sun.or
    [ERROR]         g.mozilla.javascript.internal.Context.evaluateReader(Unknown Sou
    rce)
    [ERROR]                 ... 77 more
    [ERROR]         Caused by: com.sencha.exceptions.ExBuild: failed running native
    packager
    [ERROR]                 at sun.reflect.NativeConstructorAccessorImpl.newInstance
    0(Native Method)
    [ERROR]                 at sun.reflect.NativeConstructorAccessorImpl.newInstance
    (Unknown Source)
    [ERROR]                 at sun.reflect.DelegatingConstructorAccessorImpl.newInst
    ance(Unknown Source)
    [ERROR]                 at java.lang.reflect.Constructor.newInstance(Unknown Sou
    rce)
    [ERROR]                 at sun.org.mozilla.javascript.internal.MemberBox.newInst
    ance(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.NativeJavaClass.c
    onstructSpecific(Unknown Source)
    [ERROR]                 at sun.org.mozilla.javascript.internal.NativeJavaClass.c
    onstruct(Unknown Source)
    [ERROR]                 ... 86 more
    [ERROR]
    [ERROR]         Total time: 37 seconds
    [ERROR]
    [ERROR]         com.sencha.exceptions.BasicException: The following error occurr
    ed while executing this line:
    C:\xampp\htdocs\liebesrechner-2.0\.sencha\app\build-impl.xml:120: javax.script.S
    criptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped co
    m.sencha.exceptions.ExBuild: failed running native packager (<Unknown source>#67
    3) in <Unknown source> at line number 673

  7. #7
    Sencha User
    Join Date
    Apr 2011
    Location
    Pune,India
    Posts
    28
    Vote Rating
    3
    riku351 is on a distinguished road

      0  

    Default I am facing the same error

    I am facing the same error


    Hey akpotosufredrick,

    I am getting the same error as yours. Did you get any solution to that ?

    Guys please help me out.


    Thanks

  8. #8
    Sencha User
    Join Date
    Apr 2011
    Location
    Pune,India
    Posts
    28
    Vote Rating
    3
    riku351 is on a distinguished road

      0  

    Default


    Hi akpotosufredrick,
    Did u get any solution for your issue. I am facing the same issue now.
    Please help me out if u did solve ur issue.


    Thanks

  9. #9
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,334
    Vote Rating
    129
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    Quote Originally Posted by riku351 View Post
    I am facing the same issue now.
    @riku351 -

    This thread has wondered through a few different issues and the part you are asking about is no more then the "mobile packager failed and exited with non-zero" ....

    So a few quick notes to help us help you:

    - Make sure you have the latest Cmd which is 3.0.2
    - Start a new thread and post your details: OS, Cmd version, Touch version etc.
    - Describe what you have tried and what resulted. If you have organized things differently then a Cmd generated app or changed your sencha.cfg then please mention those particulars.
    - Be sure to use "sencha -debug app build" and post the exact log of console output in a CODE block.

    If the mobile packager is failing for you, we will probably need your packager.json
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  10. #10
    Sencha User
    Join Date
    Apr 2011
    Location
    Pune,India
    Posts
    28
    Vote Rating
    3
    riku351 is on a distinguished road

      0  

    Default


    Hi Don,

    Thanks for the tips.
    I tried with all of your previous tips and finally could able to generate the .apk file.

    But the .apk is not running on LG Google Nexus 4.
    The loading icons never move but the same app is running on HTC device with 4.0


    Thanks