Announcement

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

    Null reference in newest 6.0p versions

    SmartClient Version: v11.0p_2016-07-05/LGPL Development Only (built 2016-07-05) Dev Mode (using Classic Dev Mode in Firefox 26) and Compiled Mode. Tested in 2016-07-01 and 2016-07-04 too
    Edge, IE 11, Latest Chrome, Latest Firefox

    After updating SmartGWT6.0 to latest patched version to get bugfixes over Calendar we are facing the next error
    Code:
    *11:37:51.980:XRP3:WARN:Log:Uncaught exception escaped: com.google.gwt.core.client.JavaScriptException
    (TypeError) 
     __gwt$exception: <skipped>: Unable to get property '$68g' of undefined or null reference
        at isc_Date__getDisplayOffsetDate(http://127.0.0.1:8080/.../sc/modules/ISC_Core.js@70)
        at isc_Calendar_getDateLabelText(http://127.0.0.1:8080/.../sc/modules/ISC_Calendar.js@234)
        at isc_Calendar_setDateLabel(http://127.0.0.1:8080/.../sc/modules/ISC_Calendar.js@1)
        at isc_Calendar_createChildren(http://127.0.0.1:8080/.../sc/modules/ISC_Calendar.js@96)
        at isc_Calendar_initWidget(http://127.0.0.1:8080/.../sc/modules/ISC_Calendar.js@368)
        at isc_Canvas_init(http://127.0.0.1:8080/.../sc/modules/ISC_Core.js@14)
        at isc_Class_completeCreation(http://127.0.0.1:8080/.../sc/modules/ISC_Core.js@1)
        at isc_c_Class_create(http://127.0.0.1:8080/.../sc/modules/ISC_Core.js@1829)
        at com_smartgwt_client_widgets_calendar_Calendar_create__Lcom_google_gwt_core_client_JavaScriptObject_2(http://127.0.0.1:8080/.../FA8889184D9C466D2EE43D1F58D99A1D.cache.html@3)
        at com_smartgwt_client_widgets_BaseWidget_$getOrCreateJsObj__Lcom_smartgwt_client_widgets_BaseWidget_2Lcom_google_gwt_core_client_JavaScriptObject_2(http://127.0.0.1:8080/.../FA8889184D9C466D2EE43D1F58D99A1D.cache.html@5)
    ISC_Core.js (1129,137)
    Until now we were developing using SmartClient Version: v11.0p_2016-05-31/LGPL Development Only (built 2016-05-31) version which doesn't have this problem. Furthermore, we aren't setting display offset date nor making special cofigurations to the Calendar

    Best regards

    #2
    We don't see any issues in the online showcase, which is running the same build: http://www.smartclient.com/smartgwt/showcase/

    Is your code calling setStartDate() before initial draw()? If not, please try that. Otherwise, we'll need to see a test-case that shows the issue.

    Comment


      #3
      Originally posted by Isomorphic View Post
      Is your code calling setStartDate() before initial draw()?
      Nope, but this point has given me the idea to check the methods we use and it seems to be the undocumented methods like setShowWeekView() or setShowMonthView() (which throws IllegalStateException as implementation says but that's not the exception thrown) that for some reason now they can't be called after construction.

      There's a changelog to see this kind of changes in the API? Thanks for the hint and best regards

      Comment


        #4
        For your interesnt reported behavior doesn't seems to happen in the latest patched version (2016-7-14)

        Comment

        Working...
        X