Return-Path: X-Original-To: apmail-incubator-any23-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-any23-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FEA69B59 for ; Mon, 25 Jun 2012 16:55:46 +0000 (UTC) Received: (qmail 73332 invoked by uid 500); 25 Jun 2012 16:55:46 -0000 Delivered-To: apmail-incubator-any23-dev-archive@incubator.apache.org Received: (qmail 73198 invoked by uid 500); 25 Jun 2012 16:55:46 -0000 Mailing-List: contact any23-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: any23-dev@incubator.apache.org Delivered-To: mailing list any23-dev@incubator.apache.org Received: (qmail 73012 invoked by uid 99); 25 Jun 2012 16:55:46 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2012 16:55:46 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 05EAB1404B1 for ; Mon, 25 Jun 2012 16:55:46 +0000 (UTC) Date: Mon, 25 Jun 2012 16:55:46 +0000 (UTC) From: "Lewis John McGibbney (JIRA)" To: any23-dev@incubator.apache.org Message-ID: <430892372.51761.1340643346031.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1144318975.9629.1334927439960.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (ANY23-77) Facing a infinite loop problem in version 0.6.1 - Verify MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ANY23-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lewis John McGibbney closed ANY23-77. ------------------------------------- Bulk close for 0.7.0-incubating release > Facing a infinite loop problem in version 0.6.1 - Verify > -------------------------------------------------------- > > Key: ANY23-77 > URL: https://issues.apache.org/jira/browse/ANY23-77 > Project: Apache Any23 > Issue Type: Bug > Components: service > Affects Versions: 0.7.0 > Reporter: Michele Mostarda > Assignee: Michele Mostarda > Fix For: 0.7.0 > > > The code to reproduce the bug is here (Client is Jersey http client, but thats just a detail, the problem lies in URL resource: http://lod.openlinksw.com/sparql?query=define%20sql%3Adescribe-mode%20%22LOD%22%20%20DESCRIBE%20%3Chttp%3A%2F%2Fyago-knowledge.org%2Fresource%2FBerlin%3E&output=text%2Fhtml > Java Code: > Client c = Client.create(); > System.out.println("Downloading file."); > InputStream in = c.resource("http://lod.openlinksw.com/sparql?query=define%20sql%3Adescribe-mode%20%22LOD%22%20%20DESCRIBE%20%3Chttp%3A%2F%2Fyago-knowledge.org%2Fresource%2FBerlin%3E&output=text%2Fhtml").get(InputStream.class); > FileOutputStream out = null; > File f = new File("urlResource"); > try { > out = new FileOutputStream(f); > IOUtils.copy(in, out); > } catch (Exception e) { > e.printStackTrace(); > } finally { > IOUtils.closeQuietly(in); > IOUtils.closeQuietly(out); > } > System.out.println("File downloaded."); > System.out.println("Starting extraction."); > FileDocumentSource doc = new FileDocumentSource(f); > TurtleWriter tw = new TurtleWriter(System.out); > Any23 ext = new Any23(); > try { > ext.extract(doc, tw); > } catch (Exception e) { > e.printStackTrace(); > } > System.out.println("Extraction done."); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira