IllegalArgumentException with --debug and syslog
------------------------------------------------

                 Key: JRUBY-3649
                 URL: http://jira.codehaus.org/browse/JRUBY-3649
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.2
         Environment: see description below
            Reporter: TwP


-> jruby --version
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [i386-java]

-> java -version
java version "1.6.0_0"
IcedTea6 1.4 (fedora-15.b14.fc10-i386) Runtime Environment (build 1.6.0_0-b14)
OpenJDK Client VM (build 14.0-b08, mixed mode)

-> jruby --debug  -e 'require "syslog"; puts "done"'
sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0':
java.lang.IllegalArgumentException: wrong number of arguments
(NativeException)
       from sun/reflect/NativeMethodAccessorImpl.java:57:in `invoke'
       from sun/reflect/DelegatingMethodAccessorImpl.java:43:in `invoke'
       from java/lang/reflect/Method.java:616:in `invoke'
       from org/jruby/internal/runtime/methods/ReflectedJavaMethod.java:142:in 
`call'
       from org/jruby/internal/runtime/methods/DynamicMethod.java:136:in `call'
       from org/jruby/runtime/callsite/CachingCallSite.java:243:in 
`cacheAndCall'
       from org/jruby/runtime/callsite/CachingCallSite.java:32:in `call'
       from org/jruby/ast/CallManyArgsNode.java:59:in `interpret'
        ... 78 levels...
       from /usr/local/share/jruby/lib/ruby/1.8/syslog.rb:28
       from /usr/local/share/jruby/lib/ruby/1.8/syslog.rb:1:in `require'
       from -e:1
Complete Java stackTrace
java.lang.IllegalArgumentException: wrong number of arguments
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:616)
       at 
org.jruby.internal.runtime.methods.ReflectedJavaMethod.call(ReflectedJavaMethod.java:142)
       at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:136)
       at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:243)
       at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:32)
       at org.jruby.ast.CallManyArgsNode.interpret(CallManyArgsNode.java:59)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at org.jruby.ast.IfNode.interpret(IfNode.java:114)
       at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
       at 
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:101)
       at 
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:113)
       at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:243)
       at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:32)
       at org.jruby.ast.CallManyArgsNode.interpret(CallManyArgsNode.java:59)
       at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at org.jruby.ast.RescueNode.executeBody(RescueNode.java:225)
       at 
org.jruby.ast.RescueNode.interpretWithoutJavaExceptions(RescueNode.java:121)
       at org.jruby.ast.RescueNode.interpret(RescueNode.java:112)
       at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
       at org.jruby.ast.IfNode.interpret(IfNode.java:112)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at 
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:192)
       at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:143)
       at org.jruby.runtime.Block.yield(Block.java:100)
       at org.jruby.RubyArray.each(RubyArray.java:1562)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:616)
       at 
org.jruby.internal.runtime.methods.ReflectedJavaMethod.call(ReflectedJavaMethod.java:144)
       at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:226)
       at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:263)
       at 
org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:81)
       at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:86)
       at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
       at 
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:101)
       at 
org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:113)
       at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:243)
       at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:32)
       at org.jruby.ast.FCallManyArgsNode.interpret(FCallManyArgsNode.java:60)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
       at 
org.jruby.evaluator.ASTInterpreter.evalClassDefinitionBody(ASTInterpreter.java:196)
       at org.jruby.ast.ModuleNode.interpret(ModuleNode.java:120)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
       at 
org.jruby.evaluator.ASTInterpreter.evalClassDefinitionBody(ASTInterpreter.java:196)
       at org.jruby.ast.ModuleNode.interpret(ModuleNode.java:120)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
       at org.jruby.ast.RootNode.interpret(RootNode.java:129)
       at org.jruby.Ruby.loadFile(Ruby.java:2247)
       at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:58)
       at 
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:570)
       at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:277)
       at org.jruby.runtime.load.LoadService.require(LoadService.java:288)
       at org.jruby.RubyKernel.require(RubyKernel.java:839)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:616)
       at 
org.jruby.internal.runtime.methods.ReflectedJavaMethod.call(ReflectedJavaMethod.java:142)
       at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:243)
       at 
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:152)
       at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:273)
       at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:112)
       at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
       at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
       at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
       at org.jruby.ast.RootNode.interpret(RootNode.java:129)
       at org.jruby.Ruby.runInterpreter(Ruby.java:597)
       at org.jruby.Ruby.runNormally(Ruby.java:486)
       at org.jruby.Ruby.runFromMain(Ruby.java:354)
       at org.jruby.Main.run(Main.java:229)
       at org.jruby.Main.run(Main.java:110)
       at org.jruby.Main.main(Main.java:94)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to