cblock/yui-minify-resources — Issue #2: RuntimeException during JS minifying
Author: jako512
Created: 2012-02-13 01:50:37+00:00
State: open

I'm getting the following exception everytime javascript resource should be minified:

```
java.lang.RuntimeException
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceNumber(JavaScriptCompressor.java:299)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:336)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.(JavaScriptCompressor.java:533)
...
at com.blockconsult.yuiminifyresources.YuiJsMinifyResourceMapper$_map_closure1.doCall(YuiJsMinifyResourceMapper.groovy:29)
...
at com.blockconsult.yuiminifyresources.YuiJsMinifyResourceMapper$_map_closure1.call(YuiJsMinifyResourceMapper.groovy)
...
at com.blockconsult.yuiminifyresources.YuiJsMinifyResourceMapper$_map_closure1.call(YuiJsMinifyResourceMapper.groovy)
...
at com.blockconsult.yuiminifyresources.YuiJsMinifyResourceMapper.map(YuiJsMinifyResourceMapper.groovy:28)
at com.blockconsult.yuiminifyresources.YuiJsMinifyResourceMapper$map.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.grails.plugin.resource.CSSRewriterResourceMapper$map.call(Unknown Source)
at org.grails.plugin.resource.mapper.ResourceMapper.invoke(ResourceMapper.groovy:139)
...
```

I had to add exception as a second parameter to existing error log to see the stacktrace:

```java
log.error "Stopped minifying [${inputFile}]: ${e.message} Set log level to warn for more details.", e
```

I googled that this problem might be related to OpenJDK, but I am using Sun JVM 1.6.0_25-b06 on Win7-x64 (I tried both 32bit and 64bit JVM)