createVariant() not implemented for class org.jruby.RubyHash
------------------------------------------------------------

                 Key: JRUBY-5812
                 URL: http://jira.codehaus.org/browse/JRUBY-5812
             Project: JRuby
          Issue Type: Bug
          Components: win32ole, Windows
    Affects Versions: JRuby 1.6.1, win32ole 0.8.2
            Reporter: Edward Lin
            Assignee: Thomas E Enebo


Along the lines of http://jira.codehaus.org/browse/JRUBY-5227 - I get this 
exception thrown for a pretty trivial use case of jruby-win32ole:

{noformat}
irb(main):001:0> require 'win32ole'
=> true
irb(main):002:0> word = WIN32OLE.new('Word.Application')
PROGID: Word.Application
=> #<WIN32OLE:0x456c1227>
irb(main):003:0> document = word.Documents.Open('c:\test.rtf')
=> #<WIN32OLE:0x400c02a>
irb(main):004:0> document.SaveAs({:FileName => 'c:\test.pdf', :FileFormat => 
17})
Java::JavaLang::RuntimeException: createVariant() not implemented for class 
org.jruby.RubyHash
        from 
org.racob.com.VariantUtilities.createVariant(VariantUtilities.java:54)
        from 
org.racob.com.VariantUtilities.objectToVariant(VariantUtilities.java:115)
        from 
org.racob.com.VariantUtilities.objectsToVariants(VariantUtilities.java:134)
        from org.racob.com.Dispatch.vargs(Dispatch.java:149)
        from org.racob.com.Dispatch.callN(Dispatch.java:187)
        from 
org.jruby.ext.win32ole.RubyWIN32OLE.invokeMethodOrGet(RubyWIN32OLE.java:203)
<snip>
{noformat}

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