You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Alex Boisvert (JIRA)" <ji...@apache.org> on 2008/10/05 07:21:46 UTC

[jira] Created: (BUILDR-158) IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)

IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)
---------------------------------------------------------------------------------

                 Key: BUILDR-158
                 URL: https://issues.apache.org/jira/browse/BUILDR-158
             Project: Buildr
          Issue Type: Bug
            Reporter: Alex Boisvert
             Fix For: 1.3.3
         Attachments: error.log

I start the nailgun server:

boisvert@boog:~/scala/test$ jruby -S buildr -rbuildr/nailgun nailgun:start 
(in /home/boisvert/scala/test, development)
Booting Buildr nailgun server...
Buildr::Nailgun::NGServer(Buildr 1.3.3 (JRuby 1.1.4), 127.0.0.1, 2113) Started.
[Completed] Your build has completed: /home/boisvert/scala/test
buildr nailgun:start
Completed in 3.384s
Got connection from /home/boisvert/scala/test

then try to run the build in a separate terminal:

boisvert@boog:~/scala/process$ ng build
java.lang.IllegalArgumentException: array element type mismatch
	at java.lang.reflect.Array.set(Native Method)
	at org.jruby.javasupport.JavaArray.setWithExceptionHandling(JavaArray.java:121)
	at org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray(ArrayJavaAddons.java:108)
	at org.jruby.javasupport.JavaClass.javaArrayFromRubyArray(JavaClass.java:1511)
...
... (see full log attached)
...

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


[jira] Updated: (BUILDR-158) IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)

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

Alex Boisvert updated BUILDR-158:
---------------------------------

    Attachment: error.log

> IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)
> ---------------------------------------------------------------------------------
>
>                 Key: BUILDR-158
>                 URL: https://issues.apache.org/jira/browse/BUILDR-158
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Alex Boisvert
>             Fix For: 1.3.3
>
>         Attachments: error.log
>
>
> I start the nailgun server:
> boisvert@boog:~/scala/test$ jruby -S buildr -rbuildr/nailgun nailgun:start 
> (in /home/boisvert/scala/test, development)
> Booting Buildr nailgun server...
> Buildr::Nailgun::NGServer(Buildr 1.3.3 (JRuby 1.1.4), 127.0.0.1, 2113) Started.
> [Completed] Your build has completed: /home/boisvert/scala/test
> buildr nailgun:start
> Completed in 3.384s
> Got connection from /home/boisvert/scala/test
> then try to run the build in a separate terminal:
> boisvert@boog:~/scala/process$ ng build
> java.lang.IllegalArgumentException: array element type mismatch
> 	at java.lang.reflect.Array.set(Native Method)
> 	at org.jruby.javasupport.JavaArray.setWithExceptionHandling(JavaArray.java:121)
> 	at org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray(ArrayJavaAddons.java:108)
> 	at org.jruby.javasupport.JavaClass.javaArrayFromRubyArray(JavaClass.java:1511)
> ...
> ... (see full log attached)
> ...

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


[jira] Commented: (BUILDR-158) IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636870#action_12636870 ] 

Alex Boisvert commented on BUILDR-158:
--------------------------------------

I tried with jruby-trunk r7831 but getting a different exception:

java.lang.NoSuchMethodException: org.jruby.RubyIO.<init>(null, java.io.OutputStream)
	at java.lang.Class.getConstructor0(Class.java:2706)
	at java.lang.Class.getDeclaredConstructor(Class.java:1985)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jruby.javasupport.JavaMethod.invokeWithExceptionHandling(JavaMethod.java:298)
...
... (see full stack in attachments)
...


> IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)
> ---------------------------------------------------------------------------------
>
>                 Key: BUILDR-158
>                 URL: https://issues.apache.org/jira/browse/BUILDR-158
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Alex Boisvert
>             Fix For: 1.3.3
>
>         Attachments: error.log, error_jruby_trunk_r7831.txt
>
>
> I start the nailgun server:
> boisvert@boog:~/scala/test$ jruby -S buildr -rbuildr/nailgun nailgun:start 
> (in /home/boisvert/scala/test, development)
> Booting Buildr nailgun server...
> Buildr::Nailgun::NGServer(Buildr 1.3.3 (JRuby 1.1.4), 127.0.0.1, 2113) Started.
> [Completed] Your build has completed: /home/boisvert/scala/test
> buildr nailgun:start
> Completed in 3.384s
> Got connection from /home/boisvert/scala/test
> then try to run the build in a separate terminal:
> boisvert@boog:~/scala/process$ ng build
> java.lang.IllegalArgumentException: array element type mismatch
> 	at java.lang.reflect.Array.set(Native Method)
> 	at org.jruby.javasupport.JavaArray.setWithExceptionHandling(JavaArray.java:121)
> 	at org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray(ArrayJavaAddons.java:108)
> 	at org.jruby.javasupport.JavaClass.javaArrayFromRubyArray(JavaClass.java:1511)
> ...
> ... (see full log attached)
> ...

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


