hi

I have devoloped a java application which usedes prepared statements to insert into a particular table.
I am using the function PreparedStatement.setInt(...) and PreparedStatement.setShort(...).
and when i say executeUpdate(); i get the error listed below.I am using db2java.zip as the library file for drivers.

void insert(int row, PreparedStatement stmt, int contactId, int pkVal, String add, short type) throws Exception{
stmt.setInt(2, pkVal);
if(add != null && !Str.isBlank(add)){
stmt.setInt(1, 1);
stmt.setString(3, add);
stmt.setInt(4, contactId);
stmt.setShort(5, type);
try{
stmt.executeUpdate();
}catch(Exception e){
e.printStackTrace();
}
}
}



An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6d4f456c
Function name=Java_COM_ibm_db2_jdbc_app_DB2PreparedStatemen t_SQLBindInteger2
Library=C:\Program Files\SQLLIB\bin\db2jdbc.dll

...........................

Dynamic libraries:
0x00400000 - 0x00405000 C:\JDK1.3.1\bin\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:\JDK1.3.1\jre\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
0x6D220000 - 0x6D227000 C:\JDK1.3.1\jre\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000 C:\JDK1.3.1\jre\bin\verify.dll
0x6D250000 - 0x6D266000 C:\JDK1.3.1\jre\bin\java.dll
0x6D3C0000 - 0x6D3CD000 C:\JDK1.3.1\jre\bin\zip.dll
0x6D020000 - 0x6D128000 C:\jdk1.3.1\jre\bin\awt.dll
0x77800000 - 0x7781D000 C:\WINNT\System32\WINSPOOL.DRV
0x75E60000 - 0x75E7A000 C:\WINNT\System32\IMM32.dll
0x77A50000 - 0x77B45000 C:\WINNT\system32\ole32.dll
0x6D1E0000 - 0x6D21B000 C:\jdk1.3.1\jre\bin\fontmanager.dll
0x253E0000 - 0x253E6000 C:\j2sdkee1.2.1\nativelib\ioser12.dll
0x6D340000 - 0x6D348000 C:\jdk1.3.1\jre\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
0x6D240000 - 0x6D246000 C:\jdk1.3.1\jre\bin\ioser12.dll
0x6D290000 - 0x6D29A000 C:\jdk1.3.1\jre\bin\JdbcOdbc.dll
0x254C0000 - 0x254F4000 C:\WINNT\System32\ODBC32.dll
0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
0x70BD0000 - 0x70C1C000 C:\WINNT\system32\SHLWAPI.DLL
0x71700000 - 0x7178A000 C:\WINNT\system32\COMCTL32.DLL
0x775A0000 - 0x777E0000 C:\WINNT\system32\SHELL32.DLL
0x25600000 - 0x25616000 C:\WINNT\System32\odbcint.dll
0x25660000 - 0x256A2000 C:\WINNT\System32\odbcjt32.dll
0x256B0000 - 0x2581C000 C:\WINNT\System32\msjet40.dll
0x25820000 - 0x258B5000 C:\WINNT\System32\mswstr10.dll
0x779B0000 - 0x77A45000 C:\WINNT\system32\OLEAUT32.dll
0x264F0000 - 0x264FE000 C:\WINNT\System32\odbcji32.dll
0x26500000 - 0x2650D000 C:\WINNT\System32\msjter40.dll
0x26510000 - 0x26536000 C:\WINNT\System32\MSJINT40.DLL
0x2AB50000 - 0x2AB8F000 C:\WINNT\System32\mstext40.dll
0x70420000 - 0x704A8000 C:\WINNT\System32\mlang.dll
0x6D4F0000 - 0x6D4FF000 C:\Program Files\SQLLIB\bin\db2jdbc.dll
0x6C000000 - 0x6C22F000 C:\Program Files\SQLLIB\BIN\DB2CLI.dll
0x6C520000 - 0x6C6C5000 C:\Program Files\SQLLIB\BIN\DB2SYS.dll
0x2AFE0000 - 0x2AFEB000 C:\Program Files\SQLLIB\BIN\DB2WINT.dll
0x2AFF0000 - 0x2B001000 C:\Program Files\SQLLIB\BIN\DB2SYSP.dll
0x75170000 - 0x751BF000 C:\WINNT\System32\NETAPI32.dll
0x77BE0000 - 0x77BEF000 C:\WINNT\System32\SECUR32.DLL
0x751C0000 - 0x751C6000 C:\WINNT\System32\NETRAP.DLL
0x75150000 - 0x7515F000 C:\WINNT\System32\SAMLIB.DLL
0x6C230000 - 0x6C37E000 C:\Program Files\SQLLIB\BIN\DB2APP.dll
0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll
0x759B0000 - 0x759B6000 C:\WINNT\system32\LZ32.DLL
0x78100000 - 0x78133000 C:\WINNT\system32\kerberos.dll
0x76670000 - 0x7667E000 C:\WINNT\System32\CRYPTDLL.DLL
0x77430000 - 0x77440000 C:\WINNT\System32\MSASN1.DLL
0x6D690000 - 0x6D69D000 C:\PROGRA~1\SQLLIB\bin\db2tcp.DLL
0x2B130000 - 0x2B16D000 C:\Program Files\Network Associates\VirusScan\Wbhook32.dll
0x2B280000 - 0x2B289000 C:\Program Files\Network Associates\VirusScan\Res09\WbhkRes.dll
0x72800000 - 0x72846000 C:\WINNT\System32\ddraw.dll
0x728A0000 - 0x728A6000 C:\WINNT\System32\DCIMAN32.dll
0x77CC0000 - 0x77D40000 C:\WINNT\System32\CLBCATQ.DLL
0x2F400000 - 0x2F439000 C:\WINNT\System32\msjtes40.dll
0x2FCC0000 - 0x2FCCB000 C:\WINNT\System32\VBAJET32.DLL
0x300E0000 - 0x30142000 C:\WINNT\System32\expsrv.dll
0x77920000 - 0x77942000 C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 C:\WINNT\System32\PSAPI.DLL

Local Time = Wed Feb 06 10:35:57 2002
Elapsed Time = 121
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed mode)
#