Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
0.93
-
None
-
Operating System: Windows XP
Platform: PC
-
41379
Description
Trying to convert 0.20.5 to fop-0.93-bin-jdk1.4.zip (1/3/2007). 0.20.5 worked
fine other than 'Out of Memory' exceptions. 0.93 generates the following error
when FopFactory.newInstance() is called during my PDFGenerator class's initial
PDFGenerator.getInstance():
java.lang.VerifyError: (class: org/apache/fop/fo/ElementMappingRegistry,
method: findFOMaker signature:
(Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Locator
Lorg/apache/fop/fo/ElementMapping$Maker Wrong return type in function
org.apache.fop.apps.FopFactory.<init>(FopFactory.java:134)
org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:144)
com.mbh.pds.ccd.documents.PDFGenerator.<init>(PDFGenerator.java:46)
com.mbh.pds.ccd.documents.PDFGenerator.<clinit>(PDFGenerator.java:40)
com.mbh.pds.ccd.action.ReportPdfAction.doDerivedExecute
(ReportPdfAction.java:77)
com.mbh.esln.security.action.SecurityAction.execute
(SecurityAction.java:42)
org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Tried downloading from 2 different mirror sites. I'm using Eclipse 3.1.2 (with
MyEclipse Tomcat Server configuration). Configured Eclipse/MyEclipse to use
jdk 1.5.0_07 for Tomcat and Eclipse compiler, but Eclipse compiler is set to
compliance level 1.4.
FopFactory is private as in your Servlets Example although not in a servlet:
private FopFactory fopFactory = FopFactory.newInstance();
private TransformerFactory tFactory = TransformerFactory.newInstance();
Didn't install xalan, xercesImpl, xml-apis, or serializer jars (using jdk's xml
funcitonality instead), although that seems irrelevant for this.
Perhaps 0.93 isn't compatible with java 5.0? Seems like it should be - the
older 0.20.5 version works.
I hope I'm not overlooking something and that this is enough information.