Note that there are some explanatory texts on larger screens.

plurals
  1. POFatal error has been detected by the JRE caused by connection method
    primarykey
    data
    text
    <p>My program is encountering a fatal error when executing this like a second time a loop executes this statement <code>Statement stmt = conn.createStatement();</code>. What is causing this? Is it not allowed to pass a connection through a method? The program runs through this loop:</p> <pre><code>Connection conn = open_connection(); for(int aa = 0;aa&lt;symbols.length;aa++){ String[][] dub_array = parse(symbols[aa]); autowave(dub_array,19,14,symbols[aa],conn); } </code></pre> <p>open_connection looks like this:</p> <pre><code>public static Connection open_connection() throws Exception{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String sDBQ = "C:/Documents and Settings/mike/Desktop/stock/data/AW.mdb"; String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" + sDBQ + ";DriverID=22;READONLY=false"; Connection conn = DriverManager.getConnection( database ,"",""); return conn; } </code></pre> <p>Here is the error: </p> <pre><code># # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c90100b, pid=3584, tid=8668 # # JRE version: 7.0_02-b13 # Java VM: Java HotSpot(TM) Client VM (22.0-b10 mixed mode, sharing windows-x86 ) # Problematic frame: # C [ntdll.dll+0x100b] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Documents and Settings\mike\Desktop\stock\stock\hs_err_pid3584.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload