Announcement

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

    grid.refreshData error when the grid is grouped

    SmartClient Version: SNAPSHOT_v11.1d_2017-02-28/Enterprise Development Only (built 2017-02-28)

    Chrome on OSX Sierra

    Hello, please modify the #dynamicGrouping sample like this:
    Code:
    isc.ListGrid.create({
        ID: "countryList",
        width:522, height:224, top:30,
        alternateRecordStyles:true, 
        dataSource: countryDS,
        // display a subset of fields from the datasource
        fields:[
            {name:"countryName"},
            {name:"government"},
            {name:"continent"},
            {name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false}
        ],
        groupStartOpen:"all",
        groupByField: 'continent',
        autoFetchData: true
    })
    
    
    isc.Button.create({
        ID:"buttonTest",
        title: "Refresh Data",
        click: function(){
            countryList.refreshData();
        }
    });
    Then click 'Refresh Data'. This is the request per the developer console:

    Code:
    {
        dataSource:"countryDS", 
        operationType:"fetch", 
        componentId:"countryList", 
        startRow:NaN, 
        endRow:NaN, 
        textMatchStyle:"exact", 
        showPrompt:false, 
        requestId:"countryDS$62714", 
        fallbackToEval:false, 
        lastClientEventThreadCode:"MUP7", 
        bypassCache:true, 
        dataProtocol:"getParams"
    }
    and this is the error (tomcat logs):

    Code:
     === 2017-03-01 09:37:30,963 [ec-6] INFO  RequestContext - URL: '/isomorphic/IDACall', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36': Safari with Accept-Encoding header
      === 2017-03-01 09:37:30,965 [ec-6] DEBUG XML - Parsed XML from (in memory stream): 1ms
      === 2017-03-01 09:37:30,966 [ec-6] DEBUG ValidationContext - Adding validation errors at path '/transaction/operations/elem/startRow/startRow': {errorMessage=Must be a whole number.}
      === 2017-03-01 09:37:30,967 [ec-6] DEBUG ValidationContext - Adding validation errors at path '/transaction/operations/elem/endRow/endRow': {errorMessage=Must be a whole number.}
      === 2017-03-01 09:37:30,967 [ec-6] WARN  Validation - Validation errors validating a 'Object':
      {
          "/transaction/operations/elem":{
              recordPath:"/transaction/operations/elem",
              startRow:{
                  errorMessage:"Must be a whole number."
              },
              endRow:{
                  errorMessage:"Must be a whole number."
              }
          }
      }
      === 2017-03-01 09:37:30,967 [ec-6] WARN  Validation - Validation errors validating a 'Object':
      {
          "/transaction/operations/elem":{
              recordPath:"/transaction/operations/elem",
              startRow:{
                  errorMessage:"Must be a whole number."
              },
              endRow:{
                  errorMessage:"Must be a whole number."
              }
          }
      }
      === 2017-03-01 09:37:30,967 [ec-6] DEBUG RPCManager - Processing 1 requests.
      === 2017-03-01 09:37:30,968 [ec-6] ERROR IDACall - com.isomorphic.servlet.IDACall top-level exception
      java.lang.NumberFormatException: For input string: "NaN"
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
          at java.lang.Long.parseLong(Long.java:441)
          at java.lang.Long.parseLong(Long.java:483)
          at com.isomorphic.datasource.DSRequest.setRequestData(DSRequest.java:623)
          at com.isomorphic.datasource.DSRequest.<init>(DSRequest.java:693)
          at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:2481)
          at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:390)
          at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:370)
          at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:147)
          at com.isomorphic.servlet.IDACall._processRequest(IDACall.java:119)
          at com.isomorphic.servlet.IDACall.doPost(IDACall.java:79)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
          at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:176)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
          at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
          at com.isomorphic.servlet.URIRegexFilter.ignore(URIRegexFilter.java:383)
          at com.isomorphic.servlet.URIRegexFilter.ignore(URIRegexFilter.java:378)
          at com.isomorphic.servlet.URIRegexFilter.matchedRule(URIRegexFilter.java:341)
          at com.isomorphic.servlet.URIRegexFilter._doFilter(URIRegexFilter.java:283)
          at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:93)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
          at com.isomorphic.js.JSSyntaxScannerFilter._doFilter(JSSyntaxScannerFilter.java:262)
          at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:93)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
          at com.isomorphic.servlet.CompressionFilter._doFilter(CompressionFilter.java:260)
          at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:93)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:452)
          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1087)
          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
          at java.lang.Thread.run(Thread.java:745)
      === 2017-03-01 09:37:30,969 [ec-6] INFO  Compression - /isomorphic/IDACall: 5130 -> 888 bytes

    #2
    same problem with 2017-02-28 build of 11.0.

    Comment


      #3
      The issue has been fixed now, it will be available on the next build, dated 2017-03-03.

      Best regards

      Comment


        #4
        SmartClient Version: SNAPSHOT_v11.1d_2017-03-03/Enterprise Development Only (built 2017-03-03)

        I can confirm it's fixed, thank you very much (unfortunately this other bug http://forums.smartclient.com/forum/...n-actual-query prevents me from using this build)

        Comment

        Working...
        X