new XWPFDocument(fis) is blocked

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

new XWPFDocument(fis) is blocked

xjtuzxh
hi all,
    This is my first topic on POI, I am from china so my English is a little poor.
   
    I am trying  extract text from *.docx file which can be opened using the following code, but it is blocked when executing this statement:
document = new XWPFDocument(is);
no exception or error is reported. so how to debug.


CODE:
InputStream is = new FileInputStream(file);
System.out.println(is.available());
document = new XWPFDocument(is);
extractor = new XWPFWordExtractor(document);
writer.write(extractor.getText());
writer.flush();


version of poi jars: 3.16
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: new XWPFDocument(fis) is blocked

Murphy, Mark
What OS are you running on?

-----Original Message-----
From: xjtuzxh [mailto:[hidden email]]
Sent: Wednesday, May 17, 2017 4:49 AM
To: [hidden email]
Subject: new XWPFDocument(fis) is blocked

hi all,
    This is my first topic on POI, I am from china so my English is a little poor.
   
    I am trying  extract text from *.docx file which can be opened using the following code, but it is blocked when executing this statement:
document = new XWPFDocument(is);
no exception or error is reported. so how to debug.


CODE:
InputStream is = new FileInputStream(file); System.out.println(is.available());
document = new XWPFDocument(is);
extractor = new XWPFWordExtractor(document); writer.write(extractor.getText());
writer.flush();


version of poi jars: 3.16



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: new XWPFDocument(fis) is blocked

Javen O'Neal-2
In reply to this post by xjtuzxh
> blocked
> no exception or error is reported

Either `new XWPFDocument(is)` returns a document, null (unlikely), or
throws an exception. Which one is it? "Blocked" isn't specific enough to me
to describe what happens.

On May 17, 2017 6:46 AM, "xjtuzxh" <[hidden email]> wrote:

hi all,
    This is my first topic on POI, I am from china so my English is a little
poor.

    I am trying  extract text from *.docx file which can be opened using the
following code, but it is blocked when executing this statement:
document = new XWPFDocument(is);
no exception or error is reported. so how to debug.


CODE:
InputStream is = new FileInputStream(file);
System.out.println(is.available());
document = new XWPFDocument(is);
extractor = new XWPFWordExtractor(document);
writer.write(extractor.getText());
writer.flush();


version of poi jars: 3.16



--
View this message in context: http://apache-poi.1045710.n5.
nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RE: new XWPFDocument(fis) is blocked

xjtuzxh
In reply to this post by Murphy, Mark
thanks for your reply.
OS is Windows 10, JDK version is 1.7


张小辉
星环科技/数据工程部
18701960364
 
Date: 2017-05-17 22:59
Subject: RE: new XWPFDocument(fis) is blocked
What OS are you running on?

-----Original Message-----
From: xjtuzxh [mailto:[hidden email]]
Sent: Wednesday, May 17, 2017 4:49 AM
To: [hidden email]
Subject: new XWPFDocument(fis) is blocked

hi all,
    This is my first topic on POI, I am from china so my English is a little poor.
   
    I am trying  extract text from *.docx file which can be opened using the following code, but it is blocked when executing this statement:
document = new XWPFDocument(is);
no exception or error is reported. so how to debug.


CODE:
InputStream is = new FileInputStream(file); System.out.println(is.available());
document = new XWPFDocument(is);
extractor = new XWPFWordExtractor(document); writer.write(extractor.getText());
writer.flush();


version of poi jars: 3.16



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




If you reply to this email, your message will be added to the discussion below:
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727569.html
To unsubscribe from new XWPFDocument(fis) is blocked, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: new XWPFDocument(fis) is blocked

xjtuzxh
In reply to this post by Murphy, Mark
thanks for your reply.
OS is Windows 10, JDK version is 1.7
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Re: new XWPFDocument(fis) is blocked

xjtuzxh
In reply to this post by Javen O'Neal-2
Thanks  for your reply

I have added log output, as follow:
writer = new BufferedWriter(new FileWriter(textFile));
InputStream is = new FileInputStream(file);

