Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: None
-
Component/s: Application Error, win32ole, Windows
-
Environment:jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_23) [Windows Server 2008 R2-amd64-java]
-
Number of attachments :
Description
Firstly, thanks for the awesome app. JRuby rocks.
I am getting a fatal error when running the following code on Windows 64-bit.
require 'win32ole'
begin
conn_string = 'Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Apps\rubyfuse\lmsdata.accdb;Persist Security Info=False;'
conn = WIN32OLE.new('ADODB.Connection')
conn.Open(conn_string)
recordset = WIN32OLE.new('ADODB.Recordset')
sql = 'SELECT * FROM Clients;'
recordset.Open(sql, conn) # Fatal error here.
ensure
recordset.Close
conn.Close
end
Seems to be a problem with the ADODB.Recordset. The error looks something like this.
# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fee27b6b2b, pid=9420, tid=6592 # # JRE version: 6.0_23-b05 # Java VM: Java HotSpot(TM) 64-Bit Server VM (19.0-b09 mixed mode windows-amd64compressed oops) # Problematic frame: # C [racob-x64.dll+0x6b2b] # # An error report file with more information is saved as: # C:\Apps\rubyfuse\hs_err_pid9420.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
I've attached a copy of the log file. HTH, Thanks.
Just tested, and I'm getting the same issue on 1.6.7.2 (jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-01 26e08ba) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_23) [Windows Server 2008 R2-amd64-java])