incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tsuyoshi Ito <tsuy....@trialox.org>
Subject Re: Thumbnail service error when using jena.tdb launcher
Date Thu, 11 Feb 2010 20:33:02 GMT

On Feb 11, 2010, at 5:14 PM, Reto Bachmann-Gmuer wrote:

> Hi
> 
> I've fixed tdb today by updating the jena version, it seems this problem is
> solved as well.
> 
> 

I have downloaded latest tdb launcher from hudson (build #102) and tested it on the trialox
demo server. The problem still exists.  


> 
> On Mon, Feb 8, 2010 at 7:53 PM, Tsuyoshi Ito <tsuy.ito@trialox.org> wrote:
> 
>> Hi there
>> 
>> I have remove the org.apache.clerezza.com.ext.hp.hpl.jena dependency in
>> launcher.tdb. The goods news are: I can start the launcher and upload
>> images... But there is a problem with the
>> org.apache.clerezza.platform.content.representations
>> 
>> I can upload images but cannot display the thumbnails via thumbnail
>> service. The following error occured
>> 
>> RuntimeException (with no exception mapper)
>> org.apache.clerezza.rdf.core.InvalidLiteralTypeException: Cannot create a
>> class java.lang.Integer from a literal of type <
>> http://www.w3.org/2001/XMLSchema#integer>
>>       at
>> org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory$IntegerConverter.createObject(SimpleLiteralFactory.java:152)
>>       at
>> org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory$IntegerConverter.createObject(SimpleLiteralFactory.java:139)
>>       at
>> org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory.createObject(SimpleLiteralFactory.java:230)
>>       at
>> org.apache.clerezza.platform.content.representations.core.ThumbnailService.getSurfaceSizeIfFitting(ThumbnailService.java:176)
>>       at
>> org.apache.clerezza.platform.content.representations.core.ThumbnailService.isFittingImage(ThumbnailService.java:195)
>>       at
>> org.apache.clerezza.platform.content.representations.core.ThumbnailService.getThumbnailUri(ThumbnailService.java:146
>> 
>> 
>> Points to
>> 
>> Integer thumbnailWidth = LiteralFactory.getInstance().createObject(
>>                               Integer.class, (TypedLiteral)
>> exifWidths.next());
>> Integer thumbnailHeight = LiteralFactory.getInstance().createObject(
>>                               Integer.class, (TypedLiteral)
>> exifHeights.next());
>> 
>> The error doesn't occur when using
>> 
>> Integer thumbnailWidth = Integer.valueOf(((Literal)
>> exifWidths.next()).getLexicalForm());
>> Integer thumbnailHeight = Integer.valueOf(((Literal)
>> exifHeights.next()).getLexicalForm());
>> 
>> What should we do?
>> 
>> 
>> Tsuy
>> 
>> 
>> 
>> 
>> 





Mime
View raw message