Running on Solaris 10, I am having problems when I hit a LOG.debug statement using an Apache Log4j logger. The basic scenario is demonstrated in the following code block:
public class MyClass {
private static final Logger LOG = Logger.getLogger(MyClass.class.getName());
private LinkedHashMap<String, String> myMap =
new LinkedHashMap<String, String>();
public static void main(String[] args) {
// A really long String, but certainly not exceeding 2^31 - 1 characters
//long
String reallyLongString = "A really, really, really...long String";
String key = "keyToReallyLongString";
// When this line is executed, Solaris instantly and completely logs me off
// of the system
LOG.debug("Adding to myMap[" + key + "]: " + reallyLongString);
}
}
Any thoughts?