Hi Courtney,
Yes, I think I have found the problem, just yesterday.
Originally, I installed the Java Advanced Imaging (JAI) I/O tools and Imaging
API to our current jre at the time.
We run RHEL 5 and the auto (minor) updates to the jre did not bring across the
JAI installed libs. I'll be testing if this is the problem within the next
month but I'm pretty sure it is. I'll post back to the list with results. I
noticed that there is another way to install the JAI based on classpath rather
than directly into the jre - this may be the way to go to avoid future java
updates wiping out your setup.
Hope this helps.
Kind regards
Gary
/**
* @author Gary Browne
* @position Development Programmer
* @location Sydney University Library
* @return 9351 5946
* @deprecated Not yet
* @since 1968
**/
-----Original Message-----
From: Courtney Grimland [mailto:griml...@uta.edu]
Sent: Sat 9/12/2009 06:21
To: dspace-tech@lists.sourceforge.net
Cc: Gary Browne
Subject: Re: [Dspace-tech] Media Filter for TIFFs - NullPointer Exception
Did you ever find a solution to this? I'm experiencing the same
problem, though I know it worked last time I imported TIFF images into
the repo (a year ago).
On Mon, 2009-08-03 at 19:06 -0500, Gary Browne wrote:
> Hi all,
>
> Our TIFF mediafilter has stopped working. I have tif, tiff, TIF, and
> TIFF extensions associated with the TIFF bitstream format in the
> registry. In dspace.cfg, I have added TIFF to the list of formats
> filtered by both the JPEGFilter and the BrandedPreviewJPEGFilter:
>
> filter.org.dspace.app.mediafilter.JPEGFilter.inputFormats = BMP, GIF,
> JPEG, image/png, TIFF
> filter.org.dspace.app.mediafilter.BrandedPreviewJPEGFilter.inputFormats
> = BMP, GIF, JPEG, image/png, TIFF
>
> I have both the JAI Imaging API and JAI Image I/O Tools installed.
>
> When I run the filter-media script I get the following exception - seems
> to be choking on the getWidth(null) method call of the BufferedImage
> object:
>
> Item Handle: 2123/5327
> Bundle Name: ORIGINAL
> File Size: 18349776
> Checksum: b8ad2e5481ab9a2666c15b01c43cda3a (MD5)
> Asset Store: 0
> java.lang.NullPointerException
> java.lang.NullPointerException
> at
> org.dspace.app.mediafilter.JPEGFilter.getDestinationStream(JPEGFilter.ja
> va:108)
> at
> org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilt
> erManager.java:652)
> at
> org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilte
> rManager.java:554)
> at
> org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterMana
> ger.java:504)
> at
> org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilt
> erManager.java:472)
> at
> org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(Media
> FilterManager.java:425)
> at
> org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.ja
> va:359)
> ERROR filtering, skipping bitstream:
>
> Item Handle: 2123/5327
> Bundle Name: ORIGINAL
> File Size: 18349776
> Checksum: b8ad2e5481ab9a2666c15b01c43cda3a (MD5)
> Asset Store: 0
> java.lang.NullPointerException
> java.lang.NullPointerException
> at
> org.dspace.app.mediafilter.BrandedPreviewJPEGFilter.getDestinationStream
> (BrandedPreviewJPEGFilter.java:119)
> at
> org.dspace.app.mediafilter.MediaFilterManager.processBitstream(MediaFilt
> erManager.java:652)
> at
> org.dspace.app.mediafilter.MediaFilterManager.filterBitstream(MediaFilte
> rManager.java:554)
> at
> org.dspace.app.mediafilter.MediaFilterManager.filterItem(MediaFilterMana
> ger.java:504)
> at
> org.dspace.app.mediafilter.MediaFilterManager.applyFiltersItem(MediaFilt
> erManager.java:472)
> at
> org.dspace.app.mediafilter.MediaFilterManager.applyFiltersAllItems(Media
> FilterManager.java:425)
> at
> org.dspace.app.mediafilter.MediaFilterManager.main(MediaFilterManager.ja
> va:359)
> ERROR filtering, skipping bitstream:
>
> We are running Sun Java 1.5.0_18 and a JAI installation from September
> 2008 on RHEL 5 AS.
>
> Is there a size limit to what the media filter can handle? These images
> are generally less than 1MB. Could it possibly be due to a (now)
> outdated JAI installation? Or perhaps an incompatibility between current
> java version and JAI version?
>
> BTW, I've tested filtering a tif image that worked before (on the 4th
> November 2008) and it failed. Anyone have any other ideas or has anyone
> come across this problem with tiffs before?
>
> Thanks a lot.
> Gary
>
>
> Gary Browne
> Development Programmer
> Library IT Services
> University of Sydney
> ph: 9351-5946
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech