PDA

View Full Version : Strano errore causato da un mio programma in java


ademar
22-05-2006, 10:09
Ho scritto un software in java, che utilizza Socket, threads e JDBC con database Access. Durante il suo utilizzo, puņ risultare tutto corretto, ma per un motivo in questo momento sconosciuto, spesso capita che il software genera un errore e si auto chiude.
L'errore č di questo tipo tipo:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c911010, pid=3364, tid=3412
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x1010]
#
Allego anche il file di log generato dall'errore.
Come posso risolverlo ? Grazie.

^TiGeRShArK^
22-05-2006, 14:19
io ho trovato questo googlando due sec...:

The application is using JDBC- ODBC Type 1 driver to connect to MS - SQL Server.

Get a JDBC type 4 Driver, forget about the JDBC-ODBC
bridge. Sun does not recomend using it,

This is from sun's site:
Status of the JDBC-ODBC Bridge

The JDBC-ODBC Bridge should be considered a transitional solution. Sun
Microsystems and Merant are working to make the Bridge more reliable and
robust, but they do not consider it a supported product. With the
development of pure-Java JDBC drivers, the JDBC-ODBC Bridge should
become unnecessary.


Sun has a list of JDBC drivers @
http://industry.java.sun.com/products/jdbc/drivers

We use the I-Net driver for MS-SQL & have never had any prpoblems

Sembrerebbe che il problema sia nel driver jdbc, come immaginavo...
vedi se riesci a scaricare qualche versione + aggiornata o qualche driver alternativo all'indirizzo postato sopra....