• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception thrown outside VM

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm developing an application that use a MS Access DB. When I try to add data to the DB I recieve an Exception that I dont't really understand.
The Exception is as follows:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77FCB89A
Function=RtlFreeHeap+0x209
Library=C:\WINNT\System32\ntdll.dll

Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.ReleaseStoredBytes(Native Method)
at sun.jdbc.odbc.JdbcOdbcResultSet.FreeCols(JdbcOdbcResultSet.java:152
- locked <02A56B78> (a sun.jdbc.odbc.JdbcOdbcResultSet)
at sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:40
at ConnectToDb.addCustomer(ConnectToDb.java:282)
at AddCustomer.actionPerformed(AddCustomer.java:251)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.jav
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1380)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1437)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
at java.awt.Container.dispatchEventImpl(Container.java:1423)
at java.awt.Window.dispatchEventImpl(Window.java:1566)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:19
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

Dynamic libraries:
0x00400000 - 0x00406000 C:\WINNT\System32\java.exe
0x77F80000 - 0x77FFC000 C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0B000 C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F34000 C:\WINNT\system32\KERNEL32.dll
0x77130000 - 0x771A1000 C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D330000 - 0x6D442000 C:\Program\Java\j2re1.4.0\bin\client\jvm.dll
0x77E10000 - 0x77E6F000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F79000 C:\WINNT\system32\GDI32.dll
0x77560000 - 0x77590000 C:\WINNT\System32\WINMM.dll
0x75E40000 - 0x75E5A000 C:\WINNT\System32\IMM32.DLL
0x6C9E0000 - 0x6C9E8000 C:\WINNT\System32\LPK.DLL
0x665C0000 - 0x66614000 C:\WINNT\System32\USP10.dll
0x10000000 - 0x10019000 C:\WINNT\System32\NVDESK32.DLL
0x6D1D0000 - 0x6D1D7000 C:\Program\Java\j2re1.4.0\bin\hpi.dll
0x6D300000 - 0x6D30D000 C:\Program\Java\j2re1.4.0\bin\verify.dll
0x6D210000 - 0x6D228000 C:\Program\Java\j2re1.4.0\bin\java.dll
0x6D320000 - 0x6D32D000 C:\Program\Java\j2re1.4.0\bin\zip.dll
0x6D000000 - 0x6D0F6000 C:\Program\Java\j2re1.4.0\bin\awt.dll
0x77800000 - 0x7781E000 C:\WINNT\System32\WINSPOOL.DRV
0x75060000 - 0x75070000 C:\WINNT\system32\MPR.dll
0x77A50000 - 0x77B45000 C:\WINNT\system32\ole32.dll
0x6D180000 - 0x6D1D0000 C:\Program\Java\j2re1.4.0\bin\fontmanager.dll
0x72870000 - 0x72876000 C:\WINNT\System32\DCIMAN32.dll
0x0EE30000 - 0x0F10F000 C:\WINNT\System32\nvoglnt.dll
0x6E3D0000 - 0x6E3D6000 C:\WINNT\System32\INDICDLL.dll
0x61210000 - 0x61219000 C:\Program\Microsoft Hardware\Mouse\POINT32.dll
0x6D250000 - 0x6D25A000 C:\Program\Java\j2re1.4.0\bin\JdbcOdbc.dll
0x1F7D0000 - 0x1F804000 C:\WINNT\System32\ODBC32.dll
0x76B20000 - 0x76B5D000 C:\WINNT\system32\comdlg32.dll
0x70BD0000 - 0x70C1C000 C:\WINNT\system32\SHLWAPI.DLL
0x716B0000 - 0x7173A000 C:\WINNT\system32\COMCTL32.DLL
0x77590000 - 0x777D6000 C:\WINNT\system32\SHELL32.DLL
0x0B000000 - 0x0B017000 C:\WINNT\System32\odbcint.dll
0x1F8F0000 - 0x1F932000 C:\WINNT\System32\odbcjt32.dll
0x1B000000 - 0x1B16F000 C:\WINNT\System32\msjet40.dll
0x1B5C0000 - 0x1B655000 C:\WINNT\System32\mswstr10.dll
0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.dll
0x1F8E0000 - 0x1F8EF000 C:\WINNT\System32\odbcji32.dll
0x1B2C0000 - 0x1B2CD000 C:\WINNT\System32\msjter40.dll
0x1B2D0000 - 0x1B2F7000 C:\WINNT\System32\MSJINT40.DLL
0x68CB0000 - 0x68D35000 C:\WINNT\System32\CLBCATQ.DLL
0x1B7F0000 - 0x1B82A000 C:\WINNT\System32\msjtes40.dll
0x18530000 - 0x1853B000 C:\WINNT\System32\VBAJET32.DLL
0x18950000 - 0x189B2000 C:\WINNT\System32\expsrv.dll
0x51000000 - 0x5104B000 C:\WINNT\System32\ddraw.dll
0x61220000 - 0x6122B000 C:\Program\Microsoft Hardware\Mouse\MSH_ZWF.dll
0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
0x729D0000 - 0x729FD000 C:\WINNT\system32\DBGHELP.dll
0x69030000 - 0x6903B000 C:\WINNT\System32\PSAPI.DLL

Local Time = Wed Mar 19 09:59:19 2003
Elapsed Time = 11
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#

Does anyone have any clue to what the problem is?
The method that is supposed to write to the table is the following code.

/Emil Karlsson
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Emil, I would try an upgrade (to JRE 1.4.1_x) or downgrade (to JRE 1.3.1_x).
Otherwise a http://java.sun.com bug search and/or bug submission is called for.
The same could go for the ODBC connector component.
[ March 19, 2003: Message edited by: Barry Gaunt ]
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is not a bug in the jvm.
The problem is with using odbc to connect to Access. odbc means the memory for result sets must be allocated & deallocated correctly, etc etc etc
Use a jdbc driver or switch databases to something that supports jdbc.
my 2c
 
Emil Karlsson
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot
/Emil
reply
    Bookmark Topic Watch Topic
  • New Topic