You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Victor Hugo Borja (JIRA)" <ji...@apache.org> on 2008/01/22 20:19:34 UTC

[jira] Created: (BUILDR-27) java_test_frameworks.rb failingto run JUnit on JRuby

java_test_frameworks.rb failingto run JUnit on JRuby 
-----------------------------------------------------

                 Key: BUILDR-27
                 URL: https://issues.apache.org/jira/browse/BUILDR-27
             Project: Buildr
          Issue Type: Bug
          Components: JRuby, Test frameworks
    Affects Versions: 1.3
            Reporter: Victor Hugo Borja
             Fix For: 1.3
         Attachments: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch

Assaf, does jruby -S spec spec/java_test_frameworks.rb goes green for you? 

java_test_frameworks.rb was failing for me when running with JRuby, printing the following stacktrace for each spec example:

org.apache.tools.ant.BuildException: Errors while applying transformations: Fatal error during transformation
AggregateTransformer.java:266:in `org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform'
XMLResultAggregator.java:158:in `org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute'
UnknownElement.java:288:in `org.apache.tools.ant.UnknownElement.execute'
NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
Method.java:597:in `java.lang.reflect.Method.invoke'
JavaMethod.java:199:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
JavaMethod.java:175:in `org.jruby.javasupport.JavaMethod.invoke'
JavaClass.java:405:in `org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute'
SimpleCallbackMethod.java:70:in `org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
CallSite.java:167:in `org.jruby.runtime.CallSite$ICNonBlockCallSite.call'

I managed to get it working by adding the classpath jars to the systemClassLoader instead of using the jrubyClassLoader, I don't know if this is the best solution, anyway I've attached the patch that makes it work for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-27) java_test_frameworks.rb failingto run JUnit on JRuby

Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Hugo Borja updated BUILDR-27:
------------------------------------

    Attachment: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch

> java_test_frameworks.rb failingto run JUnit on JRuby 
> -----------------------------------------------------
>
>                 Key: BUILDR-27
>                 URL: https://issues.apache.org/jira/browse/BUILDR-27
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby, Test frameworks
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch
>
>
> Assaf, does jruby -S spec spec/java_test_frameworks.rb goes green for you? 
> java_test_frameworks.rb was failing for me when running with JRuby, printing the following stacktrace for each spec example:
> org.apache.tools.ant.BuildException: Errors while applying transformations: Fatal error during transformation
> AggregateTransformer.java:266:in `org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform'
> XMLResultAggregator.java:158:in `org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute'
> UnknownElement.java:288:in `org.apache.tools.ant.UnknownElement.execute'
> NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
> NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
> DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
> Method.java:597:in `java.lang.reflect.Method.invoke'
> JavaMethod.java:199:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
> JavaMethod.java:175:in `org.jruby.javasupport.JavaMethod.invoke'
> JavaClass.java:405:in `org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute'
> SimpleCallbackMethod.java:70:in `org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
> CallSite.java:167:in `org.jruby.runtime.CallSite$ICNonBlockCallSite.call'
> I managed to get it working by adding the classpath jars to the systemClassLoader instead of using the jrubyClassLoader, I don't know if this is the best solution, anyway I've attached the patch that makes it work for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (BUILDR-27) java_test_frameworks.rb failingto run JUnit on JRuby

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Assaf Arkin reassigned BUILDR-27:
---------------------------------

    Assignee: Assaf Arkin

