fixed javadoc.
Fixed error message format.

Logging message may truncated by logging library. Important thing should
be first.