java.util.NoSuchElementException: 'file' doesn't map to an existing object

The OpenNMS Issue Tracker | Ronny Trommer | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    requisition.properties: {code} ### SOURCE ### ## connect to a real ocs and read computers source = ocs.computers ## test with static files, no network calls #source = ocs.computers.replay #file = computers.xml ## OCS SOURCE PARAMETERS ## source.url = http://doku.informatik.hs-fulda.de source.username = opennms source.password = opennms source.checksum = 4099 source.tags = ### MAPPER ### ## Run the default mapper for computers mapper = ocs.computers ## Run a custom mapper script #mapper = script script = mapper.groovy ### CATEGORIES ### mapper.ocs.url = http://doku.informatik.hs-fulda.de mapper.categoryMap = {code} {code} 12:10:16.831 [qtp42579275-17] WARN o.o.pris.driver.HttpServerDriver - Request failed java.util.NoSuchElementException: 'file' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getString(AbstractConfiguration.java:1028) ~[opennms-pris.jar:na] at org.opennms.pris.config.AbstractApacheConfiguration.getPath(AbstractApacheConfiguration.java:75) ~[opennms-pris.jar:na] at org.opennms.opennms.pris.plugins.script.util.ScriptManager.execute(ScriptManager.java:48) ~[opennms-pris-plugins-script-1.0.8-SNAPSHOT-shaded.jar:na] at org.opennms.opennms.pris.plugins.script.mapper.ScriptMapper.map(ScriptMapper.java:53) ~[opennms-pris-plugins-script-1.0.8-SNAPSHOT-shaded.jar:na] at org.opennms.pris.RequisitionGenerator.generate(RequisitionGenerator.java:167) ~[opennms-pris.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:113) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [opennms-pris.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:369) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) [opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [opennms-pris.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [opennms-pris.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55] {code}

    The OpenNMS Issue Tracker | 3 years ago | Ronny Trommer
    java.util.NoSuchElementException: 'file' doesn't map to an existing object
  2. 0

    requisition.properties: {code} ### SOURCE ### ## connect to a real ocs and read computers source = ocs.computers ## test with static files, no network calls #source = ocs.computers.replay #file = computers.xml ## OCS SOURCE PARAMETERS ## source.url = http://doku.informatik.hs-fulda.de source.username = opennms source.password = opennms source.checksum = 4099 source.tags = ### MAPPER ### ## Run the default mapper for computers mapper = ocs.computers ## Run a custom mapper script #mapper = script script = mapper.groovy ### CATEGORIES ### mapper.ocs.url = http://doku.informatik.hs-fulda.de mapper.categoryMap = {code} {code} 12:10:16.831 [qtp42579275-17] WARN o.o.pris.driver.HttpServerDriver - Request failed java.util.NoSuchElementException: 'file' doesn't map to an existing object at org.apache.commons.configuration.AbstractConfiguration.getString(AbstractConfiguration.java:1028) ~[opennms-pris.jar:na] at org.opennms.pris.config.AbstractApacheConfiguration.getPath(AbstractApacheConfiguration.java:75) ~[opennms-pris.jar:na] at org.opennms.opennms.pris.plugins.script.util.ScriptManager.execute(ScriptManager.java:48) ~[opennms-pris-plugins-script-1.0.8-SNAPSHOT-shaded.jar:na] at org.opennms.opennms.pris.plugins.script.mapper.ScriptMapper.map(ScriptMapper.java:53) ~[opennms-pris-plugins-script-1.0.8-SNAPSHOT-shaded.jar:na] at org.opennms.pris.RequisitionGenerator.generate(RequisitionGenerator.java:167) ~[opennms-pris.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:113) ~[opennms-pris.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [opennms-pris.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:369) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) [opennms-pris.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) [opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [opennms-pris.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [opennms-pris.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [opennms-pris.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [opennms-pris.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [opennms-pris.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55] {code}

    The OpenNMS Issue Tracker | 3 years ago | Ronny Trommer
    java.util.NoSuchElementException: 'file' doesn't map to an existing object

    1 unregistered visitors

    Root Cause Analysis

    1. java.util.NoSuchElementException

      'file' doesn't map to an existing object

      at org.apache.commons.configuration.AbstractConfiguration.getString()
    2. Apache Commons Configuration
      AbstractConfiguration.getString
      1. org.apache.commons.configuration.AbstractConfiguration.getString(AbstractConfiguration.java:1028)[opennms-pris.jar:na]
      1 frame
    3. org.opennms.pris
      AbstractApacheConfiguration.getPath
      1. org.opennms.pris.config.AbstractApacheConfiguration.getPath(AbstractApacheConfiguration.java:75)[opennms-pris.jar:na]
      1 frame
    4. org.opennms.opennms
      ScriptMapper.map
      1. org.opennms.opennms.pris.plugins.script.util.ScriptManager.execute(ScriptManager.java:48)[opennms-pris-plugins-script-1.0.8-SNAPSHOT-shaded.jar:na]
      2. org.opennms.opennms.pris.plugins.script.mapper.ScriptMapper.map(ScriptMapper.java:53)[opennms-pris-plugins-script-1.0.8-SNAPSHOT-shaded.jar:na]
      2 frames
    5. org.opennms.pris
      HttpServerDriver$1.handle
      1. org.opennms.pris.RequisitionGenerator.generate(RequisitionGenerator.java:167)[opennms-pris.jar:na]
      2. org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:113)[opennms-pris.jar:na]
      2 frames
    6. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[opennms-pris.jar:na]
      2. org.eclipse.jetty.server.Server.handle(Server.java:369)[opennms-pris.jar:na]
      3. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)[opennms-pris.jar:na]
      4. org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933)[opennms-pris.jar:na]
      5. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995)[opennms-pris.jar:na]
      6. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[opennms-pris.jar:na]
      7. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[opennms-pris.jar:na]
      8. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[opennms-pris.jar:na]
      8 frames
    7. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)[opennms-pris.jar:na]
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[opennms-pris.jar:na]
      2 frames
    8. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[opennms-pris.jar:na]
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[opennms-pris.jar:na]
      2 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)[na:1.7.0_55]
      1 frame