Re: OSGI malformed xlsx
Andi - thank you. I downloaded the latest xalan jars and included them in the OSGI bundle and while I am still having issues, I've made some progress. So this begs the question: what are *all* of the required jars for the POI to work? It's obviously more than what are listed on the components overview page of the POI site. -- View this message in context: http://apache-poi.1045710.n5.nabble.com/OSGI-malformed-xlsx-tp5725731p5725829.html Sent from the POI - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org
Re: OSGI malformed xlsx
Can you strip down your use case to a small example project? I have the impression that there are also other problems like an old xalan version. I haven't done much with OSGi and I guess, if I create an example project myself, I might hit other errors ... Andi - To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org
Re: OSGI malformed xlsx
Well, I have tried the 3.16-beta1 and called the method in the FAQ as well, but continue to have the same issue. Completely stumped. At its most basic, where would this come from: when properly formatted strings are all in the form of: (single quotes over double quotes) If somebody could help me with that little piece, maybe that could help me to dig deeper into this issue... -- View this message in context: http://apache-poi.1045710.n5.nabble.com/OSGI-malformed-xlsx-tp5725731p5725797.html Sent from the POI - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org
Re: OSGI malformed xlsx
Yes, I have. I have attached a sample, blank test316.xlsx so you can see the end result on 3.16-beta1 (same with and without calling the code as in FAQ) I had high hopes for that being the same issue, but it appears it's not (or that I am doing something wrong... which is more likely I'm sure!) -- View this message in context: http://apache-poi.1045710.n5.nabble.com/OSGI-malformed-xlsx-tp5725731p5725748.html Sent from the POI - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org
Re: OSGI malformed xlsx
adk wrote > Do I need to do something special when using 3.16? Have you called the method mentioned in the FAQ or the linked bug entry? -- View this message in context: http://apache-poi.1045710.n5.nabble.com/OSGI-malformed-xlsx-tp5725731p5725739.html Sent from the POI - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org
Re: OSGI malformed xlsx
I did see that issue and downloaded and compiled 3.16-beta1 yesterday which appears to include that fix. However, the issue is still there when loading the normal way. Do I need to do something special when using 3.16? -- View this message in context: http://apache-poi.1045710.n5.nabble.com/OSGI-malformed-xlsx-tp5725731p5725737.html Sent from the POI - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org
Re: OSGI malformed xlsx
Have a look at the FAQ [1] - does it work? [1] http://poi.apache.org/faq.html#faq-N1029C
Re: OSGI malformed xlsx
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 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): > > > > ContentType="application/vnd.openxmlformats-package.relationships+xml"/> > > ContentType="application/vnd.openxmlformats-officedocument. > extended-properties+xml"/> > ContentType="application/vnd.openxmlformats-package.core-properties+xml"/> > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.sharedStrings+xml"/> > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.styles+xml"/> > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.sheet.main+xml"/> > > > It should read as: > > > xmlns="http://schemas.openxmlformats.org/package/2006/content-types > "> Extension="rels" > ContentType="application/vnd.openxmlformats-package. > relationships+xml"/> Extension="xml" ContentType="application/xml"/> PartName="/xl/workbook.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.sheet.main+xml"/> PartName="/xl/worksheets/sheet1.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.worksheet+xml"/> PartName="/xl/theme/theme1.xml" > ContentType="application/vnd.openxmlformats-officedocument. > theme+xml"/> PartName="/xl/styles.xml" > ContentType="application/vnd.openxmlformats-officedocument. > spreadsheetml.styles+xml"/> PartName="/docProps/core.xml" > ContentType="application/vnd.openxmlformats-package.core- > properties+xml"/> PartName="/docProps/app.xml" > ContentType="application/vnd.openxmlformats-officedocument. > extended-properties+xml"/> > > 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: user-unsubscr...@poi.apache.org > For additional commands, e-mail: user-h...@poi.apache.org > >