Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3538

[Regression] Wicket Viewer: Non-serializable object causes errors when list all, and elsewhere.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Resolved
    • None
    • 2.0.0-RC3
    • None

    Description

      pull down latest simpleapp, and run.

      docker pull apache/causeway-app-simpleapp:jpa-SNAPSHOT
      docker run -p 8080:8080 apache/causeway-app-simpleapp:jpa-SNAPSHOT

       

      create two objects, then attempt to list them.

       

      the stack trace shows the issue:

      2023-07-26 09:11:21 2023-07-26 08:11:21.325 ERROR 1 — [nio-8080-exec-1] o.a.w.s.j.JavaSerializer                 : Error serializing object class org.apache.causeway.viewer.wicket.ui.pages.entity.EntityPage [object=[Page class = org.apache.causeway.viewer.wicket.ui.pages.entity.EntityPage, id = 14, render count = 1]]
      2023-07-26 09:11:21 
      2023-07-26 09:11:21 org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException: The object type is not Serializable!
      2023-07-26 09:11:21 A problem occurred while checking object with type: org.apache.causeway.core.metamodel.specloader.specimpl.ObjectActionDefault
      2023-07-26 09:11:21 Field hierarchy is:
      2023-07-26 09:11:21   14 [class=org.apache.causeway.viewer.wicket.ui.pages.entity.EntityPage, path=14]
      2023-07-26 09:11:21     private java.lang.Object org.apache.wicket.MarkupContainer.children [class=java.util.ArrayList]
      2023-07-26 09:11:21       java.lang.Object org.apache.wicket.Component.data[write:3][write:5] [class=org.apache.causeway.viewer.wicket.ui.components.header.HeaderPanel, path=14:header]
      2023-07-26 09:11:21         private java.lang.Object org.apache.wicket.MarkupContainer.children [class=java.util.ArrayList]
      2023-07-26 09:11:21           java.lang.Object org.apache.wicket.Component.data[write:16][write:17] [class=org.apache.causeway.viewer.wicket.ui.components.actionmenu.serviceactions.ServiceActionsPanel, path=14:header:primaryMenuBar]
      2023-07-26 09:11:21             private java.lang.Object org.apache.wicket.MarkupContainer.children [class=org.apache.wicket.markup.html.list.ListView, path=14:header:primaryMenuBar:menuItems]
      2023-07-26 09:11:21               java.lang.Object org.apache.wicket.Component.data [class=org.apache.wicket.model.util.ListModel]
      2023-07-26 09:11:21                 private java.lang.Object org.apache.wicket.model.util.GenericBaseModel.object [class=java.util.ArrayList]
      2023-07-26 09:11:21                   private java.lang.Object org.apache.wicket.model.util.GenericBaseModel.object[write:1] [class=org.apache.causeway.viewer.wicket.ui.components.actionmenu.serviceactions.CssMenuItem]
      2023-07-26 09:11:21                     private final java.util.List org.apache.causeway.viewer.wicket.ui.components.actionmenu.serviceactions.CssMenuItem.subMenuItems [class=java.util.ArrayList]
      2023-07-26 09:11:21                       private final java.util.List org.apache.causeway.viewer.wicket.ui.components.actionmenu.serviceactions.CssMenuItem.subMenuItems[write:1] [class=org.apache.causeway.viewer.wicket.ui.components.actionmenu.serviceactions.CssMenuItem]
      2023-07-26 09:11:21                         private org.apache.causeway.viewer.wicket.model.links.LinkAndLabel org.apache.causeway.viewer.wicket.ui.components.actionmenu.serviceactions.CssMenuItem.linkAndLabel [class=org.apache.causeway.viewer.wicket.model.links.LinkAndLabel]
      2023-07-26 09:11:21                           private final org.apache.causeway.viewer.wicket.model.models.ActionModel org.apache.causeway.viewer.wicket.model.links.LinkAndLabel.actionModel [class=org.apache.causeway.viewer.wicket.model.models.ActionModelImpl]
      2023-07-26 09:11:21                             private final org.apache.causeway.viewer.wicket.model.models.interaction.act.ActionInteractionWkt org.apache.causeway.viewer.wicket.model.models.ActionModelImpl.delegate [class=org.apache.causeway.viewer.wicket.model.models.interaction.act.ActionInteractionWkt]
      2023-07-26 09:11:21                               private final org.apache.causeway.core.metamodel.spec.feature.ObjectAction org.apache.causeway.viewer.wicket.model.models.interaction.act.ActionInteractionWkt.objectAction [class=org.apache.causeway.core.metamodel.specloader.specimpl.ObjectActionDefault] <----- field that is causing the problem

      Attachments

        1. image-2023-07-26-09-09-50-301.png
          174 kB
          Daniel Keir Haywood
        2. image-2023-07-26-09-16-41-546.png
          12 kB
          Daniel Keir Haywood

        Activity

          People

            hobrom Andi Huber
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: