Announcement

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

    StartEditingNew causes Exception :Invoking an instance method on a null instance

    SmartClient Version: SNAPSHOT_v9.1d_2013-10-26/PowerEdition Deployment (built 2013-10-26)

    In this edition our ListGrids which use the StartEditNew() methods are now throwing an exception :

    Uncaught exception escaped : com.google.gwt.core.client.JavaScriptException
    (String) : Invoking an instance method on a null instance

    The exception is only seen in developer debug mode. There does not seem to be a problem in the deployed modes.

    The exception does not occur when reverting to a nightly build of 2013-09-15.

    The exception occurrs on any form of StartEditingNew()

    void startEditingNew()
    void startEditingNew(Map defaultValues)
    void startEditingNew(Record defaultRecordValue)

    Before I put a test case together I wanted to know if you are aware of the issue and have a fix for it.
    Last edited by tece321; 4 Nov 2013, 09:22. Reason: Title correction

    #2
    We're not aware of this issue. One of our developers is scheduled to take a look, but a test case would definitely be helpful.

    Regards
    Isomorphic Software

    Comment


      #3
      A bug fix was applied, in the next nightly build you should see a fix for this issue.

      Comment


        #4
        SmartClient Version: SNAPSHOT_v9.1d_2013-11-26/PowerEdition Deployment (built 2013-11-26)



        Originally posted by Isomorphic View Post
        A bug fix was applied, in the next nightly build you should see a fix for this issue.
        I am now working on this 11-26 build and see another exception that occurs only in development mode (not production mode)
        when calling StartEditNew() on a List Grid.

        The exception this time is:

        Uncaught exception escaped : com.google.gwt.dev.shell.HostedModeException
        Something other than an int was returned from JSNI method '@com.smartgwt.client.widgets.grid.ListGrid::getRowHeight(Lcom/smartgwt/client/widgets/grid/ListGridRecord;I)': JS value of type null, expected int
        See the Development console log for details.
        Register a GWT.setUncaughtExceptionHandler(..) for custom uncaught exception handling.

        Again if I return to the nightly build of 09-15 the issue goes away.

        I see that two others have reported similar issues with StartEditNew().

        Title: Listgrid can't edit under debug mode:

        Originally posted by weiqj View Post
        1. SmartGWT 4.0p
        2. Firefox 24 & 25.0

        Just can't invoke editing in debug mode by double clicking the cell. Pragmatically start editing by calling startEditing() or startEditingNew() will trigger an exception.

        Under production mode both editing works.

        Is this a known problem?
        and

        Originally posted by genielog View Post
        Same issue for me. I can catch the double click event manually, call the startEditing function which returns 'true' but nothing happens on the GUI.

        1. SmartGWT 4.0
        2. Firefox 25
        3. Ubuntu 13.10 64 bit - OpenJDK 7

        Application tested from Eclipse 4.3 using GWT 2.5.1 and the current version of Google Ecplipse Plugin.

        When I run the application deployed, I can edit with either Firefox or Chrome.

        When I tested in Debug mode the same application with Chrome 31, even if it is terribly slow, I can edit the same listgrid.

        Is their problem related to mine?

        Comment


          #5
          We believe we've found the cause of this issue. It will likely be fixed shortly after Thanksgiving (either Friday or Monday).

          Regards
          Isomorphic Software

          Comment


            #6
            A fix has been applied today and you should see it in tonights nightly 4.1d build.

            Comment

            Working...
            X