ROOT CAUSE:
java.lang.IllegalArgumentException: URI is not hierarchical
at java.io.File.<init>(File.java:363)
at
com.xerox.amazonws.tools.LoggingConfigurator.configureLogging(Logging
Configurator.java:47)
at
com.xerox.amazonws.sqs.QueueService.<clinit>(QueueService.java:52)
at
com.xerox.amazonws.sqs.SQSUtils.getQueueService(SQSUtils.java:81)
at
com.xerox.amazonws.sqs.SQSUtils.connectToQueue(SQSUtils.java:60)
If you don't use File in LoggingConfigurator this will go away, eg:
/*File configFile = null;
try {
configFile = new File(configFileURL.toURI());
}catch (URISyntaxException e) {
System.err.println("Log4J config file URL
"+configFileURL+
" couldn't be converted to a URI.");
e.printStackTrace(System.err);
}*/
DOMConfigurator.configureAndWatch(configFileURL.toString());
Commented out all the File stuff and it works fine now.
Also another good reason to remove the log4j dependency and to leave
the logging config up to the user.
David
Travis
David