xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mascarenhas, Frandon (Infosys)" <fm...@allstate.com>
Subject Incompatible VM exception for font Verdana.
Date Wed, 18 Nov 2009 20:44:27 GMT
Hi,

I am hitting an Incompatible VM exception along with a
java.nio.BufferOverflowException when printing a PDF in font Verdana in
FOP 0.20.5

The stack trace in FOP jar for this exception is as follows -

Caused by org.apache.avalon.framework.CascadingRuntimeException:
Incompatible VM
	at
org.apache.fop.render.pdf.PDFRenderer.getUnicodeString(PDFRenderer.java:
836)
	at
org.apache.fop.render.pdf.PDFRenderer.renderWordArea(PDFRenderer.java:79
1)
	at
org.apache.fop.layout.inline.WordArea.render(WordArea.java:68)
	at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.j
ava:516)
	at org.apache.fop.layout.LineArea.render(LineArea.java:519)
	at
org.apache.fop.render.AbstractRenderer.renderBlockArea(AbstractRenderer.
java:485)
	at org.apache.fop.layout.BlockArea.render(BlockArea.java:117)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:451)
	at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:88)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:451)
	at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:88)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:451)
	at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:88)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:451)
	at
org.apache.fop.layout.AreaContainer.render(AreaContainer.java:88)
	at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRende
rer.java:451)
	at org.apache.fop.layout.ColumnArea.render(ColumnArea.java:71)
	at
org.apache.fop.render.AbstractRenderer.renderSpanArea(AbstractRenderer.j
ava:100)
	at org.apache.fop.layout.SpanArea.render(SpanArea.java:94)
	at
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(AbstractR
enderer.java:368)
	at
org.apache.fop.layout.BodyAreaContainer.render(BodyAreaContainer.java:13
7)
	at
org.apache.fop.render.AbstractRenderer.renderRegions(AbstractRenderer.ja
va:529)
	at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:922)
	at
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:898)
	at
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:307)
	at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:108)
	at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:415
)
	at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
	at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:265)
	at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:226)
	at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
	at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.fop.apps.Driver.render(Driver.java:508)
	at org.apache.fop.apps.Driver.run(Driver.java:575)
	

Also at the end of the Stack trace the following exception an be seen

Caused by: java.nio.BufferOverflowException
	at
java.nio.charset.CoderResult.throwException(CoderResult.java:259)
	at
java.lang.StringCoding$StringEncoder.encode(StringCoding.java:242)
	at java.lang.StringCoding.encode(StringCoding.java:272)
	at java.lang.String.getBytes(String.java:947)
	at
org.apache.fop.render.pdf.PDFRenderer.getUnicodeString(PDFRenderer.java:
824)


This environment details are as follows -

- SunOS 10.1
- WAS 7
- JDK 1.4 (compiled)
- JDK 1.6 (run time).
- 4 JVMs, clustered.
- FOP.jar 0.20.5 version (for PDF creation)

This exception occurs on any JVM while the other ones work fine. On
restarting the cluster same problem can be seen on some other JVM.


If I change the font to serif this exception is resolved. The
userconfig.xml file is in place on the WAS partition
<configuration>
	<fonts>
		<font metrics-file="fonts/verdana.xml" kerning="yes"
embed-file="fonts/VERDANA.TTF">
			<font-triplet name="Verdana" style="normal"
weight="normal" />
		</font>
		<font metrics-file="fonts/verdanab.xml" kerning="yes"
embed-file="fonts/VERDANAB.TTF">
			<font-triplet name="Verdana" style="normal"
weight="bold" />
		</font>
		<font metrics-file="fonts/verdanaz.xml" kerning="yes"
embed-file="fonts/VERDANAZ.TTF">
			<font-triplet name="Verdana" style="italic"
weight="bold" />
		</font>
		<font metrics-file="fonts/verdanai.xml" kerning="yes"
embed-file="fonts/VERDANAI.TTF">
			<font-triplet name="Verdana" style="italic"
weight="normal" />
		</font>
	</fonts>
</configuration>


Please help on what could fix this issue.

Thanks,
Frandon

Mime
View raw message