$VERBOSE = true; require 'tmpdir'  gives non-fatal Java exception
-----------------------------------------------------------------

                 Key: JRUBY-2136
                 URL: http://jira.codehaus.org/browse/JRUBY-2136
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
         Environment: Windows.
            Reporter: Rutger Nijlunsing
            Priority: Minor


$VERBOSE = true; require 'tmpdir' gives a very verbose Java-exception.

This interferes with my normal usage of $VERBOSE to find common Ruby-mistakes.
Core classes should not give output on normal usage.

C:\>jirb.bat
irb(main):001:0> $VERBOSE=true
=> true
irb(main):002:0> require 'tmpdir'
java.lang.ClassNotFoundException: Win32APIService
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.jruby.javasupport.JavaSupport.loadJavaClass(JavaSupport.java:136)

        at org.jruby.runtime.load.LoadService.tryLoadExtension(LoadService.java:
589)
        at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:277)
        at org.jruby.runtime.load.LoadService.require(LoadService.java:345)
        at org.jruby.RubyKernel.require(RubyKernel.java:678)
        at org.jruby.RubyKernelInvoker$require_method_1_0.call(Unknown Source)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneBlock.call
(JavaMethod.java:139)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j
ava:66)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSit
e.java:166)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
01)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1100
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
54)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:151
7)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:4
52)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.evalClassDefinitionBody(ASTInterpr
eter.java:1857)
        at org.jruby.evaluator.ASTInterpreter.classNode(ASTInterpreter.java:775)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
12)
        at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1615)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:4
58)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.Ruby.loadFile(Ruby.java:1798)
        at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:58)
        at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:319)
        at org.jruby.runtime.load.LoadService.require(LoadService.java:345)
        at org.jruby.RubyKernel.require(RubyKernel.java:678)
        at org.jruby.RubyKernelInvoker$require_method_1_0.call(Unknown Source)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneBlock.call
(JavaMethod.java:139)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j
ava:66)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSit
e.java:166)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
01)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1100
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
54)
        at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1615)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:4
58)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.evaluator.ASTInterpreter.evalWithBinding(ASTInterpreter.jav
a:222)
        at org.jruby.RubyKernel.eval(RubyKernel.java:722)
        at org.jruby.RubyKernelInvoker$eval_method_1_3.call(Unknown Source)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j
ava:66)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:2
98)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1100
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
54)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j
ava:176)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j
ava:66)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:2
98)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
08)
        at org.jruby.evaluator.ASTInterpreter.setupArgs(ASTInterpreter.java:2155
)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1095
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
54)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j
ava:176)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j
ava:66)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:2
98)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
08)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:151
7)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:4
52)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:154)
        at org.jruby.runtime.Block.yield(Block.java:114)
        at org.jruby.evaluator.ASTInterpreter.yieldNode(ASTInterpreter.java:1817
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:4
93)
        at org.jruby.evaluator.ASTInterpreter.ensureNode(ASTInterpreter.java:107
2)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
48)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j
ava:176)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
09)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1105
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
54)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:154)
        at org.jruby.runtime.Block.yield(Block.java:114)
        at org.jruby.evaluator.ASTInterpreter.yieldNode(ASTInterpreter.java:1817
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:4
93)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:151
7)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:4
52)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:154)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:119)
        at org.jruby.runtime.Block.yield(Block.java:109)
        at org.jruby.RubyKernel.loop(RubyKernel.java:913)
        at org.jruby.RubyKernelInvoker$loop_method_0_0.call(Unknown Source)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.cal
l(JavaMethod.java:101)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSit
e.java:151)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
12)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1105
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
54)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:154)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:119)
        at org.jruby.runtime.Block.yield(Block.java:109)
        at org.jruby.RubyKernel.rbCatch(RubyKernel.java:751)
        at org.jruby.RubyKernelInvoker$rbCatch_method_1_0.call(Unknown Source)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneBlock.call
(JavaMethod.java:139)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSit
e.java:151)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
12)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1105
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
54)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j
ava:176)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSit
e.java:151)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
12)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:662)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
08)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j
ava:176)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j
ava:66)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSit
e.java:166)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
01)
        at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
08)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:154)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:119)
        at org.jruby.runtime.Block.yield(Block.java:109)
        at org.jruby.RubyKernel.rbCatch(RubyKernel.java:751)
        at org.jruby.RubyKernelInvoker$rbCatch_method_1_0.call(Unknown Source)
        at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneBlock.call
(JavaMethod.java:139)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSit
e.java:151)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
12)
        at org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1105
)
        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
54)
        at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)

        at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:3
02)
        at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
        at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.j
ava:176)
        at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.j
ava:78)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSit
e.java:211)
        at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:3
57)
        at ruby.C_3a_.Program_20_Files.jruby_minus_1_dot_1RC2.bin.jirb.__file__(
c:\Program Files\jruby-1.1RC2\bin\..\bin\jirb:13)
        at ruby.C_3a_.Program_20_Files.jruby_minus_1_dot_1RC2.bin.jirb.load(c:\P
rogram Files\jruby-1.1RC2\bin\..\bin\jirb)
        at org.jruby.Ruby.runScript(Ruby.java:491)
        at org.jruby.Ruby.runNormally(Ruby.java:411)
        at org.jruby.Ruby.runFromMain(Ruby.java:291)
        at org.jruby.Main.run(Main.java:142)
        at org.jruby.Main.run(Main.java:88)
        at org.jruby.Main.main(Main.java:79)
=> true

-- 
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