xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r840115 - in /websites/staging/xmlgraphics/trunk/content: ./ fop/faq.html
Date Fri, 30 Nov 2012 11:08:42 GMT
Author: buildbot
Date: Fri Nov 30 11:08:41 2012
New Revision: 840115

Log:
Staging update by buildbot for xmlgraphics

Modified:
    websites/staging/xmlgraphics/trunk/content/   (props changed)
    websites/staging/xmlgraphics/trunk/content/fop/faq.html

Propchange: websites/staging/xmlgraphics/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Nov 30 11:08:41 2012
@@ -1 +1 @@
-1415584
+1415586

Modified: websites/staging/xmlgraphics/trunk/content/fop/faq.html
==============================================================================
--- websites/staging/xmlgraphics/trunk/content/fop/faq.html (original)
+++ websites/staging/xmlgraphics/trunk/content/fop/faq.html Fri Nov 30 11:08:41 2012
@@ -448,26 +448,29 @@ Mismatch: page-sequence (http://www.w3.o
         (http://www.w3.org/1999/XSL/Format)
 This exception is usually a follow-up error after another exception. Sometimes the original
exception gets swallowed by Xalan's default <code>ErrorListener</code> (should
be fixed in the latest Xalan release).</p>
 <p>The work-around is to set an explicit <code>ErrorListener</code> on
the <code>Transformer</code> . The <code>ErrorListener</code> can
be as simple as this:</p>
-<p>import javax.xml.transform.ErrorListener;
-import javax.xml.transform.TransformerException;</p>
-<p>public class DefaultErrorListener implements ErrorListener {</p>
-<div class="codehilite"><pre><span class="n">public</span> <span
class="n">void</span> <span class="n">warning</span><span class="p">(</span><span
class="n">TransformerException</span> <span class="n">exc</span><span
class="p">)</span> <span class="p">{</span>
-    <span class="n">System</span><span class="o">.</span><span
class="n">err</span><span class="o">.</span><span class="n">println</span><span
class="p">(</span><span class="n">exc</span><span class="o">.</span><span
class="n">toString</span><span class="p">());</span>
-<span class="p">}</span>
+<div class="codehilite"><pre><span class="nb">import</span> <span
class="n">javax</span><span class="o">.</span><span class="n">xml</span><span
class="o">.</span><span class="n">transform</span><span class="o">.</span><span
class="n">ErrorListener</span><span class="p">;</span>
+<span class="nb">import</span> <span class="n">javax</span><span
class="o">.</span><span class="n">xml</span><span class="o">.</span><span
class="n">transform</span><span class="o">.</span><span class="n">TransformerException</span><span
class="p">;</span>
 
-<span class="n">public</span> <span class="n">void</span> <span
class="n">error</span><span class="p">(</span><span class="n">TransformerException</span>
<span class="n">exc</span><span class="p">)</span>
-        <span class="n">throws</span> <span class="n">TransformerException</span>
<span class="p">{</span>
-    <span class="n">throw</span> <span class="n">exc</span><span
class="p">;</span>
-<span class="p">}</span>
+<span class="n">public</span> <span class="n">class</span> <span
class="n">DefaultErrorListener</span> <span class="n">implements</span>
<span class="n">ErrorListener</span> <span class="p">{</span>
+
+    <span class="n">public</span> <span class="n">void</span> <span
class="n">warning</span><span class="p">(</span><span class="n">TransformerException</span>
<span class="n">exc</span><span class="p">)</span> <span class="p">{</span>
+        <span class="n">System</span><span class="o">.</span><span
class="n">err</span><span class="o">.</span><span class="n">println</span><span
class="p">(</span><span class="n">exc</span><span class="o">.</span><span
class="n">toString</span><span class="p">());</span>
+    <span class="p">}</span>
+
+    <span class="n">public</span> <span class="n">void</span> <span
class="n">error</span><span class="p">(</span><span class="n">TransformerException</span>
<span class="n">exc</span><span class="p">)</span>
+            <span class="n">throws</span> <span class="n">TransformerException</span>
<span class="p">{</span>
+        <span class="n">throw</span> <span class="n">exc</span><span
class="p">;</span>
+    <span class="p">}</span>
+
+    <span class="n">public</span> <span class="n">void</span> <span
class="n">fatalError</span><span class="p">(</span><span class="n">TransformerException</span>
<span class="n">exc</span><span class="p">)</span>
+            <span class="n">throws</span> <span class="n">TransformerException</span>
<span class="p">{</span>
+        <span class="n">throw</span> <span class="n">exc</span><span
class="p">;</span>
+    <span class="p">}</span>
 
-<span class="n">public</span> <span class="n">void</span> <span
class="n">fatalError</span><span class="p">(</span><span class="n">TransformerException</span>
<span class="n">exc</span><span class="p">)</span>
-        <span class="n">throws</span> <span class="n">TransformerException</span>
<span class="p">{</span>
-    <span class="n">throw</span> <span class="n">exc</span><span
class="p">;</span>
 <span class="p">}</span>
 </pre></div>
 
 
-<p>}</p>
 <h3 id="213-the-following-message-appears-after-recently-upgrading-fop-io-exception-while-reading-font-cache-orgapachefopfontsembedfontinfo-local-class-incompatible-stream-classdesc-serialversionuid-9075848379822693399-local-class-serialversionuid-8755432068669997367-discarding-font-cache-filewzxhzdk55wzxhzdk56">2.13.
The following message appears after recently upgrading FOP: "I/O exception while reading font
cache (org.apache.fop.fonts.EmbedFontInfo; local class incompatible: stream classdesc serialVersionUID
= -9075848379822693399, local class serialVersionUID = 8755432068669997367). Discarding font
cache file."<a id="faq-N1026C"></a></h3>
 <p>This message is a warning that FOP failed to read from the Font cache. Which means
any Font auto detection or Font directories will be re-scanned. So this failure doesn't break
anything.</p>
 <p>To avoid the warning you can simply delete the old Font Cache file, which lives
in ${base}\conf\font.cache (see <a href="1.0/configuration.html#general-elements">font-base
configuration</a>).</p>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message