Newsgroup: it.comp.java
Titolo: VM che fa i capricci

Ogni tanto, senza preavviso , il programma server che accetta
connessioni TCP/IP sulla porta x si chiude senza riportare eccezioni
gestibili da programma.
la VM ni crea un file chiamato: hs_err_pid108.log che contiene il
seguente messaggio:
Qualcuno sa dirmi di che si tratta?????????? Grazie
An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at
PC=0x77F417E2
Function=RtlAllocateHeap+0xEA
Library=C:\WINDOWS\System32\ntdll.dll
Current Java thread:
	at sun.jdbc.odbc.JdbcOdbc.setStmtAttrPtr(Native Method)
	at sun.jdbc.odbc.JdbcOdbc.SQLSetStmtAttrPtr(JdbcOdbc.java:5231)
	at sun.jdbc.odbc.JdbcOdbcResultSet.setRowStatusPtr(JdbcOdbcResultSet.java:4512)
	at sun.jdbc.odbc.JdbcOdbcResultSet.initialize(JdbcOdbcResultSet.java:167)
	at sun.jdbc.odbc.JdbcOdbcStatement.getResultSet(JdbcOdbcStatement.java:424)
	- locked <02FED608> (a sun.jdbc.odbc.JdbcOdbcStatement)
	at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:254)
	at client$clientConnection.importaCommessa(client.java:2042)
	- locked <02FE1060> (a client$clientConnection)
	at client$clientConnection.menuScarico(client.java:2419)
	at client$clientConnection.run(client.java:3307)
Dynamic libraries:
0x00400000 - 0x00406000 	C:\WINDOWS\system32\java.exe
0x77F40000 - 0x77FEF000 	C:\WINDOWS\System32\ntdll.dll
0x77E40000 - 0x77F30000 	C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E3B000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77C90000 - 0x77D05000 	C:\WINDOWS\system32\RPCRT4.dll
0x77BE0000 - 0x77C33000 	C:\WINDOWS\system32\MSVCRT.dll
0x6D330000 - 0x6D45C000
	C:\Programmi\Java\j2re1.4.1\bin\client\jvm.dll
0x77D10000 - 0x77D9D000 	C:\WINDOWS\system32\USER32.dll
0x77C40000 - 0x77C80000 	C:\WINDOWS\system32\GDI32.dll
0x76B00000 - 0x76B2D000 	C:\WINDOWS\system32\WINMM.dll
0x76340000 - 0x7635A000 	C:\WINDOWS\System32\IMM32.DLL
0x62E40000 - 0x62E48000 	C:\WINDOWS\system32\LPK.DLL
0x72F10000 - 0x72F6A000 	C:\WINDOWS\system32\USP10.dll
0x6D1D0000 - 0x6D1D7000 	C:\Programmi\Java\j2re1.4.1\bin\hpi.dll
0x6D300000 - 0x6D30D000 	C:\Programmi\Java\j2re1.4.1\bin\verify.dll
0x6D210000 - 0x6D229000 	C:\Programmi\Java\j2re1.4.1\bin\java.dll
0x6D320000 - 0x6D32D000 	C:\Programmi\Java\j2re1.4.1\bin\zip.dll
0x6D000000 - 0x6D0FA000 	C:\Programmi\Java\j2re1.4.1\bin\awt.dll
0x72F70000 - 0x72F93000 	C:\WINDOWS\system32\WINSPOOL.DRV
0x77180000 - 0x7729A000 	C:\WINDOWS\system32\ole32.dll
0x6D180000 - 0x6D1D0000
	C:\Programmi\Java\j2re1.4.1\bin\fontmanager.dll
0x736D0000 - 0x73715000 	C:\WINDOWS\system32\ddraw.dll
0x73B30000 - 0x73B36000 	C:\WINDOWS\system32\DCIMAN32.dll
0x6DE30000 - 0x6DEA1000 	C:\WINDOWS\system32\D3DIM.DLL
0x746B0000 - 0x746FB000 	C:\WINDOWS\System32\MSCTF.dll
0x6D2D0000 - 0x6D2DE000 	C:\Programmi\Java\j2re1.4.1\bin\net.dll
0x71A50000 - 0x71A59000 	C:\WINDOWS\system32\WSOCK32.dll
0x71A30000 - 0x71A45000 	C:\WINDOWS\system32\WS2_32.dll
0x71A20000 - 0x71A28000 	C:\WINDOWS\system32\WS2HELP.dll
0x719D0000 - 0x71A0C000 	C:\WINDOWS\System32\mswsock.dll
0x76EE0000 - 0x76F05000 	C:\WINDOWS\system32\DNSAPI.dll
0x76D20000 - 0x76D35000 	C:\WINDOWS\system32\iphlpapi.dll
0x76DA0000 - 0x76DC6000 	C:\WINDOWS\system32\netman.dll
0x76D00000 - 0x76D16000 	C:\WINDOWS\system32\MPRAPI.dll
0x76E00000 - 0x76E2F000 	C:\WINDOWS\system32\ACTIVEDS.dll
0x76DD0000 - 0x76DF4000 	C:\WINDOWS\system32\adsldpc.dll
0x71BB0000 - 0x71BFF000 	C:\WINDOWS\system32\NETAPI32.dll
0x76F20000 - 0x76F4D000 	C:\WINDOWS\system32\WLDAP32.dll
0x76AE0000 - 0x76AF5000 	C:\WINDOWS\system32\ATL.DLL
0x770F0000 - 0x7717B000 	C:\WINDOWS\system32\OLEAUT32.dll
0x76E40000 - 0x76E4D000 	C:\WINDOWS\system32\rtutils.dll
0x71B80000 - 0x71B91000 	C:\WINDOWS\system32\SAMLIB.dll
0x76630000 - 0x76718000 	C:\WINDOWS\system32\SETUPAPI.dll
0x160A0000 - 0x160D9000 	C:\WINDOWS\system32\RASAPI32.dll
0x76E50000 - 0x76E61000 	C:\WINDOWS\system32\rasman.dll
0x76E70000 - 0x76E9A000 	C:\WINDOWS\system32\TAPI32.dll
0x772A0000 - 0x77303000 	C:\WINDOWS\system32\SHLWAPI.dll
0x69800000 - 0x69FF5000 	C:\WINDOWS\system32\SHELL32.dll
0x76F50000 - 0x76F60000 	C:\WINDOWS\system32\Secur32.dll
0x76D60000 - 0x76D90000 	C:\WINDOWS\system32\WZCSvc.DLL
0x76CF0000 - 0x76CF4000 	C:\WINDOWS\system32\WMI.dll
0x76D40000 - 0x76D5A000 	C:\WINDOWS\system32\DHCPCSVC.DLL
0x76270000 - 0x762FB000 	C:\WINDOWS\system32\CRYPT32.dll
0x76250000 - 0x7625F000 	C:\WINDOWS\system32\MSASN1.dll
0x76F10000 - 0x76F18000 	C:\WINDOWS\system32\WTSAPI32.dll
0x76310000 - 0x7631F000 	C:\WINDOWS\system32\WINSTA.dll
0x16160000 - 0x16244000
	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a\comctl32.dll