LOGGER.info("bytes:{}",is.available());
LOGGER.info("SIGN1");
document = new XWPFDocument(is);
LOGGER.info("SIGN2");
if(null == document){
LOGGER.info("document is null");
}

extractor = new XWPFWordExtractor(document);
writer.write(extractor.getText());
writer.flush();
LOGGER.info("Extract text from {}, write text to {}", file.getName(), textFile);

the output is as follow:
[INFO ][2017-05-18 10:19:41][io.transwarp.extractor.ExtractorWorker.run(ExtractorWorker.java:27)]pool-1-thread-1 start extracting doc:E:\IDEA\DocumentDemo\document_dir\test.docx
[INFO ][2017-05-18 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.java:41)]bytes:13331
[INFO ][2017-05-18 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.java:42)]SIGN1

the code after "document = new XWPFDocument(is);" is not executed and the application is in RUNNING STATE  ,  and no exception or error is reported.
I am also puzzled!!!

张小辉
星环科技/数据工程部
18701960364
 
Date: 2017-05-18 01:23
Subject: Re: new XWPFDocument(fis) is blocked
> blocked
> no exception or error is reported

Either `new XWPFDocument(is)` returns a document, null (unlikely), or
throws an exception. Which one is it? "Blocked" isn't specific enough to me
to describe what happens.

On May 17, 2017 6:46 AM, "xjtuzxh" <[hidden email]> wrote:

hi all,
    This is my first topic on POI, I am from china so my English is a little
poor.

    I am trying  extract text from *.docx file which can be opened using the
following code, but it is blocked when executing this statement:
document = new XWPFDocument(is);
no exception or error is reported. so how to debug.


CODE:
InputStream is = new FileInputStream(file);
System.out.println(is.available());
document = new XWPFDocument(is);
extractor = new XWPFWordExtractor(document);
writer.write(extractor.getText());
writer.flush();


version of poi jars: 3.16



--
View this message in context: http://apache-poi.1045710.n5.
nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



If you reply to this email, your message will be added to the discussion below:
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727570.html
To unsubscribe from new XWPFDocument(fis) is blocked, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: new XWPFDocument(fis) is blocked

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 <[hidden email]> wrote:
>
> Thanks  for your reply
>
> I have added log output, as follow:
> writer = new BufferedWriter(new FileWriter(textFile));
> InputStream is = new FileInputStream(file);
>
> LOGGER.info("bytes:{}",is.available());
> LOGGER.info("SIGN1");
> document = new XWPFDocument(is);
> LOGGER.info("SIGN2");
> if(null == document){
>    LOGGER.info("document is null");
> }
>
> extractor = new XWPFWordExtractor(document);
> writer.write(extractor.getText());
> writer.flush();
> LOGGER.info("Extract text from {}, write text to {}", file.getName(), textFile);
>
> the output is as follow:
> [INFO ][2017-05-18 10:19:41][io.transwarp.extractor.ExtractorWorker.run(ExtractorWorker.java:27)]pool-1-thread-1 start extracting doc:E:\IDEA\DocumentDemo\document_dir\test.docx
> [INFO ][2017-05-18 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.java:41)]bytes:13331
> [INFO ][2017-05-18 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.java:42)]SIGN1
>
> the code after "document = new XWPFDocument(is);" is not executed and the application is in RUNNING STATE  ,  and no exception or error is reported.
> I am also puzzled!!!
>
> 张小辉
> 星环科技/数据工程部
> 18701960364
>
> From: Javen O'Neal-2 [via Apache POI]
> Date: 2017-05-18 01:23
> To: xjtuzxh
> Subject: Re: new XWPFDocument(fis) is blocked
>> blocked
>> no exception or error is reported
>
> Either `new XWPFDocument(is)` returns a document, null (unlikely), or
> throws an exception. Which one is it? "Blocked" isn't specific enough to me
> to describe what happens.
>
> On May 17, 2017 6:46 AM, "xjtuzxh" <[hidden email]> wrote:
>
> hi all,
>    This is my first topic on POI, I am from china so my English is a little
> poor.
>
>    I am trying  extract text from *.docx file which can be opened using the
> following code, but it is blocked when executing this statement:
> document = new XWPFDocument(is);
> no exception or error is reported. so how to debug.
>
>
> CODE:
> InputStream is = new FileInputStream(file);
> System.out.println(is.available());
> document = new XWPFDocument(is);
> extractor = new XWPFWordExtractor(document);
> writer.write(extractor.getText());
> writer.flush();
>
>
> version of poi jars: 3.16
>
>
>
> --
> View this message in context: http://apache-poi.1045710.n5.
> nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727570.html 
> To unsubscribe from new XWPFDocument(fis) is blocked, click here.
> NAML
>
>
>
>
> --
> View this message in context: http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727578.html
> Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Re: new XWPFDocument(fis) is blocked

