NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #247 (closed defect: fixed)

Opened 2008-02-20T15:38:29-06:00

Last modified 2008-02-21T07:48:34-06:00

Sequential setId calls with SVSReader can throw an exception

Reported by: curtis Owned by: melissa
Priority: critical Milestone:
Component: bio-formats Severity: critical
Keywords: Cc:
Blocked By: Blocking:

Description

When calling setId iteratively on multiple SVS files, an IllegalArgumentException can be thrown:

curtis@monk:~$ java SequentialTest data/svs/samples/BreastCancer.svs data/svs/samples/Mammal\ Eye_001.svs 
Exception in thread "main" java.lang.IllegalArgumentException: Invalid series: 1
        at loci.formats.FormatReader.setSeries(FormatReader.java:475)
        at loci.formats.ImageReader.setSeries(ImageReader.java:386)
        at loci.formats.FileStitcher.initFile(FileStitcher.java:1004)
        at loci.formats.FileStitcher.setId(FileStitcher.java:230)
        at SequentialTest.main(SequentialTest.java:5)

See the attached sample program.

Attachments

SequentialTest.java (229 bytes) - added by curtis 2008-02-20T15:38:52-06:00.
Program for calling setId sequentially on the same format reader.

Change History

Changed 2008-02-20T15:38:52-06:00 by curtis

Program for calling setId sequentially on the same format reader.

comment:1 Changed 2008-02-21T07:48:34-06:00 by melissa

  • Status changed from new to closed
  • Resolution set to fixed