[jira] Commented: (BUILDR-158) IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636869#action_12636869 ] 

Alex Boisvert commented on BUILDR-158:
--------------------------------------

Maybe due to http://jira.codehaus.org/browse/JRUBY-2957

> IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)
> ---------------------------------------------------------------------------------
>
>                 Key: BUILDR-158
>                 URL: https://issues.apache.org/jira/browse/BUILDR-158
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Alex Boisvert
>             Fix For: 1.3.3
>
>         Attachments: error.log
>
>
> I start the nailgun server:
> boisvert@boog:~/scala/test$ jruby -S buildr -rbuildr/nailgun nailgun:start 
> (in /home/boisvert/scala/test, development)
> Booting Buildr nailgun server...
> Buildr::Nailgun::NGServer(Buildr 1.3.3 (JRuby 1.1.4), 127.0.0.1, 2113) Started.
> [Completed] Your build has completed: /home/boisvert/scala/test
> buildr nailgun:start
> Completed in 3.384s
> Got connection from /home/boisvert/scala/test
> then try to run the build in a separate terminal:
> boisvert@boog:~/scala/process$ ng build
> java.lang.IllegalArgumentException: array element type mismatch
> 	at java.lang.reflect.Array.set(Native Method)
> 	at org.jruby.javasupport.JavaArray.setWithExceptionHandling(JavaArray.java:121)
> 	at org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray(ArrayJavaAddons.java:108)
> 	at org.jruby.javasupport.JavaClass.javaArrayFromRubyArray(JavaClass.java:1511)
> ...
> ... (see full log attached)
> ...

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


[jira] Updated: (BUILDR-158) IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)

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

Victor Hugo Borja updated BUILDR-158:
-------------------------------------

    Fix Version/s:     (was: 1.3.3)
                   1.3.4

The fix for this was on rake 0.8.3 branch, so just borrowed it into trunk.

The nailgun server works unless you modify the buildfile while the server is running. When a buildfile is modified, the nailgun server uses a newly created runtime with buildr loaded on it by doing require('buildr'), however it seems Buildr is not being initialized properly on those child runtimes, I'll schedule this issue for the next release. 


> IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)
> ---------------------------------------------------------------------------------
>
>                 Key: BUILDR-158
>                 URL: https://issues.apache.org/jira/browse/BUILDR-158
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Alex Boisvert
>             Fix For: 1.3.4
>
>         Attachments: error.log, error_jruby_trunk_r7831.txt
>
>
> I start the nailgun server:
> boisvert@boog:~/scala/test$ jruby -S buildr -rbuildr/nailgun nailgun:start 
> (in /home/boisvert/scala/test, development)
> Booting Buildr nailgun server...
> Buildr::Nailgun::NGServer(Buildr 1.3.3 (JRuby 1.1.4), 127.0.0.1, 2113) Started.
> [Completed] Your build has completed: /home/boisvert/scala/test
> buildr nailgun:start
> Completed in 3.384s
> Got connection from /home/boisvert/scala/test
> then try to run the build in a separate terminal:
> boisvert@boog:~/scala/process$ ng build
> java.lang.IllegalArgumentException: array element type mismatch
> 	at java.lang.reflect.Array.set(Native Method)
> 	at org.jruby.javasupport.JavaArray.setWithExceptionHandling(JavaArray.java:121)
> 	at org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray(ArrayJavaAddons.java:108)
> 	at org.jruby.javasupport.JavaClass.javaArrayFromRubyArray(JavaClass.java:1511)
> ...
> ... (see full log attached)
> ...

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


[jira] Updated: (BUILDR-158) IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)

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

Alex Boisvert updated BUILDR-158:
---------------------------------

    Attachment: error_jruby_trunk_r7831.txt

> IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)
> ---------------------------------------------------------------------------------
>
>                 Key: BUILDR-158
>                 URL: https://issues.apache.org/jira/browse/BUILDR-158
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Alex Boisvert
>             Fix For: 1.3.3
>
>         Attachments: error.log, error_jruby_trunk_r7831.txt
>
>
> I start the nailgun server:
> boisvert@boog:~/scala/test$ jruby -S buildr -rbuildr/nailgun nailgun:start 
> (in /home/boisvert/scala/test, development)
> Booting Buildr nailgun server...
> Buildr::Nailgun::NGServer(Buildr 1.3.3 (JRuby 1.1.4), 127.0.0.1, 2113) Started.
> [Completed] Your build has completed: /home/boisvert/scala/test
> buildr nailgun:start
> Completed in 3.384s
> Got connection from /home/boisvert/scala/test
> then try to run the build in a separate terminal:
> boisvert@boog:~/scala/process$ ng build
> java.lang.IllegalArgumentException: array element type mismatch
> 	at java.lang.reflect.Array.set(Native Method)
> 	at org.jruby.javasupport.JavaArray.setWithExceptionHandling(JavaArray.java:121)
> 	at org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray(ArrayJavaAddons.java:108)
> 	at org.jruby.javasupport.JavaClass.javaArrayFromRubyArray(JavaClass.java:1511)
> ...
> ... (see full log attached)
> ...

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


[jira] Issue Comment Edited: (BUILDR-158) IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)

Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640883#action_12640883 ] 

vic edited comment on BUILDR-158 at 10/19/08 4:17 PM:
--------------------------------------------------------------------

Resolved in trunk. Now buildr/nailgun is just a delegate for buildr/drb. For JRuby users, using the nailgun client is better than loading a JVM+JRuby just to run a drb client.

      was (Author: vic):
    Resolved in trunk. Now buildr/nailgun is just a delegate for buildr/drb. For JRuby users, using the nailgun client is than loading a JVM+JRuby just to run a drb client.
  
> IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)
> ---------------------------------------------------------------------------------
>
>                 Key: BUILDR-158
>                 URL: https://issues.apache.org/jira/browse/BUILDR-158
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Alex Boisvert
>             Fix For: 1.3.4
>
>         Attachments: error.log, error_jruby_trunk_r7831.txt
>
>
> I start the nailgun server:
> boisvert@boog:~/scala/test$ jruby -S buildr -rbuildr/nailgun nailgun:start 
> (in /home/boisvert/scala/test, development)
> Booting Buildr nailgun server...
> Buildr::Nailgun::NGServer(Buildr 1.3.3 (JRuby 1.1.4), 127.0.0.1, 2113) Started.
> [Completed] Your build has completed: /home/boisvert/scala/test
> buildr nailgun:start
> Completed in 3.384s
> Got connection from /home/boisvert/scala/test
> then try to run the build in a separate terminal:
> boisvert@boog:~/scala/process$ ng build
> java.lang.IllegalArgumentException: array element type mismatch
> 	at java.lang.reflect.Array.set(Native Method)
> 	at org.jruby.javasupport.JavaArray.setWithExceptionHandling(JavaArray.java:121)
> 	at org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray(ArrayJavaAddons.java:108)
> 	at org.jruby.javasupport.JavaClass.javaArrayFromRubyArray(JavaClass.java:1511)
> ...
> ... (see full log attached)
> ...

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


[jira] Resolved: (BUILDR-158) IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)

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

Victor Hugo Borja resolved BUILDR-158.
--------------------------------------

    Resolution: Fixed

Resolved in trunk. Now buildr/nailgun is just a delegate for buildr/drb. For JRuby users, using the nailgun client is than loading a JVM+JRuby just to run a drb client.

> IllegalArgumentException using nailgun with JRuby 1.1.4 + Buildr 1.3.3 (snapshot)
> ---------------------------------------------------------------------------------
>
>                 Key: BUILDR-158
>                 URL: https://issues.apache.org/jira/browse/BUILDR-158
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Alex Boisvert
>             Fix For: 1.3.4
>
>         Attachments: error.log, error_jruby_trunk_r7831.txt
>
>
> I start the nailgun server:
> boisvert@boog:~/scala/test$ jruby -S buildr -rbuildr/nailgun nailgun:start 
> (in /home/boisvert/scala/test, development)
> Booting Buildr nailgun server...
> Buildr::Nailgun::NGServer(Buildr 1.3.3 (JRuby 1.1.4), 127.0.0.1, 2113) Started.
> [Completed] Your build has completed: /home/boisvert/scala/test
> buildr nailgun:start
> Completed in 3.384s
> Got connection from /home/boisvert/scala/test
> then try to run the build in a separate terminal:
> boisvert@boog:~/scala/process$ ng build
> java.lang.IllegalArgumentException: array element type mismatch
> 	at java.lang.reflect.Array.set(Native Method)
> 	at org.jruby.javasupport.JavaArray.setWithExceptionHandling(JavaArray.java:121)
> 	at org.jruby.java.addons.ArrayJavaAddons.copyDataToJavaArray(ArrayJavaAddons.java:108)
> 	at org.jruby.javasupport.JavaClass.javaArrayFromRubyArray(JavaClass.java:1511)
> ...
> ... (see full log attached)
> ...

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