Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problems with SuperDevMode in Chrome

    1. SmartClient Version: v9.1p_2014-08-29/Pro Deployment (built 2014-08-29)

    2. Chrome Version 37.0.2062.102 m

    Im getting a JavaScript error when trying to run SuperDevMode in Chrome. It works fine in Firefox and IE.

    Code:
    com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'getClassName' of undefinedcom.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'getClassName' of undefined
        at Unknown.$collect(JsArrayString.java:42)
        at Unknown.fillInStackTrace_2(StackTraceCreator.java:180)
        at Unknown.fillInStackTrace_0(StackTraceCreator.java:518)
        at Unknown.fillInStackTrace(Throwable.java:115)
        at Unknown.Throwable_0(Throwable.java:51)
        at Unknown.Exception_0(Exception.java:25)
        at Unknown.RuntimeException_0(RuntimeException.java:25)
        at Unknown.JavaScriptException_1(JavaScriptException.java:117)
        at Unknown.JavaScriptException_0(JavaScriptException.java:109)
        at Unknown.getCachableJavaScriptException(Exceptions.java:45)
        at Unknown.wrap_0(Exceptions.java:29)
        at Unknown.getClassName(JSOHelper.java:54)
        at Unknown.$draw(BaseWidget.java:258)
        at Unknown.Home_0(Home.java:107)
        at Unknown.execute_107(SessionManagerWidget.java:647)
        at Unknown.anonymous(DataSource.java:2955)
        at Unknown.apply_0(Impl.java:290)
        at Unknown.entry0(Impl.java:348)
        at Unknown.anonymous(Impl.java:93)
        at Unknown.anonymous(SmartGwtEntryPoint.java:348)

    #2
    Working fine for us. We'll need to know how this can be reproduced.

    Comment


      #3
      Hi,

      Thanks for the quick response. I think I have found where the error occurred. It seems to happen when I set a parent layout of a layout and afterwards calling the draw method of the child layout.

      Example:
      Code:
      HLayout mainLayout = new HLayout();
      VLayout layout = new VLayout(0);
      layout.setParentElement(mainLayout);
      layout.draw();
      Changing the last line to:
      layout.markForRedraw();

      seemed to fix the error.

      Comment


        #4
        Code like you've shown is incorrect, but when we run it, it logs a warning (as expected).

        Comment

        Working...
        X