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

Cannot assume Action Param Spec to be correct when eagerly loaded, eg. SecMan Menu Action (create user) causes Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 2.0.0-M4
    • Core
    • None

    Description

      java.lang.IllegalArgumentException: Don't know how to create an ObjectMemento for a type with ObjectSpecification ObjectSpecificationDefault@53129328[class=org.apache.isis.extensions.secman.api.role.ApplicationRole,type=UNKNOWN,superclass=Object]. All other strategies failed. Type is neither identifiable (isManagedBean() || isViewModel() || isEntity()), nor is a 'parented' Collection, nor has 'encodable' semantics, nor is (Serializable || Externalizable)
      at org.apache.isis.core.commons.internal.exceptions._Exceptions.illegalArgument(_Exceptions.java:80) ~[isis-core-commons-2.0.0-M2.20200912-0501-842cc88f.jar:2.0.0-M2.20200912-0501-842cc88f]
      at org.apache.isis.viewer.wicket.viewer.services.mementos.ObjectMementoWkt.init(ObjectMementoWkt.java:471) ~[isis-viewer-wicket-viewer-2.0.0-M2.20200912-0501-842cc88f.jar:2.0.0-M2.20200912-0501-842cc88f]
      at org.apache.isis.viewer.wicket.viewer.services.mementos.ObjectMementoWkt.<init>(ObjectMementoWkt.java:429) ~[isis-viewer-wicket-viewer-2.0.0-M2.20200912-0501-842cc88f.jar:2.0.0-M2.20200912-0501-842cc88f]
      at org.apache.isis.viewer.wicket.viewer.services.mementos.ObjectMementoWkt.createOrNull(ObjectMementoWkt.java:66) ~[isis-viewer-wicket-viewer-2.0.0-M2.20200912-0501-842cc88f.jar:2.0.0-M2.20200912-0501-842cc88f]
      at org.apache.isis.viewer.wicket.viewer.services.mementos.ObjectMementoServiceWicket.mementoForObject(ObjectMementoServiceWicket.java:81) ~[isis-viewer-wicket-viewer-2.0.0-M2.20200912-0501-842cc88f.jar:2.0.0-M2.20200912-0501-842cc88f]
      at org.apache.isis.viewer.wicket.model.models.ManagedObjectModel.setObject(ManagedObjectModel.java:90) ~[isis-viewer-wicket-model-2.0.0-M2.20200912-0501-842cc88f.jar:2.0.0-M2.20200912-0501-842cc88f]
      at org.apache.isis.viewer.wicket.model.models.ScalarParameterModel.setValue(ScalarParameterModel.java:150) ~[isis-viewer-wicket-model-2.0.0-M2.20200912-0501-842cc88f.jar:2.0.0-M2.20200912-0501-842cc88f]
      at org.apache.isis.viewer.wicket.model.models.ActionArgumentCache.lambda$resetTo$1(ActionArgumentCache.java:86) ~[isis-viewer-wicket-model-2.0.0-M2.20200912-0501-842cc88f.jar:2.0.0-M2.20200912-0501-842cc88f]

      Attachments

        Activity

          People

            hobrom Andi Huber
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: