I'm having the same problems in Jetty (and I don't really see how it
could be related to the app server). My issue is that when it happens,
a HTTP 500 is returned and NO JavaScript! (...equals client side
errors...) If the exception was caught and the original javascript
returned then regardless if YUI worked or not, it would be less of an
issue. As is for now, I have to keep minification turned off.

Here's where I reported it last:

http://tapestry.1045711.n5.nabble.com/5-3-alpha-13-Combine-Minify-doesn-t-appear-to-work-td4800682.html#a4806803

Steve.


On 20 October 2011 21:49, Jochen Berger <foober...@googlemail.com> wrote:
> Hi there,
>
> I'm having issues with a webapp using Tapestry 5.3 with the yuicompressor
> mudile.
> It works fine in jetty but fails with a StringIndexOutOfBoundsException when
> deployed in Tomcat.
>
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
> range: 2194
>        at java.lang.String.substring(String.java:1934)
>        at
> com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceString(JavaScriptCompressor.java:267)
>        at
> com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:330)
>        at
> com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533)
>        at
> org.apache.tapestry5.internal.yuicompressor.JavaScriptResourceMinimizer.doMinimize(JavaScriptResourceMinimizer.java:97)
>        at
> org.apache.tapestry5.internal.yuicompressor.AbstractMinimizer$1.perform(AbstractMinimizer.java:68)
>        at
> org.apache.tapestry5.internal.TapestryInternalUtils$5.run(TapestryInternalUtils.java:594)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:51)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:48)
>        at
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
>
> Could this be related to
> http://yuilibrary.com/forum/viewtopic.php?p=20086 ?
> At least, my war contains both js-1.6R7.jar and yuicompressor-2.4.6.jar.
>
> Regards,
> Jochen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to