Announcement

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

    2 possible bugs in SmartGWTEE trial

    Hi,

    As I was playing with the enterprise trial I think I may have bumped into two bugs:

    1) Infinite request loop when using setDefaultToFirstOption(true) on an SelectItem

    How to reproduce:

    - Use built-in-ds sample as a base project
    - In class BuiltInDS, replace onModuleLoad with this code:

    Code:
        public void onModuleLoad() {
            DataSource ds = DataSource.get("animals");
            DynamicForm df = new DynamicForm();
            SelectItem select = new SelectItem();
            select.setOptionDataSource(ds);
            select.setDefaultToFirstOption(true);
            df.setFields(select);
    
            df.draw();
        }
    2) This one is more of a nuisance than a bug, but I think it should be documented somewhere :)
    - Having a datasource file named "groups.ds.xml" will cause the server to enter some kind of parsing loop which eventually will crash with a StackOverFlow

    How to reproduce:
    - In the built-in-sample simply rename one of the DS file to "groups.ds.xml"

    I verified both problems by running "ant hosted" as instructed in the readme
    Last edited by bftanase; 16 Feb 2010, 11:55.

    #2
    1) does not appear to be reproducible. Possible causes include failure to start the sample database, see the readme.

    2) yes, this is true due to Component Schema (groups is a built-in schema). The best approach is to prefix your DataSources with some organization-specific prefix.

    Comment


      #3
      Regarding #1:
      I have done some more testing. The problem appears to happen only in Chrome.

      I'm using GTW 2.0.2
      Tested with Chrome version 4.0.249.89 (38071) & 5.0.322.2 dev

      this is the log from developer console:
      Code:
      08:38:52.343:INFO:Log:initialized
      08:38:52.446:WARN:AutoObserver:Use addInterfaceProperties() to add methods to interface [Class AutoObserver]
      08:38:52.731:INFO:Log:isc.Page is loaded
      Global Log Priorities updated: Logging messages at priority 'Debug' and above for category 'ResultSet'.
      08:39:04.085:XRP7:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Received 29 records from server
      08:39:04.085:XRP7:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):full length set to: 29
      08:39:04.085:XRP7:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):integrating 29 rows into cache at position 0
      08:39:04.085:XRP7:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):cached 29 rows, from 0 to 29 (29 total rows, 29 cached)
      08:39:04.085:XRP7:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Cache for current criteria complete
      08:39:04.085:XRP7:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) satisfied from cache
      08:39:04.085:XRP7:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) satisfied from cache
      08:39:04.091:XRP7:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):setCriteria: filter criteria changed, invalidating cache
      08:39:04.091:XRP7:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Invalidating cache
      08:39:04.091:XRP7:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0,1), cache check: 0,37 firstMissingRow: 0 lastMissingRow: 37
      08:39:04.091:XRP7:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange: guessing forward scrolling
      08:39:04.091:XRP7:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) will fetch from 0 to 75
      08:39:04.091:XRP7:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0,1), cache check: 0,37 firstMissingRow: 0 lastMissingRow: 37
      08:39:04.091:XRP7:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange: guessing forward scrolling
      08:39:04.091:XRP7:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) will fetch from 0 to 75
      08:39:04.091:XRP7:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):fetching rows 0,75 from server
      08:39:04.103:XRP8:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Received 29 records from server
      08:39:04.103:XRP8:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):full length set to: 29
      08:39:04.103:XRP8:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):integrating 29 rows into cache at position 0
      08:39:04.103:XRP8:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):cached 29 rows, from 0 to 29 (29 total rows, 29 cached)
      08:39:04.103:XRP8:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Cache for current criteria complete
      08:39:04.103:XRP8:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) satisfied from cache
      08:39:04.103:XRP8:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) satisfied from cache
      08:39:04.111:XRP8:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):setCriteria: filter criteria changed, invalidating cache
      08:39:04.111:XRP8:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Invalidating cache
      08:39:04.112:XRP8:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0,1), cache check: 0,37 firstMissingRow: 0 lastMissingRow: 37
      08:39:04.112:XRP8:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange: guessing forward scrolling
      08:39:04.112:XRP8:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) will fetch from 0 to 75
      08:39:04.112:XRP8:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0,1), cache check: 0,37 firstMissingRow: 0 lastMissingRow: 37
      08:39:04.112:XRP8:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange: guessing forward scrolling
      08:39:04.112:XRP8:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) will fetch from 0 to 75
      08:39:04.112:XRP8:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):fetching rows 0,75 from server
      08:39:04.127:XRP9:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Received 29 records from server
      08:39:04.127:XRP9:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):full length set to: 29
      08:39:04.127:XRP9:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):integrating 29 rows into cache at position 0
      08:39:04.127:XRP9:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):cached 29 rows, from 0 to 29 (29 total rows, 29 cached)
      08:39:04.127:XRP9:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Cache for current criteria complete
      08:39:04.127:XRP9:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) satisfied from cache
      08:39:04.128:XRP9:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) satisfied from cache
      08:39:04.137:XRP9:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):setCriteria: filter criteria changed, invalidating cache
      08:39:04.137:XRP9:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):Invalidating cache
      08:39:04.138:XRP9:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0,1), cache check: 0,37 firstMissingRow: 0 lastMissingRow: 37
      08:39:04.138:XRP9:DEBUG:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange: guessing forward scrolling
      08:39:04.138:XRP9:INFO:ResultSet:isc_ResultSet_5 (created by: isc_PickListMenu_4):getRange(0, 1) will fetch from 0 to 75
      Thanks for looking into this!

      Comment


        #4
        Most likely yet another symptom of a known bug in GWT 2.0 Dev Mode with Chrome. We've already raised this with the GWT team.

        Comment


          #5
          Yeap. You're right. Only in dev mode.

          Thanks for clearing it up.

          Keep up the good work!

          Comment

          Working...
          X