xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Madunic" <Mario_Madu...@newflyer.com>
Subject RE: Trunk parsing error message (FO to PDF)
Date Fri, 09 Apr 2010 16:18:40 GMT
There were warnings when I compiled the trunk. Wasn't paying attention to the actual build
process.


compile-java:
    [mkdir] Created dir: D:\progs\fop-trunk\build\classes
    [javac] Compiling 1284 source files to D:\progs\fop-trunk\build\classes
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\AbstractGraphics2DAdapter.java:151:
warning: [deprecation] org.apache.fop.render.Graphics2DImagePainter in org.apache.fop.render
has been deprecated
    [javac]     public void paintImage(Graphics2DImagePainter painter,
    [javac]                            ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\AbstractImageHandlerGraphics2D.java:37:
warning: [deprecation] org.apache.fop.util.UnitConv in org.apache.fop.util has been deprecated
    [javac] import org.apache.fop.util.UnitConv;
    [javac]                           ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\AbstractBaseLayoutManager.java:101:
warning: [deprecation] getContextInfo() in org.apache.fop.fo.FONode has been deprecated
    [javac]                 + fobjx.getContextInfo() + ")");
    [javac]                        ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1412:
warning: [deprecation] minusMin(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                 totalLength = totalLength.minusMin(element.getShrink());
    [javac]                                          ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1413:
warning: [deprecation] plusMax(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                 totalLength = totalLength.plusMax(element.getStretch());
    [javac]                                          ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1451:
warning: [deprecation] minusMin(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                 lengthBeforeBreak = lengthBeforeBreak.minusMin(element.getShrink());
    [javac]                                                      ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1452:
warning: [deprecation] plusMin(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                 lengthAfterBreak = lengthAfterBreak.plusMin(element.getShrink());
    [javac]                                                    ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1453:
warning: [deprecation] plusMax(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                 lengthBeforeBreak = lengthBeforeBreak.plusMax(element.getStretch());
    [javac]                                                      ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1454:
warning: [deprecation] minusMax(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                 lengthAfterBreak = lengthAfterBreak.minusMax(element.getStretch());
    [javac]                                                    ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1472:
warning: [deprecation] plusMin(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                         lengthAfterBreak = lengthAfterBreak.plusMin(el.getShrink());
    [javac]                                                            ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1473:
warning: [deprecation] minusMax(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                         lengthAfterBreak = lengthAfterBreak.minusMax(el.getStretch());
    [javac]                                                            ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1493:
warning: [deprecation] minusMin(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                         lengthAfterBreak = lengthAfterBreak.minusMin(el.getShrink());
    [javac]                                                            ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1494:
warning: [deprecation] plusMax(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                         lengthAfterBreak = lengthAfterBreak.plusMax(el.getStretch());
    [javac]                                                            ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1565:
warning: [deprecation] plusMax(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                     unsuppressibleUnits = unsuppressibleUnits.plusMax(iStretchUnits);
    [javac]                                                              ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\BlockStackingLayoutManager.java:1566:
warning: [deprecation] minusMin(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                     unsuppressibleUnits = unsuppressibleUnits.minusMin(iShrinkUnits);
    [javac]                                                              ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\AbstractBreaker.java:888:
warning: [deprecation] plusMax(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                                 = lineNumberMaxAdjustment.plusMax(thisElement.getStretch());
    [javac]                                                          ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\AbstractBreaker.java:890:
warning: [deprecation] minusMin(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                                 = lineNumberMaxAdjustment.minusMin(thisElement.getShrink());
    [javac]                                                          ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\AbstractBreaker.java:907:
warning: [deprecation] plusMax(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                             spaceMaxAdjustment = spaceMaxAdjustment.plusMax(blockSpace.getStretch());
    [javac]                                                                    ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\layoutmgr\AbstractBreaker.java:908:
warning: [deprecation] minusMin(int) in org.apache.fop.traits.MinOptMax has been deprecated
    [javac]                             spaceMaxAdjustment = spaceMaxAdjustment.minusMin(blockSpace.getShrink());
    [javac]                                                                    ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\AbstractRenderer.java:212: warning:
[deprecation] startPageSequence(org.apache.fop.area.LineArea) in org.apache.fop.render.Renderer
has been deprecated
    [javac]     public void startPageSequence(LineArea seqTitle) {
    [javac]                 ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\afp\svg\AFPTextHandler.java:92: warning:
[deprecation] drawString(java.lang.String,float,float) in org.apache.xmlgraphics.java2d.TextHandler
has been deprecated
    [javac]     public void drawString(String text, float x, float y) throws IOException {
    [javac]                 ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\AbstractGraphics2DAdapter.java:151:
warning: [deprecation] paintImage(org.apache.fop.render.Graphics2DImagePainter,org.apache.fop.render.RendererContext,int,int,int,int)
in org.apache.fop.render.Graphics2DAdapter has been deprecated
    [javac]     public void paintImage(Graphics2DImagePainter painter,
    [javac]                 ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\AbstractImageHandlerGraphics2D.java:59:
warning: [deprecation] org.apache.fop.util.UnitConv in org.apache.fop.util has been deprecated
    [javac]         int bmw = (int)Math.ceil(UnitConv.mpt2px(targetDimension.getWidth(), resolution));
    [javac]                                  ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\AbstractImageHandlerGraphics2D.java:59:
warning: [deprecation] mpt2px(double,int) in org.apache.fop.util.UnitConv has been deprecated
    [javac]         int bmw = (int)Math.ceil(UnitConv.mpt2px(targetDimension.getWidth(), resolution));
    [javac]                                          ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\AbstractImageHandlerGraphics2D.java:60:
warning: [deprecation] org.apache.fop.util.UnitConv in org.apache.fop.util has been deprecated
    [javac]         int bmh = (int)Math.ceil(UnitConv.mpt2px(targetDimension.getHeight(),
resolution));
    [javac]                                  ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\AbstractImageHandlerGraphics2D.java:60:
warning: [deprecation] mpt2px(double,int) in org.apache.fop.util.UnitConv has been deprecated
    [javac]         int bmh = (int)Math.ceil(UnitConv.mpt2px(targetDimension.getHeight(),
resolution));
    [javac]                                          ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\ps\NativeTextHandler.java:104:
warning: [deprecation] drawString(java.lang.String,float,float) in org.apache.xmlgraphics.java2d.TextHandler
has been deprecated
    [javac]     public void drawString(String text, float x, float y) throws IOException {
    [javac]                 ^
    [javac] D:\progs\fop-trunk\src\java\org\apache\fop\render\rtf\rtflib\rtfdoc\RtfExternalGraphic.java:643:
warning: [deprecation] toURL() in java.io.File has been deprecated
    [javac]                 tmpUrl = new File (urlString).toURL ();
    [javac]                                              ^
    [javac] 28 warnings
    [mkdir] Created dir: D:\progs\fop-trunk\build\sandbox-classes
    [javac] Compiling 22 source files to D:\progs\fop-trunk\build\sandbox-classes
    [javac] D:\progs\fop-trunk\src\sandbox\org\apache\fop\render\svg\SVGDataUrlImageHandler.java:40:
warning: [deprecation] org.apache.fop.util.DataURLUtil in org.apache.fop.util has been deprecated
    [javac] import org.apache.fop.util.DataURLUtil;
    [javac]                           ^
    [javac] D:\progs\fop-trunk\src\sandbox\org\apache\fop\render\svg\SVGDataUrlImageHandler.java:82:
warning: [deprecation] org.apache.fop.util.DataURLUtil in org.apache.fop.util has been deprecated
    [javac]             String url = DataURLUtil.createDataURL(in, raw.getMimeType());
    [javac]                          ^
    [javac] D:\progs\fop-trunk\src\sandbox\org\apache\fop\render\svg\SVGDataUrlImageHandler.java:82:
warning: [deprecation] createDataURL(java.io.InputStream,java.lang.String) in org.apache.fop.util.DataURLUtil
has been deprecated
    [javac]             String url = DataURLUtil.createDataURL(in, raw.getMimeType());
    [javac]                                     ^
    [javac] 3 warnings




Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries


-----Original Message-----
From: Venkat Reddy [mailto:vanukuri.venkat@googlemail.com] 
Sent: Friday, April 09, 2010 10:28 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Trunk parsing error message (FO to PDF)

Hi,

Could you please attach the input FO file 'SRTest_Parts.fo'  to 
reproduce this error? If possible SVG as well...

Cheers,
Venkat.

Mario Madunic wrote:
> Finally got TortoiseSVN up and running and have checked out the trunk.
>
> My configuration is
> Java & JVM 1.6
> Ant 1.7
> Windows XP SP3
>
> Get a successful build message after running build.xml. (Have not touched any config
files) 
>
> Calling the FOP task in ANT with the following:
>
> <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
>   <classpath>
>     <fileset dir="d:/progs/fop-trunk/lib">
>       <include name="*.jar" />
>     </fileset>
>     <fileset dir="d:/progs/fop-trunk/build">
>       <include name="fop.jar" />
>       <include name="fop-hyph.jar" />
>     </fileset>
>   </classpath>
> </taskdef>
>
> How the FOP task is called:
>
> <fop format="application/pdf" outdir="d:/workDirs/publishingWorkflow/output" messagelevel="info"
userconfig=" d:/workDirs/publishingWorkflow/fopConfig/fopNewFlyer.xconf" force="true">
>   <fileset dir=" d:/workDirs/publishingWorkflow/output">
>     <include name="SRTest_Parts.fo" />
>   </fileset>
> </fop>
>
> Now I'm still using a config file from 0.94 and have font metric files all created via
0.94. Note: using .94 instead of .95 because of an issue with using an SVG as @background-image
in fo:region-body. Hoping this won't happen with the trunk.
>
> When I run my ANT build file to do my publishing workflow I receive the following error
message:
>
> (I'm probably doing something wrong.) Any insight will be appreciated.
>
> Thanks
>
> Marijan (Mario) Madunic
> Publishing Specialist
> New Flyer Industries
>
> ------------------------------------
>
> D:\workDirs\publishingWorkflow>ant
> Buildfile: build.xml
>
> theForm:
>
> partsToPDF:
>      [xslt] Processing D:\workDirs\publishingWorkflow\output\SRTest_Parts.xml to D:\workDirs\publishingWorkflow\temp\deleteMe.xml
>      [xslt] Loading stylesheet D:\workDirs\publishingWorkflow\xslt\pdfParts.xsl
>       [fop] log4j:WARN No appenders could be found for logger (org.apache.fop.util.ContentHandlerFactoryRegistry).
>       [fop] log4j:WARN Please initialize the log4j system properly.
>
> BUILD FAILED
> java.lang.NoSuchMethodError: org.apache.xmlgraphics.java2d.GraphicContext.<init>(Lorg/apache/xmlgraphics/java2d/GraphicContext;)V
>         at org.apache.fop.render.intermediate.IFGraphicContext.<init>(IFGraphicContext.java:50)
>         at org.apache.fop.render.intermediate.IFGraphicContext.clone(IFGraphicContext.java:56)
>         at org.apache.fop.render.intermediate.IFRenderer.saveGraphicsState(IFRenderer.java:632)
>         at org.apache.fop.render.intermediate.IFRenderer.startViewport(IFRenderer.java:885)
>         at org.apache.fop.render.intermediate.IFRenderer.startVParea(IFRenderer.java:878)
>         at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:289)
>         at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IFRenderer.java:731)
>         at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:249)
>         at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:230)
>         at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.java:580)
>         at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:114)
>         at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:312)
>         at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:167)
>         at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.makeNewPage(AbstractPageSequenceLayoutManager.java:284)
>         at org.apache.fop.layoutmgr.PageBreaker.handleBreakTrait(PageBreaker.java:538)
>         at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:143)
>         at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:132)
>         at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:337)
>         at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:85)
>         at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
>         at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
>         at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
>         at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
>         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
>         at net.sf.saxon.event.ContentHandlerProxy.endElement(ContentHandlerProxy.java:391)
>         at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:213)
>         at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:447)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>         at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
>         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>         at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:397)
>         at net.sf.saxon.event.Sender.send(Sender.java:156)
>         at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:32)
>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
>         at org.apache.fop.tools.anttasks.FOPTaskStarter.renderInputHandler(Fop.java:657)
>         at org.apache.fop.tools.anttasks.FOPTaskStarter.render(Fop.java:680)
>         at org.apache.fop.tools.anttasks.FOPTaskStarter.run(Fop.java:626)
>         at org.apache.fop.tools.anttasks.Fop.execute(Fop.java:368)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
>         at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at org.apache.tools.ant.Main.runBuild(Main.java:758)
>         at org.apache.tools.ant.Main.startAnt(Main.java:217)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>
> Total time: 14 seconds
> D:\workDirs\publishingWorkflow>
>
> --------------------------------------------------------------------
> Please consider the environment before printing this e-mail.
>
> CONFIDENTIALITY STATEMENT: This communication (and  any and all information or material
transmitted with this communication) is confidential, may be privileged and is intended only
for the use of the intended recipient. If you are not the intended recipient, any review,
retransmission, circulation, distribution, reproduction, conversion to hard copy, copying
or other use of this communication, information or material is strictly prohibited and may
be illegal. If you received this communication in error or if it is forwarded to you without
the express authorization of New Flyer, please notify us immediately by telephone or by return
email and permanently delete the communication, information and material from any computer,
disk drive, diskette or other storage device or media. Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>   


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


--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or material transmitted
with this communication) is confidential, may be privileged and is intended only for the use
of the intended recipient. If you are not the intended recipient, any review, retransmission,
circulation, distribution, reproduction, conversion to hard copy, copying or other use of
this communication, information or material is strictly prohibited and may be illegal. If
you received this communication in error or if it is forwarded to you without the express
authorization of New Flyer, please notify us immediately by telephone or by return email and
permanently delete the communication, information and material from any computer, disk drive,
diskette or other storage device or media. Thank you.


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


Mime
View raw message