You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Clay Leeds <cl...@medata.com> on 2003/03/21 18:34:05 UTC
Mac OS X, FOP and 1.4.1 issues?
I submitted this a couple of weeks ago, but no one came to my rescue. I
was able to run this using Java 1.3.1 on Mac OS X, but since I've
upgraded to Java 1.4.1, I have been unable to successfully run FOP.
NOTE: I can get FOP to run, but I get showstopper errors I didn't get
before. Here's my previous message:
#-#-#-#
I get an error when I run FOP under Mac OS X 10.2.4 terminal. I ZIP'd a
test directory (w/ XML file, XSL-FO file and my DTD), to transfer to my
Mac from my PC for testing. When I unZIP on my PC & process with FOP, I
get no errors. However, I get the following terminal output when
processing under my Mac. I should point out, that I use
"xsl:attribute-set" near the top of my XSL-FO file, and set
<xsl:attribute name="font-family">courier new, courier,
monospace</xsl:attribute>. This setting is made as close to the root
level as possible. Nowhere in this XSL-FO document do I change this
font-family. I indicate this, because at one point in the error output
below, it indicates a problem with the font Lucida, but nowhere do I
make reference of Lucida:
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
2003-02-24 09:02:19.679 java[1031] Font GB18030Bitmap: in
_readBasicMetricsForSize, claims 0 max advance but is fixed-pitch.
2003-02-24 09:02:19.733 java[1031] Warning: Font
LucidaSans-TypewriterBold claims fixed-pitch with 0 max advance!
I do not reference any Lucida font anywhere in my document.
System Info:
Mac OS X 10.2.4 (latest Mac OS X release)
Java full version "1.4.1-24" (latest JDK from Apple)
Mac OS X Terminal output:
[Clays-TiBook:Shared/_WebDLs/test_MEDATA_xml_1.1 Folder] clay% fop -d
-xml test_MIWC_1.1.xml -xsl xml_med7_MIWC.fo -awt
[DEBUG] Input mode:
[DEBUG] xslt transformation
[DEBUG] xml input file: test_MIWC_1.1.xml
[DEBUG] xslt stylesheet: xml_med7_MIWC.fo
[DEBUG] Output mode:
[DEBUG] awt on screen
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] base directory: file:/Users/Shared/_WebDLs/test_MEDATA_xml_1.1
Folder/
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
2003-02-24 09:02:19.679 java[1031] Font GB18030Bitmap: in
_readBasicMetricsForSize, claims 0 max advance but is fixed-pitch.
2003-02-24 09:02:19.733 java[1031] Warning: Font
LucidaSans-TypewriterBold claims fixed-pitch with 0 max advance!
[ERROR] no protocol: xml_med7_dtd_1.1.dtd
org.apache.fop.apps.FOPException: no protocol: xml_med7_dtd_1.1.dtd
at org.apache.fop.apps.Driver.render(Driver.java:466)
at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:117)
at org.apache.fop.apps.Fop.main(Fop.java:19)
---------
java.net.MalformedURLException: no protocol: xml_med7_dtd_1.1.dtd
at java.net.URL.<init>(URL.java:579)
at java.net.URL.<init>(URL.java:476)
at java.net.URL.<init>(URL.java:425)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
at org.apache.fop.apps.Driver.render(Driver.java:457)
at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:117)
at org.apache.fop.apps.Fop.main(Fop.java:19)
---------
java.net.MalformedURLException: no protocol: xml_med7_dtd_1.1.dtd
at java.net.URL.<init>(URL.java:579)
at java.net.URL.<init>(URL.java:476)
at java.net.URL.<init>(URL.java:425)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
at org.apache.fop.apps.Driver.render(Driver.java:457)
at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:117)
at org.apache.fop.apps.Fop.main(Fop.java:19)
[Clays-TiBook:Shared/_WebDLs/test_MEDATA_xml_1.1 Folder] clay%
#-#-#-#-#
WinXP Terminal Output:
C:\Program Files\Java\fop-0.20.4>fop -d -xml
C:\_Web_DLs\test_MEDATA_xml_1.1\test_MIWC_1.1.xml -xsl
C:\_Web_DLs\test_MEDATA_xml_1.1\xml_med7_MIWC.fo -awt
C:\Program Files\Java\fop-0.20.4>java -cp
build\fop.jar;lib\batik.jar;lib\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\avalon-framework-cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop -d -xml
C:\_Web_DLs\test_MEDATA_xml_1.1\test_MIWC_1.1.xml -xsl
C:\_Web_DLs\test_MEDATA_xml_1.1\xml_med7_MIWC.fo -awt
[DEBUG] Input mode:
[DEBUG] xslt transformation
[DEBUG] xml input file: C:\_Web_DLs\test_MEDATA_xml_1.1\test_MIWC_1.1.xml
[DEBUG] xslt stylesheet: C:\_Web_DLs\test_MEDATA_xml_1.1\xml_med7_MIWC.fo
[DEBUG] Output mode:
[DEBUG] awt on screen
[DEBUG] OPTIONS
[DEBUG] no user configuration file is used [default]
[DEBUG] debug mode on
[DEBUG] dump configuration
[DEBUG] quiet mode on
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[DEBUG] base directory: file:/C:/_Web_DLs/test_MEDATA_xml_1.1/
[ERROR] Logger not set
[DEBUG] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[DEBUG] setting up fonts
[INFO] [1]
[INFO] [2]
[INFO] [3]
[INFO] Parsing of document complete, stopping renderer
C:\Program Files\Java\fop-0.20.4>
#-#-#-#
Thanks in advance!
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Mac OS X, FOP and 1.4.1 issues?
Posted by Jeremias Maerki <de...@greenmail.ch>.
On 21.03.2003 18:59:06 Clay Leeds wrote:
> > That's probably coming from the AWT implementation. It's not from FOP. Sounds
> > like Apple's still not really there, yet. With the JDK, I mean.
>
> Well, what do you know?
Not much. Only that Apple claimed to become the best Java platform. :-)
I was coaching a friend recently who wanted to learn Java and he's
working on OSX. Even relatively simple things didn't work with JDK 1.3.1
then (about 5 months ago).
I suggest you go to Apple's Java pages and look for information there.
> >>org.apache.fop.apps.FOPException: no protocol: xml_med7_dtd_1.1.dtd
> >
> > Any improvements if you remove the DTD reference?
>
> ...it works! (without the DTD reference, I mean)... Any ideas on what
> *I* can do to fix this (besides: removing the DTD reference and/or
> hammering Apple about their bug ;-)...
Further circle in the bug. But that involves a lot of Java debugging.
Maybe looking in the mailing list archives of Xerces-J and Xalan-J
reveals some information. It's not code from FOP that provokes the bug.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Mac OS X, FOP and 1.4.1 issues?
Posted by Clay Leeds <cl...@medata.com>.
> That's probably coming from the AWT implementation. It's not from FOP. Sounds
> like Apple's still not really there, yet. With the JDK, I mean.
Well, what do you know?
>>org.apache.fop.apps.FOPException: no protocol: xml_med7_dtd_1.1.dtd
>
> Any improvements if you remove the DTD reference?
...it works! (without the DTD reference, I mean)... Any ideas on what
*I* can do to fix this (besides: removing the DTD reference and/or
hammering Apple about their bug ;-)...
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Mac OS X, FOP and 1.4.1 issues?
Posted by Jeremias Maerki <de...@greenmail.ch>.
Disclaimer: I don't have MacOSX available for testing.
On 21.03.2003 18:34:05 Clay Leeds wrote:
> 2003-02-24 09:02:19.679 java[1031] Font GB18030Bitmap: in
> _readBasicMetricsForSize, claims 0 max advance but is fixed-pitch.
> 2003-02-24 09:02:19.733 java[1031] Warning: Font
> LucidaSans-TypewriterBold claims fixed-pitch with 0 max advance!
That's probably coming from the AWT implementation. It's not from FOP. Sounds
like Apple's still not really there, yet. With the JDK, I mean.
> org.apache.fop.apps.FOPException: no protocol: xml_med7_dtd_1.1.dtd
Any improvements if you remove the DTD reference?
Good luck!
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org