xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jelka.ko...@atol.si
Subject Re: Need help with compiling fop beta for java 1.3 - images not working
Date Fri, 15 Dec 2006 10:04:33 GMT
I now have more detail information about the trouble I have with my build.

In my xml file that I am transforming I have an image reference to a 
non-existent image on a Domino application server where there is basic 
authentication needed.

When I try to open the image in my browser I get a login page (text/html).

When I use binary distribution of Fop beta version that I downloaded this 
error is printed in my log:

2006-12-15 10:39:31,393 137057 WARN 
[org.apache.fop.image.analyser.XMLReader] (AgentThread: JavaAgent:) Error 
while constructing image from XML
org.xml.sax.SAXParseException: Open quote is expected for attribute "REL" 
associated with an  element type  "LINK".
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown 
Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at 
org.apache.fop.image.analyser.XMLReader.createDocument(XMLReader.java:114)
        at 
org.apache.fop.image.analyser.XMLReader.loadImage(XMLReader.java:94)
        at 
org.apache.fop.image.analyser.XMLReader.verifySignature(XMLReader.java:64)
        at 
org.apache.fop.image.analyser.ImageReaderFactory.make(ImageReaderFactory.java:84)
        at 
org.apache.fop.image.ImageFactory.loadImage(ImageFactory.java:212)
        at org.apache.fop.image.ImageLoader.loadImage(ImageLoader.java:55)
        at 
org.apache.fop.image.ContextImageCache.getImage(ImageFactory.java:416)
        at 
org.apache.fop.image.ImageFactory.getImage(ImageFactory.java:149)
        at 
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:66)
        at org.apache.fop.fo.FObj.processNode(FObj.java:120)
        at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:308)
        at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:184)
        at 
org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204)
        at 
org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
        at 
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:243)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
        at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
        at JavaAgent.convertXML2PDF(JavaAgent.java:213)
        at JavaAgent.NotesMain(JavaAgent.java:123)
        at lotus.domino.AgentBase.runNotes(Unknown Source)
        at lotus.domino.NotesThread.run(NotesThread.java:215)
2006-12-15 10:39:31,393 137057 ERROR [org.apache.fop.image.FopImage] 
(AgentThread: JavaAgent:) Error while recovering image information 
(http://tidra.atol.si/neki.gif) : null
java.lang.NullPointerException
        at 
org.apache.fop.image.analyser.XMLReader.verifySignature(XMLReader.java:65)
        at 
org.apache.fop.image.analyser.ImageReaderFactory.make(ImageReaderFactory.java:84)
        at 
org.apache.fop.image.ImageFactory.loadImage(ImageFactory.java:212)
        at org.apache.fop.image.ImageLoader.loadImage(ImageLoader.java:55)
        at 
org.apache.fop.image.ContextImageCache.getImage(ImageFactory.java:416)
        at 
org.apache.fop.image.ImageFactory.getImage(ImageFactory.java:149)
        at 
org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:66)
        at org.apache.fop.fo.FObj.processNode(FObj.java:120)
        at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:308)
        at 
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:184)
        at 
org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204)
        at 
org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
        at 
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:243)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at 
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at 
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
        at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
        at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
        at JavaAgent.convertXML2PDF(JavaAgent.java:213)
        at JavaAgent.NotesMain(JavaAgent.java:123)
        at lotus.domino.AgentBase.runNotes(Unknown Source)
        at lotus.domino.NotesThread.run(NotesThread.java:215)
2006-12-15 10:39:31,393 137057 ERROR [org.apache.fop.fo.FONode] 
(AgentThread: JavaAgent:) Image not available: 
http://tidra.atol.si/neki.gif

when I run the same code with my compiled fop.jar version the error 
messages printed in my Log file are all the same 
but in this case some errors are printed on my console (in case I use the 
fop distribution no errors are printed on console).
Also in this case my Domino agent "crashes", I did not yet find out if I 
could catch the exception and maybe print an error message to the user to 
see ...

