DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2012-04-01 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Glenn Adams gl...@skynav.com changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

--- Comment #9 from Glenn Adams gl...@skynav.com 2012-04-01 06:18:40 UTC ---
batch transition to closed; if someone wishes to restore one of these to
resolved in order to perform a verification step, then feel free to do so

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2011-10-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

--- Comment #8 from Marc Lang marc.l...@ggc.scot.nhs.uk 2011-10-14 16:21:31 
UTC ---
I am getting this error using the below ANT task.

?xml version=1.0 encoding=UTF-8?
project name=FOPAnt default=generate-pdf-from-transform basedir=.

property name=fop.home
value=D:\Dev\Java\libraries\fop-1.0-bin\fop-1.0/

taskdef name=fop classname=org.apache.fop.tools.anttasks.Fop
  classpath
fileset dir=${fop.home}/lib
  include name=*.jar/
/fileset
fileset dir=${fop.home}/build
  include name=*.jar/
/fileset

  /classpath
/taskdef


target name=generate-pdf-from-transform description=Generates a single PDF
file from an XSLT stylesheet

   fop format=image/tiff force=true
userconfig=D:\Dev\Java\FopConverter\workspace\FopConverterService\fop.xconf
   
xmlfile=D:\Dev\Java\FopConverter\workspace\TestFiles\EDIS_SCIDischarge.xml
xsltfile=D:\Dev\Java\FopConverter\workspace\Stylesheets\EDIS.fo
   
outfile=D:\Dev\Java\FopConverter\workspace\FopConverterService\something.tif
/ 

/target
/project



As you can see, the contents of D:\Dev\Java\libraries\fop-1.0-bin\fop-1.0\build
are included in the CLASSPATH, which includes jai_imageio.jar

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2011-10-14 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Marc Lang marc.l...@ggc.scot.nhs.uk changed:

   What|Removed |Added

 CC||marc.l...@ggc.scot.nhs.uk

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2010-09-05 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Murthy murthy.m...@caprusit.com changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||FIXED

