JVM access violation in Type Browser

John Pompeii <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
Hi Folks, another newbe here.

Jawin looks like a great package and I look forward to working with it.
Thank you all.

I'm trying to use jawin to invoke COM objects that were supplied with a
stock trading platform (www.mbtrading.com, btw) from java.  I started using
the Jawin Type Browser and loaded the three dll's that contain the com
objects and type info.  After clicking OK on the project properties page I
get the JVM crash below.  I tried loading each dll into it's own project
and discovered that one of the three dll's is the problem.  With the other
two, I can generate the java code just fine.  Unfortunately for me, the
problematic dll is the main one of the package and I'm pretty much stuck
until I resolve this.

BTW, I'm running Windows 2000 professional sp4

Any suggestions on wrongdoings, work-arounds, or debugging process?

If not, how hard is it to gather the interface details and write my own
stubs?

Thanks in advance for any help!

--john


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at
PC=0x77A206A3
Function=OACreateTypeLib2+0x15F2
Library=C:\WINNT\system32\OLEAUT32.DLL

Current Java thread:
 at org.jawin.win32.ITypeInfo.getDocumentation(Native Method)
 at org.jawin.browser.typelib.TypeParser.getDocName
(TypeParser.java:964)
 at org.jawin.browser.typelib.TypeParser.buildUserDefinedDescription
(TypeParser.java:953)
 at org.jawin.browser.typelib.TypeParser.buildTypeDescription
(TypeParser.java:900)
 at org.jawin.browser.typelib.TypeParser.buildUserDefinedDescription
(TypeParser.java:944)
 at org.jawin.browser.typelib.TypeParser.buildTypeDescription
(TypeParser.java:900)
 at org.jawin.browser.typelib.TypeParser.buildTypeDescription
(TypeParser.java:870)
 at org.jawin.browser.typelib.TypeParser.buildTypeDescription
(TypeParser.java:829)
 at org.jawin.browser.typelib.TypeParser.parseFuncDesc
(TypeParser.java:211)
 at org.jawin.browser.typelib.TypeParser.parseTypeInfo
(TypeParser.java:166)
 at
org.jawin.browser.gui.TypeBrowserFrame.loadCurrentProjectLibraries
(TypeBrowserFrame.java:551)
 at org.jawin.browser.gui.TypeBrowserFrame.openProject
(TypeBrowserFrame.java:619)
 at org.jawin.browser.gui.TypeBrowserFrame.access$100
(TypeBrowserFrame.java:37)
 at org.jawin.browser.gui.TypeBrowserFrame$13.actionPerformed
(TypeBrowserFrame.java:304)
 at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1786)
 at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1839)
 at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
 at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
 at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick
(BasicMenuItemUI.java:1113)
 at
javax.swing.plaf.basic.BasicMenuItemUI$MenuDragMouseHandler.menuDragMouseRel
eased(BasicMenuItemUI.java:1006)
 at javax.swing.JMenuItem.fireMenuDragMouseReleased
(JMenuItem.java:584)
 at javax.swing.JMenuItem.processMenuDragMouseEvent
(JMenuItem.java:481)
 at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:428)
 at javax.swing.MenuSelectionManager.processMouseEvent
(MenuSelectionManager.java:277)
 at
javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseReleased
(BasicMenuUI.java:360)
 at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
 at java.awt.Component.processMouseEvent(Component.java:5100)
 at java.awt.Component.processEvent(Component.java:4897)
 at java.awt.Container.processEvent(Container.java:1569)
 at java.awt.Component.dispatchEventImpl(Component.java:3615)
 at java.awt.Container.dispatchEventImpl(Container.java:1627)
 at java.awt.Component.dispatchEvent(Component.java:3477)
 at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3483)
 at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3198)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
 at java.awt.Container.dispatchEventImpl(Container.java:1613)
 at java.awt.Window.dispatchEventImpl(Window.java:1606)
 at java.awt.Component.dispatchEvent(Component.java:3477)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:151)
 at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:145)
 at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:137)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Dynamic libraries:
