Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-99

Random errors in ko4j's KnockoutTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • platform - HTML4J
    • None

    Description

      From time to time there appear to be random issues with KnockoutTest - they are probably caused by garbage collection kicking in. They shall be more robust:

      Tests run: 78, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.451 sec <<< FAILURE!
      displayContentOfComputedArrayOnComputedASubpair(org.netbeans.html.ko4j.KOFx) Time elapsed: 0.03 sec <<< FAILURE!
      java.lang.AssertionError: We got callback from 2nd child null expecting: null actual: Last
      at net.java.html.json.tests.Utils.assertEquals(Utils.java:217)
      at net.java.html.json.tests.KnockoutTest.displayContentOfComputedArrayOnComputedASubpair(KnockoutTest.java:622)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.netbeans.html.ko4j.KOFx.run(KOFx.java:73)

      Tests run: 78, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.772 sec <<< FAILURE!
      rawObject(org.netbeans.html.ko4j.KOFx) Time elapsed: 0.067 sec <<< FAILURE!
      netscape.javascript.JSException: netscape.javascript.JSException: java.lang.NullPointerException
      at org.netbeans.html.ko4j.$JsCallbacks$.raw$org_netbeans_html_ko4j_Knockout$setValue$ILjava_lang_Object_2($JsCallbacks$.java:156)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
      at com.sun.webkit.Utilities.lambda$fwkInvokeWithContext$60(Utilities.java:94)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.webkit.Utilities.fwkInvokeWithContext(Utilities.java:94)
      at com.sun.webkit.dom.JSObject.callImpl(Native Method)
      at com.sun.webkit.dom.JSObject.call(JSObject.java:115)
      at org.netbeans.html.boot.fx.AbstractFXPresenter$JSFn.invokeImpl(AbstractFXPresenter.java:418)

      Failed tests:
      KOFx.run:73 ยป JS netscape.javascript.JSException: java.lang.NullPointerExcepti...

      Attachments

        Activity

          People

            jtulach Jaroslav Tulach
            jtulach Jaroslav Tulach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: