Matthew Broadhead
2018-10-25 09:18:14 UTC
TomEE 7.0.5 , CentOS 7
Server runs for days without any problem but this morning XSLT isn't working with this error:
java.util.MissingResourceException: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages
at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:174)
at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.org.apache.xerces.internal.utils.SecuritySupport.getResourceBundle(SecuritySupport.java:166)
at com.sun.org.apache.xerces.internal.util.SAXMessageFormatter.formatMessage(SAXMessageFormatter.java:58)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.setProperty(AbstractSAXParser.java:1949)
at com.sun.org.apache.xerces.internal.parsers.SAXParser.setProperty(SAXParser.java:175)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:476)
at uk.me.kissy.document.dao.DocumentBuilderDao.fo2PdfRaw(DocumentBuilderDao.java:113)
at uk.me.kissy.document.dao.DocumentBuilderDao.fo2Pdf(DocumentBuilderDao.java:81)
code in question is
StreamSource xml = new StreamSource(new StringReader(fopjuice));
FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
ByteArrayOutputStream out = new ByteArrayOutputStream();
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(xml, res); // <-- BLOWS UP HERE
return out.toByteArray();
i hadn't reloaded any resources since startup
Server runs for days without any problem but this morning XSLT isn't working with this error:
java.util.MissingResourceException: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages
at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:174)
at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.org.apache.xerces.internal.utils.SecuritySupport.getResourceBundle(SecuritySupport.java:166)
at com.sun.org.apache.xerces.internal.util.SAXMessageFormatter.formatMessage(SAXMessageFormatter.java:58)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.setProperty(AbstractSAXParser.java:1949)
at com.sun.org.apache.xerces.internal.parsers.SAXParser.setProperty(SAXParser.java:175)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:476)
at uk.me.kissy.document.dao.DocumentBuilderDao.fo2PdfRaw(DocumentBuilderDao.java:113)
at uk.me.kissy.document.dao.DocumentBuilderDao.fo2Pdf(DocumentBuilderDao.java:81)
code in question is
StreamSource xml = new StreamSource(new StringReader(fopjuice));
FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
ByteArrayOutputStream out = new ByteArrayOutputStream();
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, out);
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
Result res = new SAXResult(fop.getDefaultHandler());
transformer.transform(xml, res); // <-- BLOWS UP HERE
return out.toByteArray();
i hadn't reloaded any resources since startup