Hi Carsten,

   That exception is expected and should not cause that est to fail.
There's a fixed upper bound on how large a JFIF APP1 segment can be.
Writing EXIF data that exceeds this size constraint should fail.

Charles.



On Tue, Mar 4, 2008 at 4:00 AM, Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
> Hi Charles,
>
>  I stand corrected :) I had a wrong test setup (= the memory was still
>  too low). I changed our pom now, so the tests are run with 512m memory.
>  With this setting the tests pass.
>
>  However, this exception occurs, but it doesn't cause a failing test:
>  Error image:
>  
> /Users/cziegeler/Developer/workspaces/default/sanselan/src/test/data/images/jpg/1/Nikon
>  D50 - 2007.12.19.n.DSC_3656.JPG
>
>  Throwable:
>  
> (org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter$ExifOverflowException):2008-03-04
>  07:54:38:001
>  Throwable: APP1 Segment is too long: 65656
>
>          at
>  
> org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter.writeSegmentsReplacingExif(ExifRewriter.java:523)
>          at
>  
> org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter.updateExifMetadataLossless(ExifRewriter.java:384)
>          at
>  
> org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter.updateExifMetadataLossless(ExifRewriter.java:298)
>          at
>  
> org.apache.sanselan.sampleUsage.WriteExifMetadataExample.changeExifMetadata(WriteExifMetadataExample.java:150)
>          ...
>
>  Caught here:
>          at org.apache.sanselan.util.Debug.debug(Debug.java:623)
>          at
>  
> org.apache.sanselan.formats.jpeg.exif.WriteExifMetadataExampleTest.test(WriteExifMetadataExampleTest.java:67)
>          at
>  
> sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
>          ...
>
>
>
>  imageFile:
>  
> /Users/cziegeler/Developer/workspaces/default/sanselan/src/test/data/images/jpg/1/Oregon
>  Scientific DS6639 - DSC_0307.JPG
>  tempFile: /tmp/test4163.jpg
>
>
>  Carsten
>
>
>
>  Charles Matthew Chen wrote:
>  >    Very glad to hear it Carsten.  I'm looking forward to our first release.
>  >
>  >    Which unit test is failing for you?  Can you give me any more
>  > information about this?
>  >
>  >    Yes, the unit tests can require more memory than the default
>  > setting.  This depends mostly on the size and nature of your test
>  > image library.
>  >
>  > Charles.
>  >
>  >
>  > On Mon, Mar 3, 2008 at 1:41 PM, Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
>  >> Hi,
>  >>
>  >>  I assembled a test release of current trunk to give you an idea of what
>  >>  we currently have:
>  >>
>  >>  http://people.apache.org/~cziegeler/test/sanselan/
>  >>
>  >>  I think we can use this as a base for further discussions about how our
>  >>  release should look like.
>  >>
>  >>  Please note that currently one junit test case is failing for me and I
>  >>  need to increase the jvm memory for maven to be able to run the tests.
>  >>
>  >>  Carsten
>  >>  --
>  >>  Carsten Ziegeler
>  >>  [EMAIL PROTECTED]
>  >>
>  >
>
>
>  --
>
>
> Carsten Ziegeler
>  [EMAIL PROTECTED]
>

Reply via email to