0x00400000 - 0x00406000  c:\jdk14\jre\bin\java.exe
0x77F80000 - 0x77FFD000  C:\WINNT\system32\ntdll.dll
0x7C2D0000 - 0x7C332000  C:\WINNT\system32\ADVAPI32.dll
0x7C570000 - 0x7C628000  C:\WINNT\system32\KERNEL32.DLL
0x77D30000 - 0x77DA1000  C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78045000  C:\WINNT\system32\MSVCRT.dll
0x08000000 - 0x08136000  c:\jdk14\jre\bin\client\jvm.dll
0x77E10000 - 0x77E75000  C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7E000  C:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000  C:\WINNT\system32\WINMM.dll
0x10000000 - 0x10007000  c:\jdk14\jre\bin\hpi.dll
0x007C0000 - 0x007CE000  c:\jdk14\jre\bin\verify.dll
0x007D0000 - 0x007E8000  c:\jdk14\jre\bin\java.dll
0x007F0000 - 0x007FD000  c:\jdk14\jre\bin\zip.dll
0x18470000 - 0x1857A000  C:\jdk14\jre\bin\awt.dll
0x77800000 - 0x7781E000  C:\WINNT\system32\WINSPOOL.DRV
0x76620000 - 0x76630000  C:\WINNT\system32\MPR.DLL
0x75E60000 - 0x75E7A000  C:\WINNT\system32\IMM32.dll
0x77A50000 - 0x77B3F000  C:\WINNT\system32\ole32.dll
0x18980000 - 0x189D0000  C:\jdk14\jre\bin\fontmanager.dll
0x51000000 - 0x51044000  C:\WINNT\system32\ddraw.dll
0x728A0000 - 0x728A6000  C:\WINNT\system32\DCIMAN32.dll
0x5C000000 - 0x5C0C7000  C:\WINNT\system32\D3DIM700.DLL
0x63000000 - 0x63014000  C:\WINNT\system32\SynTPFcs.dll
0x77820000 - 0x77827000  C:\WINNT\system32\VERSION.dll
0x759B0000 - 0x759B6000  C:\WINNT\system32\LZ32.DLL
0x782F0000 - 0x78538000  C:\WINNT\system32\shell32.dll
0x70A70000 - 0x70AD5000  C:\WINNT\system32\SHLWAPI.DLL
0x71710000 - 0x71794000  C:\WINNT\system32\COMCTL32.DLL
0x779B0000 - 0x77A4B000  C:\WINNT\system32\OLEAUT32.DLL
0x775A0000 - 0x77630000  C:\WINNT\system32\CLBCATQ.DLL
0x77840000 - 0x7787E000  C:\WINNT\system32\cscui.dll
0x770C0000 - 0x770E3000  C:\WINNT\system32\CSCDLL.DLL
0x76DF0000 - 0x76E01000  C:\WINNT\system32\mydocs.dll
0x19D70000 - 0x19EB9000  C:\WINNT\system32\SHDOCVW.DLL
0x75160000 - 0x7516C000  C:\WINNT\System32\ntlanman.dll
0x75210000 - 0x75225000  C:\WINNT\System32\NETUI0.DLL
0x751D0000 - 0x75208000  C:\WINNT\System32\NETUI1.DLL
0x75170000 - 0x751BF000  C:\WINNT\System32\NETAPI32.DLL
0x7C340000 - 0x7C34F000  C:\WINNT\System32\SECUR32.DLL
0x751C0000 - 0x751C6000  C:\WINNT\System32\NETRAP.DLL
0x75150000 - 0x7515F000  C:\WINNT\System32\SAMLIB.DLL
0x75030000 - 0x75044000  C:\WINNT\System32\WS2_32.DLL
0x75020000 - 0x75028000  C:\WINNT\System32\WS2HELP.DLL
0x77950000 - 0x7797A000  C:\WINNT\system32\WLDAP32.DLL
0x77980000 - 0x779A4000  C:\WINNT\System32\DNSAPI.DLL
0x75050000 - 0x75058000  C:\WINNT\System32\WSOCK32.DLL
0x19F10000 - 0x19F33000
 C:\tools\jawin\typebrowser\TypeLibWrapper.dll
0x77920000 - 0x77943000  C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000  C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000  C:\WINNT\system32\PSAPI.DLL

Heap at VM Abort:
Heap
 def new generation   total 576K, used 305K [0x10010000, 0x100b0000,
0x104f0000)
  eden space 512K,  47% used [0x10010000, 0x1004c6b0, 0x10090000)
  from space 64K, 100% used [0x100a0000, 0x100b0000, 0x100b0000)
  to   space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)
 tenured generation   total 4704K, used 4268K [0x104f0000, 0x10988000,
0x14010000)
   the space 4704K,  90% used [0x104f0000, 0x1091b030, 0x1091b200,
0x10988000)
 compacting perm gen  total 8192K, used 7963K [0x14010000, 0x14810000,
0x18010000)
   the space 8192K,  97% used [0x14010000, 0x147d6d40, 0x147d6e00,
0x14810000)

Local Time = Sat Jul 17 11:53:41 2004
Elapsed Time = 15
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.