Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 86206 invoked from network); 11 Feb 2010 20:39:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2010 20:39:52 -0000 Received: (qmail 63269 invoked by uid 500); 11 Feb 2010 20:39:52 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 63235 invoked by uid 500); 11 Feb 2010 20:39:52 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 63224 invoked by uid 99); 11 Feb 2010 20:39:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 20:39:52 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.86.168.182] (HELO mxout-07.mxes.net) (216.86.168.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 20:39:42 +0000 Received: from mail-fx0-f227.google.com (unknown [209.85.220.227]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id A6A4422E257 for ; Thu, 11 Feb 2010 15:39:20 -0500 (EST) Received: by fxm27 with SMTP id 27so553472fxm.27 for ; Thu, 11 Feb 2010 12:39:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.125.19 with SMTP id c19mr286368mun.114.1265920759140; Thu, 11 Feb 2010 12:39:19 -0800 (PST) X-Originating-IP: [217.71.242.188] In-Reply-To: <466B98D3-D1FA-4CEE-97FD-22182721182D@trialox.org> References: <78B4F77E-E58F-49C9-AEB2-A512B2BD6345@trialox.org> <466B98D3-D1FA-4CEE-97FD-22182721182D@trialox.org> Date: Thu, 11 Feb 2010 21:39:19 +0100 Message-ID: Subject: Re: Thumbnail service error when using jena.tdb launcher From: Reto Bachmann-Gmuer To: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e65aef4029915c047f5925f1 X-Virus-Checked: Checked by ClamAV on apache.org --0016e65aef4029915c047f5925f1 Content-Type: text/plain; charset=UTF-8 Does it also occur on your local machine? and please remind me, what's the uri of the thumbnail service (should definitively get those maven sites online...) cheers, reto On Thu, Feb 11, 2010 at 9:33 PM, Tsuyoshi Ito wrote: > > 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 > 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 > >> > >> > >> > >> > >> > > > > > --0016e65aef4029915c047f5925f1--