tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Mixon (qwest)" <rnmi...@qwest.net>
Subject XML/URI issue on Tomcat 5.5.7 and/or Java version issue
Date Thu, 03 Feb 2005 15:45:02 GMT
Hi,

I have a web application that uses a combination of fop
(http://xml.apache.org/fop) with an embedded version of batik
(http://xml.apache.org/batik) to generate PDF files from XML files
(actually SVG).

All has been working fine on Tomcat 5.0.19 with Java 1.4.1_02. We are
trying to move to Tomcat 5.5.7 to get better clustering/session
replication/failover support. We have run into the following problem.

At first I thought it might be Java 1.5. So then I installed the Java
1.4 compatibility files for Tomcat 5.5.7 and reverted to Sun Java
1.4.2_03. I still get the error below :( .  The URL that fails (i.e. the
reference to SmileyFace.gif below) is generated with this SVG markup, so
its not like I am munging up the URL manually:
  <svg:image
           x="<c:out value="${p.canvasX -
canvas.runChartMarkerStarRadius}"/>"
           y="<c:out value="${p.canvasY -
canvas.runChartMarkerStarRadius}"/>"
       width="<c:out value="${2*canvas.runChartMarkerStarRadius}"/>"
      height="<c:out value="${2*canvas.runChartMarkerStarRadius}"/>"
      preserveAspectRatio="xMinYMin meet"
       xlink:href="images/allTimeBest/<c:out
value="${cmSummary.allTimeBestIcon}"/>"
    <c:if test="${outputFmt != 'PDF'}">
        pointer-events="visible"
           onmouseover="ShowTooltip(evt,<c:out
value="${ttDex}"/>,false)"
            onmouseout="HideTooltip()"
           onmousedown="ShowTooltip(evt,<c:out value="${ttDex}"/>,true)"
            onmouseup="HideTooltip()"
    </c:if>
  >

In summary it works with:
  Tomcat 5.0.x and Java 1.4.1_02
  Tomcat 5.5.7 and Java 1.4.1_02
It does not work (i.e. the below exception occurs) with:
  Tomcat 5.5.7 and Java 1.4.2_03
  Tomcat 5.5.7 and Java 1.5.0_01

Does Tomcat 5.5.x and/or Java 1.4.2/1.5 do anything with XML parsing
that might cause this side effect to occur?

Any and all ideas are appreciated. I previously had posted on the FOP
and BATIK lists, but then things "sort of" started pointing to this
being a tomcat issue.

Thank you - Richard

08:18:05,396 ERROR [TP-Processor2] PDFXMLHandler:253 - svg graphic could
not be built: file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
An I/O error occured while processing the URI
'file://c/jakarta-tomcat-5.5.7/webapps/stars/images/allTimeBest/SmileyFa
ce.gif' specified on the element <image>
org.apache.batik.bridge.BridgeException:
file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
An I/O error occured while processing the URI
'file://c/jakarta-tomcat-5.5.7/webapps/stars/images/allTimeBest/SmileyFa
ce.gif' specified on the element <image>
	at org.apache.batik.bridge.SVGImageElementBridge.openStream(Unknown
Source)
	at
org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(Un
known Source)
	at
org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unk
nown Source)
	at
org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown
Source)
	at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
	at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
	at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
	at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
	at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
	at
org.apache.fop.render.pdf.PDFXMLHandler$SVGHandler.renderSVGDocument(PDF
XMLHandler.java:251)
	at
org.apache.fop.render.pdf.PDFXMLHandler.handleXML(PDFXMLHandler.java:156
)
	at
org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java:7
66)
	at
org.apache.fop.render.pdf.PDFRenderer.renderDocument(PDFRenderer.java:12
40)
	at
org.apache.fop.render.pdf.PDFRenderer.renderForeignObject(PDFRenderer.ja
va:1206)
	at
org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.j
ava:675)
	at
org.apache.fop.render.pdf.PDFRenderer.renderViewport(PDFRenderer.java:12
65)
	at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer
