Hello,
When I try to retrieve an object from Jackrabbit using the
ObjectContentManager, I get the exception
³org.apache.jackrabbit.ocm.exception.IncorrectPersistentClassException: Node
type: nt:unstructured has no descriptor.² When I am searching by the node
path, I can get around this error by supplying the class name to the
getObject function; however, the option is not available when supplying the
getObject function with a Query parameter. It seems to me, that it should
know the type via the supplied filter. (see code below)
Do you know a way to fix this?
<code>
QueryManager queryManager = ocm.getQueryManager();
// Build the search filter
Filter filter = queryManager.createFilter(DocumentImpl.class);
filter.addContains("personName", simpleKeyword);
// Build the query
Query query = queryManager.createQuery(filter);
DocumentImpl doc = (DocumentImpl) ocm.getObject(query);
</code>
Thanks in advance,
David