[Pellet-users] ClassCastException when executing CONSTRUCT-query

Evren Sirin evren at clarkparsia.com
Tue Jul 17 03:11:12 UTC 2007


Yes, this was a bug in Pellet code. It is recorded here [1] and fixed in 
SVN.

Thanks,
Evren

[1] http://cvsdude.com/trac/clark-parsia/pellet-devel/ticket/46

On 7/16/07 3:22 AM, P.F. Heemskerk wrote:
> Hi there,
>
> I'm getting a java.lang.ClassCastException when I try to execute a
> CONSTRUCT-query. The line in PelletQueryExecution.java that's causing
> the problem is:
>
> while( results.hasNext() ) {
>   Map bNodeMap = new HashMap();
>   QuerySolution qs = results.nextSolution();
>   
>>> ResultBinding rb = (ResultBinding) qs;<<
>>>       
>   template.subst( set, bNodeMap, rb.getBinding() );
> }
>
> I'm getting this Exception-message:
>
> com.hp.hpl.jena.query.QuerySolutionMap cannot be cast to
> com.hp.hpl.jena.sparql.core.ResultBinding
>
> Am I doing something wrong or is it a bug?
>
> Thanks!
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
>   



More information about the Pellet-users mailing list