[Mulgara-dev] NegativeArraySizeException
James Leigh
james-nospam at leighnet.ca
Wed Nov 5 16:19:24 UTC 2008
Hi Paul et al,
I loaded up 25m of BSBM data and executed a query like the one below.
Instead of getting any results, I got this exception. In
HybridTuples.java it casts a long into an int. This may account for the
int being negative. I have the dataset on another machine and can make
it and the exact query available if desired. Paul can you review
HybridTuples and DenseLongMatrix and make sure the long/int handling is
correct?
Thanks,
James
Caused by: java.lang.NegativeArraySizeException
at org.mulgara.store.tuples.DenseLongMatrix.<init>(DenseLongMatrix.java:60)
at org.mulgara.store.xa.HybridTuples.materialiseTuples(HybridTuples.java:557)
at org.mulgara.store.xa.HybridTuples.<init>(HybridTuples.java:165)
at org.mulgara.store.xa.HybridTuplesFactory.newTuples(HybridTuplesFactory.java:102)
at org.mulgara.store.xa.HybridTuplesFactory.newTuples(HybridTuplesFactory.java:79)
at org.mulgara.store.tuples.TuplesOperations.sort(TuplesOperations.java:849)
at org.mulgara.store.tuples.TuplesOperations.removeDuplicates(TuplesOperations.java:1030)
at org.mulgara.store.tuples.TuplesOperations.project(TuplesOperations.java:793)
at org.mulgara.resolver.LocalQueryResolver.projectSelectClause(LocalQueryResolver.java:310)
at org.mulgara.resolver.LocalQueryResolver.resolveE(LocalQueryResolver.java:276)
at org.mulgara.resolver.DatabaseOperationContext.doQuery(DatabaseOperationContext.java:786)
at org.mulgara.resolver.QueryOperation.execute(QueryOperation.java:139)
at org.mulgara.resolver.MulgaraInternalTransaction.execute(MulgaraInternalTransaction.java:623)
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rev: <http://purl.org/stuff/rev#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle
?reviewer ?revName ?rating1 ?rating2
WHERE {
<http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer831/Product41325> rdfs:label ?productLabel .
OPTIONAL {
?offer bsbm:product <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer831/Product41325> .
?offer bsbm:price ?price .
?offer bsbm:vendor ?vendor .
?vendor rdfs:label ?vendorTitle .
?vendor bsbm:country <http://downlode.org/rdf/iso-3166/countries#DE> .
?offer dc:publisher ?vendor .
?offer bsbm:validTo ?date .
FILTER (?date > "2008-06-20T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> )
}
OPTIONAL {
?review bsbm:reviewFor <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer831/Product41325> .
?review rev:reviewer ?reviewer .
?reviewer foaf:name ?revName .
?review dc:title ?revTitle .
OPTIONAL { ?review bsbm:rating1 ?rating1 . }
OPTIONAL { ?review bsbm:rating2 ?rating2 . }
}
}
More information about the Mulgara-dev
mailing list