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

Exception when calling collection on integration test ('more than one ImperativeFacet for method getReferencedObjects , with inconsistent intents')

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.17.0
    • 2.0.0-M5
    • Core
    • None

    Description

      When 'consuming' a collection of a domain class in integration tests using the wrapper factory an exception is thrown.

      java.lang.IllegalArgumentException: domainapp.modules.simple.dom.impl.SimpleObject#referencedObjects: more than one ImperativeFacet for method getReferencedObjects , with inconsistent intents: [CollectionAccessorFacetViaAccessor[type=PropertyOrCollectionAccessorFacet,method=public java.util.List domainapp.modules.simple.dom.impl.SimpleObject.getReferencedObjects()], CollectionClearFacetViaAccessor[type=CollectionClearFacet,method=public java.util.List domainapp.modules.simple.dom.impl.SimpleObject.getReferencedObjects()], CollectionAddToFacetViaAccessor[type=CollectionAddToFacet,method=public java.util.List domainapp.modules.simple.dom.impl.SimpleObject.getReferencedObjects()], CollectionRemoveFromFacetViaAccessor[type=CollectionRemoveFromFacet,method=public java.util.List domainapp.modules.simple.dom.impl.SimpleObject.getReferencedObjects()]]java.lang.IllegalArgumentException: domainapp.modules.simple.dom.impl.SimpleObject#referencedObjects: more than one ImperativeFacet for method getReferencedObjects , with inconsistent intents: [CollectionAccessorFacetViaAccessor[type=PropertyOrCollectionAccessorFacet,method=public java.util.List domainapp.modules.simple.dom.impl.SimpleObject.getReferencedObjects()], CollectionClearFacetViaAccessor[type=CollectionClearFacet,method=public java.util.List domainapp.modules.simple.dom.impl.SimpleObject.getReferencedObjects()], CollectionAddToFacetViaAccessor[type=CollectionAddToFacet,method=public java.util.List domainapp.modules.simple.dom.impl.SimpleObject.getReferencedObjects()], CollectionRemoveFromFacetViaAccessor[type=CollectionRemoveFromFacet,method=public java.util.List domainapp.modules.simple.dom.impl.SimpleObject.getReferencedObjects()]]
      at org.apache.isis.core.metamodel.facets.ImperativeFacet$Util.getIntent(ImperativeFacet.java:169) at org.apache.isis.core.wrapper.handlers.DomainObjectInvocationHandler.invoke(DomainObjectInvocationHandler.java:212) at org.apache.isis.core.wrapper.proxy.ProxyCreator$1.invoke(ProxyCreator.java:72) at domainapp.modules.simple.dom.impl.SimpleObject_$$jvstf5f_b.getReferencedObjects(SimpleObject$$_jvstf5f_b.java) at domainapp.modules.simple.integtests.tests.SimpleReferencedObjectCollection_IntegTest.testCollectionOfReferencedSimpleObjects(SimpleReferencedObjectCollection_IntegTest.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            erikdehair Erik de Hair
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: