Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Cannot connect to mySql database - EXCEPTION_FLT_STACK_CHECK
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 3rd November 14:12
anton jungreuthmayer
External User
 
Posts: 1
Default Cannot connect to mySql database - EXCEPTION_FLT_STACK_CHECK



I have an applictation which connects to a mySql database using jdbc. It
works fine running from jbuilder however when I create and run an
executable jar the program falls over with EXCEPTION_FLT_STACK_CHECK.

The code I am using is as follows :-

Database db = new Database();
db.setConnection(new
ConnectionDescriptor("jdbc:mysql://10.30.1.2/dbname","user","password",
false, ,"com.mysql.jdbc.Driver"));

db.openConnection(); //THIS IS WHERE THE ERROR OCCURS

Incidentally the executable that is built for linux works fine.

I am proivided with a trace file which I have reproduced below.

Any assistance in resolving this issue would be much appreciated.

Anton Jungreuthmayer

================================================== ==============
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_FLT_STACK_CHECK (0xc0000092) at pc=0x00ef0758, pid=3460,
tid=3784
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode)
# Problematic frame:
# v ~RuntimeStub::load_klass_patching Runtime1 stub
#

--------------- T H R E A D ---------------

Current thread (0x00326a30): JavaThread "main" [_thread_in_Java, id=3784]

siginfo: ExceptionCode=0xc0000092, ExceptionInformation=0x00000000
0x0012f2a0

Registers:
EAX=0x00000000, EBX=0x0012f380, ECX=0x0012f35c, EDX=0xffffffd7
ESP=0x0012f2a0, EBP=0x0012f378, ESI=0x00000000, EDI=0x00000000
EIP=0x00ef0758, EFLAGS=0x00010206

Top of Stack: (sp=0x0012f2a0)
0x0012f2a0: 0012f2d0 06f853d0 00000000 06f84a00
0x0012f2b0: 0012f2c0 0012f2f0 00e92923 00000000
0x0012f2c0: 000000a6 071612f8 071612b8 0e8daca6
0x0012f2d0: 02f176f8 00000013 00000013 0725e240
0x0012f2e0: ffff1372 ffff0022 ffffffff 77c4fa29
0x0012f2f0: 0410001b 0012f290 ffff0023 ff000000
0x0012f300: ff000000 0100ffff 01000100 ffff0100
0x0012f310: a89d589c a89d5678 77780000 77777777

Instructions: (pc=0x00ef0758)
0x00ef0748: 83 ec 6c dd 34 24 9b d9 24 24 83 ec 40 dd 1c 24
0x00ef0758: dd 5c 24 08 dd 5c 24 10 dd 5c 24 18 dd 5c 24 20


Stack: [0x00030000,0x00130000), sp=0x0012f2a0, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
v ~RuntimeStub::load_klass_patching Runtime1 stub
J java.util.ResourceBundle.getObject(Ljava/lang/StringLjava/lang/Object;
j
java.util.ResourceBundle.getString(Ljava/lang/StringLjava/lang/String;+2
j
java.awt.Toolkit.getProperty(Ljava/lang/String;Ljava/lang/StringLjava/lang/String;+10
j sun.awt.SunToolkit$1.run()V+4
j sun.awt.SunToolkit.<init>()V+152
j sun.awt.windows.WToolkit.<init>()V+1
v ~StubRoutines::call_stub
V [jvm.dll+0x8176e]
V [jvm.dll+0xd481d]
V [jvm.dll+0x8163f]
V [jvm.dll+0xe4b69]
V [jvm.dll+0x9f8a6]
C [java.dll+0x6bee]
j
sun.reflect.NativeConstructorAccessorImpl.newInsta nce([Ljava/lang/ObjectLjava/lang/Object;+72
j
sun.reflect.DelegatingConstructorAccessorImpl.newI nstance([Ljava/lang/ObjectLjava/lang/Object;+5
j
java.lang.reflect.Constructor.newInstance([Ljava/lang/ObjectLjava/lang/Object;+92
j java.lang.Class.newInstance0()Ljava/lang/Object;+118
j java.lang.Class.newInstance()Ljava/lang/Object;+15
j java.awt.Toolkit$2.run()Ljava/lang/Object;+97
v ~StubRoutines::call_stub
V [jvm.dll+0x8176e]
V [jvm.dll+0xd481d]
V [jvm.dll+0x8163f]
C [java.dll+0x1015]
j java.awt.Toolkit.getDefaultToolkit()Ljava/awt/Toolkit;+16
j java.awt.Toolkit.getEventQueue()Ljava/awt/EventQueue;+0
j java.awt.EventQueue.invokeLater(Ljava/lang/RunnableV+0
j javax.swing.SwingUtilities.invokeLater(Ljava/lang/RunnableV+1
j jController.Application1.main([Ljava/lang/StringV+11
v ~StubRoutines::call_stub
V [jvm.dll+0x8176e]
V [jvm.dll+0xd481d]
V [jvm.dll+0x8163f]
V [jvm.dll+0x885cd]
C [jController2W.exe+0x7907]
C [jController2W.exe+0x7734]
C [jController2W.exe+0x7350]
C [jController2W.exe+0x5580]
C [jController2W.exe+0x52da]
C [jController2W.exe+0x81e7]
C [jController2W.exe+0x822e]
C [jController2W.exe+0x17817]
C 0x00000000


--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x00e5cec8 JavaThread "Low Memory Detector" daemon [_thread_blocked,
id=3808]
0x00e5bb30 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3804]
0x00e5add0 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
id=3800]
0x00e521f0 JavaThread "Finalizer" daemon [_thread_blocked, id=2852]
0x00e50d60 JavaThread "Reference Handler" daemon [_thread_blocked,
id=3796]
=>0x00326a30 JavaThread "main" [_thread_in_Java, id=3784]

Other Threads:
0x00e4e390 VMThread [id=3788]
0x00e5e1d0 WatcherThread [id=3816]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 576K, used 98K [0x02f10000, 0x02fb0000,
0x033f0000)
eden
[error occurred during error reporting, step 190, id 0xc0000092]

Dynamic libraries:
0x00400000 - 0x0042d000 C:\jTill\jController\jController2W.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.DLL
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.DLL
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.DLL
0x77f10000 - 0x77f56000 C:\WINDOWS\system32\GDI32.dll
0x6d640000 - 0x6d7c5000 C:\Program
Files\Java\jdk1.5.0_01\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x5cd70000 - 0x5cd77000 C:\WINDOWS\system32\serwvdrv.dll
0x5b0a0000 - 0x5b0a7000 C:\WINDOWS\system32\umdmxfrm.dll
0x6d280000 - 0x6d288000 C:\Program Files\Java\jdk1.5.0_01\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d610000 - 0x6d61c000 C:\Program
Files\Java\jdk1.5.0_01\jre\bin\verify.dll
0x6d300000 - 0x6d31d000 C:\Program Files\Java\jdk1.5.0_01\jre\bin\java.dll
0x6d630000 - 0x6d63f000 C:\Program Files\Java\jdk1.5.0_01\jre\bin\zip.dll
0x6d000000 - 0x6d166000 C:\Program Files\Java\jdk1.5.0_01\jre\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL

VM Arguments:
jvm_args: -Djava.library.path=.;C:\jTill\jController;C:\Progr am
Files\Java\jdk1.5.0_01\bin;C:\Program Files\Common Files\Borland
Shared\BDE\;C:\Program
Files\Borland\BDS\3.0\Bin;C:\WINDOWS\system32;C:\W INDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel;C:\Documents and
Settings\Anton\My Documents\Borland Studio
Projects\Bpl;C:\Sun\jstudio_04Q4\Ent_04Q4\modules\ bin;C:\Documents and
Settings\Anton\My Documents\Borland Studio Projects\Bpl
-Dlauncher.commandline.params=-Djava.library.path=.;C:\jTill\jController;C:\Progr am
Files\Java\jdk1.5.0_01\bin;C:\Program Files\Common Files\Borland
Shared\BDE\;C:\Program
Files\Borland\BDS\3.0\Bin;C:\WINDOWS\system32;C:\W INDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel;C:\Documents and
Settings\Anton\My Documents\Borland Studio
Projects\Bpl;C:\Sun\jstudio_04Q4\Ent_04Q4\modules\ bin;C:\Documents and
Settings\Anton\My Documents\Borland Studio Projects\Bpl
-Dlauncher.config.bootclasspath=C:\jTill\jControlle r\jController2W.exe
-Xbootclasspath/p:C:\jTill\jController\jController2W.exe
-Dlauncher.jdk.home=C:\Program Files\Java\jdk1.5.0_01
-Dlauncher.program=C:\jTill\jController\jController 2W.exe
-Dborland.executable.path=C:\jTill\jController\jCon troller2W.exe exit
java_command: <unknown>

Environment Variables:
CLASSPATH=C:\TILL\Java\mysql-connector-java-3.1.7\mysql-connector-java-3.1.7-bin.jar;
PATH=.;C:\jTill\jController;C:\Program
Files\Java\jdk1.5.0_01\bin;C:\Program Files\Common Files\Borland
Shared\BDE\;C:\Program
Files\Borland\BDS\3.0\Bin;C:\WINDOWS\system32;C:\W INDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel;C:\Documents and
Settings\Anton\My Documents\Borland Studio
Projects\Bpl;C:\Sun\jstudio_04Q4\Ent_04Q4\modules\ bin;C:\Documents and
Settings\Anton\My Documents\Borland Studio Projects\Bpl
USERNAME=Anton
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel


--------------- S Y S T E M ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 1047852k(523716k free), swap 2522264k(2113368k
free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_01-b08) for windows-x86,
built on Dec 6 2004 19:51:00 by "java_re" with MS VC++ 6.0


================================================== ==============
  Reply With Quote


 


2 3rd November 14:12
kevin dean [teamb]
External User
 
Posts: 1
Default Cannot connect to mySql database - EXCEPTION_FLT_STACK_CHECK



What you're seeing is an internal JVM exception. There is likely
nothing wrong with your code at all, and the only ones likely to be
able to help are the Sun Java developers themselves.

I would recommend first, though, that you download and install JDK 5.0
Update 4 and see if the problem has been fixed before contacting Sun
about this issue.

http://java.sun.com/j2se/1.5.0/download.jsp

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
  Reply With Quote


 


Reply


Thread Tools
Display Modes




666