程序编译没问题但是运行时出现了奇怪的问题
代码如下:import java.sql.*;
import com.mysql.jdbc.Driver;
public class Lookup {
public static void main(String[] args)
throws SQLException, ClassNotFoundException {
Class.forName("com.mysql.jdbc.Driver");
Connection c = DriverManager.getConnection("jdbc:mysql://localhost/books");
Statement s = c.createStatement();
ResultSet r = s.executeQuery("SELECT * from titles");
while(r.next()) {
// Capitalization doesn't matter:
System.out.println(r.getString(3));
}
s.close(); // Also closes ResultSet
}
} ///:~运行出现问题如下:G:\programteap>javac Lookup.javaG:\programteap>java LookupUnexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0xC9D1
12
Function=[Unknown.]
Library=(N/A)NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:Dynamic libraries:
0x00400000 - 0x0040C000 D:\WINDOWS\system32\java.exe
0x77F30000 - 0x77FFA000 D:\WINDOWS\system32\ntdll.dll
0x77E10000 - 0x77F2D000 D:\WINDOWS\system32\kernel32.dll
0x77D60000 - 0x77E00000 D:\WINDOWS\system32\ADVAPI32.dll
0x77C20000 - 0x77CC4000 D:\WINDOWS\system32\RPCRT4.dll
0x77B70000 - 0x77BC4000 D:\WINDOWS\system32\MSVCRT.dll
0x002D0000 - 0x00344000 G:\TEMPSE~1\paf17.tmp
0x70BC0000 - 0x70C50000 D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-C
ontrols_6595b64144ccf1df_5.82.0.0_x-ww_8A69BA05\COMCTL32.DLL
0x77BD0000 - 0x77C14000 D:\WINDOWS\system32\GDI32.dll
0x77CD0000 - 0x77D5E000 D:\WINDOWS\system32\USER32.dll
0x71B30000 - 0x71B41000 D:\WINDOWS\system32\MPR.DLL
0x77150000 - 0x77274000 D:\WINDOWS\system32\OLE32.DLL
0x770D0000 - 0x7714D000 D:\WINDOWS\system32\OLEAUT32.DLL
0x71B10000 - 0x71B1B000 D:\WINDOWS\system32\WSOCK32.DLL
0x71B60000 - 0x71B78000 D:\WINDOWS\system32\WS2_32.dll
0x71B50000 - 0x71B58000 D:\WINDOWS\system32\WS2HELP.dll
0x76180000 - 0x7619D000 D:\WINDOWS\system32\IMM32.DLL
0x63090000 - 0x63099000 D:\WINDOWS\system32\LPK.DLL
0x72EE0000 - 0x72F3E000 D:\WINDOWS\system32\USP10.dll
0x08000000 - 0x08138000 D:\Program Files\Java\j2re1.4.2_07\bin\client\jv
m.dll
0x769E0000 - 0x76A09000 D:\WINDOWS\system32\WINMM.dll
0x10000000 - 0x10007000 D:\Program Files\Java\j2re1.4.2_07\bin\hpi.dll
0x003B0000 - 0x003BE000 D:\Program Files\Java\j2re1.4.2_07\bin\verify.dl
l
0x003C0000 - 0x003D9000 D:\Program Files\Java\j2re1.4.2_07\bin\java.dll
0x003E0000 - 0x003ED000 D:\Program Files\Java\j2re1.4.2_07\bin\zip.dll
0x03060000 - 0x0306F000 D:\Program Files\Java\j2re1.4.2_07\bin\net.dll
0x71A80000 - 0x71AC2000 D:\WINDOWS\System32\mswsock.dll
0x76E30000 - 0x76E58000 D:\WINDOWS\system32\DNSAPI.dll
0x76ED0000 - 0x76ED7000 D:\WINDOWS\System32\winrnr.dll
0x76E70000 - 0x76E9F000 D:\WINDOWS\system32\WLDAP32.dll
0x76EE0000 - 0x76EE5000 D:\WINDOWS\system32\rasadhlp.dll
0x030D0000 - 0x03223000 D:\WINDOWS\system32\TcpIpDog0.dll
0x761A0000 - 0x761E5000 D:\WINDOWS\system32\comdlg32.dll
0x77280000 - 0x772C9000 D:\WINDOWS\system32\SHLWAPI.dll
0x77370000 - 0x77B2B000 D:\WINDOWS\system32\SHELL32.dll
0x72F40000 - 0x72F66000 D:\WINDOWS\system32\WINSPOOL.DRV
0x70AD0000 - 0x70BB6000 D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-C
ontrols_6595b64144ccf1df_6.0.100.0_x-ww_8417450B\comctl32.dll
0x71A40000 - 0x71A48000 D:\WINDOWS\System32\wshtcpip.dll
0x76B70000 - 0x76B98000 D:\WINDOWS\system32\imagehlp.dll
0x6D830000 - 0x6D8D1000 D:\WINDOWS\system32\dbghelp.dll
0x77B60000 - 0x77B68000 D:\WINDOWS\system32\VERSION.dll
0x76AB0000 - 0x76ABB000 D:\WINDOWS\system32\PSAPI.DLLHeap at VM Abort:
Heap
def new generation total 576K, used 405K [0x10010000, 0x100b0000, 0x104f0000) eden****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x00c9d112
SIGNAL = -1073741678
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.G:\programteap>
大家帮帮忙!先谢了
代码如下:import java.sql.*;
import com.mysql.jdbc.Driver;
public class Lookup {
public static void main(String[] args)
throws SQLException, ClassNotFoundException {
Class.forName("com.mysql.jdbc.Driver");
Connection c = DriverManager.getConnection("jdbc:mysql://localhost/books");
Statement s = c.createStatement();
ResultSet r = s.executeQuery("SELECT * from titles");
while(r.next()) {
// Capitalization doesn't matter:
System.out.println(r.getString(3));
}
s.close(); // Also closes ResultSet
}
} ///:~运行出现问题如下:G:\programteap>javac Lookup.javaG:\programteap>java LookupUnexpected Signal : EXCEPTION_FLT_STACK_CHECK (0xc0000092) occurred at PC=0xC9D1
12
Function=[Unknown.]
Library=(N/A)NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:Dynamic libraries:
0x00400000 - 0x0040C000 D:\WINDOWS\system32\java.exe
0x77F30000 - 0x77FFA000 D:\WINDOWS\system32\ntdll.dll
0x77E10000 - 0x77F2D000 D:\WINDOWS\system32\kernel32.dll
0x77D60000 - 0x77E00000 D:\WINDOWS\system32\ADVAPI32.dll
0x77C20000 - 0x77CC4000 D:\WINDOWS\system32\RPCRT4.dll
0x77B70000 - 0x77BC4000 D:\WINDOWS\system32\MSVCRT.dll
0x002D0000 - 0x00344000 G:\TEMPSE~1\paf17.tmp
0x70BC0000 - 0x70C50000 D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-C
ontrols_6595b64144ccf1df_5.82.0.0_x-ww_8A69BA05\COMCTL32.DLL
0x77BD0000 - 0x77C14000 D:\WINDOWS\system32\GDI32.dll
0x77CD0000 - 0x77D5E000 D:\WINDOWS\system32\USER32.dll
0x71B30000 - 0x71B41000 D:\WINDOWS\system32\MPR.DLL
0x77150000 - 0x77274000 D:\WINDOWS\system32\OLE32.DLL
0x770D0000 - 0x7714D000 D:\WINDOWS\system32\OLEAUT32.DLL
0x71B10000 - 0x71B1B000 D:\WINDOWS\system32\WSOCK32.DLL
0x71B60000 - 0x71B78000 D:\WINDOWS\system32\WS2_32.dll
0x71B50000 - 0x71B58000 D:\WINDOWS\system32\WS2HELP.dll
0x76180000 - 0x7619D000 D:\WINDOWS\system32\IMM32.DLL
0x63090000 - 0x63099000 D:\WINDOWS\system32\LPK.DLL
0x72EE0000 - 0x72F3E000 D:\WINDOWS\system32\USP10.dll
0x08000000 - 0x08138000 D:\Program Files\Java\j2re1.4.2_07\bin\client\jv
m.dll
0x769E0000 - 0x76A09000 D:\WINDOWS\system32\WINMM.dll
0x10000000 - 0x10007000 D:\Program Files\Java\j2re1.4.2_07\bin\hpi.dll
0x003B0000 - 0x003BE000 D:\Program Files\Java\j2re1.4.2_07\bin\verify.dl
l
0x003C0000 - 0x003D9000 D:\Program Files\Java\j2re1.4.2_07\bin\java.dll
0x003E0000 - 0x003ED000 D:\Program Files\Java\j2re1.4.2_07\bin\zip.dll
0x03060000 - 0x0306F000 D:\Program Files\Java\j2re1.4.2_07\bin\net.dll
0x71A80000 - 0x71AC2000 D:\WINDOWS\System32\mswsock.dll
0x76E30000 - 0x76E58000 D:\WINDOWS\system32\DNSAPI.dll
0x76ED0000 - 0x76ED7000 D:\WINDOWS\System32\winrnr.dll
0x76E70000 - 0x76E9F000 D:\WINDOWS\system32\WLDAP32.dll
0x76EE0000 - 0x76EE5000 D:\WINDOWS\system32\rasadhlp.dll
0x030D0000 - 0x03223000 D:\WINDOWS\system32\TcpIpDog0.dll
0x761A0000 - 0x761E5000 D:\WINDOWS\system32\comdlg32.dll
0x77280000 - 0x772C9000 D:\WINDOWS\system32\SHLWAPI.dll
0x77370000 - 0x77B2B000 D:\WINDOWS\system32\SHELL32.dll
0x72F40000 - 0x72F66000 D:\WINDOWS\system32\WINSPOOL.DRV
0x70AD0000 - 0x70BB6000 D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-C
ontrols_6595b64144ccf1df_6.0.100.0_x-ww_8417450B\comctl32.dll
0x71A40000 - 0x71A48000 D:\WINDOWS\System32\wshtcpip.dll
0x76B70000 - 0x76B98000 D:\WINDOWS\system32\imagehlp.dll
0x6D830000 - 0x6D8D1000 D:\WINDOWS\system32\dbghelp.dll
0x77B60000 - 0x77B68000 D:\WINDOWS\system32\VERSION.dll
0x76AB0000 - 0x76ABB000 D:\WINDOWS\system32\PSAPI.DLLHeap at VM Abort:
Heap
def new generation total 576K, used 405K [0x10010000, 0x100b0000, 0x104f0000) eden****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x00c9d112
SIGNAL = -1073741678
FUNCTION NAME = (N/A)
OFFSET = 0xFFFFFFFF
LIBRARY NAME = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.G:\programteap>
大家帮帮忙!先谢了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货