Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-496

Fix NestedNulllException on increment property/interest integration tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • unomi-1.5.6
    • unomi-1.5.7
    • unomi(-core)
    • None

    Description

      When running the increment interests and increment property integration tests we get the following error:

      2021-06-28T16:14:08,872 | ERROR | RMI TCP Connection(3)-127.0.0.1 | ActionExecutorDispatcher         | 176 - org.apache.unomi.services - 1.5.7.SNAPSHOT |  Error executing action with key=setProperty 
      java.lang.UnsupportedOperationException: org.apache.commons.beanutils.NestedNullException: Null property value for 'pageInfo.referringURL' on bean class 'class java.util.HashMap'
              at org.apache.unomi.services.actions.ActionExecutorDispatcher.parseMap(ActionExecutorDispatcher.java:149) ~[?:?]
              at org.apache.unomi.services.actions.ActionExecutorDispatcher.getContextualAction(ActionExecutorDispatcher.java:115) ~[?:?]
              at org.apache.unomi.services.actions.ActionExecutorDispatcher$8.execute(ActionExecutorDispatcher.java:213) ~[?:?]
              at org.apache.unomi.services.actions.ActionExecutorDispatcher$8.execute(ActionExecutorDispatcher.java:210) ~[?:?]
              at org.apache.unomi.metrics.MetricAdapter.runWithTimer(MetricAdapter.java:38) ~[?:?]
              at org.apache.unomi.services.actions.ActionExecutorDispatcher.execute(ActionExecutorDispatcher.java:215) ~[?:?]
              at org.apache.unomi.services.impl.rules.RulesServiceImpl.onEvent(RulesServiceImpl.java:272) ~[?:?]
              at org.apache.unomi.services.impl.events.EventServiceImpl.send(EventServiceImpl.java:170) ~[?:?]
              at org.apache.unomi.services.impl.events.EventServiceImpl.send(EventServiceImpl.java:144) ~[?:?]
              at org.apache.unomi.itests.IncrementPropertyIT.buildActionAndSendEvent(IncrementPropertyIT.java:393) ~[?:?]
              at org.apache.unomi.itests.IncrementPropertyIT.testIncrementExistingPropertyNestedWithExistingEventProperty(IncrementPropertyIT.java:296) ~[?:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
      

      This is due to the pageInfo structure not being properly setup.

      We also get an error in the teardown of the IncrementInterestsIT because didn't setup an itemId on the rule that was created on the setup.

      Attachments

        Activity

          People

            shuber Serge Huber
            shuber Serge Huber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m