Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help me. Strange problem

Status
Not open for further replies.

sujitopics

Programmer
Oct 9, 2001
69
KR
Dear Friends,
please help me.

My RMI Serverprogram is suddenly shutting down after running for 2 hours. and showing the following log file.

My server program will inserts records in database.(Continuous database interaction)

please help me. i am stuck with this problem. i cannot find the solution.

Thanks in advance.
yours Suji


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x41166aa5
Function name=(N/A)
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:
at sun.jdbc.odbc.JdbcOdbc.getDataInteger(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.buildTypeInfo(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at DBUtil.getConnection(DBUtil.java:10)
at TestTable.isProtocol(TestTable.java:112)
at Test.set(Test.java:138)
at Test.trans_Tr0(Test.java:362)
at Test.run(Test.java:311)
at java.lang.Thread.run(Unknown Source)

Dynamic libraries:
0x00400000 - 0x00405000 C:\WINNT\system32\java.exe
0x77F80000 - 0x77FF9000 C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0A000 C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F36000 C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DAF000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D420000 - 0x6D4EF000 C:\Program Files\JavaSoft\JRE\1.3.1\bin\hotspot\jvm.dll
0x77E10000 - 0x77E75000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll
0x75E60000 - 0x75E7A000 C:\WINNT\System32\IMM32.DLL
0x6D220000 - 0x6D227000 C:\Program Files\JavaSoft\JRE\1.3.1\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000 C:\Program Files\JavaSoft\JRE\1.3.1\bin\verify.dll
0x6D250000 - 0x6D266000 C:\Program Files\JavaSoft\JRE\1.3.1\bin\java.dll
0x6D3C0000 - 0x6D3CD000 C:\Program Files\JavaSoft\JRE\1.3.1\bin\zip.dll
0x6D340000 - 0x6D348000 C:\Program Files\JavaSoft\JRE\1.3.1\bin\net.dll
0x75050000 - 0x75058000 C:\WINNT\system32\WSOCK32.dll
0x75030000 - 0x75044000 C:\WINNT\system32\WS2_32.DLL
0x75020000 - 0x75028000 C:\WINNT\system32\WS2HELP.DLL
0x77840000 - 0x7784C000 C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779A4000 C:\WINNT\system32\DNSAPI.DLL
0x777E0000 - 0x777E8000 C:\WINNT\System32\winrnr.dll
0x77950000 - 0x77979000 C:\WINNT\system32\WLDAP32.DLL
0x777F0000 - 0x777F5000 C:\WINNT\system32\rasadhlp.dll
0x77830000 - 0x7783E000 C:\WINNT\system32\RTUTILS.DLL
0x74FD0000 - 0x74FE1000 C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
0x10000000 - 0x1000D000 C:\Demo\Server\Utility.dll
0x6D290000 - 0x6D29A000 C:\Program Files\JavaSoft\JRE\1.3.1\bin\JdbcOdbc.dll
0x1F7F0000 - 0x1F825000 C:\WINNT\system32\ODBC32.dll
0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
0x70BD0000 - 0x70C34000 C:\WINNT\system32\SHLWAPI.DLL
0x71780000 - 0x7180A000 C:\WINNT\system32\COMCTL32.DLL
0x775A0000 - 0x777E0000 C:\WINNT\system32\SHELL32.DLL
0x1F8E0000 - 0x1F8F6000 C:\WINNT\system32\odbcint.dll
0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll
0x759B0000 - 0x759B6000 C:\WINNT\system32\LZ32.DLL
0x77A50000 - 0x77B45000 C:\WINNT\system32\ole32.dll
0x77BE0000 - 0x77BEF000 C:\WINNT\System32\SECUR32.DLL
0x1F840000 - 0x1F85A000 C:\WINNT\system32\odbccp32.dll
0x78140000 - 0x7815A000 C:\WINNT\system32\msv1_0.dll
0x77920000 - 0x77942000 C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 C:\WINNT\system32\PSAPI.DLL

Local Time = Sat Feb 09 12:43:06 2002
Elapsed Time = 11822
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed mode)
#
 
Hi, I noticed u use the jdbc-odbc bridge, which does have multi-theading problems, (the odbc part). Try synchronising the part through which data is updated on the database, so that only one thread uses it at a time.
 
Dear DannyB,

Thank you very much.

if possible please tell me how to synchronise odbc threads.

i am new to java.

please help me.

looking forward to hearing from you again.

Thanks in advance

yours

suji
 
Hi - Just use the synchronized modifier on any classes that access the JDBC connection. Over to you
RjB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top