Announcement

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

    com.smartgwt.SmartGwtDebug not working with FilterBuilder

    Hi,
    Whenever I change SmartGwt to SmartGwtDebug in .gwt.xml I got an error:
    Code:
    Just before
    Uncaught JavaScript exception [error has no properties] in http://localhost:8080/SmartGWTUmowy/sc/client/debug/debug.js, line 281
    runnig this code:
    Code:
    final FilterBuilder filterBuilder = new FilterBuilder();
    Canvas canvas = new Canvas();
    System.out.println("Just before");
    canvas.addChild(filterBuilder);
    System.out.println("Just after");
    Seems to me that FilterBuilder doesn't work with SmartGwtDebug ?
    Thanks,
    MichalG

    #2
    Please post all versions (gwt, smartgwt, browser etc) and a stack trace for the error (from IE or Firebug).

    Comment


      #3
      GWT 1.6.4
      smartgwt-svn 650 (2009-08-04 18:29:23)

      This js exception can be seen on the console when application is run under GWT Developmen Shell.

      Firebug and IE does not report anything, but SC.say("?") just after canvas.addChild(filterBuilder) is not executed. Just nothing happens.

      Console2 in Firefox shows this during application startup:
      Code:
      Błąd: missing } after property list
      Plik źródłowy: http://localhost:8080/SmartGWTUmowy/sc/client/widgets/Calendar.js
      Wiersz: 1095
      Kod źródłowy:
      WEEK: "week",  
       ----------
      Błąd: missing } after property list
      Plik źródłowy: http://localhost:8080/SmartGWTUmowy/sc/client/widgets/form/FilterBuilder.js
      Wiersz: 665
      Kod źródłowy:
      valueChanged : function (valueField, form) {
      Last edited by michalg; 6 Aug 2009, 04:42.

      Comment


        #4
        Did you try the latest SVN (r652)?

        Comment


          #5
          I tried svn 652 - nothing in Firefox Console2 and Firebug (but also nothing after anvas.addChild(filterBuilder) seems to be executed).
          In hosted mode the same Uncaught JavaScript exception [error has no properties] in http://localhost:8080/SmartGWTUmowy/...debug/debug.js, line 281.

          Sorry, line number has changed to line 265.
          Code:
          Uncaught JavaScript exception [error has no properties] in http://localhost:8080/SmartGWTUmowy/sc/client/debug/debug.js, line 265
          Last edited by michalg; 6 Aug 2009, 05:26.

          Comment


            #6
            Unable to reproduce. Are you sure you updated the "tools" directory from SVN and did a clean build?

            Comment


              #7
              I am only sure that Lenin is dead, but I think I did it right:
              Code:
              history
               484  svn checkout http://smartgwt.googlecode.com/svn/tools/ smartgwt-svn/tools
                485  svn checkout http://smartgwt.googlecode.com/svn/trunk/ smartgwt-svn/trunk
                486  cd smartgwt-svn
                487  ls
                488  cd trunk
                490  GWT_HOME=/home/michalg/D/gwt; export GWT_HOME
                491  ant clean
                492  ant

              Comment


                #8
                Solved

                Can be Netbeans issue. Reloading jars in project properties helped.
                Restarting Netbeans was not enough.
                Thanks,
                MichalG

                Comment


                  #9
                  Not sure, since I don't use Netbeans but its likely to be some stale cache issue either due to Netbeans of the hosted mode cache. Anywho, glad you have it resolved.

                  Comment

                  Working...
                  X