Announcement

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

    Strange datasource limitation

    So my webapp seems to stop working when the number of "cities" available to a user is greater than 24.

    Each city is its own database, and when the user logs in, they are given a dropdown of cities. Whenever a user has access to 25 or more cities, the app stops working. Is there a limitation in number of datasources  that can be loaded?



    1. SNAPSHOT_v10.1d_2014-09-07/PowerEdition Deployment (built 2014-09-07)
    2. All browsers

    Below is the only error I could fine, an RPC transport error.


    Code:
    {
        "actionURL":"http://login.emnet.net/CSOnet_CITIES/CSOnet/sc/DataSourceLoader?loadParents=true&dataSource=CSO_CITY_3$Alert,CSO_CITY_4$Alert,CSO_CITY_5$Alert,CSO_CITY_6$Alert,CSO_CITY_7$Alert,CSO_CITY_8$Alert,CSO_CITY_9$Alert,CSO_CITY_11$Alert,CSO_CITY_13$Alert,CSO_CITY_15$Alert,CSO_CITY_16$Alert,CSO_CITY_19$Alert,CSO_CITY_21$Alert,CSO_CITY_25$Alert,CSO_CITY_26$Alert,CSO_CITY_27$Alert,CSO_CITY_28$Alert,CSO_CITY_29$Alert,CSO_CITY_30$Alert,CSO_CITY_31$Alert,CSO_CITY_32$Alert,CSO_CITY_33$Alert,CSO_CITY_34$Alert,CSO_CITY_903$Alert,CSO_CITY_1006$Alert,CSO_CITY_3$Sensor,CSO_CITY_4$Sensor,CSO_CITY_5$Sensor,CSO_CITY_6$Sensor,CSO_CITY_7$Sensor,CSO_CITY_8$Sensor,CSO_CITY_9$Sensor,CSO_CITY_11$Sensor,CSO_CITY_13$Sensor,CSO_CITY_15$Sensor,CSO_CITY_16$Sensor,CSO_CITY_19$Sensor,CSO_CITY_21$Sensor,CSO_CITY_25$Sensor,CSO_CITY_26$Sensor,CSO_CITY_27$Sensor,CSO_CITY_28$Sensor,CSO_CITY_29$Sensor,CSO_CITY_30$Sensor,CSO_CITY_31$Sensor,CSO_CITY_32$Sensor,CSO_CITY_33$Sensor,CSO_CITY_34$Sensor,CSO_CITY_903$Sensor,CSO_CITY_1006$Sensor,CSO_CITY_3$AllSensors,CSO_CITY_4$AllSensors,CSO_CITY_5$AllSensors,CSO_CITY_6$AllSensors,CSO_CITY_7$AllSensors,CSO_CITY_8$AllSensors,CSO_CITY_9$AllSensors,CSO_CITY_11$AllSensors,CSO_CITY_13$AllSensors,CSO_CITY_15$AllSensors,CSO_CITY_16$AllSensors,CSO_CITY_19$AllSensors,CSO_CITY_21$AllSensors,CSO_CITY_25$AllSensors,CSO_CITY_26$AllSensors,CSO_CITY_27$AllSensors,CSO_CITY_28$AllSensors,CSO_CITY_29$AllSensors,CSO_CITY_30$AllSensors,CSO_CITY_31$AllSensors,CSO_CITY_32$AllSensors,CSO_CITY_33$AllSensors,CSO_CITY_34$AllSensors,CSO_CITY_903$AllSensors,CSO_CITY_1006$AllSensors,CSO_CITY_3$Reading,CSO_CITY_4$Reading,CSO_CITY_5$Reading,CSO_CITY_6$Reading,CSO_CITY_7$Reading,CSO_CITY_8$Reading,CSO_CITY_9$Reading,CSO_CITY_11$Reading,CSO_CITY_13$Reading,CSO_CITY_15$Reading,CSO_CITY_16$Reading,CSO_CITY_19$Reading,CSO_CITY_21$Reading,CSO_CITY_25$Reading,CSO_CITY_26$Reading,CSO_CITY_27$Reading,CSO_CITY_28$Reading,CSO_CITY_29$Reading,CSO_CITY_30$Reading,CSO_CITY_31$Reading,CSO_CITY_32$Reading,CSO_CITY_33$Reading,CSO_CITY_34$Reading,CSO_CITY_903$Reading,CSO_CITY_1006$Reading,CSO_CITY_3$InodeData,CSO_CITY_4$InodeData,CSO_CITY_5$InodeData,CSO_CITY_6$InodeData,CSO_CITY_7$InodeData,CSO_CITY_8$InodeData,CSO_CITY_9$InodeData,CSO_CITY_11$InodeData,CSO_CITY_13$InodeData,CSO_CITY_15$InodeData,CSO_CITY_16$InodeData,CSO_CITY_19$InodeData,CSO_CITY_21$InodeData,CSO_CITY_25$InodeData,CSO_CITY_26$InodeData,CSO_CITY_27$InodeData,CSO_CITY_28$InodeData,CSO_CITY_29$InodeData,CSO_CITY_30$InodeData,CSO_CITY_31$InodeData,CSO_CITY_32$InodeData,CSO_CITY_33$InodeData,CSO_CITY_34$InodeData,CSO_CITY_903$InodeData,CSO_CITY_1006$InodeData,CSO_CITY_3$InodeDataAudit,CSO_CITY_4$InodeDataAudit,CSO_CITY_5$InodeDataAudit,CSO_CITY_6$InodeDataAudit,CSO_CITY_7$InodeDataAudit,CSO_CITY_8$InodeDataAudit,CSO_CITY_9$InodeDataAudit,CSO_CITY_11$InodeDataAudit,CSO_CITY_13$InodeDataAudit,CSO_CITY_15$InodeDataAudit,CSO_CITY_16$InodeDataAudit,CSO_CITY_19$InodeDataAudit,CSO_CITY_21$InodeDataAudit,CSO_CITY_25$InodeDataAudit,CSO_CITY_26$InodeDataAudit,CSO_CITY_27$InodeDataAudit,CSO_CITY_28$InodeDataAudit,CSO_CITY_29$InodeDataAudit,CSO_CITY_30$InodeDataAudit,CSO_CITY_31$InodeDataAudit,CSO_CITY_32$InodeDataAudit,CSO_CITY_33$InodeDataAudit,CSO_CITY_34$InodeDataAudit,CSO_CITY_903$InodeDataAudit,CSO_CITY_1006$InodeDataAudit,CSO_CITY_3$InodeDataImport,CSO_CITY_4$InodeDataImport,CSO_CITY_5$InodeDataImport,CSO_CITY_6$InodeDataImport,CSO_CITY_7$InodeDataImport,CSO_CITY_8$InodeDataImport,CSO_CITY_9$InodeDataImport,CSO_CITY_11$InodeDataImport,CSO_CITY_13$InodeDataImport,CSO_CITY_15$InodeDataImport,CSO_CITY_16$InodeDataImport,CSO_CITY_19$InodeDataImport,CSO_CITY_21$InodeDataImport,CSO_CITY_25$InodeDataImport,CSO_CITY_26$InodeDataImport,CSO_CITY_27$InodeDataImport,CSO_CITY_28$InodeDataImport,CSO_CITY_29$InodeDataImport,CSO_CITY_30$InodeDataImport,CSO_CITY_31$InodeDataImport,CSO_CITY_32$InodeDataImport,CSO_CITY_33$InodeDataImport,CSO_CITY_34$InodeDataImport,CSO_CITY_903$InodeDataImport,CSO_CITY_1006$InodeDataImport,CSO_CITY_3$QualityControlLog,CSO_CITY_4$QualityControlLog,CSO_CITY_5$QualityControlLog,CSO_CITY_6$QualityControlLog,CSO_CITY_7$QualityControlLog,CSO_CITY_8$QualityControlLog,CSO_CITY_9$QualityControlLog,CSO_CITY_11$QualityControlLog,CSO_CITY_13$QualityControlLog,CSO_CITY_15$QualityControlLog,CSO_CITY_16$QualityControlLog,CSO_CITY_19$QualityControlLog,CSO_CITY_21$QualityControlLog,CSO_CITY_25$QualityControlLog,CSO_CITY_26$QualityControlLog,CSO_CITY_27$QualityControlLog,CSO_CITY_28$QualityControlLog,CSO_CITY_29$QualityControlLog,CSO_CITY_30$QualityControlLog,CSO_CITY_31$QualityControlLog,CSO_CITY_32$QualityControlLog,CSO_CITY_33$QualityControlLog,CSO_CITY_34$QualityControlLog,CSO_CITY_903$QualityControlLog,CSO_CITY_1006$QualityControlLog,CSO_CITY_3$MaintenanceModeSensors,CSO_CITY_4$MaintenanceModeSensors,CSO_CITY_5$MaintenanceModeSensors,CSO_CITY_6$MaintenanceModeSensors,CSO_CITY_7$MaintenanceModeSensors,CSO_CITY_8$MaintenanceModeSensors,CSO_CITY_9$MaintenanceModeSensors,CSO_CITY_11$MaintenanceModeSensors,CSO_CITY_13$MaintenanceModeSensors,CSO_CITY_15$MaintenanceModeSensors,CSO_CITY_16$MaintenanceModeSensors,CSO_CITY_19$MaintenanceModeSensors,CSO_CITY_21$MaintenanceModeSensors,CSO_CITY_25$MaintenanceModeSensors,CSO_CITY_26$MaintenanceModeSensors,CSO_CITY_27$MaintenanceModeSensors,CSO_CITY_28$MaintenanceModeSensors,CSO_CITY_29$MaintenanceModeSensors,CSO_CITY_30$MaintenanceModeSensors,CSO_CITY_31$MaintenanceModeSensors,CSO_CITY_32$MaintenanceModeSensors,CSO_CITY_33$MaintenanceModeSensors,CSO_CITY_34$MaintenanceModeSensors,CSO_CITY_903$MaintenanceModeSensors,CSO_CITY_1006$MaintenanceModeSensors,CSO_CITY_3$ReadingAlternate,CSO_CITY_4$ReadingAlternate,CSO_CITY_5$ReadingAlternate,CSO_CITY_6$ReadingAlternate,CSO_CITY_7$ReadingAlternate,CSO_CITY_8$ReadingAlternate,CSO_CITY_9$ReadingAlternate,CSO_CITY_11$ReadingAlternate,CSO_CITY_13$ReadingAlternate,CSO_CITY_15$ReadingAlternate,CSO_CITY_16$ReadingAlternate,CSO_CITY_19$ReadingAlternate,CSO_CITY_21$ReadingAlternate,CSO_CITY_25$ReadingAlternate,CSO_CITY_26$ReadingAlternate,CSO_CITY_27$ReadingAlternate,CSO_CITY_28$ReadingAlternate,CSO_CITY_29$ReadingAlternate,CSO_CITY_30$ReadingAlternate,CSO_CITY_31$ReadingAlternate,CSO_CITY_32$ReadingAlternate,CSO_CITY_33$ReadingAlternate,CSO_CITY_34$ReadingAlternate,CSO_CITY_903$ReadingAlternate,CSO_CITY_1006$ReadingAlternate,CSO_CITY_3$AlertAlternate,CSO_CITY_4$AlertAlternate,CSO_CITY_5$AlertAlternate,CSO_CITY_6$AlertAlternate,CSO_CITY_7$AlertAlternate,CSO_CITY_8$AlertAlternate,CSO_CITY_9$AlertAlternate,CSO_CITY_11$AlertAlternate,CSO_CITY_13$AlertAlternate,CSO_CITY_15$AlertAlternate,CSO_CITY_16$AlertAlternate,CSO_CITY_19$AlertAlternate,CSO_CITY_21$AlertAlternate,CSO_CITY_25$AlertAlternate,CSO_CITY_26$AlertAlternate,CSO_CITY_27$AlertAlternate,CSO_CITY_28$AlertAlternate,CSO_CITY_29$AlertAlternate,CSO_CITY_30$AlertAlternate,CSO_CITY_31$AlertAlternate,CSO_CITY_32$AlertAlternate,CSO_CITY_33$AlertAlternate,CSO_CITY_34$AlertAlternate,CSO_CITY_903$AlertAlternate,CSO_CITY_1006$AlertAlternate", 
        "showPrompt":false, 
        "transport":"xmlHttpRequest", 
        "promptStyle":"cursor", 
        "httpMethod":"GET", 
        "willHandleError":true, 
        "data":null
    }

    #2
    Hi wriley,

    see the FAQ, it could be related to the length of your URL (6997 chars).

    Best regards
    Blama

    Comment


      #3
      Oh, and when using v10.1d, you should really be using a recent nightly.

      Best regards
      Blama

      Comment


        #4
        Yet it works just fine when the length is 6408? According to Microsoft, the limit is 2038. This makes no sense. I do not see anthing in the FAQ regarding URL length. At any rate, thanks for the response.

        Comment


          #5
          It is right in the linked chapter:
          If you are loading a very large number of DataSources, the URL can be too long and be rejected
          before it even reaches SmartGWT Server code. In this case, split the URL into two <script> tags

          Comment


            #6
            You seem to be very knowledgeable on the subject. Could you maybe explain what splitting it into two <script> tags means?

            Comment


              #7
              Code:
              http://login.emnet.net/CSOnet_CITIES/CSOnet/sc/DataSourceLoader?loadParents=true&dataSource=firstPartOfTheList
              http://login.emnet.net/CSOnet_CITIES/CSOnet/sc/DataSourceLoader?loadParents=true&dataSource=secondPartOfTheList
              I never did this, though. I think that I read that you'll have to watch that the DS in each call are independent of each other w.r.t. to includeFrom etc.

              Best regards
              Blama

              Comment


                #8
                Normally, the DS are loaded in ther main html file, see builtInDS. There it is a <script> tag.

                Comment

                Working...
                X