PDA

View Full Version : Build error with Sencha Touch 2.1



nmadrane
26 Dec 2012, 5:44 PM
I am using Sencha Build 3.0.0.250 with Sencha Touch 2.1. Everything was working fine. I don't know what I modified but suddenly I get the following exception when I run "sencha app build production".


The error is "failed to compress input". I couldn't find anything about this on Google. Do you have any idea on what's is happening here ?


Thanks a lot.


====================================


[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurr
ed while executing this line:
[ERR] D:\Projdev\OpusServices\Projects\Project\Dev\WebApplication1\
Repository\Application-60\Preview\.sencha\app\build-impl.xml:120: javax.script.S
criptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped co
m.sencha.exceptions.ExBuild: Failed to compress input (<Unknown source>#514) in
<Unknown source> at line number 514
[ERR] at com.sencha.exceptions.BasicException.wrap(BasicExcept
ion.java:43)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:104)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.cli.AbstractCommand.dispatch(AbstractComma
nd.java:182)
[ERR] at com.sencha.ant.SenchaCommandTask.doExecute(SenchaComm
andTask.java:58)
[ERR] at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:2
2)
[ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownEl
ement.java:291)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
ource)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
ispatchUtils.java:106)
[ERR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERR] at org.apache.tools.ant.Target.performTasks(Target.java:
413)
[ERR] at org.apache.tools.ant.Project.executeSortedTargets(Pro
ject.java:1399)
[ERR] at org.apache.tools.ant.Project.executeTarget(Project.ja
va:1368)
[ERR] at org.apache.tools.ant.helper.DefaultExecutor.executeTa
rgets(DefaultExecutor.java:41)
[ERR] at org.apache.tools.ant.Project.executeTargets(Project.j
ava:1251)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:156)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:72)
[ERR] at com.sencha.command.BasePluginCommands$BasePluginComma
nd.run(BasePluginCommands.java:87)
[ERR] at com.sencha.command.BasePluginCommands$BasePluginComma
nd.run(BasePluginCommands.java:91)
[ERR] at com.sencha.command.BasePluginCommands$BaseNamePathCom
mand.run(BasePluginCommands.java:135)
[ERR] at com.sencha.command.app.AppCommands$BuildCommand.execu
te(AppCommands.java:106)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
ource)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:78)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
[ERR] at com.sencha.command.Sencha.main(Sencha.java:71)
[ERR] Caused by: D:\Projdev\OpusServices\Projects\Project\Dev\WebAp
plication1\Repository\Application-60\Preview\.sencha\app\build-impl.xml:126: The
following error occurred while executing this line:
[ERR] D:\Projdev\OpusServices\Projects\Project\Dev\WebApplication1\
Repository\Application-60\Preview\.sencha\app\build-impl.xml:120: javax.script.S
criptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped co
m.sencha.exceptions.ExBuild: Failed to compress input (<Unknown source>#514) in
<Unknown source> at line number 514
[ERR] at org.apache.tools.ant.ProjectHelper.addLocationToBuild
Exception(ProjectHelper.java:551)
[ERR] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
4)
[ERR] at org.apache.tools.ant.taskdefs.CallTarget.execute(Call
Target.java:105)
[ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownEl
ement.java:291)
[ERR] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
ource)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
ispatchUtils.java:106)
[ERR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERR] at org.apache.tools.ant.Target.performTasks(Target.java:
413)
[ERR] at org.apache.tools.ant.Project.executeSortedTargets(Pro
ject.java:1399)
[ERR] at org.apache.tools.ant.Project.executeTarget(Project.ja
va:1368)
[ERR] at org.apache.tools.ant.helper.DefaultExecutor.executeTa
rgets(DefaultExecutor.java:41)
[ERR] at org.apache.tools.ant.Project.executeTargets(Project.j
ava:1251)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:156)
[ERR] at com.sencha.ant.AntRunner.run(AntRunner.java:80)
[ERR] at com.sencha.command.ant.AntCommand.execute(AntCommand.
java:75)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
ource)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:78)
[ERR] ... 31 more
[ERR] Caused by: D:\Projdev\OpusServices\Projects\Project\Dev\WebAp
plication1\Repository\Application-60\Preview\.sencha\app\build-impl.xml:120: jav
ax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException:
Wrapped com.sencha.exceptions.ExBuild: Failed to compress input (<Unknown sourc
e>#514) in <Unknown source> at line number 514
[ERR] at org.apache.tools.ant.util.ReflectUtil.toBuildExceptio
n(ReflectUtil.java:183)
[ERR] at org.apache.tools.ant.util.ReflectUtil.throwBuildExcep
tion(ReflectUtil.java:166)
[ERR] at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectU
til.java:110)
[ERR] at org.apache.tools.ant.util.ReflectWrapper.invoke(Refle
ctWrapper.java:81)
[ERR] at org.apache.tools.ant.util.optional.JavaxScriptRunner.
evaluateScript(JavaxScriptRunner.java:103)
[ERR] at org.apache.tools.ant.util.optional.JavaxScriptRunner.
executeScript(JavaxScriptRunner.java:67)
[ERR] at org.apache.tools.ant.taskdefs.optional.script.ScriptD
ef.executeScript(ScriptDef.java:350)
[ERR] at org.apache.tools.ant.taskdefs.optional.script.ScriptD
efBase.execute(ScriptDefBase.java:50)
[ERR] at org.apache.tools.ant.UnknownElement.execute(UnknownEl
ement.java:291)
[ERR] at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown S
ource)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.dispatch.DispatchUtils.execute(D
ispatchUtils.java:106)
[ERR] at org.apache.tools.ant.Task.perform(Task.java:348)
[ERR] at org.apache.tools.ant.Target.execute(Target.java:392)
[ERR] at org.apache.tools.ant.Target.performTasks(Target.java:
413)
[ERR] at org.apache.tools.ant.Project.executeSortedTargets(Pro
ject.java:1399)
[ERR] at org.apache.tools.ant.helper.SingleCheckExecutor.execu
teTargets(SingleCheckExecutor.java:38)
[ERR] at org.apache.tools.ant.Project.executeTargets(Project.j
ava:1251)
[ERR] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:44
2)
[ERR] ... 52 more
[ERR] Caused by: javax.script.ScriptException: sun.org.mozilla.javascr
ipt.internal.WrappedException: Wrapped com.sencha.exceptions.ExBuild: Failed to
compress input (<Unknown source>#514) in <Unknown source> at line number 514
[ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(Unkn
own Source)
[ERR] at com.sun.script.javascript.RhinoScriptEngine.eval(Unkn
own Source)
[ERR] at javax.script.AbstractScriptEngine.eval(Unknown Source
)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[ERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
ource)
[ERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[ERR] at java.lang.reflect.Method.invoke(Unknown Source)
[ERR] at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectU
til.java:108)
[ERR] ... 69 more
[ERR] Total time: 2 minutes 27 seconds
[ERR] com.sencha.exceptions.BasicException: The following error occurr
ed while executing this line:
D:\Projdev\OpusServices\Projects\Project\Dev\WebApplication1\Repository\Appli
cation-60\Preview\.sencha\app\build-impl.xml:120: javax.script.ScriptException:
sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.excepti
ons.ExBuild: Failed to compress input (<Unknown source>#514) in <Unknown source>
at line number 514

nmadrane
27 Dec 2012, 2:00 AM
If I compare this log output with the one that was previously working, the exception arrives just after "Minified app.js" and before "Minified resources/css/app.css".

So it seems that there is a problem with the minification of my app.css file. Do you know which minify comand is actually ran by the sencha command ? I would like to type it manually so that I can see if it gives me a more detailed error message.

nmadrane
27 Dec 2012, 2:20 AM
I used an online CSS validator (http://jigsaw.w3.org/css-validator/validator) in order to check the syntax of my CSS file and I found some errors (missing commas, etc.). It is working now :)