0x77310000 - 0x7739B000 	C:\WINDOWS\system32\comctl32.dll
0x76F70000 - 0x76F77000 	C:\WINDOWS\System32\winrnr.dll
0x76F80000 - 0x76F85000 	C:\WINDOWS\system32\rasadhlp.dll
0x71A10000 - 0x71A18000 	C:\WINDOWS\System32\wshtcpip.dll
0x6D250000 - 0x6D25B000 	C:\Programmi\Java\j2re1.4.1\bin\JdbcOdbc.dll
0x1F7B0000 - 0x1F7E1000 	C:\WINDOWS\system32\ODBC32.dll
0x76360000 - 0x763A6000 	C:\WINDOWS\system32\comdlg32.dll
0x1F850000 - 0x1F868000 	C:\WINDOWS\system32\odbcint.dll
0x1F8F0000 - 0x1F932000 	C:\WINDOWS\System32\odbcjt32.dll
0x1B000000 - 0x1B16F000 	C:\WINDOWS\System32\msjet40.dll
0x1B5C0000 - 0x1B655000 	C:\WINDOWS\System32\mswstr10.dll
0x1F8E0000 - 0x1F8EF000 	C:\WINDOWS\System32\odbcji32.dll
0x1B2C0000 - 0x1B2CD000 	C:\WINDOWS\System32\msjter40.dll
0x1B2D0000 - 0x1B2FC000 	C:\WINDOWS\System32\MSJINT40.DLL
0x76F90000 - 0x77008000 	C:\WINDOWS\system32\CLBCATQ.DLL
0x77010000 - 0x770E2000 	C:\WINDOWS\system32\COMRes.dll
0x77BD0000 - 0x77BD7000 	C:\WINDOWS\system32\VERSION.dll
0x17310000 - 0x1734A000 	C:\WINDOWS\System32\msjtes40.dll
0x17760000 - 0x1776B000 	C:\WINDOWS\system32\VBAJET32.DLL
0x17B80000 - 0x17BE2000 	C:\WINDOWS\system32\expsrv.dll
0x76C50000 - 0x76C72000 	C:\WINDOWS\system32\imagehlp.dll
0x6DA30000 - 0x6DAAC000 	C:\WINDOWS\system32\DBGHELP.dll
0x76BB0000 - 0x76BBB000 	C:\WINDOWS\system32\PSAPI.DLL
Local Time = Tue Oct 08 00:51:15 2002
Elapsed Time = 154
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1-b21 mixed mode)
#


E' un errore causato da un bug della combinazione: VM in modalità 
HotSpot, Windows e driver jdbc-odbc.
Questo, ovviamente, lo si evince dal dump dell'errore.
Mi è capitato in passato di avere degli errori causati da bachi della 
HotSpot che ho potuto bypassare sia disattivando la modalità server 
della VM oppure aggiornando la VM stessa (dietro consiglio della Sun 
stessa).
Nel tuo caso c'è anche il driver jdbc-odbc che la stessa Sun non 
consiglia di usare in produzione (se la cosa non è cambiata con gli 
ultimi jdk).
Quindi credo che in alternativa puoi:
1. disattivare la modalità server, ma visto che è propio un server ...
2. aggiornare la JVM, ma credo che sia l'ultima...
3. utilizzare il driver diretto per il db, tranne se non usi file excel 
o acces...
4. cambiare sistema operativo, cosa cmq consigliabile
-- 
Fabio Ambrosanio
/quousque tandem/

manda un bug report alla sun! cosi' magari nella
prossima versione il problema sara' risolto.
di solito con i bug che causano crash della jvm sono
abbastanza celeri col fix...
http://java.sun.com/cgi-bin/bugreport.cgi
ciao!