.java:623)
	at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.j
ava:609)
	at
org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:85
5)
	at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.jav
a:546)
	at
org.apache.fop.render.pdf.PDFRenderer.renderBlocks(PDFRenderer.java:503)
	at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java
:587)
	at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.jav
a:537)
	at
org.apache.fop.render.pdf.PDFRenderer.renderBlocks(PDFRenderer.java:503)
	at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:
462)
	at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRende
rer.java:445)
	at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer
.java:381)
	at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRend
erer.java:327)
	at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.
java:299)
	at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:436)
	at
org.apache.fop.area.RenderPagesModel.checkPreparedPages(RenderPagesModel
.java:118)
	at
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:97)
	at org.apache.fop.area.AreaTree.addPage(AreaTree.java:111)
	at
org.apache.fop.layoutmgr.PageLayoutManager.finishPage(PageLayoutManager.
java:507)
	at
org.apache.fop.layoutmgr.PageLayoutManager.doLayout(PageLayoutManager.ja
va:203)
	at
org.apache.fop.layoutmgr.PageLayoutManager.run(PageLayoutManager.java:17
8)
	at org.apache.fop.apps.Document.format(Document.java:219)
	at
org.apache.fop.apps.Document.foPageSequenceComplete(Document.java:123)
	at
org.apache.fop.fo.FOTreeHandler.notifyPageSequenceComplete(FOTreeHandler
.java:501)
	at
org.apache.fop.fo.FOTreeHandler.endPageSequence(FOTreeHandler.java:187)
	at org.apache.fop.fo.pagination.PageSequence.end(PageSequence.java:312)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:260)
	at
org.apache.fop.tools.ProxyContentHandler.endElement(ProxyContentHandler.
java:94)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Transfor
merIdentityImpl.java:1050)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.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.TransformerIdentityImpl.transform(Transform
erIdentityImpl.java:452)
	at com.ltoj.webapp.action.SVG2PDFServlet.doGet(SVG2PDFServlet.java:166)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:673)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:464)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:399)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:302)
	at
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java
:691)
	at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:6
58)
	at
org.apache.struts.taglib.logic.ForwardTag.doForward(ForwardTag.java:123)
	at
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:107)
	at
org.apache.jsp.WEB_002dINF.pages.run_jsp._jspx_meth_logic$1el_forward_0(
org.apache.jsp.WEB_002dINF.pages.run_jsp:12343)
	at
org.apache.jsp.WEB_002dINF.pages.run_jsp._jspService(org.apache.jsp.WEB_
002dINF.pages.run_jsp:990)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:325)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:673)
	at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:464)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:399)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:302)
	at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1056)
	at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
essor.java:261)
	at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:388)
	at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
RequestProcessor.java:316)
	at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
231)
	at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
	at
com.ltoj.webapp.filter.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:9
4)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
	at com.ltoj.webapp.filter.ActionFilter.doFilter(ActionFilter.java:431)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
	at
com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingF
ilter.java:132)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:482)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
	at
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve
.java:130)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
	at
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc
essLogValve.java:481)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526
)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
	at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
	at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
675)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
	at java.lang.Thread.run(Thread.java:534)

-----Original Message-----
From: James Shaw [mailto:hertzsprrrung@btopenworld.com]
Sent: Thursday, February 03, 2005 6:53 AM
To: Batik Users
Subject: Re: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could
not be built"


Richard Mixon (qwest) wrote:

>My build of FOP from 2004/05/29 works fine on Sun Java 1.4.1_02 with
>Tomcat 5.0.19, but when I move toSun Java 1.5.1 and Tomcat 5.5.7 I get
>the URI I/O error listed below. This build included a Batik.jar with
>files dates 10/11/2003.
>
>
>
Not sure this is particularly helpful, but I have come across similar IO
problems running Eclipse with Java 1.5.
I understand the problem is related to file locking and is an issue
specific to the new version of Java.
Unfortunately, my solution was to revert to 1.4.

James Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message