Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13257

PageSequenceMonitor not accepting metadata in <page/> element

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2021 - Jun 9 - Jun 23
    • HB Backlog Status:
      Backlog

      Description

      I've been playing with defining some PSM, and I'm running into some errors when I attempt to use metadata in the <page/> element. Should this work, or is metadata not allowed there?  If it's not allowed there, can it be added in a future release?

      2021-04-19 10:05:43,701 ERROR [pool-17-thread-1] o.o.n.p.m.PageSequenceMonitor: Invalid parameters to monitor
      java.lang.IllegalArgumentException: Unable to construct URL for page
       at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$HttpPage.execute(PageSequenceMonitor.java:421) ~[opennms-services-27.1.1.jar:?]
       at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$HttpPageSequence.execute(PageSequenceMonitor.java:202) ~[opennms-services-27.1.1.jar:?]
       at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$HttpPageSequence.access$100(PageSequenceMonitor.java:160) ~[opennms-services-27.1.1.jar:?]
       at org.opennms.netmgt.poller.monitors.PageSequenceMonitor.poll(PageSequenceMonitor.java:685) [opennms-services-27.1.1.jar:?]
       at org.opennms.netmgt.poller.client.rpc.PollerClientRpcModule$1.get(PollerClientRpcModule.java:77) [org.opennms.features.poller.client-rpc-27.1.1.jar:?]
       at org.opennms.netmgt.poller.client.rpc.PollerClientRpcModule$1.get(PollerClientRpcModule.java:71) [org.opennms.features.poller.client-rpc-27.1.1.jar:?]
       at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) [?:?]
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
       at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: java.net.URISyntaxException: Illegal character in authority at index 8: https://${requisition:host}:443/
       at java.net.URI$Parser.fail(URI.java:2913) ~[?:?]
       at java.net.URI$Parser.parseAuthority(URI.java:3247) ~[?:?]
       at java.net.URI$Parser.parseHierarchical(URI.java:3158) ~[?:?]
       at java.net.URI$Parser.parse(URI.java:3114) ~[?:?]
       at java.net.URI.<init>(URI.java:600) ~[?:?]
       at org.apache.http.client.utils.URIBuilder.build(URIBuilder.java:120) ~[httpclient-4.5.2.jar:4.5.2]
       at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$HttpPage.getURI(PageSequenceMonitor.java:513) ~[opennms-services-27.1.1.jar:?]
       at org.opennms.netmgt.poller.monitors.PageSequenceMonitor$HttpPage.execute(PageSequenceMonitor.java:310) ~[opennms-services-27.1.1.jar:?]
       ... 9 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cpape Christian Pape
              Reporter:
              mmahacek Mark Mahacek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                HB Grooming Date:

                  Git Integration