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

Hint to avoid full introspection doesn't work, due to our custom scope for entities.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Resolved
    • 2.0.0-RC1
    • 2.0.0-RC2
    • Core
    • None

    Description

      When running an integ test, got this error:

      2023-06-23 14:19:20.054  WARN 55544 — [           main] o.a.i.c.m.s.SpecificationLoaderDefault   : The metamodel is configured for FULL introspection mode, yet missed org.estatio.module.party.dom.permit.Permit of sort ABSTRACT during application start. This happens when type org.estatio.module.party.dom.permit.Permit is not eagerly discovered by the metamodel introspection, which (initially) only considers compile-time types via reflection. Run-time types, not explicitly referenced to be included with Spring's class discovery mechanism, might slip this process. Consider importing type org.estatio.module.party.dom.permit.Permit with Spring's @Import annotation. Types of sort VALUE should instead register a ValueSemanticsProvider with Spring, to be properly understood by the framework.
      2023-06-23 14:19:20.062  WARN 55544 — [           main] o.a.i.c.m.s.SpecificationLoaderDefault   : The metamodel is configured for FULL introspection mode, yet missed org.estatio.module.party.dom.role.PartyRoleTypeEnum of sort VALUE during application start. This happens when type org.estatio.module.party.dom.role.PartyRoleTypeEnum is not eagerly discovered by the metamodel introspection, which (initially) only considers compile-time types via reflection. Run-time types, not explicitly referenced to be included with Spring's class discovery mechanism, might slip this process. Consider importing type org.estatio.module.party.dom.role.PartyRoleTypeEnum with Spring's @Import annotation. Types of sort VALUE should instead register a ValueSemanticsProvider with Spring, to be properly understood by the framework.

       

      and so I added them in:

       

      But I then got this exception:

       
      Caused by: org.springframework.beans.factory.support.ScopeNotActiveException: Error creating bean with name 'permit.dom.Permit': Scope 'isis-domain-object' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No Isis Interaction is currently active
       
       
      This is because our entities are meta-annotated (via @DomainObject) to have a custom scope.

      Attachments

        1. image-2023-06-23-14-18-34-637.png
          27 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: