DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41379>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41379

           Summary: VerifyError on FopFactory.newInstance() using Tomcat
                    5.5.17 and JDK 1.5.0_07
           Product: Fop
           Version: 0.93
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Keywords: ErrorMessage
          Severity: major
          Priority: P1
         Component: general
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: [EMAIL PROTECTED]


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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to