0 Replies Latest reply on Jul 13, 2015 3:55 AM by Kamil Caliskan

    Modeshape 4.1 external fs resource jcr_sql2 query exception

    Kamil Caliskan Newbie

      I am using modeshape 4.1 with external file system source and ı want to search on saved documents using JCR_SQL2, ı have just added repository configuration in standalone-modeshape.xml file as

        <text-extractor name="tika-extractor" classname="tika" module="org.modeshape.extractor.tika"/>

      but ı am getting an exception as

      org.infinispan.persistence.spi.PersistenceException: java.io.StreamCorruptedException: Unexpected byte found when reading an object

      I use file system connector and ı am getting exception while nodeIter.hasNext() part

      try {
        String jql="SELECT * FROM [nt:file] WHERE CONTAINS(*,'cats')";
        QueryManager queryManager=session.getWorkspace().getQueryManager();
        Query query= queryManager.createQuery(jql,Query.JCR_SQL2);
        QueryResult queryResult=query.execute();
        NodeIterator nodeIter=queryResult.getNodes();
        Node node=nodeIter.nextNode();
        String asd=node.getPath();
        } catch (Exception e) {

      Best Regards.