Writing workbooks with linked workbooks using XSSFWorkbook

2016-12-27 Thread Jörn Franke
Dear all, I am currently writing an open source library for reading/writing office files on Hadoop/Spark/Hive/etc. The code is on Github and an official release in form of a library on maven central will follow soon. The Excel files will be supported by the Apache POI library (3.15). So far everyt

Re: Writing workbooks with linked workbooks using XSSFWorkbook

2016-12-27 Thread Jörn Franke
There is already a bug report, see my message. > On 27 Dec 2016, at 17:15, Murphy, Mark wrote: > > If you create an issue in bugzilla with a unit test, It will be easier to get > that fixed. > > -Original Message- > From: Jörn Franke [mailto:jornfra...@gmail.com] > Sent: Tuesday, De

Re: Writing workbooks with linked workbooks using XSSFWorkbook

2017-01-03 Thread Jörn Franke
, Dominik Stadler wrote: > Hi, > > Bug 60219 was not fixed yet, but it is now. > > Can you re-try with a recent build from trunk or use the binaries from > https://builds.apache.org/view/POI/job/POI-DSL-1.6/65/ when it finishes. > > Thanks... Dominik. > > On Tue, Dec 27

Re: Writing workbooks with linked workbooks using XSSFWorkbook

2017-01-03 Thread Jörn Franke
/src/test/java/org/zuinnote/hadoop/office/format/mapreduce/OfficeFormatHadoopExcelTest.java Go to the fileformat. Run gradle clean build On Tue, Jan 3, 2017 at 9:03 PM, Jörn Franke wrote: > Hi, > > sorry I was a little bit late. I tried with 82 and still the s

Using Apache POI on Hadoop/Spark

2017-01-08 Thread Jörn Franke
Dear all, I released a first version of an open source library that uses Apache POI to read/write Excel files on Hadoop/Spark/etc.: https://snippetessay.wordpress.com/2017/01/08/readingwriting-excel-documents-with-the-hadoopoffice-library-on-hadoop-and-spark-first-release/ Feel free to comment o

Re: Writing workbooks with linked workbooks using XSSFWorkbook

2017-01-08 Thread Jörn Franke
g on this as far as I see, though. Patches are always welcome if you > managed to take a closer look yourself. > > Dominik. > >> On Tue, Jan 3, 2017 at 9:06 PM, Jörn Franke wrote: >> >> oh btw. you do not need a Hadoop installation to run the tests, they are >&

Re: Regarding password protection for HSSFWorkbook(In Memory).

2017-01-14 Thread Jörn Franke
Only 3.16 supports encryption for HSSF. You have to wait until it is released to get a stable version. > On 14 Jan 2017, at 04:49, Pavan Kumar wrote: > > Hi, > > I have seen below statement in > 20 November 2016 - POI 3.16-beta1 available ( > https://poi.apache.org/download.html)This release i

Re: Using Apache POI on Hadoop/Spark

2017-01-22 Thread Jörn Franke
> > I have now added a link to it at > http://poi.apache.org/related-projects.html#HadoopOffice, let me know if > you would like to add some more project-description there. > > Dominik. > >> On Sun, Jan 8, 2017 at 12:11 PM, Jörn Franke wrote: >> >> Dear al

Re: Using Apache POI on Hadoop/Spark

2017-01-22 Thread Jörn Franke
SF worksheet > option, extremely large exports do cause some headaches with Xml related > issues. It would be awesome if I could find a way to break the writing piece > up as well > > -Original Message- > From: "Jörn Franke" > Sent: ‎1/‎22/‎2017 1:46 PM &

Re: ClassCastException while opening XLSX files

2017-01-25 Thread Jörn Franke
Might be that one dependency loads a different version of the parser? > On 25 Jan 2017, at 10:04, Christian Castelli > wrote: > > Hi all, > when I deploy my web application on a different machine other than mine I > receive this Exception when I try to open XLSX files with > > Workbook wb =

Re: An error when I use poi3.15 in a resin4 web applicatoin

2017-01-29 Thread Jörn Franke
Are you using a build tool (gradle, maven,?)? If so can you please post the build script? Without a build tool you will always get these kinds of messages for any library. > On 27 Jan 2017, at 01:32, > wrote: > > jar - To u

Re: Apache POI and WIndows Server 2012 R2

2017-02-17 Thread Jörn Franke
Is it sure to be related to Apache POI or some of your own code? Have you configured Input and Outputbuffers correctly? Are all input and outputstreams closed? Is there maybe an exception that you do not log? Is it a multi-thread environment and threads are isolated from each other ? > On 18 Fe

Re: new XWPFDocument(fis) is blocked

2017-05-17 Thread Jörn Franke
Have you tried another file? How was this file created? Maybe it is broken in a very weird way. > On 18. May 2017, at 04:26, xjtuzxh wrote: > > Thanks for your reply > > I have added log output, as follow: > writer = new BufferedWriter(new FileWriter(textFile)); > InputStream is = new FileInp

Re: Pivot Table - Collapse Entire Field

2017-06-14 Thread Jörn Franke
https://poi.apache.org/spreadsheet/limitations.html > On 14. Jun 2017, at 18:19, Matthew Stiles wrote: > > Hi there, > > I asked about this on StackOverflow, and haven't received any answers yet, > so I thought I would ask here as well. > > Does POI support the same functionality that is avail

Re: excel processing differences

2017-06-15 Thread Jörn Franke
I personally use the workbook factory to open encrypted documents: this.currentWorkbook=WorkbookFactory.create(inputStream, password) Cf here https://github.com/ZuInnoTe/hadoopoffice/blob/master/fileformat/src/main/java/org/zuinnote/hadoop/office/format/common/parser/MSExcelParser.java > On 15.

Re: excel processing differences

2017-06-15 Thread Jörn Franke
Additionally I recommend to upgrade to POI 3.15 or better higher due to security flaws found in previous versions. > On 15. Jun 2017, at 16:34, Jörn Franke wrote: > > I personally use the workbook factory to open encrypted documents: > this.currentWorkbook=WorkbookFactory.create

Re: Apache POI : Problem with Excel updating

2017-07-09 Thread Jörn Franke
You need to provide more source code so that we can help you... Sometimes excel formulates formula results as General/Text and not number. This would be one possible out of several explanations. > On 9. Jul 2017, at 17:51, Javen O'Neal wrote: > > What version of POI are you using? > > What is

Re: download only part of xlsx-file to obtain column header

2017-07-18 Thread Jörn Franke
You mean download or read? You can use the streaming / event API for low footprint reading > On 18. Jul 2017, at 22:37, oogolov wrote: > > Is it possible to download only part of huge excel file to obtain column > headers and first 10 records? > > > > -- > View this message in context: > ht

Re: Getting the cell contents

2017-08-02 Thread Jörn Franke
You need to evaluate the formula in case no cached value is stored. formulaEvaluator = workbook.getCreationHelper().createFormulaEv > formatter.formatCellValue(cell,formulaEvaluator) C34 could also be empty > On 2. Aug 2017, at 23:41, Hehabr wrote: > > Output in Console : > .

Re: XSSFWorkbook throws outofMemoryError

2018-01-23 Thread Jörn Franke
50 mb compressed can easily be several hundred MBs uncompressed. Especially with Java Datentypes. You should increase the memory by at least 2 other GB, if you want to stay with your current solution. Depending on your workbook structure you could skip reading sheets which are not relevant or j

Re: Loading/closing an excel took too much time

2018-02-05 Thread Jörn Franke
Load them in parallel ... multiple cores alone will not help you have to create threads of which each of them loads one or more files (depending on your use case). BTW your code does not load linked workbooks or evaluated formulas linked to other workbooks. > On 5. Feb 2018, at 11:05, Chen You

Re: Migrating from 3.14 to 3.17 and JDK7 to JDK9: Issues with Package accessibility:

2018-02-07 Thread Jörn Franke
I think only poi 4.0 officially supports JDK 8 only and not JDK7 anymore. Poi 3.17 supports 6,7,8. I am not sure if Poi is jdk 9 ready rested yet. Maybe the upcoming release 4.0 will be but the release manager can give you some definitive answer. Do you need any specific jdk9 feature ? > On 7.

Re: Where to find the APIs in POI for reading the invisible digital signature info in Office Documents?

2018-09-12 Thread Jörn Franke
The private key will not be in the Excel file - because it is private. You may find the public key. However, if your original purpose is signature verification then why not use the POI functions to verify it: http://poi.apache.org/encryption.html > On 13. Sep 2018, at 05:09, 许 秋熹 wrote: > > Hi

POI 4.0.0 issues with new commons-compress library "InputStream of class [..] is not implementing InputStreamStatistics"

2018-09-29 Thread Jörn Franke
Dear all, as part of the HadoopOffice library ( https://github.com/zuinnote/hadoopoffice/wiki) we provide the functionality to read office documents, such as MS Excel, on Big Data platforms, such as Hadoop/Hive/Spark/Flink. I want to release a new version supporting POI 4.0.0, but I have one rema

Re: POI 4.0.0 issues with new commons-compress library "InputStream of class [..] is not implementing InputStreamStatistics"

2018-09-29 Thread Jörn Franke
Don't worry, I guess it was too late in the evening. I simply shade the dependency to commons-compress and everything seems to work (and I still can keep the POI integrated security mechanisms). Thanks btw. for 4.0.0 On Sat, Sep 29, 2018 at 11:54 PM Jörn Franke wrote: > Dear all, > &

Re: POI 4.0.0 issues with new commons-compress library "InputStream of class [..] is not implementing InputStreamStatistics"

2018-09-29 Thread Jörn Franke
/users will need to shade the dependencies for their application, but I provide examples, so it is not such a big issue to change. best regards On Sun, Sep 30, 2018 at 12:43 AM Nick Burch wrote: > On Sat, 29 Sep 2018, Jörn Franke wrote: > > as part of the HadoopOffice library (

Not on Android: Provider com.bea.xml.stream.EventFactory not found

2018-09-30 Thread Jörn Franke
Hi, I get the following exception when I run my POI based application on a certain platform (Apache Flink): javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.EventFactory not found This is not on Android and it is POI 4.0.0 using JDK8. The same code runs fine on other plat

Re: Not on Android: Provider com.bea.xml.stream.EventFactory not found

2018-09-30 Thread Jörn Franke
I should add that this used to work with Apache POI 3.17 On Sun, Sep 30, 2018 at 6:57 PM Jörn Franke wrote: > Hi, > > I get the following exception when I run my POI based application on a > certain platform (Apache Flink): > > javax.xml.stream.FactoryConfigurat

Re: Not on Android: Provider com.bea.xml.stream.EventFactory not found

2018-09-30 Thread Jörn Franke
small correction, it happens alsol while reading On Sun, Sep 30, 2018 at 8:53 PM Jörn Franke wrote: > I should add that this used to work with Apache POI 3.17 > > On Sun, Sep 30, 2018 at 6:57 PM Jörn Franke wrote: > >> Hi, >> >> I get the following exception when

Re: Not on Android: Provider com.bea.xml.stream.EventFactory not found

2018-09-30 Thread Jörn Franke
it is solved. I used a wrong merge strategy when building the fatjar and discarded all MANI-FEST ... On Sun, Sep 30, 2018 at 9:27 PM Jörn Franke wrote: > small correction, it happens alsol while reading > > On Sun, Sep 30, 2018 at 8:53 PM Jörn Franke wrote: > >> I should add

Re: Urgent:POI4.0.0 causes org.apache.poi.javax.xml.parsers.FactoryConfigurationError

2018-10-02 Thread Jörn Franke
What is your build file? It looks like libraries are mixed up. On Tue, Oct 2, 2018 at 11:05 PM ranzhang35 wrote: > is 4.0.1 tested?? I'm running around the circle, now I'm getting following > error when 'XSSFWorkbook wb = new XSSFWorkbook();' is called using POI > 4.0.1. > > > > java.lang.NoSuc

Re: Large Data Excel generation

2019-05-21 Thread Jörn Franke
Can you share the code? What is the time and what time do you expect? > Am 21.05.2019 um 12:58 schrieb rdhanara : > > Hi > We have a requirement to generate .xlsx file with more than 50 rows > and each row contains 35 to 40 columns in it . > > Since SXSSFWorkbook has the ability to do wit

Re: POI 3.14 fails to read an excel file with password - Export Restrictions in place - please install JCE Unlimited Strength Jurisdiction Policy files

2019-12-18 Thread Jörn Franke
You have to install the unrestricteds encryption policies, if you use Oracle JDK: https://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html?printOnly=1 Note you need the right version matching your JDK. > Am 18.12.2019 um 13:56 schrieb Sateesh K Kolusu : > > I am usi

Re: Streaming a POI SXSSFWorkbook to the servlet output stream

2020-01-13 Thread Jörn Franke
I think you can’t due to the Excel format. SXSSF creates temporary files and does not need to keep everything in memory. I recommend though to activate compression for those as they are heavy uncompressed > Am 13.01.2020 um 11:19 schrieb Ramona Petricu > : > > Hi, > > We are building a Spri

Re: Debugging tip for "Excel cannot open the file" ... when opening the file created by POI OOXML

2020-02-03 Thread Jörn Franke
Can you share the code of the unit test? Maybe the file is not properly closed on the application server or there is an unlogged exception. > Am 03.02.2020 um 23:41 schrieb Kuro Kurosaka : > > I've read this issue > https://bz.apache.org/bugzilla/show_bug.cgi?id=59738 > which suggests version