Announcement

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

    samartgwt server is spamming info log ValuXPath contains Null-Field

    Hello.

    I currently evaluating the smartgwt enterprise edition (3.1d SNAPSHOT_v8.3d_2012-09-20/EVAL Deployment 2012-09-20).

    I use the valueXpath feature to get the value of a delegated field:

    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <DataSource ID="evoProduct" serverType="hibernate" dropExtraFields="true" beanClassName="test.ProductEntity">
        <fields>
            <field name="productId" type="integer" title="Produkt-Id" primaryKey="true"/>
            <field name="name" type="text" valueXPath="/name/defaultValue" title="Name"/>
            <field name="taxClass" type="text" title="Steuerklasse"/>
            <field name="weight" type="float" title="Gewicht"/>
            <field name="longDescription" type="text" valueXPath="/longDescription/defaultValue" title="Lange Beschreibung"/>
            <field name="shortDescription" type="text" valueXPath="/shortDescription/defaultValue" title="Kurze Beschreibung"/>
            <field name="online" type="boolean" title="Online"/>
            <field name="display_manufacturer_manufacturerId" type="text" valueXPath="/manufacturer/manufacturerId" canEdit="false" canSave="false" hidden="true"/>
            <field name="manufacturer" required="false" title="Hersteller" canEdit="true" foreignKey="evoManufacturer.manufacturerId" displayField="display_manufacturer_manufacturerId"/>
            <field name="manufacturerProductId" type="text" title="Produkt Id vom Hersteller"/>
            <field name="searchable" type="boolean" title="Suchbar"/>
            <field name="display_productType_productTypeId" type="text" valueXPath="/productType/productTypeId" canEdit="false" canSave="false" hidden="true"/>
            <field name="productType" required="false" title="Produkttyp" canEdit="true" foreignKey="evoProductType.productTypeId" displayField="display_productType_productTypeId"/>
            <field name="globalId" type="text" title="EAN"/>
            <field name="keywords" type="text" valueXPath="/keywords/defaultValue" title="Suchwörter"/>
            <field name="type" type="enum" title="Typ">
                <valueMap>
                    <value id="BUNDLE">Bundle</value>
                    <value id="PRODUCT">Produkt</value>
                </valueMap>
            </field>
        </fields>
    </DataSource>
    But if one field within the Xpath is null, smartgwt writes one line per field and entity in the info log. I think the loglevel for this should be debug or trace scope.

    Code:
    =!= 2012-09-20 16:15:41,343 [sor2] INFO  DataSource - Couldn't get value at valueXPath: /longDescription/defaultValue for datasource: evoProduct - ignoring.  Actual error: org.apache.commons.jxpath.JXPathNotFoundException: No value for xpath: /longDescription/defaultValue
    =!= 2012-09-20 16:15:41,344 [sor2] INFO  DataSource - Couldn't get value at valueXPath: /shortDescription/defaultValue for datasource: evoProduct - ignoring.  Actual error: org.apache.commons.jxpath.JXPathNotFoundException: No value for xpath: /shortDescription/defaultValue
    =!= 2012-09-20 16:15:41,344 [sor2] INFO  DataSource - Couldn't get value at valueXPath: /manufacturer/manufacturerId for datasource: evoProduct - ignoring.  Actual error: org.apache.commons.jxpath.JXPathNotFoundException: No value for xpath: /manufacturer/manufacturerId
    =!= 2012-09-20 16:15:41,355 [sor2] INFO  DataSource - Couldn't get value at valueXPath: /keywords/defaultValue for datasource: evoProduct - ignoring.  Actual error: org.apache.commons.jxpath.JXPathNotFoundException: No value for xpath: /keywords/defaultValue
    =!= 2012-09-20 16:15:41,356 [sor2] INFO  DataSource - Couldn't get value at valueXPath: /longDescription/defaultValue for datasource: evoProduct - ignoring.  Actual error: org.apache.commons.jxpath.JXPathNotFoundException: No value for xpath: /longDescription/defaultValue
    =!= 2012-09-20 16:15:41,356 [sor2] INFO  DataSource - Couldn't get value at valueXPath: /shortDescription/defaultValue for datasource: evoProduct - ignoring.  Actual error: org.apache.commons.jxpath.JXPathNotFoundException: No value for xpath: /shortDescription/defaultValue
    Last edited by andy.2003; 20 Sep 2012, 06:30.

    #2
    You can use log4j settings if you want to avoid seeing this.

    Comment

    Working...
    X