12/15/2006 10:26:40 AM  HTTP JVM: java.lang.NoClassDefFoundError: 
javax/imageio
ImageIO
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.image.ImageIOImage.lo
dBitmap(ImageIOImage.java:64)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.image.AbstractFopImag
.load(AbstractFopImage.java:167)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.pdf.PDFRendere
.putImage(PDFRenderer.java:1394)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.pdf.PDFRendere
.renderImage(PDFRenderer.java:1325)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderViewport(AbstractRenderer.java:739)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractPathOr
entedRenderer.renderViewport(AbstractPathOrientedRenderer.java:551)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderInlineArea(AbstractRenderer.java:634)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderLineArea(AbstractRenderer.java:609)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.pdf.PDFRendere
.renderLineArea(PDFRenderer.java:1017)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderBlocks(AbstractRenderer.java:535)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderBlock(AbstractRenderer.java:585)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderBlocks(AbstractRenderer.java:525)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderBlock(AbstractRenderer.java:585)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderBlocks(AbstractRenderer.java:525)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderFlow(AbstractRenderer.java:430)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderMainReference(AbstractRenderer.java:409)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderBodyRegion(AbstractRenderer.java:343)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderRegionViewport(AbstractRenderer.java:288)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderPageAreas(AbstractRenderer.java:261)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.AbstractRender
r.renderPage(AbstractRenderer.java:235)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.render.pdf.PDFRendere
.renderPage(PDFRenderer.java:648)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.area.RenderPagesModel
addPage(RenderPagesModel.java:119)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.layoutmgr.PageSequenc
LayoutManager.finishPage(PageSequenceLayoutManager.java:703)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.layoutmgr.PageSequenc
LayoutManager.activateLayout(PageSequenceLayoutManager.java:154)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.area.AreaTreeHandler.
ndPageSequence(AreaTreeHandler.java:320)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.fo.pagination.PageSeq
ence.endOfNode(PageSequence.java:147)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.fo.FOTreeBuilder$Main
OHandler.endElement(FOTreeBuilder.java:357)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.fop.fo.FOTreeBuilder.endE
ement(FOTreeBuilder.java:193)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xml.serializer.ToXMLSAXHa
dler.endElement(ToXMLSAXHandler.java:261)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.templates.ElemLiter
lResult.execute(ElemLiteralResult.java:1399)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.transformer.Transfo
merImpl.executeChildTemplates(TransformerImpl.java:2411)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.templates.ElemLiter
lResult.execute(ElemLiteralResult.java:1374)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.templates.ElemApply
emplates.transformSelectedNodes(ElemApplyTemplates.java:393)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.templates.ElemApply
emplates.execute(ElemApplyTemplates.java:176)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.transformer.Transfo
merImpl.executeChildTemplates(TransformerImpl.java:2411)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.transformer.Transfo
merImpl.applyTemplateToNode(TransformerImpl.java:2281)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.transformer.Transfo
merImpl.transformNode(TransformerImpl.java:1367)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.transformer.Transfo
merImpl.transform(TransformerImpl.java:709)
12/15/2006 10:26:40 AM  HTTP JVM:       at 
org.apache.xalan.transformer.Transfo
merImpl.transform(TransformerImpl.java:1284)
12/15/2006 10:26:41 AM  HTTP JVM:       at 
org.apache.xalan.transformer.Transfo
merImpl.transform(TransformerImpl.java:1262)
12/15/2006 10:26:41 AM  HTTP JVM:       at 
JavaAgent.convertXML2PDF(JavaAgent.j
va:213)
12/15/2006 10:26:41 AM  HTTP JVM:       at 
JavaAgent.NotesMain(JavaAgent.java:1
3)
12/15/2006 10:26:41 AM  HTTP JVM:       at 
lotus.domino.AgentBase.runNotes(Unkn
wn Source)
12/15/2006 10:26:41 AM  HTTP JVM:       at 
lotus.domino.NotesThread.run(NotesTh
ead.java:215)

Now I wonder if this means that I did not really compile for java 1.3 
(altrough I did set the source & target in the build.property file)

Are there any other additional switches that are used when binaries are 
compiled for distribution?

I would need to compile fop as I need to catch exception if image is not 
retrieved or when the image could not be included in the pdf.

ErrorListener that I added is not doing that for me (is doing quite well 
in some other cases although).


I would appreciate any help ...

Jelka




jelka.kosir@atol.si 
14.12.2006 14:36
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users@xmlgraphics.apache.org
cc

Subject
Need help with compiling fop beta for java 1.3 - images not working







I'm working on a problem I've posted earlier this week and I would need to 
rebuild fop since I've changed the source. 

I have problems building fop beta 0.92  for java 1.3 

I have jdk1.5.0_06 and Apache Ant version 1.6.5 compiled on June 2 2005. 

I changed the build.properties file (uncommented the two lines that seemed 
to be correct) 
javac.source = 1.3 
javac.target = 1.3 

I added jimi-1.0.jar in lib folder 

This is what ant prints: 

init-avail: 
     [echo] ------------------- Apache FOP 0.92beta [1999-2006] 
---------------- 

     [echo] See build.properties and build-local.properties for additional 
build 
 settings 
     [echo] Apache Ant version 1.6.5 compiled on June 2 2005 
     [echo] VM: 1.5.0_06-b05, Sun Microsystems Inc. 
     [echo] JAVA_HOME: C:\Program Files\Java\jdk1.5.0_06 
     [echo] Jimi Support PRESENT 
     [echo] JAI Support NOT Present 
     [echo] JCE Support PRESENT 
     [echo] JUnit Support NOT Present - Committers are required to have 
JUnit wo 
rking 
     [echo] XMLUnit Support NOT Present - you can get it from 
http://xmlunit.sou 
rceforge.net 

init-filters-jdk14: 
     [echo] Use GraphicsConfiguration adapter for JDK 1.4. 

init-filters-jdk13: 

init: 

It seems like my build.properties setting for building java 1.3 does not 
get recognized and GraficsConfiguration adapter used if for JDK 1.4 
instead of 1.3 

Build is sucessful but when I use it in my embedded environment on Domino, 
no images can be rendered, this error is displayed: 
java.lang.NoClassDefFoundError: javax/imageio/ImageIO 

A while ago I had simular problems when building trunk for java 1.3 but 
the addition of jimi did the trick. 

Any suggestions ?

Mime
View raw message