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

The OpenNMS Issue Tracker | Ronny Trommer | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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
  3. 0

    MaxDB Cannot open connection

    oreports | 1 decade ago | jyotaro
    java.util.NoSuchElementException: Could not create a validated object         at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericOb jectPool.java:851)         at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSo urce.java:140)         at net.sf.hibernate.connection.DBCPConnectionProvider.getConnection(DBCP ConnectionProvider.java:41)         at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278 )         at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264)         at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244)         at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.ja va:40)         at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction( JDBCTransactionFactory.java:19)         at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2 195)         at org.efs.openreports.providers.persistence.UserPersistenceProvider.get User(UserPersistenceProvider.java:52)         at org.efs.openreports.providers.impl.UserProviderImpl.getUser(UserProvi derImpl.java:49)         at org.efs.openreports.actions.LoginAction.execute(LoginAction.java:47)         at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionIn vocation.java:173)         at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(Around Interceptor.java:37)         at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionIn vocation.java:170)         at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(Around Interceptor.java:37)         at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionIn vocation.java:170)         at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(Around Interceptor.java:37)         at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionIn vocation.java:170)         at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy. java:116)         at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(S ervletDispatcher.java:182)         at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(Servlet Dispatcher.java:162)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193)         at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(Re questLifecycleFilter.java:62)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:213)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193)         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:256)         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643)         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480)         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191)         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643)         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480)         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2416)         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180)         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643)         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:171)         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641)         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:172)         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:641)         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480)         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:174)         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643)         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480)         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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