xjtuzxh
That is a simple docx file (test1.docx) ,  it is created by MS Office 2016 professional
It can be opened successfully.


张小辉
星环科技/数据工程部
18701960364
 
Date: 2017-05-18 14:32
Subject: Re: new XWPFDocument(fis) is blocked
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 <[hidden email]> wrote:
>
> Thanks  for your reply
>
> I have added log output, as follow:
> writer = new BufferedWriter(new FileWriter(textFile));
> InputStream is = new FileInputStream(file);
>
> LOGGER.info("bytes:{}",is.available());
> LOGGER.info("SIGN1");
> document = new XWPFDocument(is);
> LOGGER.info("SIGN2");
> if(null == document){
>    LOGGER.info("document is null");
> }
>
> extractor = new XWPFWordExtractor(document);
> writer.write(extractor.getText());
> writer.flush();
> LOGGER.info("Extract text from {}, write text to {}", file.getName(), textFile);
>
> the output is as follow:
> [INFO ][2017-05-18 10:19:41][io.transwarp.extractor.ExtractorWorker.run(ExtractorWorker.java:27)]pool-1-thread-1 start extracting doc:E:\IDEA\DocumentDemo\document_dir\test.docx
> [INFO ][2017-05-18 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.java:41)]bytes:13331
> [INFO ][2017-05-18 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.java:42)]SIGN1
>
> the code after "document = new XWPFDocument(is);" is not executed and the application is in RUNNING STATE  ,  and no exception or error is reported.
> I am also puzzled!!!
>
> 张小辉
> 星环科技/数据工程部
> 18701960364
>
> From: Javen O'Neal-2 [via Apache POI]
> Date: 2017-05-18 01:23
> To: xjtuzxh
> Subject: Re: new XWPFDocument(fis) is blocked
>> blocked
>> no exception or error is reported
>
> Either `new XWPFDocument(is)` returns a document, null (unlikely), or
> throws an exception. Which one is it? "Blocked" isn't specific enough to me
> to describe what happens.
>
> On May 17, 2017 6:46 AM, "xjtuzxh" <[hidden email]> wrote:
>
> hi all,
>    This is my first topic on POI, I am from china so my English is a little
> poor.
>
>    I am trying  extract text from *.docx file which can be opened using the
> following code, but it is blocked when executing this statement:
> document = new XWPFDocument(is);
> no exception or error is reported. so how to debug.
>
>
> CODE:
> InputStream is = new FileInputStream(file);
> System.out.println(is.available());
> document = new XWPFDocument(is);
> extractor = new XWPFWordExtractor(document);
> writer.write(extractor.getText());
> writer.flush();
>
>
> version of poi jars: 3.16
>
>
>
> --
> View this message in context: http://apache-poi.1045710.n5.
> nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727570.html 
> To unsubscribe from new XWPFDocument(fis) is blocked, click here.
> NAML
>
>
>
>
> --
> View this message in context: http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727578.html
> Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




If you reply to this email, your message will be added to the discussion below:
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727579.html
To unsubscribe from new XWPFDocument(fis) is blocked, click here.
NAML

