xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger <ox...@wanadoo.nl>
Subject [FOP] Fatal exeption occured. Program will exit. [W2K]
Date Wed, 02 Jun 2004 14:42:33 GMT
Hi there!

I have the following problem. Whenever I run Fop on my machine, I get 
the following error:

    Java Virtual Machine Launcher: Fatal exeption occured. Program will 
exit.

I get this error using several examples, one of which I give below. I 
use Windows 2000 Server (all updates), Java 1.4.2_03 and FOP 0.20.5. I 
have no clue as to what causes this problem. It happens on another 
machine as well.

I use the following command to start the process:

    c:\java\fop-0.20.5\fop -xml test.xml -xsl test.xsl -pdf test.pdf

Below you can see all code I use for this really simple example. It only 
displays my name. The PDF is created correctly (or at least I get a pdf 
which has my name in it).

Thanks!

Roger
===========================================
test.xsl has the following code:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:fo="http://www.w3.org/1999/XSL/Format" 
xmlns:n1="http://something.net/namespace" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <xsl:variable name="fo:layout-master-set">
        <fo:layout-master-set>
            <fo:simple-page-master master-name="default-page" 
page-height="11in" page-width="8.5in" margin-left="0.6in" 
margin-right="0.6in">
                <fo:region-body margin-top="0.79in" 
margin-bottom="0.79in" />
            </fo:simple-page-master>
        </fo:layout-master-set>
    </xsl:variable>
    <xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="no" 
indent="no" media-type="text/html" />
    <xsl:template match="/">
        <fo:root>
            <xsl:copy-of select="$fo:layout-master-set" />
            <fo:page-sequence master-reference="default-page" 
initial-page-number="1" format="1">
                <fo:flow flow-name="xsl-region-body">
                    <fo:block>
                        <xsl:for-each select="n1:company">
                            <xsl:for-each select="n1:naam">
                                <xsl:apply-templates />
                            </xsl:for-each>
                        </xsl:for-each>
                    </fo:block>
                </fo:flow>
            </fo:page-sequence>
        </fo:root>
    </xsl:template>
</xsl:stylesheet>
==================================

test.xml has the following code:

<?xml version="1.0" encoding="UTF-8"?>
<company xmlns="http://something.net/namespace" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://something.net/namespace
test.xsd">
    <naam>Roger</naam>
</company>

======================================

test.xslt has the following code:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:n1="http://something.net/namespace" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <xsl:output version="1.0" encoding="utf-8" omit-xml-declaration="no" 
indent="no" media-type="text/html" />
    <xsl:template match="/">
        <html>
            <meta http-equiv="Content-Type" content="text/html; 
charset=UTF-8" />
            <head />
            <body>
                <xsl:for-each select="n1:company">
                    <xsl:for-each select="n1:naam">
                        <xsl:apply-templates />
                    </xsl:for-each>
                </xsl:for-each>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>

=====================================

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message