poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carmen Pancerella <car...@ca.sandia.gov>
Subject Re: ArrayIndexOutOfBoundsException when reading custom properties
Date Mon, 03 Apr 2006 17:41:31 GMT
This is being thrown in the POI code -- Line 68 is simply the 
catch(Exception ex) that throws it back from the Listener-- this 
exception is caught with this code:

 public void processPOIFSReaderEvent(POIFSReaderEvent event)
        {
            PropertySet ps = null;
            try
            {
                ps = PropertySetFactory.create(event.getStream());
            }
            catch (NoPropertySetStreamException ex)
            {
               return;
            }
            catch (Exception ex)
            {
                throw new RuntimeException  // THIS IS WHERE IT'S THROWN
                    ("Property set stream \"" +
                     event.getPath() + event.getName() + "\": " + ex);
            }

Carmen


> 
> 
> --=-frcm08onToMAJk8hUt0V
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
> 
> Carmen,
> 
> the stacktrace shows that the exception is not thrown in any POI code
> but in the the
> org.scidac.cmcs.apps.mimetypedetermination.excel.ExcelMimeType
> $MyPOIFSReaderListener.processPOIFSReaderEvent class. Look at line 68 of
> the file ExcelMimeType.java what is going wrong.
> 
> Best regards
> Rainer Klute
> 
>                            Rainer Klute IT-Consulting GmbH
>   Dipl.-Inform.
>   Rainer Klute             E-Mail:  klute@rainer-klute.de
>   K=C3=B6rner Grund 24          Telefon: +49 172 2324824
> D-44143 Dortmund           Telefax: +49 231 5349423
> 
> Public key fingerprint: E4E4386515EE0BED5C162FBB5343461584B5A42E
> 
> 
> Am Montag, den 03.04.2006, 08:10 -0700 schrieb Carmen Pancerella:
> > Sorry.  Here it is.
> >=20
> > Caused by: java.lang.RuntimeException: Property set stream
> > "/DocumentSummaryInformation": java.lang.ArrayIndexOutOfBoundsException: =
> 8
> >         at
> > org.scidac.cmcs.apps.mimetypedetermination.excel.ExcelMimeType$MyPOIFSRea=
> derListener.processPOIFSReaderEvent(ExcelMimeType.java:68)
> >         at
> > org.apache.poi.poifs.eventfilesystem.POIFSReader.processProperties(POIFSR=
> eader.java:260)
> >         at
> > org.apache.poi.poifs.eventfilesystem.POIFSReader.read(POIFSReader.java:96=
> )
> >         at
> > org.scidac.cmcs.apps.mimetypedetermination.excel.ExcelMimeType.GetMimeTyp=
> e(ExcelMimeType.java:37)
> >         ... 42 more
> >=20
> >=20
> > > Am Donnerstag, den 30.03.2006, 10:33 -0800 schrieb Carmen Pancerella:
> > > > I'm getting a Java ArrayIndexOutOfBounds exception from the POI
> > > > library, and I don't know why.
> > >=20
> > > You didn't provide the exception's stacktrace, and I don't know why. :-=
> )
> > >=20
> > > Best regards
> > > Rainer Klute
> > >=20
> > >                            Rainer Klute IT-Consulting GmbH
> > >   Dipl.-Inform.
> > >   Rainer Klute             E-Mail:  klute@rainer-klute.de
> > >   K=3DC3=3DB6rner Grund 24          Telefon: +49 172 2324824
> > > D-44143 Dortmund           Telefax: +49 231 5349423
> > >=20
> > > Public key fingerprint: E4E4386515EE0BED5C162FBB5343461584B5A42E
> > >=20
> > > --=3D-xuZOb616QdoXIZ0qciec
> > > Content-Type: application/pgp-signature; name=3Dsignature.asc
> > > Content-Description: This is a digitally signed message part
> > >=20
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.4.0 (GNU/Linux)
> > >=20
> > > iD8DBQBELCkwU0NGFYS1pC4RAlCVAKCEnEQJbc1AxKbRnh3A57VCdjEAKgCgu9K6
> > > OQBF2xGv3mZh7UUz+BOxAtM=3D
> > > =3DftIq
> > > -----END PGP SIGNATURE-----
> > >=20
> > > --=3D-xuZOb616QdoXIZ0qciec--
> > >=20
> > >=20
> >=20
> > ---------------------------------------------------------------------
> > Carmen Pancerella, PhD                           carmen@ca.sandia.gov
> > Distributed Systems Research & Development
> > Sandia National Laboratories                    Phone: (617) 630-0316
> > P.O. Box 969, Mailstop 9152                 Voicemail: (925) 294-3538
> > Livermore, CA 94551-0969                          Fax: (508) 300-8815
> > ---------------------------------------------------------------------
> >=20
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
> > The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/
> 
> 
> --=-frcm08onToMAJk8hUt0V
> Content-Type: application/pgp-signature; name=signature.asc
> Content-Description: This is a digitally signed message part
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
> 
> iD8DBQBEMVeRU0NGFYS1pC4RAjrwAJ9LwIiiiKQMR6CNXEmVY/lNC4FjWwCfZZAW
> pYXNHVRkybPUOyJgraF6DKE=
> =zXQY
> -----END PGP SIGNATURE-----
> 
> --=-frcm08onToMAJk8hUt0V--
> 
> 

---------------------------------------------------------------------
Carmen Pancerella, PhD                           carmen@ca.sandia.gov
Distributed Systems Research & Development
Sandia National Laboratories                    Phone: (617) 630-0316
P.O. Box 969, Mailstop 9152                 Voicemail: (925) 294-3538
Livermore, CA 94551-0969                          Fax: (508) 300-8815
---------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Mime
View raw message