test1.docx (17K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Re: new XWPFDocument(fis) is blocked

Allison, Timothy B.
Are you able to share the file on Bugzilla?

https://bz.apache.org/bugzilla/describecomponents.cgi?product=POI

-----Original Message-----
From: xjtuzxh [mailto:[hidden email]]
Sent: Thursday, May 18, 2017 3:01 AM
To: [hidden email]
Subject: Re: Re: new XWPFDocument(fis) is blocked

That is a simple docx file (test1.docx) ,  it is created by MS Office 2016 professional It can be opened successfully.



张小辉
星环科技/数据工程部
18701960364
 
From: Jörn Franke [via Apache POI]
Date: 2017-05-18 14:32
To: xjtuzxh
Subject: Re: new XWPFDocument(fis) is blocked 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 <[hidden email]> wrote:
>
> Thanks  for your reply
>
> I have added log output, as follow:
> writer = new BufferedWriter(new FileWriter(textFile)); InputStream is
> = new FileInputStream(file);
>
> LOGGER.info("bytes:{}",is.available());
> LOGGER.info("SIGN1");
> document = new XWPFDocument(is);
> LOGGER.info("SIGN2");
> if(null == document){
>    LOGGER.info("document is null");
> }
>
> extractor = new XWPFWordExtractor(document);
> writer.write(extractor.getText());
> writer.flush();
> LOGGER.info("Extract text from {}, write text to {}", file.getName(),
> textFile);
>
> the output is as follow:
> [INFO ][2017-05-18
> 10:19:41][io.transwarp.extractor.ExtractorWorker.run(ExtractorWorker.j
> ava:27)]pool-1-thread-1 start extracting
> doc:E:\IDEA\DocumentDemo\document_dir\test.docx
> [INFO ][2017-05-18
> 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.ja
> va:41)]bytes:13331 [INFO ][2017-05-18
> 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.ja
> va:42)]SIGN1
>
> the code after "document = new XWPFDocument(is);" is not executed and the application is in RUNNING STATE  ,  and no exception or error is reported.
> I am also puzzled!!!
>
> 张小辉
> 星环科技/数据工程部
> 18701960364
>
> From: Javen O'Neal-2 [via Apache POI]
> Date: 2017-05-18 01:23
> To: xjtuzxh
> Subject: Re: new XWPFDocument(fis) is blocked
>> blocked
>> no exception or error is reported
>
> Either `new XWPFDocument(is)` returns a document, null (unlikely), or
> throws an exception. Which one is it? "Blocked" isn't specific enough
> to me to describe what happens.
>
> On May 17, 2017 6:46 AM, "xjtuzxh" <[hidden email]> wrote:
>
> hi all,
>    This is my first topic on POI, I am from china so my English is a
> little poor.
>
>    I am trying  extract text from *.docx file which can be opened
> using the following code, but it is blocked when executing this statement:
> document = new XWPFDocument(is);
> no exception or error is reported. so how to debug.
>
>
> CODE:
> InputStream is = new FileInputStream(file);
> System.out.println(is.available());
> document = new XWPFDocument(is);
> extractor = new XWPFWordExtractor(document);
> writer.write(extractor.getText());
> writer.flush();
>
>
> version of poi jars: 3.16
>
>
>
> --
> View this message in context: http://apache-poi.1045710.n5.
> nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email] For additional commands,
> e-mail: [hidden email]
>
>
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocke
> d-tp5727565p5727570.html To unsubscribe from new XWPFDocument(fis) is
> blocked, click here.
> NAML
>
>
>
>
> --
> View this message in context:
> http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocke
> d-tp5727565p5727578.html Sent from the POI - User mailing list archive
> at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]





If you reply to this email, your message will be added to the discussion below:
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727579.html
To unsubscribe from new XWPFDocument(fis) is blocked, click here.
NAML


test1.docx (17K) <http://apache-poi.1045710.n5.nabble.com/attachment/5727581/0/test1.docx>




--
View this message in context: http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727581.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: RE: new XWPFDocument(fis) is blocked

xjtuzxh
ok, I have submit file  on Bugzilla,  in bug 61104

Regards.


张小辉
星环科技/数据工程部
18701960364
 
Date: 2017-05-18 19:01
Subject: RE: Re: new XWPFDocument(fis) is blocked
Are you able to share the file on Bugzilla?

https://bz.apache.org/bugzilla/describecomponents.cgi?product=POI

-----Original Message-----
From: xjtuzxh [mailto:[hidden email]]
Sent: Thursday, May 18, 2017 3:01 AM
To: [hidden email]
Subject: Re: Re: new XWPFDocument(fis) is blocked

