Menu

setURL crashes program

Help
2003-06-30
2013-04-16
  • John Kalaigian

    John Kalaigian - 2003-06-30

    First off let me mention that I'm using J2SDK1.4.1_01 on a Win XP pro machine testing with both with the original dll found in the zip package found in a previous post, and also with another copy (i'm assuming newer) that is off the cvs folder.

    When i try to load the IEBrowser to a default webpage I get a virtual machine crash and it seems as if it occurs when a call is made to
    sendurl(String url) in the dll.

    Basically somewhere along my code after the IECanvas has been initialized i put in a call:

    canvas.setURL("http://www.lycos.com");

    and that returns the usual EXCEPTION_ACCESS_VIOLATION that everyone who has programmmed in JNI has come to love:

    Current Java thread:
        at nothome.mswindows.IECanvas.sendurl(Native Method)
        at nothome.mswindows.IECanvas.setURL(IECanvas.java:43)
        at nothome.mswindows.IEBrowser.addBrowserWindow(IEBrowser.java:120)
        at nothome.mswindows.IEBrowser.main(IEBrowser.java:137)

    I was wondering if anyone has a solution to this issue - do i have to recompile the dll and if so can somebody please tell me how to do so using Visual C++ .NET (version 7 or higher) - recompiling the dll is no problem - its dealing with the missing libraries that aren't backwards compatible that are the problem - thanks microsoft

     
    • Torgeir Veimo

      Torgeir Veimo - 2003-06-30

      hmm, can you try changing IECanvas.cpp line 25 from

      #define MESSAGE_IMPL 1

      to

      #undef MESSAGE_IMPL

      and see if it works?

       
      • Torgeir Veimo

        Torgeir Veimo - 2003-06-30

        Hmm, looking at it, it doesn't seem to use messaging for setting the URL in any case, so the above undef won't have any effect.

        Can you try to implement the Navigate2() method as a message passing method, as the other methods are done?

         
    • Neil

      Neil - 2007-07-13

      Hi, johnkalaigian,
      How about your state in this case, had you fixed? If so can you share the solution with me.

       
    • Neil

      Neil - 2007-07-13

      I have also met this case, But in general my jvm throwed the message as follow:

      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00ac817a, pid=1880, tid=2824
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode)
      # Problematic frame:
      # j  java.lang.Object.clone()Ljava/lang/Object;+0
      #

      ---------------  T H R E A D  ---------------

      Current thread is native thread

      siginfo: ExceptionCode=0xc0000005, writing address 0x00000080

      Registers:
      EAX=0x008b9df6, EBX=0x14014488, ECX=0x00000000, EDX=0x140531f0
      ESP=0x031df974, EBP=0x031df998, ESI=0x140144d0, EDI=0x02efdbf0
      EIP=0x00ac817a, EFLAGS=0x00010297

      Top of Stack: (sp=0x031df974)
      0x031df974:   02efdc8c 031df9a8 031df97c 00000000
      0x031df984:   031df9a8 140531f0 00000000 14014488
      0x031df994:   031df9a8 031df9c8 00ac2d8a 00000000
      0x031df9a4:   00ac64b3 10526840 031df9ac 14311cb3
      0x031df9b4:   031df9d8 14312e08 00000000 14311c68
      0x031df9c4:   031df9d8 031df9f8 00ac2d8a 00000000
      0x031df9d4:   00000000 10526840 031df9dc 14306deb
      0x031df9e4:   031dfa00 14308768 00000000 14306d98

      Instructions: (pc=0x00ac817a)
      0x00ac816a:   00 00 00 8b 7f f4 8d 8f 9c 00 00 00 51 8b 4f 24
      0x00ac817a:   c7 81 80 00 00 00 00 00 00 00 89 af 90 00 00 00

      Stack: [0x031a0000,0x031e0000),  sp=0x031df974,  free space=254k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      j  java.lang.Object.clone()Ljava/lang/Object;+0
      j  java.util.LinkedList.clone()Ljava/lang/Object;+3
      j  java.awt.KeyboardFocusManager.getKeyEventPostProcessors()Ljava/util/List;+11
      j  java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Ljava/awt/event/KeyEvent;)Z+62
      j  java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Ljava/awt/event/KeyEvent;)Z+136
      j  java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Ljava/awt/Component;Ljava/awt/AWTEvent;)Z+126
      j  java.awt.DefaultKeyboardFocusManager.dispatchEvent(Ljava/awt/AWTEvent;)Z+1169
      j  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+40
      J  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
      v  ~RuntimeStub::alignment_frame_return Runtime1 stub
      j  java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
      J  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
      J  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
      v  ~RuntimeStub::alignment_frame_return Runtime1 stub
      j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
      j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
      j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
      j  java.awt.EventDispatchThread.run()V+9
      v  ~StubRoutines::call_stub
      V  [jvm.dll+0x72846]
      V  [jvm.dll+0xac976]
      V  [jvm.dll+0x72753]
      V  [jvm.dll+0x7244f]
      V  [jvm.dll+0x72488]
      V  [jvm.dll+0x8a3a0]
      V  [jvm.dll+0xd0de8]
      V  [jvm.dll+0xd0db6]
      C  [MSVCRT.dll+0x2a3b0]
      C  [kernel32.dll+0xb683]

       

Log in to post a comment.