You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Kevin Tyson <ke...@gmail.com> on 2010/12/28 19:18:15 UTC

Tyro Question About TDB

Greetings,
Although I'm familiar with Jena, I'm trying (and failing) to use TDB for the
first time.  On my very first call to TDBFactory.createModel I experience
the following error.

Exception in thread "main" java.lang.NoSuchMethodError:
com.hp.hpl.jena.sparql.util.Context.putAll(Lcom/hp/hpl/jena/sparql/util/Context;)V

I get this error regardless of the format (URI or CIFS directory
specification) of the string representing the directory.  The only jars on
the build path are from the TDB version 0.8.8 lib directory and the GNU
jargs.jar.
I'm sure this is due to something embarrassingly simple that I'm missing,
but I just can't find it on my own.
TIA,
Kevin

-- 
Kevin P. Tyson
Kevin.Tyson@gmail.com

Re: Tyro Question About TDB

Posted by Andy Seaborne <an...@epimorphics.com>.
java.lang.NoSuchMethodError

[[
Thrown if an application tries to call a specified method of a class 
(either static or instance), and that class no longer has a definition 
of that method.

Normally, this error is caught by the compiler; this error can only 
occur at run time if the definition of a class has incompatibly changed.
]]

means that you have an incompatible mix of jars on your classpath 
because what the code was compiled against isn't what's available at 
runtime (here - ARQ).  It may also be an old version of ARQ and a new 
one are both on the classpath and it's find the older one first.  Check 
for junk jars in the TDB lib directory.

	Andy

On 28/12/10 18:26, Marco Neumann wrote:
> did you create the directory in the first place and made it writable?
>
> Marco
>
> On Tue, Dec 28, 2010 at 1:18 PM, Kevin Tyson<ke...@gmail.com>  wrote:
>> Greetings,
>> Although I'm familiar with Jena, I'm trying (and failing) to use TDB for the
>> first time.  On my very first call to TDBFactory.createModel I experience
>> the following error.
>>
>> Exception in thread "main" java.lang.NoSuchMethodError:
>> com.hp.hpl.jena.sparql.util.Context.putAll(Lcom/hp/hpl/jena/sparql/util/Context;)V
>>
>> I get this error regardless of the format (URI or CIFS directory
>> specification) of the string representing the directory.  The only jars on
>> the build path are from the TDB version 0.8.8 lib directory and the GNU
>> jargs.jar.
>> I'm sure this is due to something embarrassingly simple that I'm missing,
>> but I just can't find it on my own.
>> TIA,
>> Kevin
>>
>> --
>> Kevin P. Tyson
>> Kevin.Tyson@gmail.com
>>
>
>
>

Re: Tyro Question About TDB

Posted by Marco Neumann <ma...@gmail.com>.
did you create the directory in the first place and made it writable?

Marco

On Tue, Dec 28, 2010 at 1:18 PM, Kevin Tyson <ke...@gmail.com> wrote:
> Greetings,
> Although I'm familiar with Jena, I'm trying (and failing) to use TDB for the
> first time.  On my very first call to TDBFactory.createModel I experience
> the following error.
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> com.hp.hpl.jena.sparql.util.Context.putAll(Lcom/hp/hpl/jena/sparql/util/Context;)V
>
> I get this error regardless of the format (URI or CIFS directory
> specification) of the string representing the directory.  The only jars on
> the build path are from the TDB version 0.8.8 lib directory and the GNU
> jargs.jar.
> I'm sure this is due to something embarrassingly simple that I'm missing,
> but I just can't find it on my own.
> TIA,
> Kevin
>
> --
> Kevin P. Tyson
> Kevin.Tyson@gmail.com
>



-- 
Marco Neumann
KONA
---

Lotico - join your local Semantic Social Network today
http://www.lotico.com