any23-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Mostarda <michele.mosta...@gmail.com>
Subject Re: Facing a infinite loop problem in version 0.6.1
Date Fri, 20 Apr 2012 13:19:54 GMT
Hi Ondrej,
    thanks for reporting. I just opened an issue[1] to verify your bug.
Feel free to open an account on the Apache Jira issue tracker [2] to add /
follow other issues.
I also reported an issue for the broken links [3]. Meanwhile you can
download Any23 snapshots from here [4].

The best.

Mic

[1] https://issues.apache.org/jira/browse/ANY23-77
[2] https://issues.apache.org/jira/browse/ANY23
[3] https://issues.apache.org/jira/browse/ANY23-78
[4]
https://repository.apache.org/content/repositories/snapshots/org/apache/any23/

On 18 April 2012 14:30, Ondřej Klimpera <klimpond@fit.cvut.cz> wrote:

> Hello,
>
> sorry to bother you but I'm facing a critical problem using any23 jar
> build of version 0.6.1 (currently I'm not able to dowload newer version
> 0.7.0 because of 404 Not found status messege on all mirrors).
> When trying to process a document for triples the Any23 instance gets
> stucked in infinite loop propably in SpanCloserInputStream. Can you please
> help me solve this issue?
>
> 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<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<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.");
>
> Thanks for your help
> Ondrej Klimpera
>



-- 
Michele Mostarda
Senior Software Engineer
skype: michele.mostarda
twitter: micmos
mail: me@michelemostarda.com
site : http://www.michelemostarda.com

Mime
View raw message