重元です。
遅レスですみません。
> 問題点1
> せっかくrakeを使うように考えたので、rake testで
> テストできるようにしたのですが、どういうわけかjarを
> requireするときにロードできない例外がでちゃってます。
> これは要調査っすね。
の件ですが、Windows環境で、
1) rmavenのインストール (jruby -S gem install rmaven)
2) テストの実行 (jruby -S rake test)
の手順でやってみました。
膨大なログが出ているのですが、
テストが正常終了したあと、またテストが実行されて、今度はエラーになっているように見えます。
これが上で言われている問題点なのかどうかは、よく分からないのですが。。
■ログ
----------------------------------------------------------------------------------------------------
C:\app\jruby-1.1.4\lib\ruby\gems\1.8\gems\rubeus-0.0.6-java>jruby -S
rake test
(in C:/app/jruby-1.1.4/lib/ruby/gems/1.8/gems/rubeus-0.0.6-java)
C:/app/jruby-1.1.4/bin/jruby.bat -Ilib;lib "C:/app/jruby-1.1.4/lib/
ruby/gems/1.8
/gems/rake-0.8.1/lib/rake/rake_test_loader.rb" "test/test_all.rb"
"test/rubeus/t
est_extensions.rb" "test/rubeus/awt/test_attributes.rb" "test/rubeus/
awt/test_ev
ent.rb" "test/rubeus/awt/test_nestable.rb" "test/rubeus/awt/
test_setter.rb" "tes
t/rubeus/extensions/java/awt/test_dimension.rb" "test/rubeus/
extensions/java/sql
/test_connection.rb" "test/rubeus/extensions/java/sql/
test_driver_manager.rb" "t
est/rubeus/extensions/java/sql/test_result_set.rb" "test/rubeus/
extensions/java/
sql/test_result_set_meta_data.rb" "test/rubeus/extensions/java/sql/
test_statemen
t.rb" "test/rubeus/extensions/javax/swing/test_box_layout.rb" "test/
rubeus/exten
sions/javax/swing/test_j_component.rb" "test/rubeus/extensions/javax/
swing/test_
j_frame.rb" "test/rubeus/extensions/javax/swing/test_j_panel.rb" "test/
rubeus/ex
tensions/javax/swing/test_j_scroll_pane.rb" "test/rubeus/extensions/
javax/swing/
test_j_split_pane.rb" "test/rubeus/extensions/javax/swing/
test_j_tabbed_pane.rb"
"test/rubeus/extensions/javax/swing/test_j_table.rb" "test/rubeus/
extensions/ja
vax/swing/test_j_text_field.rb" "test/rubeus/extensions/javax/swing/
test_timer.r
b" "test/rubeus/extensions/javax/swing/table/
test_default_table_model.rb"
Loaded suite .
Started
................................................................................
.....
Finished in 8.79317 seconds.
85 tests, 343 assertions, 0 failures, 0 errors
Loaded suite [test/test_all.rb, test/rubeus/test_extensions.rb, test/
rubeus/awt/
test_attributes.rb, test/rubeus/awt/test_event.rb, test/rubeus/awt/
test_nestable
.rb, test/rubeus/awt/test_setter.rb, test/rubeus/extensions/java/awt/
test_dimens
ion.rb, test/rubeus/extensions/java/sql/test_connection.rb, test/
rubeus/extensio
ns/java/sql/test_driver_manager.rb, test/rubeus/extensions/java/sql/
test_result_
set.rb, test/rubeus/extensions/java/sql/test_result_set_meta_data.rb,
test/rubeu
s/extensions/java/sql/test_statement.rb, test/rubeus/extensions/javax/
swing/test
_box_layout.rb, test/rubeus/extensions/javax/swing/
test_j_component.rb, test/rub
eus/extensions/javax/swing/test_j_frame.rb, test/rubeus/extensions/
javax/swing/t
est_j_panel.rb, test/rubeus/extensions/javax/swing/
test_j_scroll_pane.rb, test/r
ubeus/extensions/javax/swing/test_j_split_pane.rb, test/rubeus/
extensions/javax/
swing/test_j_tabbed_pane.rb, test/rubeus/extensions/javax/swing/
test_j_table.rb,
test/rubeus/extensions/javax/swing/test_j_text_field.rb, test/rubeus/
extensions
/javax/swing/test_timer.rb, test/rubeus/extensions/javax/swing/table/
test_defaul
t_table_model.rb]
Started
..................................org.jruby.java.invokers.RubyToJavaInvoker:
35:i
n `findCallable': java.lang.ArrayIndexOutOfBoundsException: 3
from org.jruby.java.invokers.ConstructorInvoker:74:in `call'
from org.jruby.java.invokers.ConstructorInvoker:147:in `call'
from org.jruby.RubyClass:343:in `finvoke'
from org.jruby.javasupport.util.RuntimeHelpers:335:in `invoke'
from org.jruby.java.proxies.ConcreteJavaProxy$2:40:in `call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:301:in
`call'
from org.jruby.RubyClass$SpecificArityNew:533:in `call'
from org.jruby.internal.runtime.methods.DynamicMethod:135:in
`call'
from org.jruby.java.proxies.ConcreteJavaProxy
$ConcreteNewMethod:163:in `
call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:289:in
`call'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.gems.$1_
dot_8.gems.rubeus_minus_0_dot_0_dot_6_minus_java.lib.rubeus.extensions.java.awt.
dimension.create3363995_17241377:19:in `__file__'
from org.jruby.internal.runtime.methods.DefaultMethod:181:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:289:in
`call'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.gems.$1_
dot_8.gems.rubeus_minus_0_dot_0_dot_6_minus_java.lib.rubeus.extensions.java.awt.
dimension.create3363995_17241377:12:in `__file__'
from org.jruby.ast.executable.AbstractScript:28:in `__file__'
from org.jruby.internal.runtime.methods.DefaultMethod:244:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:156:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:394:in
`call'
from org.jruby.ast.CallOneArgNode:57:in `interpret'
from org.jruby.ast.DAsgnNode:107:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.runtime.InterpretedBlock:202:in `evalBlockBody'
from org.jruby.runtime.InterpretedBlock:190:in `yield'
from org.jruby.runtime.Block:110:in `yield'
from org.jruby.ast.YieldNode:95:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.RescueNode:222:in `executeBody'
from org.jruby.ast.RescueNode:144:in
`interpretWithJavaExceptions'
from org.jruby.ast.RescueNode:107:in `interpret'
from org.jruby.ast.BeginNode:80:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.runtime.InterpretedBlock:202:in `evalBlockBody'
from org.jruby.runtime.InterpretedBlock:190:in `yield'
from org.jruby.runtime.Block:110:in `yield'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.assertions.assert_block26141422_17241377:47:in `block_0$RUBY
$__block_
_'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.assertions.assert_block26141422_17241377BlockCallback
$block_0$RUBY$__
block__xx1:-1:in `call'
from org.jruby.runtime.CompiledBlock:120:in `yield'
from org.jruby.runtime.Block:110:in `yield'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.assertions._wrap_assertion3198308_17241377:500:in
`__file__'
from org.jruby.internal.runtime.methods.DefaultMethod:223:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:371:in
`callIter'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.assertions.assert_block26141422_17241377:46:in `__file__'
from org.jruby.ast.executable.AbstractScript:28:in `__file__'
from org.jruby.internal.runtime.methods.DefaultMethod:265:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:422:in
`callIter'
from org.jruby.ast.FCallOneArgBlockNode:33:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.runtime.InterpretedBlock:202:in `evalBlockBody'
from org.jruby.runtime.InterpretedBlock:190:in `yield'
from org.jruby.runtime.Block:110:in `yield'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.assertions._wrap_assertion3198308_17241377:495:in
`ensure_2$RUBY$__en
sure__'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.assertions._wrap_assertion3198308_17241377:493:in
`__file__'
from org.jruby.internal.runtime.methods.DefaultMethod:223:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:371:in
`callIter'
from org.jruby.ast.FCallNoArgBlockNode:31:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:274:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:168:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:425:in
`callIter'
from org.jruby.ast.FCallOneArgBlockNode:33:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:232:in
`call'
from org.jruby.RubyClass:322:in `finvoke'
from org.jruby.RubyObject:2042:in `send'
from org.jruby.RubyObject$i_method_multi$RUBYINVOKER
$send:-1:in `call'
from org.jruby.internal.runtime.methods.DynamicMethod:151:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:391:in
`call'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.testcase.run13748661_17241377:78:in `rescue_1$RUBY
$__rescue__'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.testcase.run13748661_17241377:-1:in `ensure_1$RUBY
$__ensure__'
from
ruby.jit.ruby.C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.$1_dot_8
.test.unit.testcase.run13748661_17241377:76:in `__file__'
from org.jruby.internal.runtime.methods.DefaultMethod:265:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:168:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:406:in
`call'
from org.jruby.ast.CallOneArgBlockPassNode:60:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.runtime.InterpretedBlock:202:in `evalBlockBody'
from org.jruby.runtime.InterpretedBlock:153:in `yield'
from org.jruby.runtime.Block:105:in `yield'
from org.jruby.RubyArray:1415:in `each'
from org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER
$each:-1:in `call
'
from org.jruby.runtime.CallSite$InlineCachingCallSite:352:in
`call'
from org.jruby.ast.CallNoArgBlockNode:63:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:274:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:168:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:406:in
`call'
from org.jruby.ast.CallOneArgBlockPassNode:60:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.runtime.InterpretedBlock:202:in `evalBlockBody'
from org.jruby.runtime.InterpretedBlock:153:in `yield'
from org.jruby.runtime.Block:105:in `yield'
from org.jruby.RubyArray:1415:in `each'
from org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER
$each:-1:in `call
'
from org.jruby.runtime.CallSite$InlineCachingCallSite:352:in
`call'
from org.jruby.ast.CallNoArgBlockNode:63:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:274:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:168:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:406:in
`call'
from org.jruby.ast.CallOneArgBlockPassNode:60:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.runtime.InterpretedBlock:202:in `evalBlockBody'
from org.jruby.runtime.InterpretedBlock:153:in `yield'
from org.jruby.runtime.Block:105:in `yield'
from org.jruby.RubyArray:1415:in `each'
from org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER
$each:-1:in `call
'
from org.jruby.runtime.CallSite$InlineCachingCallSite:352:in
`call'
from org.jruby.ast.CallNoArgBlockNode:63:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:274:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:403:in
`call'
from org.jruby.ast.CallOneArgBlockNode:60:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:211:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:340:in
`call'
from org.jruby.ast.CallNoArgNode:61:in `interpret'
from org.jruby.ast.ReturnNode:85:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:211:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:340:in
`call'
from org.jruby.ast.VCallNode:82:in `interpret'
from org.jruby.ast.ReturnNode:85:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:211:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:340:in
`call'
from org.jruby.ast.CallNoArgNode:61:in `interpret'
from org.jruby.ast.ReturnNode:85:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:295:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:442:in
`call'
from org.jruby.ast.CallTwoArgNode:59:in `interpret'
from org.jruby.ast.CallNoArgNode:61:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:211:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:132:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:343:in
`call'
from org.jruby.ast.CallNoArgNode:61:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.internal.runtime.methods.DefaultMethod:163:in
`interprete
dCall'
from org.jruby.internal.runtime.methods.DefaultMethod:140:in
`call'
from org.jruby.internal.runtime.methods.DefaultMethod:295:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:180:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:445:in
`call'
from org.jruby.ast.CallTwoArgNode:59:in `interpret'
from org.jruby.ast.NewlineNode:101:in `interpret'
from org.jruby.ast.BlockNode:67:in `interpret'
from org.jruby.ast.RootNode:126:in `interpret'
from org.jruby.Ruby:2107:in `loadFile'
from org.jruby.runtime.load.ExternalScript:58:in `load'
from org.jruby.runtime.load.LoadService:221:in `load'
from org.jruby.RubyKernel:830:in `load'
from org.jruby.RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER
$load:-1:in `cal
l'
from org.jruby.internal.runtime.methods.DynamicMethod:242:in
`call'
from org.jruby.internal.runtime.methods.DynamicMethod:151:in
`call'
from org.jruby.runtime.CallSite$InlineCachingCallSite:156:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:394:in
`call'
from C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.gems.
$1_dot_8.gems.rak
e_minus_0_dot_8_dot_1.lib.rake.rake_test_loader:5:in `block_0$RUBY
$__block__'
from C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.gems.
$1_dot_8.gems.rak
e_minus_0_dot_8_dot_1.lib.rake.rake_test_loaderBlockCallback
$block_0$RUBY$__bloc
k__xx1:-1:in `call'
from org.jruby.runtime.CompiledBlock:100:in `yield'
from org.jruby.runtime.Block:105:in `yield'
from org.jruby.RubyArray:1415:in `each'
from org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER
$each:-1:in `call
'
from org.jruby.runtime.CallSite$InlineCachingCallSite:144:in
`cacheAndCa
ll'
from org.jruby.runtime.CallSite$InlineCachingCallSite:374:in
`callIter'
from C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.gems.
$1_dot_8.gems.rak
e_minus_0_dot_8_dot_1.lib.rake.rake_test_loader:5:in `__file__'
from C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.gems.
$1_dot_8.gems.rak
e_minus_0_dot_8_dot_1.lib.rake.rake_test_loader:-1:in `__file__'
from C_3a_.app.jruby_minus_1_dot_1_dot_4.lib.ruby.gems.
$1_dot_8.gems.rak
e_minus_0_dot_8_dot_1.lib.rake.rake_test_loader:-1:in `load'
from org.jruby.Ruby:544:in `runScript'
from org.jruby.Ruby:457:in `runNormally'
from org.jruby.Ruby:330:in `runFromMain'
from org.jruby.Main:214:in `run'
from org.jruby.Main:100:in `run'
from org.jruby.Main:84:in `main'
rake aborted!
Command failed with status (1): [C:/app/jruby-1.1.4/bin/jruby.bat -
Ilib;lib...]
(See full trace by running task with --trace)
C:\app\jruby-1.1.4\lib\ruby\gems\1.8\gems\rubeus-0.0.6-java>
----------------------------------------------------------------------------------------------------