teiid with MongoDB

7 views
Skip to first unread message

Alexey Dr. Fishkin

unread,
Oct 17, 2022, 9:23:32 AM10/17/22
to ontop4obda
hi, 

I am trying to use ontop over teiid with MongoDB. 

So, I am ending with quite a strange error which I cannot fix, or even do not know where to start:

WARN  in o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sparqlQueryController' defined in URL [jar:file:/opt/ontop/lib/ontop-endpoint-4.2.1.jar!/it/unibz/inf/ontop/endpoint/controllers/SparqlQueryController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'setupVirtualRepository' defined in class path resource [it/unibz/inf/ontop/endpoint/beans/OntopVirtualRepositoryBean.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [it.unibz.inf.ontop.rdf4j.repository.impl.OntopVirtualRepository]: Factory method 'setupVirtualRepository' threw exception; nested exception is org.eclipse.rdf4j.repository.RepositoryException: java.lang.IllegalArgumentException: Nullable attribute "_id" string(4000) cannot be in a PK

13:08:11.431 |-INFO  in o.a.catalina.core.StandardService - Stopping service [Tomcat]

I would guess that IDs used by MongoDB are mapped to string(4000). 

So, this creates an issue with a Private Key?  

Reply all
Reply to author
Forward
0 new messages