You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Paolo Castagna (Closed) (JIRA)" <ji...@apache.org> on 2011/10/12 12:13:12 UTC

[jira] [Closed] (JENA-137) RecordsFromInput does not work properly with GZIPInputStream

     [ https://issues.apache.org/jira/browse/JENA-137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paolo Castagna closed JENA-137.
-------------------------------

    
> RecordsFromInput does not work properly with GZIPInputStream
> ------------------------------------------------------------
>
>                 Key: JENA-137
>                 URL: https://issues.apache.org/jira/browse/JENA-137
>             Project: Jena
>          Issue Type: Improvement
>          Components: TDB
>            Reporter: Paolo Castagna
>            Assignee: Paolo Castagna
>            Priority: Trivial
>         Attachments: JENA-137.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> This is classified as a trivial improvement and not a bug because it does not affect tdbloader2 users.
> RecordsFromInput is it used by BPlusTreeRewriter in tdbloader2:
> https://svn.apache.org/repos/asf/incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/store/bulkloader2/RecordsFromInput.java
> tdbloader2 happens to use non compressed InputStream and it works fine.
> However, when I tried to use RecordsFromInput with a GZIPInputStream I got this exception:
> Exception in thread "main" org.openjena.atlas.AtlasException: Wrong length: 4908
> 	at org.apache.jena.tdb.bulkloader2.RecordsFromInput.fill(RecordFromInput.java:121)
> 	at org.apache.jena.tdb.bulkloader2.RecordsFromInput.hasNext(RecordFromInput.java:52)
> 	at com.hp.hpl.jena.tdb.index.bplustree.BPlusTreeRewriter.packIntoBPlusTree(BPlusTreeRewriter.java:62)
> 	at org.apache.jena.tdb.bulkloader2.CmdIndexBuild.main(CmdIndexBuild.java:117)
> 	at cmd.download.main(download.java:196)
> The problem is in the private fill() method in RecordsFromInput.

--
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