Uploaded image for project: 'DeviceMap'
  1. DeviceMap
  2. DMAP-186

Some arguments like debug/log won't work in Java Console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1.0 Java
    • 1.2.0 Java
    • Java Client

    Description

      Passing arguments like -d or the improved -l to actually define the log level rather than just turning Debugging off causes exceptions in Java Console

      ALL
      Exception in thread "main" java.net.MalformedURLException: no protocol: -l/DeviceDataSource.xml
      	at java.net.URL.<init>(URL.java:589)
      	at java.net.URL.<init>(URL.java:486)
      	at java.net.URL.<init>(URL.java:435)
      	at org.apache.devicemap.loader.resource.URLResource.getResource(URLResource.java:45)
      	at org.apache.devicemap.loader.impl.DDRLoader.getData(DDRLoader.java:61)
      	at org.apache.devicemap.DeviceMapClient.initDeviceData(DeviceMapClient.java:60)
      	at org.apache.devicemap.console.Main.main(Main.java:105)
      

      It seems nested Ifs for command line arguments don't work properly. Using a small but effective command definition like Airline (https://github.com/airlift/airline) helped other comand line tools and should help solve this.

      Attachments

        Activity

          People

            wkeil Werner Keil
            wkeil Werner Keil
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: