Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 14765200C87 for ; Wed, 17 May 2017 19:22:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 12F29160BBA; Wed, 17 May 2017 17:22:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 58D2D160BAC for ; Wed, 17 May 2017 19:22:58 +0200 (CEST) Received: (qmail 41307 invoked by uid 500); 17 May 2017 17:22:57 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 41291 invoked by uid 99); 17 May 2017 17:22:57 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2017 17:22:57 +0000 Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 18C721A031B for ; Wed, 17 May 2017 17:22:57 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id b204so23963284oii.1 for ; Wed, 17 May 2017 10:22:57 -0700 (PDT) X-Gm-Message-State: AODbwcDaZ8FnQvFgupuOd8zIgs21ExbEOGMocXPJgSP06zDdeyctSNjc PeAHmfuHRUYJ4OFsItfObTwmiq5yLA== X-Received: by 10.202.197.205 with SMTP id v196mr2044198oif.37.1495041776301; Wed, 17 May 2017 10:22:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.11.241 with HTTP; Wed, 17 May 2017 10:22:55 -0700 (PDT) Received: by 10.157.11.241 with HTTP; Wed, 17 May 2017 10:22:55 -0700 (PDT) In-Reply-To: <1495010941741-5727565.post@n5.nabble.com> References: <1495010941741-5727565.post@n5.nabble.com> From: "Javen O'Neal" Date: Wed, 17 May 2017 10:22:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: new XWPFDocument(fis) is blocked To: POI Users List Content-Type: multipart/alternative; boundary="001a113e22b80040a6054fbb8a21" archived-at: Wed, 17 May 2017 17:22:59 -0000 --001a113e22b80040a6054fbb8a21 Content-Type: text/plain; charset="UTF-8" > 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" 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: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org --001a113e22b80040a6054fbb8a21--