Hello, Could it be the same problem than this bug? http://stackoverflow.com/questions/38791416/apache-poi-felix-xslf-table-is-empty https://bz.apache.org/bugzilla/show_bug.cgi?id=60226
Cheers, Guillaume On Wed, Nov 23, 2016 at 1:53 AM, adk <[email protected]> wrote: > When using POI version 3.11 and greater (up to 3.16-BETA) in an OSGI > package, > poi is creating xlsx files that are missing namespaces. > > For example, the "[Content_Types].xml file reads as (notice the single > quotes as well on first line): > > <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?> > <Types> > <Default Extension="rels" > ContentType="application/vnd.openxmlformats-package.relationships+xml"/> > <Default Extension="xml" ContentType="application/xml"/> > <Override PartName="/docProps/app.xml" > ContentType="application/vnd.openxmlformats-officedocument. > extended-properties+xml"/> > <Override PartName="/docProps/core.xml" > ContentType="application/vnd.openxmlformats-package.core-properties+xml"/> > <Override PartName="/xl/sharedStrings.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.sharedStrings+xml"/> > <Override PartName="/xl/styles.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.styles+xml"/> > <Override PartName="/xl/workbook.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.sheet.main+xml"/> > </Types> > > It should read as: > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <Types > xmlns="http://schemas.openxmlformats.org/package/2006/content-types > "><Default > Extension="rels" > ContentType="application/vnd.openxmlformats-package. > relationships+xml"/><Default > Extension="xml" ContentType="application/xml"/><Override > PartName="/xl/workbook.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.sheet.main+xml"/><Override > PartName="/xl/worksheets/sheet1.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.worksheet+xml"/><Override > PartName="/xl/theme/theme1.xml" > ContentType="application/vnd.openxmlformats-officedocument. > theme+xml"/><Override > PartName="/xl/styles.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.styles+xml"/><Override > PartName="/docProps/core.xml" > ContentType="application/vnd.openxmlformats-package.core- > properties+xml"/><Override > PartName="/docProps/app.xml" > ContentType="application/vnd.openxmlformats-officedocument. > extended-properties+xml"/></Types> > > We are using this in a JVM scripting language and if we use the traditional > class loader it works, however with OSGI it breaks as above. > > > > -- > View this message in context: http://apache-poi.1045710.n5. > nabble.com/OSGI-malformed-xlsx-tp5725731.html > Sent from the POI - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
