diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/util/xcontent/XContentFactory.java b/modules/elasticsearch/src/main/java/org/elasticsearch/util/xcontent/XContentFactory.java index d68c3c80954..6bb956b120a 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/util/xcontent/XContentFactory.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/util/xcontent/XContentFactory.java @@ -42,13 +42,8 @@ public class XContentFactory { static { contents = new XContent[2]; - try { - contents[0] = new JsonXContent(); - contents[1] = new XsonXContent(); - } catch (Throwable t) { - System.err.println("Failed to load xcontent"); - t.printStackTrace(); - } + contents[0] = new JsonXContent(); + contents[1] = new XsonXContent(); } /**