You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2006/02/20 13:56:49 UTC
DO NOT REPLY [Bug 38719] New: - Image loading in pdf.
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=38719>.
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=38719
Summary: Image loading in pdf.
Product: Fop
Version: 0.20.5
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: critical
Priority: P1
Component: images
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: Balamurali.Bhaeeman@gmail.com
I am using fop0.20.5 version to generate a pdf image (jpg) with <fo:external-
graphic src= "url('statestreet.jpg')"/> with other required jars in classpath
which are /asle03/sle/deploy/was51/sle/lib/xalan.jar
/asle03/sle/deploy/was51/sle/lib/xml-apis_10.jar
/asle03/sle/deploy/was51/sle/lib/xml-apis.jar
/asle03/sle/deploy/was51/sle/lib/xerces.jar
/asle03/sle/deploy/was51/sle/lib/jaxp.jar
/asle03/sle/deploy/was51/sle/lib/dom4j-1.3.jar
/asle03/sle/deploy/was51/sle/lib/xercesImpl_230.jar
/asle03/sle/deploy/was51/sle/lib/xalan_2.4.0.jar
/asle03/sle/deploy/was51/sle/lib/batik_11.jar
/asle03/sle/deploy/was51/sle/lib/avalon_414.jar
/asle03/sle/deploy/was51/sle/lib/iText.jar
/asle03/sle/deploy/was51/sle/lib/log4j-1.2.9.jar
/asle03/sle/deploy/was51/sle/lib/fop.jar
. It works fine in windows and one of my development Solaris 5.8 box , but it
seems to be throwing error in integration Solaris 5.8 which is replicated as
the devlopment box .
The app server is Websphere 5.1 version with jre1.4 .
only one difference I see in development server is a Generic Vm argument passed
as below
-server -Xbootclasspath/p:${AM_HOME}/lib/bcm-
bootstrap.jar:${AM_HOME}/lib/ppe.probe-bootstrap.jar
and developemnt works fine loading the image.
But the integration env throws the error. please advice . It is something about
the loading of image in different environment.
Below is the error
[1/24/06 9:42:45:444 EST] 1296cf2 WebGroup E SRVE0026E: [Servlet Error]-
[org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Ljava/lang/St
ring;Ljava/io/InputStream;)Lorg/w3c/dom/Document;]:
java.lang.NoSuchMethodError:
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument
(Ljava/lang/String;Ljava/io/InputStream;)Lorg/w3c/dom/Document;
at org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:101)
at org.apache.fop.image.analyser.SVGReader.verifySignature
(SVGReader.java:85)
at org.apache.fop.image.analyser.ImageReaderFactory.Make
(ImageReaderFactory.java:129)
at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181)
at org.apache.fop.fo.flow.ExternalGraphic.layout
(ExternalGraphic.java:188)
at org.apache.fop.fo.flow.Block.layout(Block.java:257)
at org.apache.fop.fo.flow.TableCell.layout(TableCell.java:326)
at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:360)
at org.apache.fop.fo.flow.AbstractTableBody.layout
(AbstractTableBody.java:236)
at org.apache.fop.fo.flow.Table.layout(Table.java:302)
at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
at org.apache.fop.fo.pagination.PageSequence.makePage
(PageSequence.java:400)
at org.apache.fop.fo.pagination.PageSequence.format
(PageSequence.java:338)
at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
at org.apache.xalan.transformer.ResultTreeHandler.endElement
(ResultTreeHandler.java:307)
at org.apache.xalan.templates.ElemLiteralResult.execute
(ElemLiteralResult.java:716)
at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes
(ElemApplyTemplates.java:426)
at org.apache.xalan.templates.ElemApplyTemplates.execute
(ElemApplyTemplates.java:215)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
(TransformerImpl.java:2324)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
(TransformerImpl.java:2147)
at org.apache.xalan.transformer.TransformerImpl.transformNode
(TransformerImpl.java:1203)
at org.apache.xalan.transformer.TransformerImpl.run
(TransformerImpl.java:3357)
at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument
(TransformerHandlerImpl.java:433)
at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230)
at org.apache.xerces.validators.common.XMLValidator.callEndDocument
(XMLValidator.java:1146)
at
org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch
(XMLDocumentScanner.java:1499)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome
(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
at org.apache.fop.apps.Driver.render(Driver.java:498)
at com.statestreet.sle.ca.util.CAPDFHelper.getPDFAsByteArr(Unknown
Source)
at com.statestreet.sle.ca.util.CAPDFHelper.getPDF(Unknown Source)
at org.apache.jsp._CAPDFGenerator._jspService(_CAPDFGenerator.java:85)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service
(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile
(JspServlet.java:683)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service
(JspServlet.java:781)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService
(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service
(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service
(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service
(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service
(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch
(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch
(ServletInstanceReference.java:40)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch
(WebAppRequestDispatcher.java:1095)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch
(WebAppRequestDispatcher.java:627)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
(WebAppRequestDispatcher.java:201)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward
(WebAppInvoker.java:125)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook
(WebAppInvoker.java:286)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation
(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI
(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service
(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest
(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest
(HttpConnection.java:652)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912)
--
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.
DO NOT REPLY [Bug 38719] - Image loading in pdf.
Posted by bu...@apache.org.
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=38719>.
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=38719
Balamurali.Bhaeeman@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--
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.
DO NOT REPLY [Bug 38719] - Image loading in pdf.
Posted by bu...@apache.org.
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=38719>.
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=38719
------- Additional Comments From jeremias@apache.org 2006-02-20 16:00 -------
You say you deploy on JRE 1.4. That means that xml-apis*.jar, jaxp.jar,
xerces*.jar and xalan*.jar do not need to be deployed (JAXP, XML parser and XSLT
implementation are included in the java class library), or rather they have no
effect or may even be responsible for the problem you experience. I'd start by
removing these JARs. Please note that the two xml-apis.jar and jaxp.jar all
contain more or less the same stuff. Furthermore, please make sure that you use
the batik.jar that comes with FOP 0.20.5.
I hope that helps. Please close the issue when you have resolved it.
--
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.
DO NOT REPLY [Bug 38719] - Image loading in pdf.
Posted by bu...@apache.org.
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=38719>.
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=38719
Balamurali.Bhaeeman@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From Balamurali.Bhaeeman@gmail.com 2006-02-23 06:50 -------
(In reply to comment #4)
> The thing with batik.jar is probably less important in your case. Just try my
> suggestions concerning the XML libraries and if it still doesn't work come
back
> here.
It is working fine now . Thanks for u'r advice
--
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.
DO NOT REPLY [Bug 38719] - Image loading in pdf.
Posted by bu...@apache.org.
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=38719>.
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=38719
------- Additional Comments From Balamurali.Bhaeeman@gmail.com 2006-02-21 16:23 -------
I see that the batik.jar i use with fop 0.20.5 is 2.06MB and it works in
windows and one of my Solaris dev as I have already mentioned and throws the
above error in integration and UAT environments.
But I see the batik.jar which comes with fop 0.20.5 is 2.01MB
Is there any possibilty with which batik.jar i use currently(2.06MB ) may work
in one environment and throw the error in other?
So that I can goahead and replace the batik.jar jar shipped with fop 0.20.5 for
image loading on all my environment
(In reply to comment #2)
> You say you deploy on JRE 1.4. That means that xml-apis*.jar, jaxp.jar,
> xerces*.jar and xalan*.jar do not need to be deployed (JAXP, XML parser and
XSLT
> implementation are included in the java class library), or rather they have no
> effect or may even be responsible for the problem you experience. I'd start by
> removing these JARs. Please note that the two xml-apis.jar and jaxp.jar all
> contain more or less the same stuff. Furthermore, please make sure that you
use
> the batik.jar that comes with FOP 0.20.5.
> I hope that helps. Please close the issue when you have resolved it.
--
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.
DO NOT REPLY [Bug 38719] - Image loading in pdf.
Posted by bu...@apache.org.
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=38719>.
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=38719
------- Additional Comments From Balamurali.Bhaeeman@gmail.com 2006-02-20 13:59 -------
Please advice as quick as possible , since the same issue is arised in UAT
also.But i tried in windows with the same set of versions in integration and
uat, everything works fine.
But in Solaris execpt one dev environment others does not load the image
--
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.
DO NOT REPLY [Bug 38719] - Image loading in pdf.
Posted by bu...@apache.org.
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=38719>.
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=38719
------- Additional Comments From jeremias@apache.org 2006-02-23 11:47 -------
*** Bug 38750 has been marked as a duplicate of this bug. ***
--
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.
DO NOT REPLY [Bug 38719] - Image loading in pdf.
Posted by bu...@apache.org.
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=38719>.
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=38719
------- Additional Comments From jeremias@apache.org 2006-02-21 17:01 -------
The thing with batik.jar is probably less important in your case. Just try my
suggestions concerning the XML libraries and if it still doesn't work come back
here.
--
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.