> java_test_frameworks.rb failingto run JUnit on JRuby 
> -----------------------------------------------------
>
>                 Key: BUILDR-27
>                 URL: https://issues.apache.org/jira/browse/BUILDR-27
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby, Test frameworks
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Assignee: Assaf Arkin
>             Fix For: 1.3
>
>         Attachments: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch
>
>
> Assaf, does jruby -S spec spec/java_test_frameworks.rb goes green for you? 
> java_test_frameworks.rb was failing for me when running with JRuby, printing the following stacktrace for each spec example:
> org.apache.tools.ant.BuildException: Errors while applying transformations: Fatal error during transformation
> AggregateTransformer.java:266:in `org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform'
> XMLResultAggregator.java:158:in `org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute'
> UnknownElement.java:288:in `org.apache.tools.ant.UnknownElement.execute'
> NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
> NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
> DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
> Method.java:597:in `java.lang.reflect.Method.invoke'
> JavaMethod.java:199:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
> JavaMethod.java:175:in `org.jruby.javasupport.JavaMethod.invoke'
> JavaClass.java:405:in `org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute'
> SimpleCallbackMethod.java:70:in `org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
> CallSite.java:167:in `org.jruby.runtime.CallSite$ICNonBlockCallSite.call'
> I managed to get it working by adding the classpath jars to the systemClassLoader instead of using the jrubyClassLoader, I don't know if this is the best solution, anyway I've attached the patch that makes it work for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (BUILDR-27) java_test_frameworks.rb failingto run JUnit on JRuby

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Assaf Arkin resolved BUILDR-27.
-------------------------------

    Resolution: Fixed

> java_test_frameworks.rb failingto run JUnit on JRuby 
> -----------------------------------------------------
>
>                 Key: BUILDR-27
>                 URL: https://issues.apache.org/jira/browse/BUILDR-27
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby, Test frameworks
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Assignee: Assaf Arkin
>             Fix For: 1.3
>
>         Attachments: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch
>
>
> Assaf, does jruby -S spec spec/java_test_frameworks.rb goes green for you? 
> java_test_frameworks.rb was failing for me when running with JRuby, printing the following stacktrace for each spec example:
> org.apache.tools.ant.BuildException: Errors while applying transformations: Fatal error during transformation
> AggregateTransformer.java:266:in `org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform'
> XMLResultAggregator.java:158:in `org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute'
> UnknownElement.java:288:in `org.apache.tools.ant.UnknownElement.execute'
> NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
> NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
> DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
> Method.java:597:in `java.lang.reflect.Method.invoke'
> JavaMethod.java:199:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
> JavaMethod.java:175:in `org.jruby.javasupport.JavaMethod.invoke'
> JavaClass.java:405:in `org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute'
> SimpleCallbackMethod.java:70:in `org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
> CallSite.java:167:in `org.jruby.runtime.CallSite$ICNonBlockCallSite.call'
> I managed to get it working by adding the classpath jars to the systemClassLoader instead of using the jrubyClassLoader, I don't know if this is the best solution, anyway I've attached the patch that makes it work for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-27) java_test_frameworks.rb failingto run JUnit on JRuby

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561536#action_12561536 ] 

Assaf Arkin commented on BUILDR-27:
-----------------------------------

I'm still on RC1, are you testing against trunk?

> java_test_frameworks.rb failingto run JUnit on JRuby 
> -----------------------------------------------------
>
>                 Key: BUILDR-27
>                 URL: https://issues.apache.org/jira/browse/BUILDR-27
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby, Test frameworks
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>             Fix For: 1.3
>
>         Attachments: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch
>
>
> Assaf, does jruby -S spec spec/java_test_frameworks.rb goes green for you? 
> java_test_frameworks.rb was failing for me when running with JRuby, printing the following stacktrace for each spec example:
> org.apache.tools.ant.BuildException: Errors while applying transformations: Fatal error during transformation
> AggregateTransformer.java:266:in `org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform'
> XMLResultAggregator.java:158:in `org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute'
> UnknownElement.java:288:in `org.apache.tools.ant.UnknownElement.execute'
> NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
> NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
> DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
> Method.java:597:in `java.lang.reflect.Method.invoke'
> JavaMethod.java:199:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
> JavaMethod.java:175:in `org.jruby.javasupport.JavaMethod.invoke'
> JavaClass.java:405:in `org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute'
> SimpleCallbackMethod.java:70:in `org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
> CallSite.java:167:in `org.jruby.runtime.CallSite$ICNonBlockCallSite.call'
> I managed to get it working by adding the classpath jars to the systemClassLoader instead of using the jrubyClassLoader, I don't know if this is the best solution, anyway I've attached the patch that makes it work for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (BUILDR-27) java_test_frameworks.rb failingto run JUnit on JRuby

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on BUILDR-27 started by Assaf Arkin.