That is a simple docx file (test1.docx) ,  it is created by MS Office 2016 professional It can be opened successfully.



张小辉
星环科技/数据工程部
18701960364
 
From: Jörn Franke [via Apache POI]
Date: 2017-05-18 14:32
To: xjtuzxh
Subject: Re: new XWPFDocument(fis) is blocked 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 <[hidden email]> wrote:
>
> Thanks  for your reply
>
> I have added log output, as follow:
> writer = new BufferedWriter(new FileWriter(textFile)); InputStream is
> = new FileInputStream(file);
>
> LOGGER.info("bytes:{}",is.available());
> LOGGER.info("SIGN1");
> document = new XWPFDocument(is);
> LOGGER.info("SIGN2");
> if(null == document){
>    LOGGER.info("document is null");
> }
>
> extractor = new XWPFWordExtractor(document);
> writer.write(extractor.getText());
> writer.flush();
> LOGGER.info("Extract text from {}, write text to {}", file.getName(),
> textFile);
>
> the output is as follow:
> [INFO ][2017-05-18
> 10:19:41][io.transwarp.extractor.ExtractorWorker.run(ExtractorWorker.j
> ava:27)]pool-1-thread-1 start extracting
> doc:E:\IDEA\DocumentDemo\document_dir\test.docx
> [INFO ][2017-05-18
> 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.ja
> va:41)]bytes:13331 [INFO ][2017-05-18
> 10:19:41][io.transwarp.docutils.DocxExtractor.extract(DocxExtractor.ja
> va:42)]SIGN1
>
> the code after "document = new XWPFDocument(is);" is not executed and the application is in RUNNING STATE  ,  and no exception or error is reported.
> I am also puzzled!!!
>
> 张小辉
> 星环科技/数据工程部
> 18701960364
>
> From: Javen O'Neal-2 [via Apache POI]
> Date: 2017-05-18 01:23
> To: xjtuzxh
> Subject: Re: new XWPFDocument(fis) is blocked
>> blocked
>> no exception or error is reported
>
> Either `new XWPFDocument(is)` returns a document, null (unlikely), or
> throws an exception. Which one is it? "Blocked" isn't specific enough
> to me to describe what happens.
>
> On May 17, 2017 6:46 AM, "xjtuzxh" <[hidden email]> wrote:
>
> hi all,
>    This is my first topic on POI, I am from china so my English is a
> little poor.
>
>    I am trying  extract text from *.docx file which can be opened
> using the following code, but it is blocked when executing this statement:
> document = new XWPFDocument(is);
> no exception or error is reported. so how to debug.
>
>
> CODE:
> InputStream is = new FileInputStream(file);
> System.out.println(is.available());
> document = new XWPFDocument(is);
> extractor = new XWPFWordExtractor(document);
> writer.write(extractor.getText());
> writer.flush();
>
>
> version of poi jars: 3.16
>
>
>
> --
> View this message in context: http://apache-poi.1045710.n5.
> nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email] For additional commands,
> e-mail: [hidden email]
>
>
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocke
> d-tp5727565p5727570.html To unsubscribe from new XWPFDocument(fis) is
> blocked, click here.
> NAML
>
>
>
>
> --
> View this message in context:
> http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocke
> d-tp5727565p5727578.html Sent from the POI - User mailing list archive
> at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]





If you reply to this email, your message will be added to the discussion below:
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727579.html
To unsubscribe from new XWPFDocument(fis) is blocked, click here.
NAML


test1.docx (17K) <http://apache-poi.1045710.n5.nabble.com/attachment/5727581/0/test1.docx>




--
View this message in context: http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727581.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



If you reply to this email, your message will be added to the discussion below:
http://apache-poi.1045710.n5.nabble.com/new-XWPFDocument-fis-is-blocked-tp5727565p5727582.html
To unsubscribe from new XWPFDocument(fis) is blocked, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Re: new XWPFDocument(fis) is blocked

xjtuzxh
In reply to this post by Allison, Timothy B.
hi, Now, Is the problem I have posted in  bug 61104 confirmed,
If it is a bug, when it can be fixed?

thanks!
Loading...