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




Reply via email to