incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tsuyoshi Ito <>
Subject Thumbnail service error when using jena.tdb launcher
Date Mon, 08 Feb 2010 18:53:26 GMT
Hi there

I have remove the 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 <>
	at org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory$IntegerConverter.createObject(
	at org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory$IntegerConverter.createObject(
	at org.apache.clerezza.rdf.core.impl.SimpleLiteralFactory.createObject(
	at org.apache.clerezza.platform.content.representations.core.ThumbnailService.getSurfaceSizeIfFitting(
	at org.apache.clerezza.platform.content.representations.core.ThumbnailService.isFittingImage(
	at org.apache.clerezza.platform.content.representations.core.ThumbnailService.getThumbnailUri(

Points to

Integer thumbnailWidth = LiteralFactory.getInstance().createObject(
				Integer.class, (TypedLiteral);
Integer thumbnailHeight = LiteralFactory.getInstance().createObject(
				Integer.class, (TypedLiteral);

The error doesn't occur when using

Integer thumbnailWidth = Integer.valueOf(((Literal);
Integer thumbnailHeight = Integer.valueOf(((Literal);

What should we do?


View raw message