Home : Common Errors When Embedding an ActiveX Control in a Java Frame
Q75790 - ERRMSG: Common Errors When Embedding an ActiveX Control in a Java Frame

Common Errors When Embedding an ActiveX Control in a Java Frame

 

Problem 1

  • java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path

  • Exception in thread "main" java.lang.RuntimeException: Can not use native code: Initialisation failed

    These errors indicate that the %JINTEGRA_HOME%\bin directory is missing from the system PATH (or java.library.path). J-Integra needs to be able to load ntvinv.dll in order to view ActiveX controls.

    Problem 2

  • [jintegra.log] 1067560465625 +: 380 Loading jawt.dll (libjawt.so on Solaris) failed. This is normal if java.version < 1.3

  • java.lang.RuntimeException: java.lang.NoClassDefFoundError: sun/awt/DrawingSurface. If java.version >= 1.4, make sure jre/bin is on the system PATH.
  • These errors indicate that the %JAVA_HOME%\jre\bin directory is missing from the system PATH (or java.library.path). J-Integra needs to be able to load jawt.dll in order to view ActiveX controls.

    Note: When embedding ActiveX controls into Java frames, both the %JAVA_HOME%\jre\bin and %JINTEGRA_HOME%\bin directories must be present in the system PATH. It is not enough to just include these directories in the java.library.path property that you pass to the JVM.

    Problem 3

    Another indication that the %JAVA_HOME%\jre\bin directory is missing is when running your application results in the JVM crashing with output similar to below...

    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x0
    Function name=(N/A)
    Library=(N/A)
    
    
    NOTE: We are unable to locate the function name symbol for the error
          just occurred. Please refer to release documentation for possible
          reason and solutions.
    
    Current Java thread:
                at com.linar.jintegra.NativeObjRef.getJdk13WindowsHandle(Native Method)
                at com.linar.jintegra.r.getHandleForCanvas(Unknown Source)
                at com.linar.jintegra.Ocx.a(Unknown Source)
                at com.linar.jintegra.Ocx.addNotify(Unknown Source)
                at pdf.Pdf.addNotify(Pdf.java:87)
                at java.awt.Container.addNotify(Container.java:1574)
                at javax.swing.JComponent.addNotify(JComponent.java:3495)
                at java.awt.Container.addNotify(Container.java:1574)
                at javax.swing.JComponent.addNotify(JComponent.java:3495)
                at java.awt.Container.addNotify(Container.java:1574)
                at javax.swing.JComponent.addNotify(JComponent.java:3495)
                at javax.swing.JRootPane.addNotify(JRootPane.java:478)
                at java.awt.Container.addNotify(Container.java:1574)
                at java.awt.Window.addNotify(Window.java:346)
                at java.awt.Frame.addNotify(Frame.java:356)
                at java.awt.Window.show(Window.java:386)
                at java.awt.Component.show(Component.java:941)
                at java.awt.Component.setVisible(Component.java:898)
                at ActiveX.main(ActiveX.java:16)
    
    Dynamic libraries:
    0x00400000 - 0x00405000          C:\jdk1.3.1\bin\javaw.exe
    0x77F80000 - 0x77FFB000         C:\WINNT\system32\ntdll.dll
    0x7C2D0000 - 0x7C332000         C:\WINNT\system32\ADVAPI32.dll
    0x7C570000 - 0x7C623000         C:\WINNT\system32\KERNEL32.DLL
    0x77D30000 - 0x77D9E000         C:\WINNT\system32\RPCRT4.DLL
    0x77E10000 - 0x77E6F000         C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F79000          C:\WINNT\system32\GDI32.dll
    0x78000000 - 0x78045000          C:\WINNT\system32\MSVCRT.dll
    0x6D420000 - 0x6D4F9000         C:\jdk1.3.1\jre\bin\hotspot\jvm.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 - 0x6D268000         C:\jdk1.3.1\jre\bin\java.dll
    0x6D3C0000 - 0x6D3CD000        C:\jdk1.3.1\jre\bin\zip.dll
    0x6D020000 - 0x6D12B000         C:\jdk1.3.1\jre\bin\awt.dll
    0x77800000 - 0x7781E000          C:\WINNT\system32\WINSPOOL.DRV
    0x76620000 - 0x76631000          C:\WINNT\system32\MPR.DLL
    0x75E60000 - 0x75E7A000         C:\WINNT\system32\IMM32.dll
    0x77A50000 - 0x77B3C000         C:\WINNT\system32\ole32.dll
    0x6D1E0000 - 0x6D21B000        C:\jdk1.3.1\jre\bin\fontmanager.dll
    0x69510000 - 0x695D7000          C:\WINNT\system32\OPENGL32.dll
    0x6FAC0000 - 0x6FADF000       C:\WINNT\system32\GLU32.dll
    0x72800000 - 0x72846000          C:\WINNT\system32\DDRAW.dll
    0x728A0000 - 0x728A6000         C:\WINNT\system32\DCIMAN32.dll
    0x10000000 - 0x101D1000          C:\WINNT\system32\i81xgicd.dll
    0x0CF50000 - 0x0CF8D000        C:\jintegra\bin\ntvinv.dll
    0x779B0000 - 0x77A4B000         C:\WINNT\system32\OLEAUT32.dll
    0x6A780000 - 0x6A785000         C:\WINNT\system32\mtxex.dll
    0x78740000 - 0x788AB000         C:\WINNT\system32\COMSVCS.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
    0x6DE80000 - 0x6DEE4000        C:\WINNT\system32\TxfAux.Dll
    0x6DF80000 - 0x6E034000         C:\WINNT\system32\MSDTCPRX.dll
    0x6A7A0000 - 0x6A7B0000        C:\WINNT\system32\MTXCLU.DLL
    0x77820000 - 0x77827000          C:\WINNT\system32\VERSION.dll
    0x759B0000 - 0x759B6000         C:\WINNT\system32\LZ32.DLL
    0x73930000 - 0x73940000          C:\WINNT\system32\CLUSAPI.DLL
    0x689D0000 - 0x689DD000         C:\WINNT\system32\RESUTILS.DLL
    0x7C0F0000 - 0x7C151000         C:\WINNT\system32\USERENV.dll
    0x0D3C0000 - 0x0D3C7000        C:\jintegra\bin\International\ntvinvenglishresourcedll.dll
    0x6C370000 - 0x6C46B000         C:\WINNT\system32\MFC42.DLL
    0x6D340000 - 0x6D348000         C:\jdk1.3.1\jre\bin\net.dll
    0x782C0000 - 0x782CC000         C:\WINNT\System32\rnr20.dll
    0x77340000 - 0x77353000          C:\WINNT\system32\iphlpapi.dll
    0x77520000 - 0x77525000          C:\WINNT\system32\ICMP.DLL
    0x77320000 - 0x77337000          C:\WINNT\system32\MPRAPI.DLL
    0x773B0000 - 0x773DF000         C:\WINNT\system32\ACTIVEDS.DLL
    0x77380000 - 0x773A3000          C:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000          C:\WINNT\system32\RTUTILS.DLL
    0x77880000 - 0x7790E000          C:\WINNT\system32\SETUPAPI.DLL
    0x774E0000 - 0x77513000          C:\WINNT\system32\RASAPI32.DLL
    0x774C0000 - 0x774D1000         C:\WINNT\system32\RASMAN.DLL
    0x77530000 - 0x77552000          C:\WINNT\system32\TAPI32.DLL
    0x71710000 - 0x71794000          C:\WINNT\system32\COMCTL32.DLL
    0x63180000 - 0x631E5000          C:\WINNT\system32\SHLWAPI.DLL
    0x77360000 - 0x77379000          C:\WINNT\system32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000         C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000          C:\WINNT\system32\rasadhlp.dll
    0x0D470000 - 0x0D47F000         c:\jintegra\bin\ntvocx.dll
    0x773E0000 - 0x773F5000         C:\WINNT\system32\ATL.DLL
    0x77920000 - 0x77943000          C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000         C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000         C:\WINNT\system32\PSAPI.DLL
     
    
    Local Time = Thu Nov 06 16:46:02 2003
    Elapsed Time = 5
    #
    # The exception above was detected in native code outside the VM
    #
    # Java VM: Java HotSpot(TM) Client VM (1.3.1_09-b03 mixed mode)
    #
    # An error report file has been saved as hs_err_pid1636.log.
    # Please refer to the file for further information.
    #
    Process terminated with exit code 1
    
    
    Related Articles
    No Related Articles Available.

    Article Attachments
    No Attachments Available.

    Related External Links
    No Related Links Available.
    Help us improve this article...
    What did you think of this article?

    poor 
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

     excellent
    Tell us why you rated the content this way. (optional)
     
    Approved Comments...
    No user comments available for this article.
    Created on 6/23/2006.
    Last Modified on 7/11/2006.
    Last Modified by No Author Name Available!.
    Article has been viewed 14858 times.
    Rated 7 out of 10 based on 9 votes.
    Print Article
    Email Article