Announcement

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

    __cachedType in dataSource.field

    SmartClient Version: v10.0p_2014-10-23/EVAL Deployment (expires 2014.12.22_09.35.28) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

    Hello, I'm encountering a strange problem with my application.
    When refreshing after an update operation on a valuesManager, I get this warning in the developer console:
    Code:
    10:59:09.473:WARN:SimpleType:SimpleType 'text' defined twice: 
        SimpleType.init(Obj{name:text}, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef, undef)
        [a]MathFunction.completeCreation(A=>Obj{name:text}, B=>undef, C=>undef, D=>undef, E=>undef, F=>undef, G=>undef, H=>undef, I=>undef, J=>undef, K=>undef, L=>undef, M=>undef)
        [c]Class.create(A=>Obj{name:text}, B=>undef, C=>undef, D=>undef, E=>undef, F=>undef, G=>undef, H=>undef, I=>undef, J=>undef, K=>undef, L=>undef, M=>undef)
    and actually, one of my dataSources, is translated to JS like this, in my jsp:
    Code:
    isc.DataSource.create({
        allowAdvancedCriteria:true,
        xmlns:"http://www.smartclient.com/schema",
        operationBindings:[
            {
                operationType:"update",
                operationId:"risoluzioneConsensualeTemporanea"
            }
        ],
        serverType:"sql",
        inheritsFrom:"JAS_ACCORDO_ECONOMICO_BASE",
        tableCode:"679afdeadc379665accaa50d006fd558",
        ID:"JAS_ACCORDO_ECONOMICO",
        fields:[
            {
                sqlType:"decimal",
                columnCode:"0f5c51386c0edd837f6ab825b450811e",
                name:"ID_TESSERAMENTO_FK",
                joinType:"outer",
                type:"integer",
                foreignKey:"JAS_TESSERAMENTO.ID_REC"
            },
            {
                __cachedType:isc.SimpleType.create({
                    validators:[
                        {
                            max:20,
                            type:"lengthRange"
                        },
                        "isString"
                    ],
                    name:"text"
                })
    ,
                sqlType:"varchar",
                hidden:false,
                columnCode:"ad08324e2faaeed21b83e0256c3033be",
                sqlLength:"20",
                name:"VAR_TESSERAMENTO_NUM",
                length:20,
                type:"text",
                canEdit:false,
                includeVia:"ID_TESSERAMENTO_FK"
            }
        ]
    })
    what's that __cachedType ? Why does it show up?

    this is the JAS_ACCORDO_ECONOMICO.ds.xml:
    Code:
    <!--
     <%@page pageEncoding="UTF-8" contentType="text/xml; charset=UTF-8"%>
     <%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
     <fmt:setBundle basename="i18nMessages_${locale}" var="i18n"/>
     -->
    <DataSource xmlns="http://www.smartclient.com/schema"
                ID="JAS_ACCORDO_ECONOMICO"
                tableName="JAS_ACCORDO_ECONOMICO"
                schema="DBJAS"
                dbName="dbJas"
                serverType="sql"
                inheritsFrom="JAS_ACCORDO_ECONOMICO_BASE"
            >
    	<fields>
            <field foreignKey="JAS_TESSERAMENTO.ID_REC" sqlType="decimal" name="ID_TESSERAMENTO_FK" type="integer" joinType="outer"/>
            <field name="VAR_TESSERAMENTO_NUM" type="text" includeFrom="JAS_TESSERAMENTO.VAR_TESSERAMENTO_NUM" includeVia="ID_TESSERAMENTO_FK"/>
    	</fields>
        <operationBindings>
            <operationBinding operationType="update" operationId="risoluzioneConsensualeTemporanea" serverMethod="risoluzioneConsensualeTemporanea">
                <serverObject lookupStyle="new" className="com.juve.jas.trasferimenti.TesseramentoAddOrUpdateDMI"/>
            </operationBinding>
        </operationBindings>
    </DataSource>

    #2
    For completeness, this is the dataSource field included from JAS_TESSERAMENTO (actually inherited from another dataSource):

    Code:
    <field name="VAR_TESSERAMENTO_NUM" type="text" length="20" sqlLength="20" sqlType="varchar">
    I've found that if I remove the length="20" attribute, the problem vanishes.
    No difference in putting the length attribute directly in the includedFrom field, gives same error.

    I've tried using a validator 'lengthRange' with min="0" and max="20" but it gives the same error as length="20".
    Last edited by claudiobosticco; 24 Oct 2014, 06:28.

    Comment


      #3
      This issue is not easy to reproduce from the information you gave.
      Could you provide complete configurations of all related data source configurations?

      Comment


        #4
        ok, here are the dataSources.

        JAS_ACCORDO_ECONOMICO_BASE.ds.xml
        Code:
        <!--
         <%@page pageEncoding="UTF-8" contentType="text/xml; charset=UTF-8"%>
         <%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
         <fmt:setBundle basename="i18nMessages_${locale}" var="i18n"/>
         -->
        <DataSource xmlns="http://www.smartclient.com/schema"
                    ID="JAS_ACCORDO_ECONOMICO_BASE"
                    tableName="JAS_ACCORDO_ECONOMICO"
                    schema="DBJAS"
                    dbName="dbJas"
                    serverType="sql"
                >
        	<fields>
                <field sqlType="decimal" primaryKey="true" name="ID_REC" type="sequence" hidden="true">
                    <sequenceName>SEQUENCE_ID_REC</sequenceName>
                </field>
        		<field sqlType="varchar" sqlLength="600" name="CONDIZIONE_PREMI" length="600" type="text"></field>
        		<field sqlType="char" sqlLength="1" name="IS_VERIFICATO_COND_PREMIO" type="boolean"
                       sqlStorageStrategy="singleCharTF"></field>
                <field sqlType="date" name="DATA_VERIFICATO_COND_PREMIO" type="date"/>
                <field sqlType="varchar" sqlLength="100" name="USER_VERIFICATO_COND_PREMIO" type="text"/>
        		<field sqlType="varchar" sqlLength="20" name="ESITO_VISITA_MEDICA" length="20" type="text"></field>
        		<field sqlType="timestamp" sqlLength="7" name="DATA_SCADENZA_OPZIONE" type="datetime"></field>
        		<field sqlType="varchar" sqlLength="60" name="RAPPRESENTANTE_SOC_PROV" length="60" type="text"></field>
        		<field sqlType="varchar" sqlLength="60" name="RAPPRESENTANTE_SOC_DEST" length="60" type="text"></field>
        		<field sqlType="varchar" sqlLength="60" name="QUALIFICA_RAP_SOC_PROV" length="60" type="text"></field>
        		<field sqlType="varchar" sqlLength="60" name="QUALIFICA_RAP_SOC_DEST" length="60" type="text"></field>
        		<field sqlType="decimal" sqlLength="38" name="IMPORTO_GLOBALE" type="integer"></field>
        		<field sqlType="decimal" sqlLength="38" name="IMPORTO_OPZIONE" type="integer"></field>
        		<field sqlType="decimal" sqlLength="38" name="IMPORTO_CONTRO_OPZ" type="integer"></field>
        		<field sqlType="decimal" sqlLength="38" name="IMPORTO_PARTECIPAZIONE" type="integer"></field>
        		<field sqlType="decimal" sqlLength="38" name="IMPORTO_PREMI_VALORIZ" type="integer"></field>
        		<field sqlType="varchar" sqlLength="20" name="VALUTA" length="20" type="text"></field>
                <field sqlType="varchar" sqlLength="1" name="TRASFERIMENTO_GRATUITO" length="1" type="text"></field>
        		<field sqlType="varchar" sqlLength="20" name="POSIZIONE_MILITARE" length="20" type="text"></field>
        		<field sqlType="varchar" sqlLength="200" name="UPDATE_BY" length="200" type="text"></field>
        		<field sqlType="timestamp" sqlLength="11" name="LAST_UPDATE" type="datetime"></field>
        		<field sqlType="varchar" sqlLength="60" name="CREATOR" length="60" type="text"></field>
        		<field sqlType="timestamp" sqlLength="11" name="DATE_CREATOR" type="datetime"></field>
        		<field sqlType="varchar" sqlLength="20" name="NUM_DOC_DIRITTO_OPZIONE" length="20" type="text"></field>
        		<field sqlType="varchar" sqlLength="20" name="NUM_DOC_ACCORDO_IN_BOLLO" length="20" type="text"></field>
                <field sqlType="varchar" sqlLength="20" name="NUM_DOC_OBBL_RISCAT" length="20" type="text"></field>
        		<field sqlType="date" name="DATA_DEPOSITO" type="datetime"></field>
        		<field nativeFK="JAS_TESSERAMENTO.ID_REC" foreignKey="JAS_TESSERAMENTO.ID_REC" sqlType="decimal"
                       name="ID_TESSERAMENTO_FK"
                       type="integer" joinType="outer"></field>
                <field sqlType="varchar" sqlLength="20" name="NUMERO_ACCORDO_PARTECIPAZIONE" type="text"></field>
        		<field sqlType="date" name="DATA_RISOLUZIONE_CONSENSUALE" type="date"></field>
                <field sqlType="varchar" sqlLength="500" name="CLAUSOLE_OBBLIGO_RISCATTO" length="500" type="text"></field>
                <field sqlType="decimal" sqlLength="38" name="IMPORTO_OBBLIGO_RISCATTO" type="integer"></field>
                <field sqlType="char" sqlLength="1" name="IS_VERIFICATO_OBBLIGO_RISCATTO" type="boolean"
                       sqlStorageStrategy="singleCharTF"></field>
        	</fields>
        </DataSource>
        JAS_ACCORDO_ECONOMICO.ds.xml
        Code:
        <!--
         <%@page pageEncoding="UTF-8" contentType="text/xml; charset=UTF-8"%>
         <%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
         <fmt:setBundle basename="i18nMessages_${locale}" var="i18n"/>
         -->
        <DataSource xmlns="http://www.smartclient.com/schema"
                    ID="JAS_ACCORDO_ECONOMICO"
                    tableName="JAS_ACCORDO_ECONOMICO"
                    schema="DBJAS"
                    dbName="dbJas"
                    serverType="sql"
                    inheritsFrom="JAS_ACCORDO_ECONOMICO_BASE"
                >
        	<fields>
                <field foreignKey="JAS_TESSERAMENTO.ID_REC" sqlType="decimal" name="ID_TESSERAMENTO_FK" type="integer" joinType="outer"/>
                <field name="VAR_TESSERAMENTO_NUM" type="text" includeFrom="JAS_TESSERAMENTO.VAR_TESSERAMENTO_NUM" includeVia="ID_TESSERAMENTO_FK"/>
        	</fields>
            <operationBindings>
                <operationBinding operationType="update" operationId="risoluzioneConsensualeTemporanea" serverMethod="risoluzioneConsensualeTemporanea">
                    <serverObject lookupStyle="new" className="com.juve.jas.trasferimenti.TesseramentoAddOrUpdateDMI"/>
                </operationBinding>
            </operationBindings>
        </DataSource>
        JAS_TESSERAMENTO_BASE.ds.xml
        Code:
        <DataSource xmlns="http://www.smartclient.com/schema"
                    ID="JAS_TESSERAMENTO_BASE"
                    tableName="JAS_TESSERAMENTO"
                    schema="DBJAS"
                    dbName="dbJas"
                    serverType="sql"
                    requiresAuthentication="true"
                >
            <fields>
                <field sqlType="decimal" name="ID_REC" type="sequence" hidden="true" primaryKey="true" sequenceName="SEQUENCE_ID_REC"/>
                <field name="DATA_DEPOSITO" type="date"/>
                <field name="ID_SOCIETA_PROVENIENZA_FK" sqlType="decimal" type="integer" foreignKey="JAS_SOCIETA.ID_REC" required="true"
                       nativeFK="JAS_SOCIETA.ID_REC" joinType="outer"/>
                <field name="ID_LEGA_SOC_PROVENIENZA_FK" sqlType="decimal" type="integer" foreignKey="JAS_LEGHE.ID_REC"
                       nativeFK="JAS_LEGHE.ID_REC" joinType="outer"/>
                <field name="ID_SOCIETA_DESTINAZIONE_FK" sqlType="decimal" type="integer" foreignKey="JAS_SOCIETA.ID_REC" required="true"
                       nativeFK="JAS_SOCIETA.ID_REC" joinType="outer"/>
                <field name="ID_LEGA_SOC_DESTINAZIONE_FK" sqlType="decimal" type="integer" foreignKey="JAS_LEGHE.ID_REC"
                       nativeFK="JAS_LEGHE.ID_REC" joinType="outer"/>
                <field name="DATA_ESECUTIVITA" type="date"/>
                <field name="NOTE" type="text" length="200" sqlLength="200" sqlType="varchar"/>
                <field name="LAST_UPDATE" type="modifierTimestamp" hidden="true"/>
                <field name="UPDATE_BY" type="modifier" length="60" hidden="true" sqlLength="60" sqlType="varchar"/>
                <field name="ID_GIOCATORE_FK" sqlType="decimal" type="integer" foreignKey="JAS_ANAGRAFICA_GIOCATORI.ID_REC" joinType="outer"
                       relatedTableAlias="JAS_ANAGRAFICA_GIOCATORI" optionDataSource="JAS_ANAGRAFICA_GIOCATORI"
                       displayField="COGNOME_NOME" valueField="ID_REC" title="Calciatore">
                </field>
                <field name="LUOGO_DI_STAMPA" type="text" length="50" sqlLength="50" sqlType="varchar"/>
                <field name="ID_TIPO_TESSERAMENTO_FK" sqlType="decimal" type="integer" foreignKey="JAS_TIPOLOGIE_TESSERAMENTO.ID_REC"
                       nativeFK="JAS_TIPOLOGIE_TESSERAMENTO.ID_REC" joinType="outer"/>
                <field name="ID_STATUS_GIOCATORE_FK" sqlType="decimal" type="integer" foreignKey="JAS_STATUS_GIOCATORE.ID_REC" joinType="outer"/>
                <field name="VAR_TESSERAMENTO_NUM" type="text" sqlLength="20" sqlType="varchar" length="20">  
                </field>
                <field name="CREATOR" type="creator" length="60" hidden="true" sqlLength="60" sqlType="varchar"/>
                <field name="DATE_CREATOR" type="creatorTimestamp" hidden="true"/>
                <field name="ID_STAGIONE_FK" sqlType="decimal" type="integer" foreignKey="JAS_STAGIONI.ID_REC" joinType="outer" required="true"></field>
            </fields>
        </DataSource>
        JAS_TESSERAMENTO.ds.xml
        Code:
        <DataSource xmlns="http://www.smartclient.com/schema"
                    ID="JAS_TESSERAMENTO" dataFormat="iscServer" serverType="sql" dbName="dbJas" schema="DBJAS"
                    tableName="JAS_TESSERAMENTO"
                    requiresAuthentication="false"
                    dropExtraFields="false"
                    inheritsFrom="JAS_TESSERAMENTO_BASE"
                >
            <fields>
                <field name="ID_SOCIETA_PROVENIENZA_FK" type="integer" foreignKey="JAS_SOCIETA.ID_REC" sqlType="decimal"
                       nativeFK="JAS_SOCIETA.ID_REC" joinType="outer" displayField="SOCIETA_PROVENIENZA">
                </field>
                <field name="SOCIETA_PROVENIENZA" type="text" length="50" includeFrom="JAS_SOCIETA.DESCRIZIONE" sqlLength="50"
                       sqlType="varchar"
                       includeVia="ID_SOCIETA_PROVENIENZA_FK">
                </field>
                <field name="MATRICOLA_SOCIETA_PROVENIENZA" type="integer" includeFrom="JAS_SOCIETA.MATRICOLA" sqlType="decimal"
                       includeVia="ID_SOCIETA_PROVENIENZA_FK">
                </field>
                <field name="SEDE_SOCIETA_PROVENIENZA" type="text" length="60" includeFrom="JAS_SOCIETA.INDIRIZZO_SEDE"
                       sqlLength="60" sqlType="varchar"
                       includeVia="ID_SOCIETA_PROVENIENZA_FK">
                </field>
                <field name="FK_REGIONE_PROVENIENZA" type="integer" includeFrom="JAS_SOCIETA.FK_REGIONE"
                       includeVia="ID_SOCIETA_PROVENIENZA_FK"/>
                <field name="LEGA_SOCIETA_PROVENIENZA" type="text" length="50" includeFrom="JAS_LEGHE.DESCRIZIONE"
                       includeVia="ID_LEGA_SOC_PROVENIENZA_FK">
                    <sqlLength>50</sqlLength>
                    <sqlType>varchar</sqlType>
                </field>
                <field name="ID_SOCIETA_DESTINAZIONE_FK" type="integer" foreignKey="JAS_SOCIETA.ID_REC"
                       displayField="SOCIETA_DESTINAZIONE" sqlType="decimal"
                       nativeFK="JAS_SOCIETA.ID_REC" joinType="outer">
                </field>
                <field name="SOCIETA_DESTINAZIONE" type="text" length="50" includeFrom="JAS_SOCIETA.DESCRIZIONE" sqlLength="50"
                       sqlType="varchar"
                       includeVia="ID_SOCIETA_DESTINAZIONE_FK">
                </field>
                <field name="MATRICOLA_SOCIETA_DESTINAZIONE" type="integer" length="38" includeFrom="JAS_SOCIETA.MATRICOLA"
                       sqlType="decimal"
                       includeVia="ID_SOCIETA_DESTINAZIONE_FK">
                </field>
                <field name="SEDE_SOCIETA_DESTINAZIONE" type="text" length="60" includeFrom="JAS_SOCIETA.INDIRIZZO_SEDE"
                       sqlLength="60" sqlType="varchar"
                       includeVia="ID_SOCIETA_DESTINAZIONE_FK">
                </field>
                <field name="FK_REGIONE_DESTINAZIONE" type="integer" includeFrom="JAS_SOCIETA.FK_REGIONE"
                       includeVia="ID_SOCIETA_DESTINAZIONE_FK"/>
                <field name="LEGA_SOCIETA_DESTINAZIONE" type="text" length="50" includeFrom="JAS_LEGHE.DESCRIZIONE"
                       includeVia="ID_LEGA_SOC_DESTINAZIONE_FK">
                    <sqlLength>50</sqlLength>
                    <sqlType>varchar</sqlType>
                </field>
                <field name="STAGIONE" type="text" title="Stagione" includeFrom="JAS_STAGIONI.DESCRIZIONE"/>
                <field name="TIPO_TESSERAMENTO" type="text" hidden="true" includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.DESCRIZIONE"/>
                <field name="HAS_DIRITTO_OPZIONE" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_DIRITTO_OPZIONE"/>
                <field name="HAS_OBBLIGO_RISCATTO" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_OBBLIGO_RISCATTO"/>
                <field name="HAS_ACCORDO_PARTECIPAZIONE" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_ACCORDO_PARTECIPAZIONE"/>
                <field name="HAS_RINNOVO" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_RINNOVO"/>
                <field name="HAS_DIRITTO_CONTROOPZIONE" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_DIRITTO_CONTROOPZIONE"/>
                <field name="HAS_CLAUSOLE_PARTICOLARI" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_CLAUSOLE_PARTICOLARI"/>
                <field name="HAS_PREMI_VALORIZZAZIONE" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_PREMI_VALORIZZAZIONE"/>
                <field name="HAS_ACCORDO_ECONOMICO" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_ACCORDO_ECONOMICO"/>
                <field name="HAS_LIQUIDAZIONE_CESSIONE" type="text" hidden="true"
                       includeFrom="JAS_TIPOLOGIE_TESSERAMENTO.HAS_LIQUIDAZIONE_CESSIONE"/>
                <field name="STATUS_CALCIATORE" type="text" includeFrom="JAS_STATUS_GIOCATORE.DESCRIZIONE"/>
                <field name="ID_TIPO_TESSERAMENTO_FK" type="integer" foreignKey="JAS_TIPOLOGIE_TESSERAMENTO.ID_REC"
                       displayField="TIPO_TESSERAMENTO"
                       sqlType="decimal"
                       joinType="outer">
                </field>
                <field name="COGNOME_NOME_CALCIATORE" type="text" hidden="true"
                       includeFrom="JAS_ANAGRAFICA_GIOCATORI.COGNOME_NOME"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="NOME_CALCIATORE" type="text" length="30" includeFrom="JAS_ANAGRAFICA_GIOCATORI.NOME"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="COGNOME_CALCIATORE" type="text" length="30" includeFrom="JAS_ANAGRAFICA_GIOCATORI.COGNOME"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="DATA_NASCITA_CALCIATORE" type="date" includeFrom="JAS_ANAGRAFICA_GIOCATORI.DATA_NASCITA"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="COMUNE_RESIDENZA_CALCIATORE" type="text" includeFrom="JAS_ANAGRAFICA_GIOCATORI.COMUNE_RESIDENZA"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="PROVINCIA_RESIDENZA_CALCIATORE" type="text"
                       includeFrom="JAS_ANAGRAFICA_GIOCATORI.PROVINCIA_RESIDENZA"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="INDIRIZZO_RESIDENZA_CALCIATORE" type="text"
                       includeFrom="JAS_ANAGRAFICA_GIOCATORI.INDIRIZZO_RESIDENZA"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="CITTADINANZA_CALCIATORE" type="text" includeFrom="JAS_ANAGRAFICA_GIOCATORI.NAZIONE_CITTADINANZA"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="MATRICOLA_CALCIATORE" type="text" includeFrom="JAS_ANAGRAFICA_GIOCATORI.MATRICOLA"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="LUOGO_NASCITA_CALCIATORE" type="text" includeFrom="JAS_ANAGRAFICA_GIOCATORI.LUOGO_NASCITA"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="ETA_CALCIATORE" type="integer" includeFrom="JAS_ANAGRAFICA_GIOCATORI.ETA"
                       includeVia="ID_GIOCATORE_FK"/>
                <field name="DATA_RINNOVO" type="date">
                    <customSelectExpression>
                        (SELECT MAX(DATA_RINNOVO) FROM JAS_RINNOVI_PARTECIPAZIONI WHERE
                        JAS_RINNOVI_PARTECIPAZIONI.ID_ACCORDO_ECONOMICO_FK = JAS_ACCORDO_ECONOMICO.ID_REC)
                    </customSelectExpression>
                </field>
                <field name="DATA_RISOLUZIONE_CONSENSUALE" type="date"
                       customSelectExpression="JAS_ACCORDO_ECONOMICO.DATA_RISOLUZIONE_CONSENSUALE"/>
            </fields>
            <operationBindings>
                <operationBinding operationType="add">
                    <serverObject lookupStyle="new" className="com.juve.jas.trasferimenti.TesseramentoAddOrUpdateDMI"/>
                </operationBinding>
                <operationBinding operationType="update">
                    <serverObject lookupStyle="new" className="com.juve.jas.trasferimenti.TesseramentoAddOrUpdateDMI"/>
                </operationBinding>
                <operationBinding operationType="fetch">
                    <selectClause>$defaultSelectClause</selectClause>
                    <tableClause>
                        $defaultTableClause,
                        DBJAS.JAS_ACCORDO_ECONOMICO
                    </tableClause>
                    <whereClause>
                        $defaultWhereClause
                        AND JAS_ACCORDO_ECONOMICO.ID_TESSERAMENTO_FK(+) = JAS_TESSERAMENTO.ID_REC
                    </whereClause>
                </operationBinding>
            </operationBindings>
        </DataSource>
        please let me know if you need more details.

        Comment


          #5
          Thank you, but still can't see the problem.

          Could you please provide simple test case illustrating this issue? Like single data source (or couple) simplified to show the problem with simple JS (or SGWT) code that makes necessary calls to server causing the problem to show up.

          Comment


            #6
            I'll try but it won't be easy.

            Could you shed some light on what could 'trigger' the instantiation of that __cachedType:SimpleType in the js version of a DataSource?
            I've never seen it before.
            Maybe it would help me in making up a test case.

            Comment


              #7
              This is internal and server only. Somehow it managed to avoid all the failsafes and make it to the client.

              I think once you start to strip off some fields, calls to the server or may be even settings, you will have less and less possible causes. Feel free to write about any suspects you may have in the process.

              Also, could you just couple of these steps below before anything else:
              - create html page that makes single call to DSLoader getting JAS_ACCORDO_ECONOMICO data source, without any fetches, updates or anything else - just load a data source. Will it then have the __cachedType attribute?
              - rename the data source and try to load renamed one, this will ensure it will be created from scratch avoiding the caches.
              - if both above will work OK, then you could try making calls from your application and see which one causes the problem.

              Comment


                #8
                Hello.

                I have just hit the same problem.
                It happens on some fields of some datasources we have, although strangely enough the fields where an error is reported on the UI do not contain the code block __cachedType in its (corrupted) datasource field definition, some others fields do.
                For example on this field an error is shown on the UI.
                Code:
                {
                          columnCode:"bd77a7907cc5dcc6bf93d4878a23d454",
                            name:"noteBody",
                            length:3500,
                            escapeHTML:true,
                            type:"text",
                            enforceLength:"true"
                        },
                Although the definition does not have the problematic code (this datasource does not have any field definition with the problematic code). The problematic code appears on another field definition of a different datasource.

                Code:
                {
                            __cachedType:isc.SimpleType.create({
                                validators:[
                                    {
                                        max:50,
                                        type:"lengthRange"
                                    }
                                ],
                                name:"textWithTrimming"
                            })
                ,
                            columnCode:"4ed5d2eaed1a1fadcc41ad1d58ed603e",
                            name:"city",
                            length:50,
                            escapeHTML:true,
                            type:"textWithTrimming",
                            enforceLength:"true",
                            canEdit:true,
                            operator:"iContains"
                        },
                This does not happen all the time, rather "randomly" when we hot deploy.
                We noticed that a server restart solves this problem.

                The version we are using is: 5.0-p20150323.
                The application is deployed under Weblogic 10.

                Comment


                  #9
                  textWithTrimming is our own defined type:

                  Code:
                  public class TextWithTrimmingType extends SimpleType {
                  
                      public TextWithTrimmingType() {
                          super(CustomGeneralTypes.textWithTrimming.name(), FieldType.TEXT);
                          setValidators(new SpaceTrimmer());
                      }
                  }

                  Comment


                    #10
                    The issue is fixed now, you may download next nightly build (2015-04-23) and try it out. Let us know if you have any problems with this.

                    Comment

                    Working...
                    X