Announcement

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

    DataSource Warnings

    SmartGWT 3.0p
    WinXP
    Firefox 10.0.4

    We get alot of these warnings:

    [com.isomorphic.datasource.BasicDataSource] (http-localhost%2F127.0.0.1-8443-6) Can not load related data source 'image' for field 'statusCode'. Treating as simple field.

    What is the correct way to avoid these?

    #2
    This looks like a DEBUG-level message that would normally be suppressed via log4j settings, and is suppressed via the default log4j settings we ship.

    Comment


      #3
      Datasource warnings: "Can not load related data source ..."

      I see similar log messages:

      === 2013-02-26 16:26:43,423 [0-10] WARN BasicDataSource - Can not load related data source 'link' for field 'fileName'. Treating as simple field.

      === 2013-02-26 16:26:43,437 [0-10] WARN BasicDataSource - Can not load related data source 'button' for field 'save'. Treating as simple field.


      As the messages are on WARN-level, they are not suppressed with the default log4j settings.
      Is there a way to avoid these?

      I'm using v8.3p_2013-01-30/PowerEdition Deployment (built 2013-01-30)

      Comment


        #4
        We need to see how these are being generated in the first place. Can you share the DataSource definition that causes these to show up? Also full logs for the request or other operation during which these show up.

        Comment


          #5
          There are two different datasources for the two fields mentioned.

          Both are JPA2DataSources:

          Code:
          <DataSource 
          	ID="invoice" 
          	serverType="jpa"
          	serverConstructor="com.isomorphic.jpa.JPA2DataSource"
          	beanClassName="xyz.Invoice"
          	autoJoinTransactions="true">
          	
          	<fields>
          		<field name="fileName" type="link" readOnly="true" width="23" />
              </fields>
          </DataSource>
          The warnings are triggered when fetching data to be displayed in a listgrid.

          The other field is defined as follows:
          Code:
          <field name="save" title="Save" type="button" width="120" />
          The warnings are triggered when fetching data to be displayed in a DynamicForm.

          Comment


            #6
            These are both invalid values for DataSourceField.type.

            Comment


              #7
              Ok the "button" field was used to do some positioning of the button on a dynamic form. We can go without that.

              However according to this documentation:
              http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/types/FieldType.html
              there is a datasource field of type "link".

              Comment


                #8
                Ah, you're correct, it should not be complaining about "link". We'll fix that one.

                Comment


                  #9
                  The invalid warning message for type="link" fields is fixed in tomorrow's nightly for 3.1p or 4.0d.

                  Comment


                    #10
                    Image FieldType error

                    Hello,

                    I see similar log messages:

                    Code:
                    === 2013-03-21 15:36:09,947 [l0-5] WARN  BasicDataSource - Can not load related data source 'image' for field 'errorWarningStatus'. Treating as simple field.
                    Here is an extract of my datasource definition:
                    Code:
                    <DataSource 
                    	ID="invoice" 
                    	serverType="jpa"
                    	serverConstructor="com.isomorphic.jpa.JPA2DataSource"
                    	beanClassName="Invoice"
                    	autoJoinTransactions="true">
                    	<fields>
                                           <field name="errorWarningStatus" type="image" readOnly="true" width="23" canEdit="false" showFilterEditor="true"/>
                    	</fields>
                    </DataSource>
                    The warning is triggered when fetching data to be displayed in a listgrid.

                    According to this documentation:
                    http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/types/FieldType.html#IMAGE
                    There is a datasource field of type "image".


                    Is there a way to avoid these warnings?

                    I'm using Isomorphic SmartClient/SmartGWT Framework (v8.3p_2013-03-04/PowerEdition Deployment 2013-03-04)

                    Comment


                      #11
                      This warning is spurious and is now avoided in the latest 3.1 and 4.0 builds.

                      Comment

                      Working...
                      X