--- Comment #7 from Murthy murthy.m...@caprusit.com 2010-09-05 02:31:43 EDT 
---
(In reply to comment #6)
 Should have thought about it earlier. We're talking about TIFF export, so
 another work-around: Install JAI ImageIO Tools to give ImageIO a TIFF codec
 which it hasn't by default.
 http://jai-imageio.dev.java.net/
 So, I guess that's an important clue. Could it be that you had JAI ImageIO
 Tools installed but didn't add that when upgrading to FOP 1.0? Otherwise, I
 still can't explain that the error should have appeared when switching to FOP
 1.0.

Hi Maerki,
Yes you are right, JAI ImageIO tools were missing from my classpath which
results in error.
After placing the JAI ImageIO tool, able to generate the TIFF successfully.

Thanks for all your help.

Thanks
Murthy

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2010-09-02 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Jeremias Maerki jerem...@apache.org changed:

   What|Removed |Added

 CC||ruud.verd...@pinkroccade.nl

--- Comment #3 from Jeremias Maerki jerem...@apache.org 2010-09-02 02:59:19 
EDT ---
*** Bug 49727 has been marked as a duplicate of this bug. ***

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2010-09-02 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Jeremias Maerki jerem...@apache.org changed:

   What|Removed |Added

Version|0.95|1.0

--- Comment #4 from Jeremias Maerki jerem...@apache.org 2010-09-02 03:10:21 
EDT ---
The actual exception:

case DataBuffer.TYPE_INT:
case DataBuffer.TYPE_FLOAT:
if(sampleSize[0] != 32) {
throw new Error(TIFFImageEncoder4);
}

Ugly as hell but this has been so since TIFFImageEncoder has been introduced
into Batik. Anyway, the error probably happens because INT is used as sample
carrier but I assume the sample size is only 24 bits.

One change that happened from 0.95 to 1.0 was the introduction of the new
intermediate format so that TIFF output is now handled by TIFFDocumentHandler
instead of TIFFRenderer by default, but both classes use the same ImageWriter
API from XML Graphics Commons. The default color type (RGBA) has remained the
same. So I'm not sure where this comes from. I'll have to try to reproduce.

A possibility in the meantime is to try different color format settings:
http://xmlgraphics.apache.org/fop/1.0/output.html#bitmap-configuration

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2010-09-02 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Jeremias Maerki jerem...@apache.org changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #5 from Jeremias Maerki jerem...@apache.org 2010-09-02 03:21:27 
EDT ---
Ok, on my side, the ImageIO implementation for ImageWriter is used which
doesn't show this problem. If I disable the ImageIO implementation the internal
codec becomes active and fails on the default configuration settings with said
exception. Now, the question is why the ImageIO implementation isn't used.
Maybe it has to do with Bug 49696 but I don't really think so. So my next
question:

What JVM are running this on so you get this result? That might help me figure
out why the internal codecs are selected over the ImageIO implementations.

In this light, another work-around presents itself:
In xmlgraphics-commons.jar you can edit
META-INF/services/org.apache.xmlgraphics.image.writer.ImageWriter
and remove the following entries:
org.apache.xmlgraphics.image.writer.internal.PNGImageWriter
org.apache.xmlgraphics.image.writer.internal.TIFFImageWriter
org.apache.xmlgraphics.image.writer.internal.JPEGImageWriter

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2010-09-02 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

--- Comment #6 from Jeremias Maerki jerem...@apache.org 2010-09-02 03:36:12 
EDT ---
Should have thought about it earlier. We're talking about TIFF export, so
another work-around: Install JAI ImageIO Tools to give ImageIO a TIFF codec
which it hasn't by default.

http://jai-imageio.dev.java.net/

So, I guess that's an important clue. Could it be that you had JAI ImageIO
Tools installed but didn't add that when upgrading to FOP 1.0? Otherwise, I
still can't explain that the error should have appeared when switching to FOP
1.0.

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2010-08-02 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Pascal Sancho pascal.san...@takoma.fr changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #1 from Pascal Sancho pascal.san...@takoma.fr 2010-08-02 03:08:05 
EDT ---
no exception log is attached, please give further information.

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2010-08-02 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Murthy murthy.m...@caprusit.com changed:

   What|Removed |Added

 Status|NEEDINFO|NEW

--- Comment #2 from Murthy murthy.m...@caprusit.com 2010-08-02 04:44:51 EDT 
---
I'm sorry that the attachment is not uploaded, sorry for the inconvenience
caused.

Below is the exception
==
java.lang.Error: TIFFImageEncoder4
at
org.apache.xmlgraphics.image.codec.tiff.TIFFImageEncoder.encode(TIFFImageEncoder.java:245)
at
org.apache.xmlgraphics.image.codec.tiff.TIFFImageEncoder.finishMultiple(TIFFImageEncoder.java:186)
at
org.apache.xmlgraphics.image.writer.internal.TIFFImageWriter$TIFFMultiImageWriter.close(TIFFImageWriter.java:206)
at
org.apache.fop.render.bitmap.AbstractBitmapDocumentHandler.endDocument(AbstractBitmapDocumentHandler.java:174)
at
org.apache.fop.render.intermediate.IFRenderer.stopRenderer(IFRenderer.java:285)
at
org.apache.fop.area.RenderPagesModel.endDocument(RenderPagesModel.java:256)
at
org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:309)
at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:164)
at
net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:274)
at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:90)
at
net.sf.saxon.event.ReceivingContentHandler.endDocument(ReceivingContentHandler.java:218)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.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:371)
at net.sf.saxon.event.Sender.send(Sender.java:185)
at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:29)


Note: xml-apis-ext-1.3.04.jar it is also part of core Jars

Thanks
MVVR Murthy

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


DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

2010-07-31 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

Murthy murthy.m...@caprusit.com changed:

   What|Removed |Added

   Severity|normal  |critical

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