[Geoserver-devel] [jira] (GEOS-4906) not serializable exception when saving workspace with local service checked

Gabriel Roldán created GEOS-4906:
------------------------------------

             Summary: not serializable exception when saving workspace with local service checked
                 Key: GEOS-4906
                 URL: https://jira.codehaus.org/browse/GEOS-4906
             Project: GeoServer
          Issue Type: Bug
          Components: Wicket UI
    Affects Versions: 2.2.x
         Environment: trunk @svn r16653
            Reporter: Gabriel Roldán
            Assignee: Justin Deoliveira

Go to edit a workspace, enable the WMS service checkbox, save.
Should get the following exception in the console:
{code}
17 Dec 23:04:19 ERROR [lang.Objects] - Error serializing object class org.geoserver.web.data.workspace.WorkspaceEditPage [object=[Page class = org.geoserver.web.data.workspace.WorkspaceEditPage, id = 14, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.geoserver.wms.WatermarkInfoImpl
Field hierarchy is:
  14 [class=org.geoserver.web.data.workspace.WorkspaceEditPage, path=14]
    private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
      private java.lang.Object org.apache.wicket.MarkupContainer.children[11] [class=org.geoserver.web.data.workspace.WorkspaceEditPage$1, path=14:form]
        private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
          private java.lang.Object org.apache.wicket.markup.html.form.FormComponent.validators[3] [class=org.geoserver.web.data.workspace.WorkspaceEditPage$ServicesPanel, path=14:form:services]
            private java.lang.Object org.apache.wicket.MarkupContainer.children [class=org.geoserver.web.data.workspace.WorkspaceEditPage$ServicesPanel$1, path=14:form:services:services]
              java.lang.Object org.apache.wicket.Component.data [class=org.apache.wicket.model.util.WildcardListModel]
                private java.lang.Object org.apache.wicket.model.util.GenericBaseModel.object [class=java.util.ArrayList]
                  org.geoserver.config.ServiceInfo org.geoserver.web.data.workspace.WorkspaceEditPage$NewServiceModel.service[write:8] [class=org.geoserver.web.data.workspace.WorkspaceEditPage$Service]
                    org.apache.wicket.model.IModel org.geoserver.web.data.workspace.WorkspaceEditPage$Service.model [class=org.geoserver.web.data.workspace.WorkspaceEditPage$NewServiceModel]
                      org.geoserver.config.ServiceInfo org.geoserver.web.data.workspace.WorkspaceEditPage$NewServiceModel.service [class=org.geoserver.wms.WMSInfoImpl]
                        org.geoserver.wms.WatermarkInfo org.geoserver.wms.WMSInfoImpl.watermark [class=org.geoserver.wms.WatermarkInfoImpl] <----- field that is not serializable
  at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:346)
.....
Caused by: java.io.NotSerializableException: org.geoserver.wms.WatermarkInfoImpl
  at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
....
  at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
  ... 125 more
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira