Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8086098

[WebView] Crash in FX app when calling Java method from JavaScript

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u51
    • Fix Version/s: None
    • Component/s: javafx
    • Subcomponent:
      web
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      FULL PRODUCT VERSION :
      jdk 1.8.0_40-b25

      ADDITIONAL OS VERSION INFORMATION :
      windows 7 64 bit

      A DESCRIPTION OF THE PROBLEM :
      i want to render html content in javafx.so i am using web view concept. Than i was loading html page on locally. And i called the javascript function instead Java method. First time i call the java method it was excuted. again i was calling that method application is struced and i got the "An unrecoverable stack overflow has occurred."(fatal error).So please provied solution. Is it possible to call jaav method in html two many times?

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.prepare html page then create javafx application.Prepare webEngine object than load html page.
       WebView browser=new WebView():
      WebEngine webEngine = browser.getEngine();

      2. Add Listener to webEngine.In this listener excuteScript method call
       
      webEngine.getLoadWorker().stateProperty().addListener(
                      new ChangeListener<Worker.State>() {
                          public void changed(ObservableValue<? extends Worker.State> p, Worker.State oldState, Worker.State newState) {
                              if (newState == Worker.State.SUCCEEDED) {

                                  JSObject win2 = (JSObject) webEngine.executeScript("window");
                                  win2.setMember("app", new Tool());
                              }
                          }
                      });


      ACTUAL -
      An unrecoverable stack overflow has occurred.

      [error occurred during error reporting (printing fatal error message), id 0xc00000fd]

      #
      # Internal Error (thread.cpp:1515), pid=6656, tid=6616
      # guarantee(cur_sp > stack_yellow_zone_base()) failed: not enough space to reguard - increase StackShadowPages
      #
      # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
      # Java VM: Java HotSpot(TM) Client VM (24.51-b03 mixed mode, sharing windows-x86 )
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # An error report file with more information is saved as:
      # E:\Netbeans Projects\TestThick\hs_err_pid6656.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      #
      Java Result: 1

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (thread.cpp:1515), pid=6656, tid=6616
      # guarantee(cur_sp > stack_yellow_zone_base()) failed: not enough space to reguard - increase StackShadowPages
      #
      # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
      # Java VM: Java HotSpot(TM) Client VM (24.51-b03 mixed mode, sharing windows-x86 )
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      #

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

      Current thread (0x055a6000): JavaThread "JavaFX Application Thread" [_thread_in_vm, id=6616, stack(0x05cc0000,0x05d10000)]

      Stack: [0x05cc0000,0x05d10000], sp=0x05cc1ca4, free space=7k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x18e0f1]
      V [jvm.dll+0x1a1361]
      V [jvm.dll+0x1a380c]
      V [jvm.dll+0x202c7c]
      V [jvm.dll+0x13f3dd]
      V [jvm.dll+0xc9945]
      V [jvm.dll+0xd2bbb]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j com.sun.webpane.platform.WebPage.twkProcessMouseEvent(JIIIIIIIZZZZZF)Z+0
      j com.sun.webpane.platform.WebPage.dispatchMouseEvent(Lcom/sun/webpane/platform/event/WCMouseEvent;)Z+134
      j javafx.scene.web.WebView.processMouseEvent(Ljavafx/scene/input/MouseEvent;)V+111
      j javafx.scene.web.WebView.access$2600(Ljavafx/scene/web/WebView;Ljavafx/scene/input/MouseEvent;)V+2
      j javafx.scene.web.WebView$14.handle(Ljavafx/scene/input/MouseEvent;)V+5
      j javafx.scene.web.WebView$14.handle(Ljavafx/event/Event;)V+5
      j com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Ljavafx/event/Event;)V+42
      j com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Ljavafx/event/EventType;Ljavafx/event/Event;)Ljavafx/event/Event;+29
      j com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Ljavafx/event/Event;)Ljavafx/event/Event;+8
      j com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Ljavafx/event/Event;)Ljavafx/event/Event;+11
      j com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Ljavafx/event/Event;Ljavafx/event/EventDispatchChain;)Ljavafx/event/Event;+29
      j com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Ljavafx/event/Event;)Ljavafx/event/Event;+69
      j com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Ljavafx/event/Event;Ljavafx/event/EventDispatchChain;)Ljavafx/event/Event;+17
      j com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Ljavafx/event/Event;)Ljavafx/event/Event;+69
      j com.sun.javafx.event.EventUtil.fireEventImpl(Ljavafx/event/EventDispatchChain;Ljavafx/event/EventTarget;Ljavafx/event/Event;)Ljavafx/event/Event;+10
      j com.sun.javafx.event.EventUtil.fireEvent(Ljavafx/event/EventTarget;Ljavafx/event/Event;)Ljavafx/event/Event;+46
      j javafx.event.Event.fireEvent(Ljavafx/event/EventTarget;Ljavafx/event/Event;)V+30
      j javafx.scene.Scene$MouseHandler.process(Ljavafx/scene/input/MouseEvent;Z)V+405
      j javafx.scene.Scene$MouseHandler.process(Ljavafx/scene/input/MouseEvent;)V+3
      j javafx.scene.Scene$MouseHandler.access$1900(Ljavafx/scene/Scene$MouseHandler;Ljavafx/scene/input/MouseEvent;)V+2
      j javafx.scene.Scene.impl_processMouseEvent(Ljavafx/scene/input/MouseEvent;)V+16
      j javafx.scene.Scene$ScenePeerListener.mouseEvent(Ljava/lang/Object;)V+11
      j com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run()Ljava/lang/Void;+329
      j com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run()Ljava/lang/Object;+1
      v ~StubRoutines::call_stub
      J java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
      j com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Lcom/sun/glass/ui/View;JIIIIIIIIZZ)V+117
      j com.sun.glass.ui.View.handleMouseEvent(JIIIIIIIIZZ)V+38
      j com.sun.glass.ui.View.notifyMouse(IIIIIIIZZ)V+184
      v ~StubRoutines::call_stub
      j com.sun.glass.ui.win.WinApplication._runLoop([Ljava/lang/String;Lcom/sun/glass/ui/Launchable;)V+0
      j com.sun.glass.ui.win.WinApplication.access$100(Lcom/sun/glass/ui/win/WinApplication;[Ljava/lang/String;Lcom/sun/glass/ui/Launchable;)V+3
      j com.sun.glass.ui.win.WinApplication$3$1.run()V+32
      j java.lang.Thread.run()V+11
      v ~StubRoutines::call_stub

      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x0576b800 JavaThread "URL-Loader-10" daemon [_thread_blocked, id=7032, stack(0x07c50000,0x07ca0000)]
        0x0576b400 JavaThread "Prism Font Disposer" daemon [_thread_blocked, id=7096, stack(0x07b80000,0x07bd0000)]
        0x0576ac00 JavaThread "URL-Loader-9" daemon [_thread_blocked, id=5256, stack(0x07200000,0x07250000)]
        0x0576a400 JavaThread "URL-Loader-8" daemon [_thread_blocked, id=2608, stack(0x07270000,0x072c0000)]
        0x0576a000 JavaThread "URL-Loader-7" daemon [_thread_blocked, id=6100, stack(0x07090000,0x070e0000)]
        0x05769800 JavaThread "URL-Loader-6" daemon [_thread_blocked, id=7108, stack(0x06e70000,0x06ec0000)]
        0x05769400 JavaThread "URL-Loader-5" daemon [_thread_blocked, id=6004, stack(0x07040000,0x07090000)]
        0x05768c00 JavaThread "URL-Loader-4" daemon [_thread_blocked, id=6212, stack(0x06f00000,0x06f50000)]
        0x05768800 JavaThread "URL-Loader-3" daemon [_thread_blocked, id=3684, stack(0x06950000,0x069a0000)]
        0x05767400 JavaThread "URL-Loader-2" daemon [_thread_blocked, id=6736, stack(0x06090000,0x060e0000)]
        0x05726800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2720, stack(0x068a0000,0x068f0000)]
        0x056b9800 JavaThread "URL-Loader-1" daemon [_thread_blocked, id=7020, stack(0x05ea0000,0x05ef0000)]
        0x05639000 JavaThread "Disposer" daemon [_thread_blocked, id=5356, stack(0x05d70000,0x05dc0000)]
        0x055a6c00 JavaThread "Thread-3" daemon [_thread_in_native, id=7120, stack(0x05de0000,0x05e30000)]
      =>0x055a6000 JavaThread "JavaFX Application Thread" [_thread_in_vm, id=6616, stack(0x05cc0000,0x05d10000)]
        0x055a8400 JavaThread "Thread-2" daemon [_thread_blocked, id=6324, stack(0x05c10000,0x05c60000)]
        0x05597000 JavaThread "Disposer" daemon [_thread_blocked, id=1324, stack(0x05910000,0x05960000)]
        0x05573800 JavaThread "QuantumRenderer-0" daemon [_thread_blocked, id=7076, stack(0x05420000,0x05470000)]
        0x04d0bc00 JavaThread "JavaFX-Launcher" [_thread_blocked, id=6452, stack(0x05370000,0x053c0000)]
        0x04cf7400 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=6116, stack(0x04b70000,0x04bc0000)]
        0x00e9c800 JavaThread "Service Thread" daemon [_thread_blocked, id=6132, stack(0x04b00000,0x04b50000)]
        0x00e98000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=6664, stack(0x04a00000,0x04a50000)]
        0x00e96c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=5976, stack(0x048a0000,0x048f0000)]
        0x00e93c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2956, stack(0x01150000,0x011a0000)]
        0x00e20400 JavaThread "Finalizer" daemon [_thread_blocked, id=2672, stack(0x04760000,0x047b0000)]
        0x00e1ec00 JavaThread "Reference Handler" daemon [_thread_blocked, id=2452, stack(0x04710000,0x04760000)]
        0x00ddcc00 JavaThread "main" [_thread_blocked, id=1348, stack(0x00d60000,0x00db0000)]

      Other Threads:
        0x00e1d400 VMThread [stack: 0x010c0000,0x01110000] [id=5380]
        0x00eafc00 WatcherThread [stack: 0x04c10000,0x04c60000] [id=5384]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 8640K, used 7137K [0x247d0000, 0x25120000, 0x29d20000)
        eden space 7744K, 92% used [0x247d0000, 0x24ec8440, 0x24f60000)
        from space 896K, 0% used [0x24f60000, 0x24f60000, 0x25040000)
        to space 896K, 0% used [0x25040000, 0x25040000, 0x25120000)
       tenured generation total 18980K, used 11387K [0x29d20000, 0x2afa9000, 0x347d0000)
         the space 18980K, 59% used [0x29d20000, 0x2a83eff8, 0x2a83f000, 0x2afa9000)
       compacting perm gen total 12288K, used 7740K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 62% used [0x347d0000, 0x34f5f2a0, 0x34f5f400, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)

      Card table byte_map: [0x00ee0000,0x00f90000] byte_map_base: 0x00dbc180

      Polling page: 0x001e0000

      Code Cache [0x02690000, 0x027f8000, 0x04690000)
       total_blobs=872 nmethods=512 adapters=297 free_code_cache=31357Kb largest_free_block=32109248

      Compilation events (10 events):
      Event: 10.525 Thread 0x00e98000 511 java.lang.Class::getName (21 bytes)
      Event: 10.525 Thread 0x00e98000 nmethod 511 0x027f01c8 code [0x027f02c0, 0x027f037c]
      Event: 10.526 Thread 0x00e98000 512 sun.reflect.MagicAccessorImpl::<init> (5 bytes)
      Event: 10.526 Thread 0x00e98000 nmethod 512 0x027f0408 code [0x027f0500, 0x027f0580]
      Event: 10.527 Thread 0x00e98000 513 java.lang.reflect.Method::invoke (63 bytes)
      Event: 10.527 Thread 0x00e98000 nmethod 513 0x027f05c8 code [0x027f0700, 0x027f085c]
      Event: 10.527 Thread 0x00e98000 514 sun.reflect.MethodAccessorImpl::<init> (5 bytes)
      Event: 10.527 Thread 0x00e98000 nmethod 514 0x027f0988 code [0x027f0a80, 0x027f0b00]
      Event: 10.527 Thread 0x00e98000 515 sun.reflect.DelegatingMethodAccessorImpl::invoke (10 bytes)
      Event: 10.527 Thread 0x00e98000 nmethod 515 0x027f0b48 code [0x027f0c50, 0x027f0cec]

      GC Heap History (10 events):
      Event: 2.525 GC heap before
      {Heap before GC invocations=3 (full 0):
       def new generation total 4928K, used 4107K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 81% used [0x247d0000, 0x24b52e08, 0x24c20000)
        from space 512K, 100% used [0x24ca0000, 0x24d20000, 0x24d20000)
        to space 512K, 0% used [0x24c20000, 0x24c20000, 0x24ca0000)
       tenured generation total 10944K, used 1499K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 13% used [0x29d20000, 0x29e96d90, 0x29e96e00, 0x2a7d0000)
       compacting perm gen total 12288K, used 4600K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 37% used [0x347d0000, 0x34c4e230, 0x34c4e400, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      Event: 2.529 GC heap after
      Heap after GC invocations=4 (full 0):
       def new generation total 4928K, used 337K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 0% used [0x247d0000, 0x247d0000, 0x24c20000)
        from space 512K, 65% used [0x24c20000, 0x24c74450, 0x24ca0000)
        to space 512K, 0% used [0x24ca0000, 0x24ca0000, 0x24d20000)
       tenured generation total 10944K, used 1985K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 18% used [0x29d20000, 0x29f106e0, 0x29f10800, 0x2a7d0000)
       compacting perm gen total 12288K, used 4600K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 37% used [0x347d0000, 0x34c4e230, 0x34c4e400, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      }
      Event: 2.554 GC heap before
      {Heap before GC invocations=4 (full 0):
       def new generation total 4928K, used 2996K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 60% used [0x247d0000, 0x24a68cb8, 0x24c20000)
        from space 512K, 65% used [0x24c20000, 0x24c74450, 0x24ca0000)
        to space 512K, 0% used [0x24ca0000, 0x24ca0000, 0x24d20000)
       tenured generation total 10944K, used 1985K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 18% used [0x29d20000, 0x29f106e0, 0x29f10800, 0x2a7d0000)
       compacting perm gen total 12288K, used 4809K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 39% used [0x347d0000, 0x34c82448, 0x34c82600, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      Event: 2.557 GC heap after
      Heap after GC invocations=5 (full 0):
       def new generation total 4928K, used 157K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 0% used [0x247d0000, 0x247d0000, 0x24c20000)
        from space 512K, 30% used [0x24ca0000, 0x24cc77f0, 0x24d20000)
        to space 512K, 0% used [0x24c20000, 0x24c20000, 0x24ca0000)
       tenured generation total 10944K, used 4161K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 38% used [0x29d20000, 0x2a130698, 0x2a130800, 0x2a7d0000)
       compacting perm gen total 12288K, used 4809K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 39% used [0x347d0000, 0x34c82448, 0x34c82600, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      }
      Event: 2.632 GC heap before
      {Heap before GC invocations=5 (full 0):
       def new generation total 4928K, used 4250K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 92% used [0x247d0000, 0x24bcf330, 0x24c20000)
        from space 512K, 30% used [0x24ca0000, 0x24cc77f0, 0x24d20000)
        to space 512K, 0% used [0x24c20000, 0x24c20000, 0x24ca0000)
       tenured generation total 10944K, used 4161K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 38% used [0x29d20000, 0x2a130698, 0x2a130800, 0x2a7d0000)
       compacting perm gen total 12288K, used 5172K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 42% used [0x347d0000, 0x34cdd130, 0x34cdd200, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      Event: 2.636 GC heap after
      Heap after GC invocations=6 (full 0):
       def new generation total 4928K, used 505K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 0% used [0x247d0000, 0x247d0000, 0x24c20000)
        from space 512K, 98% used [0x24c20000, 0x24c9e600, 0x24ca0000)
        to space 512K, 0% used [0x24ca0000, 0x24ca0000, 0x24d20000)
       tenured generation total 10944K, used 6036K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 55% used [0x29d20000, 0x2a3052a8, 0x2a305400, 0x2a7d0000)
       compacting perm gen total 12288K, used 5172K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 42% used [0x347d0000, 0x34cdd130, 0x34cdd200, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      }
      Event: 2.657 GC heap before
      {Heap before GC invocations=6 (full 0):
       def new generation total 4928K, used 4797K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 97% used [0x247d0000, 0x24c00e30, 0x24c20000)
        from space 512K, 98% used [0x24c20000, 0x24c9e600, 0x24ca0000)
        to space 512K, 0% used [0x24ca0000, 0x24ca0000, 0x24d20000)
       tenured generation total 10944K, used 6036K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 55% used [0x29d20000, 0x2a3052a8, 0x2a305400, 0x2a7d0000)
       compacting perm gen total 12288K, used 5269K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 42% used [0x347d0000, 0x34cf5568, 0x34cf5600, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      Event: 2.660 GC heap after
      Heap after GC invocations=7 (full 0):
       def new generation total 4928K, used 398K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 0% used [0x247d0000, 0x247d0000, 0x24c20000)
        from space 512K, 77% used [0x24ca0000, 0x24d03a30, 0x24d20000)
        to space 512K, 0% used [0x24c20000, 0x24c20000, 0x24ca0000)
       tenured generation total 10944K, used 10154K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 92% used [0x29d20000, 0x2a70abe8, 0x2a70ac00, 0x2a7d0000)
       compacting perm gen total 12288K, used 5269K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 42% used [0x347d0000, 0x34cf5568, 0x34cf5600, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      }
      Event: 3.840 GC heap before
      {Heap before GC invocations=7 (full 0):
       def new generation total 4928K, used 4814K [0x247d0000, 0x24d20000, 0x29d20000)
        eden space 4416K, 100% used [0x247d0000, 0x24c20000, 0x24c20000)
        from space 512K, 77% used [0x24ca0000, 0x24d03a30, 0x24d20000)
        to space 512K, 0% used [0x24c20000, 0x24c20000, 0x24ca0000)
       tenured generation total 10944K, used 10154K [0x29d20000, 0x2a7d0000, 0x347d0000)
         the space 10944K, 92% used [0x29d20000, 0x2a70abe8, 0x2a70ac00, 0x2a7d0000)
       compacting perm gen total 12288K, used 5854K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 47% used [0x347d0000, 0x34d878d8, 0x34d87a00, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      Event: 3.863 GC heap after
      Heap after GC invocations=8 (full 1):
       def new generation total 8640K, used 396K [0x247d0000, 0x25120000, 0x29d20000)
        eden space 7744K, 5% used [0x247d0000, 0x248331d8, 0x24f60000)
        from space 896K, 0% used [0x24f60000, 0x24f60000, 0x25040000)
        to space 896K, 0% used [0x25040000, 0x25040000, 0x25120000)
       tenured generation total 18980K, used 11387K [0x29d20000, 0x2afa9000, 0x347d0000)
         the space 18980K, 59% used [0x29d20000, 0x2a83eff8, 0x2a83f000, 0x2afa9000)
       compacting perm gen total 12288K, used 5854K [0x347d0000, 0x353d0000, 0x387d0000)
         the space 12288K, 47% used [0x347d0000, 0x34d878d8, 0x34d87a00, 0x353d0000)
          ro space 10240K, 44% used [0x387d0000, 0x38c47e30, 0x38c48000, 0x391d0000)
          rw space 12288K, 52% used [0x391d0000, 0x3981eb58, 0x3981ec00, 0x39dd0000)
      }

      Deoptimization events (0 events):
      No events

      Internal exceptions (10 events):
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec1b88 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec1d10 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec1e98 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec2020 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec21a8 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec2330 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec24b8 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec2640 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.540 Thread 0x055a6000 Threw 0x24ec27c8 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395
      Event: 10.541 Thread 0x055a6000 Threw 0x24ec2950 at C:\re\jdk7u51\527\hotspot\src\share\vm\runtime\javaCalls.cpp:395

      Events (10 events):
      Event: 4.192 Executing VM operation: EnableBiasedLocking
      Event: 4.192 Executing VM operation: EnableBiasedLocking done
      Event: 10.165 Executing VM operation: RevokeBias
      Event: 10.165 Executing VM operation: RevokeBias done
      Event: 10.171 Executing VM operation: RevokeBias
      Event: 10.171 Executing VM operation: RevokeBias done
      Event: 10.454 Executing VM operation: RevokeBias
      Event: 10.454 Executing VM operation: RevokeBias done
      Event: 10.466 Executing VM operation: RevokeBias
      Event: 10.466 Executing VM operation: RevokeBias done


      Dynamic libraries:
      0x01260000 - 0x0128f000 C:\Program Files (x86)\Java\jdk1.7.0_51\bin\java.exe
      0x76ea0000 - 0x77020000 C:\Windows\SysWOW64\ntdll.dll
      0x75f00000 - 0x76010000 C:\Windows\syswow64\kernel32.dll
      0x76530000 - 0x76577000 C:\Windows\syswow64\KERNELBASE.dll
      0x76060000 - 0x76100000 C:\Windows\syswow64\ADVAPI32.dll
      0x75cb0000 - 0x75d5c000 C:\Windows\syswow64\msvcrt.dll
      0x76800000 - 0x76819000 C:\Windows\SysWOW64\sechost.dll
      0x74dc0000 - 0x74eb0000 C:\Windows\syswow64\RPCRT4.dll
      0x74a00000 - 0x74a60000 C:\Windows\syswow64\SspiCli.dll
      0x749f0000 - 0x749fc000 C:\Windows\syswow64\CRYPTBASE.dll
      0x74cc0000 - 0x74dc0000 C:\Windows\syswow64\USER32.dll
      0x766d0000 - 0x76760000 C:\Windows\syswow64\GDI32.dll
      0x74eb0000 - 0x74eba000 C:\Windows\syswow64\LPK.dll
      0x76760000 - 0x767fd000 C:\Windows\syswow64\USP10.dll
      0x73080000 - 0x7321e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
      0x75ea0000 - 0x75ef7000 C:\Windows\syswow64\SHLWAPI.dll
      0x762a0000 - 0x76300000 C:\Windows\system32\IMM32.DLL
      0x765d0000 - 0x7669c000 C:\Windows\syswow64\MSCTF.dll
      0x69200000 - 0x692bf000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\msvcr100.dll
      0x68e80000 - 0x69200000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\client\jvm.dll
      0x742c0000 - 0x742c7000 C:\Windows\system32\WSOCK32.dll
      0x76590000 - 0x765c5000 C:\Windows\syswow64\WS2_32.dll
      0x76300000 - 0x76306000 C:\Windows\syswow64\NSI.dll
      0x73890000 - 0x738c2000 C:\Windows\system32\WINMM.dll
      0x76580000 - 0x76585000 C:\Windows\syswow64\PSAPI.DLL
      0x73590000 - 0x7359c000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\verify.dll
      0x73570000 - 0x73590000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\java.dll
      0x69f40000 - 0x69f53000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\zip.dll
      0x69ce0000 - 0x69d3c000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\deploy.dll
      0x74a70000 - 0x74bcc000 C:\Windows\syswow64\ole32.dll
      0x76a10000 - 0x76a9f000 C:\Windows\syswow64\OLEAUT32.dll
      0x74720000 - 0x74729000 C:\Windows\system32\VERSION.dll
      0x76910000 - 0x76a05000 C:\Windows\syswow64\WININET.dll
      0x75d60000 - 0x75e97000 C:\Windows\syswow64\urlmon.dll
      0x76100000 - 0x7621e000 C:\Windows\syswow64\CRYPT32.dll
      0x74a60000 - 0x74a6c000 C:\Windows\syswow64\MSASN1.dll
      0x76330000 - 0x7652e000 C:\Windows\syswow64\iertutil.dll
      0x74ec0000 - 0x75b0a000 C:\Windows\syswow64\SHELL32.dll
      0x747d0000 - 0x747db000 C:\Windows\system32\profapi.dll
      0x748c0000 - 0x74904000 C:\Windows\system32\dnsapi.DLL
      0x73fa0000 - 0x73fbc000 C:\Windows\system32\iphlpapi.DLL
      0x73f90000 - 0x73f97000 C:\Windows\system32\WINNSI.DLL
      0x72020000 - 0x7202d000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\prism-d3d.dll
      0x6ed00000 - 0x6eec3000 C:\Windows\system32\d3d9.dll
      0x6f090000 - 0x6f096000 C:\Windows\system32\d3d8thk.dll
      0x6fcb0000 - 0x6fcc3000 C:\Windows\system32\dwmapi.dll
      0x6fcd0000 - 0x6fd50000 C:\Windows\system32\uxtheme.dll
      0x69350000 - 0x69377000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\glass.dll
      0x76220000 - 0x7629b000 C:\Windows\syswow64\COMDLG32.dll
      0x692d0000 - 0x6934c000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\libxml2.dll
      0x68e50000 - 0x68e7a000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\libxslt.dll
      0x67cf0000 - 0x68850000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\jfxwebkit.dll
      0x74830000 - 0x74846000 C:\Windows\system32\CRYPTSP.dll
      0x747f0000 - 0x7482b000 C:\Windows\system32\rsaenh.dll
      0x69c80000 - 0x69c94000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\net.dll
      0x73f20000 - 0x73f5c000 C:\Windows\system32\mswsock.dll
      0x73a40000 - 0x73a46000 C:\Windows\System32\wship6.dll
      0x73710000 - 0x7371f000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\nio.dll
      0x74c30000 - 0x74cb3000 C:\Windows\syswow64\CLBCatQ.DLL
      0x6b940000 - 0x6ba3b000 C:\Windows\system32\WindowsCodecs.dll
      0x73ec0000 - 0x73f0c000 C:\Windows\system32\apphelp.dll
      0x669f0000 - 0x66a21000 C:\Windows\system32\EhStorShell.dll
      0x75b10000 - 0x75cad000 C:\Windows\syswow64\SETUPAPI.dll
      0x766a0000 - 0x766c7000 C:\Windows\syswow64\CFGMGR32.dll
      0x76310000 - 0x76322000 C:\Windows\syswow64\DEVOBJ.dll
      0x6e6d0000 - 0x6e7c5000 C:\Windows\system32\PROPSYS.dll
      0x66a70000 - 0x66ae0000 C:\Windows\system32\ntshrui.dll
      0x74870000 - 0x74889000 C:\Windows\system32\srvcli.dll
      0x73ad0000 - 0x73adb000 C:\Windows\system32\cscapi.dll
      0x6b7d0000 - 0x6b7da000 C:\Windows\system32\slc.dll
      0x68e20000 - 0x68e41000 C:\Program Files (x86)\Common Files\Microsoft Shared\Ink\rtscom.dll
      0x68de0000 - 0x68e1d000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\javafx-font.dll
      0x68c90000 - 0x68dd3000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\awt.dll
      0x68c70000 - 0x68c81000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\decora-sse.dll
      0x68c40000 - 0x68c64000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\dcpr.dll
      0x68c00000 - 0x68c39000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\fontmanager.dll
      0x68bd0000 - 0x68c00000 C:\Program Files (x86)\Java\jdk1.7.0_51\jre\bin\t2k.dll
      0x74730000 - 0x74747000 C:\Windows\system32\USERENV.dll
      0x73ac0000 - 0x73ad0000 C:\Windows\system32\NLAapi.dll
      0x73ab0000 - 0x73ac0000 C:\Windows\system32\napinsp.dll
      0x73a90000 - 0x73aa2000 C:\Windows\system32\pnrpnsp.dll
      0x73a80000 - 0x73a88000 C:\Windows\System32\winrnr.dll
      0x73a50000 - 0x73a77000 C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
      0x73f10000 - 0x73f15000 C:\Windows\System32\wshtcpip.dll
      0x73a30000 - 0x73a36000 C:\Windows\system32\rasadhlp.dll
      0x739f0000 - 0x73a28000 C:\Windows\System32\fwpuclnt.dll
      0x71dd0000 - 0x71ebb000 C:\Windows\system32\dbghelp.dll

      VM Arguments:
      jvm_args: -Dfile.encoding=UTF-8
      java_command: com.javafx.main.Main
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_07
      CLASSPATH=C:\Program Files (x86)\Java\jdk1.7.0_07\bin;E:\swaroop softs\struts-2.3.20-all\struts-2.3.20\lib;
      PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\NetSarang;C:\Ruby193\bin;C:\Windows\System32;D:\KYC FX\dll\CamDll;E:\oracle\product\10.2.0\client_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Java\jdk1.7.0_07\bin;C:\Program Files (x86)\Windows Live\Shared;C:\MyNativeLibs;C:\Program Files (x86)\Neurotechnology\FreeFingerprintVerificationSDK 1.0\bin\Win32_x86;C:\Program Files (x86)\Common Files\NetSarang;C:\Ruby193\bin;C:\Windows\System32;D:\KYC FX\dll\CamDll;E:\oracle\product\10.2.0\client_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Java\jdk1.7.0_07\bin;C:\Program Files (x86)\Windows Live\Shared;C:\MyNativeLibs;C:\Program Files (x86)\Neurotechnology\FreeFingerprintVerificationSDK 1.0\bin\Win32_x86;C:\Users\swaroopeshwar\Desktop\opencv\;C:\Program Files (x86)\EIDA Toolkit\Libs;C:\Program Files (x86)\EIDA Toolkit\Samples\SamplePlugins;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\EIDA Toolkit\Libs;C:\Program Files\EIDA Toolkit\Samples\SamplePlugins;C:\Program Files (x86)\Skype\Phone\;C:\Users\swaroopeshwar\AppData\Roaming\npm;C:\Program Files (x86)\Java\jre7\bin;
      USERNAME=swaroopeshwar
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel



      --------------- S Y S T E M ---------------

      OS: Windows 7 , 64 bit Build 7601 Service Pack 1

      CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, tsc, tscinvbit

      Memory: 4k page, physical 4104840k(1236624k free), swap 8207828k(4711968k free)

      vm_info: Java HotSpot(TM) Client VM (24.51-b03) for windows-x86 JRE (1.7.0_51-b13), built on Dec 18 2013 19:09:58 by "java_re" with unknown MS VC++:1600

      time: Tue Jun 09 11:07:56 2015
      elapsed time: 10 seconds


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      //html calling
         <button class="btn btn-success " onclick="app.loginIt()" >Login</button>


      //main class
      package webkitclient;

      import javafx.application.Application;
      import javafx.beans.value.ChangeListener;
      import javafx.beans.value.ObservableValue;
      import javafx.concurrent.Worker;
      import javafx.event.ActionEvent;
      import javafx.event.EventHandler;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.layout.StackPane;
      import javafx.scene.web.WebEngine;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;
      import netscape.javascript.JSObject;

      public class WebkitClient extends Application {
           WebView browser;
          Stage stage;
          
          @Override
          public void start(Stage primaryStage) {
               this.stage = primaryStage;
              browser = new WebView();

              String url = getClass().getResource("client.html").toExternalForm();
              final WebEngine webEngine = browser.getEngine();
              webEngine.load(url);
            

              webEngine.getLoadWorker().stateProperty().addListener(
                      new ChangeListener<Worker.State>() {
                          public void changed(ObservableValue<? extends Worker.State> p, Worker.State oldState, Worker.State newState) {
                              if (newState == Worker.State.SUCCEEDED) {
                                  JSObject win2 = (JSObject) webEngine.executeScript("window");
                                  win2.setMember("app", new Tool());
                              }
                          }
                      });

              Scene scene = new Scene(browser);

              stage.setScene(scene);
              stage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }
      }

      //in login class loginit method

       public void loginIt() {
             
              WebView browser = (WebView) ObjectStore.getInstance().getValue("browser");
              System.out.println(":::::::"+browser);
              doc = browser.getEngine().getDocument();
              System.out.println("doc::::::"+doc);
         HTMLInputElement uname = (HTMLInputElement)doc.getElementById("Username");
              HTMLInputElement pass = (HTMLInputElement)doc.getElementById("password");
              String username=uname.getValue();
              String password=pass.getValue();
              System.out.println("username::::::"+username+":::::::password:::::"+password);
              String urlForRMC = "http://rsweb74:2015/ResourceManagerARM/resourcemanager";
              new RMClient().doInitialize(urlForRMC, 60 * 1000);
              String cpuId = MiscUtils.getMotherboardSN();

              String sn = DiskUtils.getSerialNumber("C");
              String strMacAddr = cpuId + sn;
              String strXml = "<UserName>" + username + "</UserName><Password>" + password + "</Password><MacAddress>" + strMacAddr + "</MacAddress>";
              HashMap login_map = new HashMap();
              login_map.put("strXML", strXml);
              login_map.put("UserId", username);
                 if (new RMClient().RMServiceTest(urlForRMC)) {
                  final JSONObject register_obj = new RMClient().executeResource("1503", login_map, "");
                     System.out.println("register_obj:::"+register_obj);
                 
                 }
               
          }


      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              ant Anton Tarasov
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: