Uploaded image for project: 'Geomajas GWT client'
  1. Geomajas GWT client
  2. GWT-716

Printing layers with ClientWmsLayerInfo : serialization error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16.0
    • Component/s: None
    • Labels:
      None

      Description

      In using layers that have ClientWmsLayerInfo, when using the print plugin, there is a compilation error:

      Computing all possible rebind results for 'org.geomajas.gwt2.plugin.print.client.json.JsonPrintTemplateInfoMapper'
                  Rebinding org.geomajas.gwt2.plugin.print.client.json.JsonPrintTemplateInfoMapper
                     Invoking generator com.github.nmorel.gwtjackson.rebind.ObjectMapperGenerator
                        Creating serializer for org.geomajas.plugin.printing.command.dto.PrintTemplateInfo
                           Creating serializer for org.geomajas.plugin.printing.component.dto.PageComponentInfo
                              Creating serializer for org.geomajas.plugin.printing.component.dto.PrintComponentInfo
                                 Creating serializer for org.geomajas.plugin.printing.component.dto.BaseLayerComponentInfo
                                    Creating serializer for org.geomajas.plugin.printing.component.dto.RasterizedLayersComponentInfo
                                       Creating serializer for org.geomajas.configuration.client.ClientMapInfo
                                          Creating serializer for org.geomajas.configuration.client.ClientLayerInfo
                                             Creating serializer for org.geomajas.configuration.client.ClientRasterLayerInfo
                                                Creating serializer for org.geomajas.gwt.client.map.layer.configuration.ClientWmsLayerInfo
                                                   Creating serializer for org.geomajas.gwt.client.map.layer.ClientWmsLayer
                                                      Creating serializer for org.geomajas.gwt2.plugin.wms.client.capabilities.WmsLayerInfo
                                                         Creating serializer for org.geomajas.gwt2.plugin.wms.client.capabilities.v1_3_0.WmsLayerInfo130
                                                            [WARN] A field with the same name as parsed has already been found on child class
                                                         Creating serializer for org.geomajas.gwt2.plugin.wms.client.capabilities.v1_1_1.WmsLayerInfo111
                                                            [WARN] A field with the same name as parsed has already been found on child class
                                                      Creating serializer for org.geomajas.gwt2.client.map.render.LayerRenderer
                                                         Creating serializer for org.geomajas.gwt2.client.map.layer.Layer
                                                            Creating serializer for org.geomajas.gwt2.client.map.layer.VectorServerLayerImpl
                                                               Creating serializer for org.geomajas.gwt2.client.map.attribute.AttributeDescriptor
                                                                  Creating serializer for org.geomajas.gwt2.client.map.attribute.AttributeType
                                                                     Creating serializer for java.lang.Class
                                                                        [ERROR] java.lang.Object is not a supported type
      

      JsonPrintTemplateInfoMapper extends ObjectMapper<PrintTemplateInfo>, and this tries to serialize all possible implementations of PrintTemplateInfo and their attributes. One of the implementations' attributes is ClientWmsLayerInfo. This has attribute ClientWmsLayer that we don't wat to see serialized.

        Attachments

          Activity

            People

            • Assignee:
              janv Jan Venstermans
              Reporter:
              janv Jan Venstermans
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: