unhandled VT 8204 with win32ole
-------------------------------

                 Key: JRUBY-5202
                 URL: http://jira.codehaus.org/browse/JRUBY-5202
             Project: JRuby
          Issue Type: Bug
          Components: win32ole
    Affects Versions: JRuby 1.5.5
            Reporter: Daniel Berger
            Assignee: Thomas E Enebo


Hi,

Windows 7
JRuby 1.5.5
jruby-win32ole 0.8.1

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

I tried the following program:

{code}
# test.rb
require 'win32ole'
ole = WIN32OLE.connect("winmgmts://")
sql = "select * from Win32_NetworkAdapterConfiguration where IPEnabled = True"
ole.ExecQuery(sql).each{ |nic| p nic.IPAddress }
{code}

This is the result:

{code}
c:\>jruby test.rb
variantToObject: unhandled VT 8204
Dispatch.java:-2:in `invokev0': org.racob.com.ComFailException: 
variantToObject: unhandled VT 8204

        from Dispatch.java:453:in `callO'
        from RubyWIN32OLE.java:201:in `invokeMethodOrGet'
        from RubyWIN32OLE.java:113:in `method_missing'
        from 
org/jruby/ext/win32ole/RubyWIN32OLE$i_method_0_0$RUBYINVOKER$method_missing.gen:65535:in
 `call
        from JavaMethod.java:642:in `call'
        from RuntimeHelpers.java:401:in `call'
        from DynamicMethod.java:182:in `call'
        from CachingCallSite.java:367:in `callMethodMissing'
        from CachingCallSite.java:286:in `cacheAndCall'
        from CachingCallSite.java:108:in `call'
        from test.rb:4:in `block_0$RUBY$__block__'
        from null:65535:in `call'
        from CompiledBlock.java:115:in `yield'
        from CompiledBlock.java:98:in `yield'
        from Block.java:194:in `yield'
        from RubyWIN32OLE.java:64:in `each'
        from 
org/jruby/ext/win32ole/RubyWIN32OLE$i_method_0_0$RUBYINVOKER$each.gen:65535:in 
`call'
        from CachingCallSite.java:299:in `cacheAndCall'
        from CachingCallSite.java:117:in `callBlock'
        from CachingCallSite.java:132:in `callIter'
        from test.rb:4:in `__file__'
        from test.rb:-1:in `load'
        from Ruby.java:690:in `runScript'
        from Ruby.java:573:in `runNormally'
        from Ruby.java:416:in `runFromMain'
        from Main.java:286:in `run'
        from Main.java:128:in `run'
        from Main.java:97:in `main'
{code}

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