This is my first blog. I will be writing stuff that I learn. It is kind of notebook of my learning experience. Most posts will be software technology related. I hope that it will be useful to others as a place for reference.
Bad level value for property: some.package.name.level
The above error is produced by java.util.logging.LogManager when the log level is invalid. for eg. you might have specified a log level of DEBUG and DEBUG is not a valid log level in java.util.logging.
Valid log levels in java.util.logging are SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL, OFF
Sites hosting open source projects provides an online viewer for browsing source code without actually checking out source code using SVN/Git clients. Checking out entire repository will take long time. Also with Git there is no straight forward way to checkout only a particular directory. Cloning Git repos takes long time as Git downloads entire repository to local machine. Even with sparse checkout, Git downloads entire repository. When bandwidth is a concern, one cannot checkout entire repository.
One can use GNU Wget to recursively download files from online code repositories. For windows this can be downloaded from http://users.ugent.be/~bpuype/wget/
Command to download a directory and its child directories and all files in it recursively excluding index.html is below. This will not download parent directories and files from external sites.
JExcelAPI(Jxl) which is a Java library for parsing Excel files does not have any configuration to use a custom logger at deployment time. JExcel decides logger class at build time and to use any other logger like Log4J, one must build Jxl jar file after configuring JExcel build.properties to use a custom logger. This is not a practical solution for many as they have to go through the hassles of building a custom jar with every new release of JExcel.
It is common that parsing an Excel file will have many warnings and one will not be interested in seeing those. Also this invokes curiousity of testers and they will create bug for the warning.
One such warning is
Warning: Cannot read name ranges for GROUP5 - setting to empty
To suppress such warnings, JExcel provides a system property jxl.nowarnings which can be set to disable warnings. This can be passed as a startup argument to JVM or can be set in a class.
To pass it as argument to JVM add -Djxl.nowarnings=trueThis will suppress all wa…