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

[JUnit] Resilience: if hideXxx, disableXxx or validateXxx method throws NPE, then assume veto and log a WARNing.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.16.1
    • None
    • Core

    Description

      Currently the framework doesn't degrade gracefully.

      For example, had a coding error in a hideXxx() method.

      This resulted in the error page, rather than simply hide the relevant member.

      org.eclipse.jetty.util.thread.QueuedThreadPool#runJob(QueuedThreadPool.java:672)
      org.eclipse.jetty.util.thread.QueuedThreadPool$2#run(QueuedThreadPool.java:590)
      java.lang.Thread#run(Thread.java:745)
      Caused by:
      java.lang.NullPointerException
      org.isisaddons.module.command.dom.CommandJdo#hideReplayStateFailureReason(CommandJdo.java:386)
      sun.reflect.NativeMethodAccessorImpl#invoke0(NativeMethodAccessorImpl.java:-2)
      sun.reflect.NativeMethodAccessorImpl#invoke(NativeMethodAccessorImpl.java:62)
      sun.reflect.DelegatingMethodAccessorImpl#invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method#invoke(Method.java:498)
      org.apache.isis.core.commons.lang.MethodExtensions#invoke(MethodExtensions.java:53)
      org.apache.isis.core.metamodel.adapter.ObjectAdapter$InvokeUtils#invoke(ObjectAdapter.java:38

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: