google-code-export / wro4j

Automatically exported from code.google.com/p/wro4j
1 stars 1 forks source link

JRuby version in 1.7.7 buggy on Mac and Windows #908

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
wro4j 1.7.7 seems to be buggy on Mac and Windows due to this bug: 
https://github.com/jruby/jruby/issues/1914

Exceptions:

11:47:25 ERROR: Failed to process the resource: 
ro.isdc.wro.model.resource.Resource@5e0b4392[CSS,....scss,true] using 
processor: ...SassCssProcessor@e466dad. Reason: 
org.jruby.exceptions.RaiseException: (LoadError) library `java' could not be 
loaded: java.lang.RuntimeException: native error calling lstat: No such file or 
directory 
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/ant-javafx.j
ar/jruby/java.rb 
(ro.isdc.wro.model.resource.processor.decorator.ExceptionHandlingProcessorDecora
tor - ExceptionHandlingProcessorDecorator.java:65)

11:54:44 ERROR: Failed to process the resource: 
ro.isdc.wro.model.resource.Resource@1b5fbaeb[CSS,....scss,true] using 
processor: ...SassCssProcessor@3b64c8b2. Reason: 
org.jruby.exceptions.RaiseException: (LoadError) library `java' could not be 
loaded: java.lang.RuntimeException: native error calling lstat: No such file or 
directory C:/Program Files/Java/jdk/jre/lib/charsets.jar/jruby/java.rb 
(ro.isdc.wro.model.resource.processor.decorator.ExceptionHandlingProcessorDecora
tor - ExceptionHandlingProcessorDecorator.java:65)

I'll try to figure out when this bug was introduced, maybe the next wro4j 
version could do a downgrade, but not to JRuby 1.7.11 because that one is buggy 
with <parallelProcessing> (multithreading exceptions).

Original issue reported on code.google.com by euiw...@gmail.com on 16 Oct 2014 at 10:59

GoogleCodeExporter commented 9 years ago
You can change the jruby dependency to a newer (or older) version. If you have 
a suggestion for a specific jruby version, please let me know.

Original comment by alex.obj...@gmail.com on 16 Oct 2014 at 1:19

GoogleCodeExporter commented 9 years ago
This is what we ended up with:

        <dependency>
            <groupId>ro.isdc.wro4j</groupId>
            <artifactId>wro4j-extensions</artifactId>
            <version>1.7.7</version>
            <exclusions>
<!-- Some stuff excluded -->
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.jruby</groupId>
            <artifactId>jruby-core</artifactId>
            <version>1.7.11</version>
            <exclusions>
                <exclusion>
                    <groupId>com.github.jnr</groupId>
                    <artifactId>jnr-netdb</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.github.jnr</groupId>
                    <artifactId>jnr-x86asm</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.github.jnr</groupId>
                    <artifactId>jffi</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.yaml</groupId>
                    <artifactId>snakeyaml</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.jcraft</groupId>
                    <artifactId>jzlib</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.martiansoftware</groupId>
                    <artifactId>nailgun-server</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.jruby</groupId>
                    <artifactId>yecht</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.jruby</groupId>
            <artifactId>jruby-stdlib</artifactId>
            <version>1.7.11</version>
        </dependency>

Original comment by euiw...@gmail.com on 14 Dec 2014 at 8:08

GoogleCodeExporter commented 9 years ago
Thanks for updates.

and Windows

Original comment by alex.obj...@gmail.com on 15 Dec 2014 at 10:03

GoogleCodeExporter commented 9 years ago
This solved it for Mac and Windows if that's what you mean.

Original comment by euiw...@gmail.com on 16 Dec 2014 at 9:58

GoogleCodeExporter commented 9 years ago
@euweui Sorry for confusion. I was just thanking for update. There was no 
question regarding windows (it was a typo) :)...

Original comment by alex.obj...@gmail.com on 17 Dec 2014 at 2:06