Archive for May, 2008

Checkstyle error: Uncommented main method found…

Posted in: fun with code, java.

Just for the record: The checkstyle error Uncommented main method found does NOT mean the main method lacks a javadoc comment, but that the main method is not commented out. Checkstyle regards main methods as useless “debugging” leftovers.

//CHECKSTYLE:OFF and //CHECKSTYLE:ON helped me out. And yes, i think this particular check is really, really, really useless. I think someone using arbitrary main methods in sourcecode for debugging purposes is hardly going to know of checkstyle’s existence anyway…

No Comments

Critical security vulnerability in debian openssl package

Posted in: System engineering, debian 4, ubuntu.

Debians security advisory has reported a critical security issue with debian-based openssl packages.
As a result,generated keys might be weak and breakable, since the random number generator appears to have created predictable results.
The exact nature of this predictability was not made public by now, but it is strongly recommendet to regenerate keys created with kryptographic tools affected by the issue and to re-enroll all corresponding certificates.

Note that his issue affects all debian-based systems, including ubuntu 8.04.

Source: http://lists.debian.org/debian-security-announce/2008/msg00152.html

Seems i’ll have a somewhat busy weekend.

No Comments

Why it’s better to integrate XML schema files into the classpath

Posted in: J2EE, System architecture, java, spring.

When using schema files in your XML configuration, it’s might happen that your XML parser will attempt to actually download the schema file using the configured schema URI.
This is the case when there is no mechanism for resolving the schema URI to a local schema file (as, for example the bean handler registration in spring) or when such a mechanism fails.
Read the rest of “Why it’s better to integrate XML schema files into the classpath”

No Comments