java.lang.IllegalArgumentException: Unknown source implementation: xls

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

    Using the example configuration for myRouter {code} root@itchy:opennms-pris$ tree . ├── global.properties ├── myInventory.xls ├── myRouter    └── requisition.properties Content: global.properties: {code} {code} root@itchy:opennms-pris$ cat global.properties ### start an http server that provides access to requisition files driver = http host = 0.0.0.0 port = 8000 ### file run to create a requisition file in target #driver = file #target = /tmp/ {code} Content requisition.properties {code} root@itchy:myRouter$ cat requisition.properties source = xls source.file = ../myInventory.xls mapper = echo.mapper {code} The XLS file is the same from the example. Error in log file: {code} 18:49:32.697 [qtp238404996-14] WARN o.o.pris.driver.HttpServerDriver - Request failed java.lang.IllegalArgumentException: Unknown source implementation: xls at org.opennms.pris.RequisitionGenerator.<init>(RequisitionGenerator.java:124) ~[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:110) ~[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:369) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.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.lang.IllegalArgumentException: Unknown source implementation: xls
  2. 0

    Using the example configuration for myRouter {code} root@itchy:opennms-pris$ tree . ├── global.properties ├── myInventory.xls ├── myRouter    └── requisition.properties Content: global.properties: {code} {code} root@itchy:opennms-pris$ cat global.properties ### start an http server that provides access to requisition files driver = http host = 0.0.0.0 port = 8000 ### file run to create a requisition file in target #driver = file #target = /tmp/ {code} Content requisition.properties {code} root@itchy:myRouter$ cat requisition.properties source = xls source.file = ../myInventory.xls mapper = echo.mapper {code} The XLS file is the same from the example. Error in log file: {code} 18:49:32.697 [qtp238404996-14] WARN o.o.pris.driver.HttpServerDriver - Request failed java.lang.IllegalArgumentException: Unknown source implementation: xls at org.opennms.pris.RequisitionGenerator.<init>(RequisitionGenerator.java:124) ~[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:110) ~[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.Server.handle(Server.java:369) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.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.lang.IllegalArgumentException: Unknown source implementation: xls

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Unknown source implementation: xls

      at org.opennms.pris.RequisitionGenerator.<init>()
    2. org.opennms.pris
      HttpServerDriver$1.handle
      1. org.opennms.pris.RequisitionGenerator.<init>(RequisitionGenerator.java:124)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      2. org.opennms.pris.driver.HttpServerDriver$1.handle(HttpServerDriver.java:110)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      2 frames
    3. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      2. org.eclipse.jetty.server.Server.handle(Server.java:369)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      3. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      4. org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      5. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      6. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      7. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      8. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      8 frames
    4. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      2 frames
    5. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[opennms-pris-main-1.0.8-SNAPSHOT-jar-with-dependencies.jar:na]
      2 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)[na:1.7.0_55]
      1 frame