> java_test_frameworks.rb failingto run JUnit on JRuby 
> -----------------------------------------------------
>
>                 Key: BUILDR-27
>                 URL: https://issues.apache.org/jira/browse/BUILDR-27
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby, Test frameworks
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Assignee: Assaf Arkin
>             Fix For: 1.3
>
>         Attachments: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch
>
>
> Assaf, does jruby -S spec spec/java_test_frameworks.rb goes green for you? 
> java_test_frameworks.rb was failing for me when running with JRuby, printing the following stacktrace for each spec example:
> org.apache.tools.ant.BuildException: Errors while applying transformations: Fatal error during transformation
> AggregateTransformer.java:266:in `org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform'
> XMLResultAggregator.java:158:in `org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute'
> UnknownElement.java:288:in `org.apache.tools.ant.UnknownElement.execute'
> NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
> NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
> DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
> Method.java:597:in `java.lang.reflect.Method.invoke'
> JavaMethod.java:199:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
> JavaMethod.java:175:in `org.jruby.javasupport.JavaMethod.invoke'
> JavaClass.java:405:in `org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute'
> SimpleCallbackMethod.java:70:in `org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
> CallSite.java:167:in `org.jruby.runtime.CallSite$ICNonBlockCallSite.call'
> I managed to get it working by adding the classpath jars to the systemClassLoader instead of using the jrubyClassLoader, I don't know if this is the best solution, anyway I've attached the patch that makes it work for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-27) java_test_frameworks.rb failingto run JUnit on JRuby

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563415#action_12563415 ] 

Assaf Arkin commented on BUILDR-27:
-----------------------------------

With a variant of this fix in SVN, I got JRuby to build and run tests on both Linux and OS/X.  Can you confirm on your end?

> java_test_frameworks.rb failingto run JUnit on JRuby 
> -----------------------------------------------------
>
>                 Key: BUILDR-27
>                 URL: https://issues.apache.org/jira/browse/BUILDR-27
>             Project: Buildr
>          Issue Type: Bug
>          Components: JRuby, Test frameworks
>    Affects Versions: 1.3
>            Reporter: Victor Hugo Borja
>            Assignee: Assaf Arkin
>             Fix For: 1.3
>
>         Attachments: 0001-Modified-Java.load-to-add-jars-to-systemClassLoader.patch
>
>
> Assaf, does jruby -S spec spec/java_test_frameworks.rb goes green for you? 
> java_test_frameworks.rb was failing for me when running with JRuby, printing the following stacktrace for each spec example:
> org.apache.tools.ant.BuildException: Errors while applying transformations: Fatal error during transformation
> AggregateTransformer.java:266:in `org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform'
> XMLResultAggregator.java:158:in `org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute'
> UnknownElement.java:288:in `org.apache.tools.ant.UnknownElement.execute'
> NativeMethodAccessorImpl.java:-2:in `sun.reflect.NativeMethodAccessorImpl.invoke0'
> NativeMethodAccessorImpl.java:39:in `sun.reflect.NativeMethodAccessorImpl.invoke'
> DelegatingMethodAccessorImpl.java:25:in `sun.reflect.DelegatingMethodAccessorImpl.invoke'
> Method.java:597:in `java.lang.reflect.Method.invoke'
> JavaMethod.java:199:in `org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling'
> JavaMethod.java:175:in `org.jruby.javasupport.JavaMethod.invoke'
> JavaClass.java:405:in `org.jruby.javasupport.JavaClass$InstanceMethodInvoker.execute'
> SimpleCallbackMethod.java:70:in `org.jruby.internal.runtime.methods.SimpleCallbackMethod.call'
> CallSite.java:167:in `org.jruby.runtime.CallSite$ICNonBlockCallSite.call'
> I managed to get it working by adding the classpath jars to the systemClassLoader instead of using the jrubyClassLoader, I don't know if this is the best solution, anyway I've attached the patch that makes it work for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.