devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Keil (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DMAP-186) Some arguments like debug/log won't work in Java Console
Date Sat, 19 Dec 2015 15:21:46 GMT
Werner Keil created DMAP-186:
--------------------------------

             Summary: Some arguments like debug/log won't work in Java Console
                 Key: DMAP-186
                 URL: https://issues.apache.org/jira/browse/DMAP-186
             Project: DeviceMap
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 1.1.0 Java
            Reporter: Werner Keil
            Assignee: Werner Keil
             Fix For: 1.1.1 Java


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
{code}
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)
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message