aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-07-22 14:07:49 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-07-22 14:07:49 +0200
commitd6a4468dc96137f83483f028128c17d32c1e9f6b (patch)
tree283b622956487a5a1daecb024685112cc2a5b011 /pdf-as-lib/src/main
parenta958e8c36bcc423a70a92dc4a3c562676fa66a37 (diff)
downloadpdf-as-4-d6a4468dc96137f83483f028128c17d32c1e9f6b.tar.gz
pdf-as-4-d6a4468dc96137f83483f028128c17d32c1e9f6b.tar.bz2
pdf-as-4-d6a4468dc96137f83483f028128c17d32c1e9f6b.zip
Log masked Error Message
Diffstat (limited to 'pdf-as-lib/src/main')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java
index 992cee46..8f570ccc 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java
@@ -33,10 +33,16 @@ import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
public class SLMarschaller {
private static Marshaller marshaller = null;
private static Unmarshaller unmarshaller = null;
+ private static final Logger logger = LoggerFactory
+ .getLogger(SLMarschaller.class);
+
static {
try {
JAXBContext context = JAXBContext.newInstance("at.gv.egiz.sl.schema");
@@ -46,6 +52,7 @@ public class SLMarschaller {
unmarshaller = context.createUnmarshaller();
} catch (JAXBException e) {
+ logger.error("Error in creating JAXBContext", e);
throw new RuntimeException(
"There was a problem creating a JAXBContext object for formatting the object to XML.");
}