How to catch java.sql.SQLException
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi! The compiled (Windows standalone app) version of my works-fine-in-the-interpreter MATLAB code is crashing with:
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid string or buffer length at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLBindInParameterNull(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setNull(Unknown Source) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.emulateExecuteBatch(Unknown S ource) at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeBatchUpdate(Unknown So urce) at sun.jdbc.odbc.JdbcOdbcStatement.executeBatch(Unknown Source) # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007ff7fc52953, pid=3648, t id=3808 # # JRE version: 6.0_17-b04 # Java VM: Java HotSpot™ 64-Bit Server VM (14.3-b01 mixed mode windows-amd64 ) # Problematic frame: # C [msvcrt.dll+0x52953] # # An error report file with more information is saved as: # C:\DOCUME~1\matlab\LOCALS~1\Temp\1\matlab\mcrCache7.16\Proces3\MWDM\trunk\RT\R el\Flights\hs_err_pid3648.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Opening log file: C:\DOCUME~1\matlab\LOCALS~1\Temp\1\java.log.3648
(nothing is opened, BTW, despite the last line).
Is there some way to catch--literally, i.e., using a catch block in my code--this exception so I can pin down where in my code it's occurring?
(catch ME if (strcmp(ME.identifier, 'java.sql.SQLException'))
didn't do it; do I need to use java:sql:SQLException instead?)
Thanks!
OlyDLG
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Java Package Integration en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!