Flowpack / Flowpack.ElasticSearch.ContentRepositoryAdaptor

Flowpack.ElasticSearch adapter to support the Neos Content Repository
GNU Lesser General Public License v3.0
43 stars 70 forks source link

Error while publishing Nodes after NodeType-Change #159

Closed Nikdro closed 7 years ago

Nikdro commented 7 years ago

When I change the NodeType of a Document-Node and try to publish afterwards, I get an error:

Exception #1338977435: Elasticsearch request failed.
[POST http://127.0.0.1:9200/typo3cr/_bulk]: Array
(
    [root_cause] => Array
        (
            [0] => Array
                (
                    [type] => parse_exception
                    [reason] => Failed to derive xcontent
                )

      )

   [type] => parse_exception
   [reason] => Failed to derive xcontent
)
; Response body: {"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to derive xcontent"}],"type":"parse_exception","reason":"Failed to derive xcontent"},"status":400}

Request data: 
(Error ends here, Request isn't shown)

The Stracktrace:

34 Flowpack\ElasticSearch\Transfer\Response_Original::__construct(TYPO3\Flow\Http\Response, TYPO3\Flow\Http\Request)
33 call_user_func_array("parent::__construct", array|2|)
32 Flowpack\ElasticSearch\Transfer\Response::__construct(TYPO3\Flow\Http\Response, TYPO3\Flow\Http\Request)
31 Flowpack\ElasticSearch\Transfer\RequestService_Original::request("POST", Flowpack\ElasticSearch\ContentRepositoryAdaptor\ElasticSearchClient, "/typo3cr/_bulk", array|0|, "")
30 Flowpack\ElasticSearch\Domain\Model\Client_Original::request("POST", "/typo3cr/_bulk", array|0|, "")
29 Flowpack\ElasticSearch\Domain\Model\Index_Original::request("POST", "/_bulk", array|0|, "")
28 Flowpack\ElasticSearch\ContentRepositoryAdaptor\Indexer\NodeIndexer_Original::removeDuplicateDocuments("/sites/magazine/node-577a218fc9713/node-57d7b6ab93765@live", "6c675d686e3229af21556a9ae83570f3445bc00e", TYPO3\TYPO3CR\Domain\Model\Node)
27 Flowpack\ElasticSearch\ContentRepositoryAdaptor\Indexer\NodeIndexer_Original::Flowpack\ElasticSearch\ContentRepositoryAdaptor\Indexer\{closure}(TYPO3\TYPO3CR\Domain\Model\Node, "live")
26 Flowpack\ElasticSearch\ContentRepositoryAdaptor\Indexer\NodeIndexer_Original::indexNode(TYPO3\TYPO3CR\Domain\Model\Node, "live")
25 call_user_func_array(array|2|, array|2|)
24 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::__call("indexNode", array|2|)
23 TYPO3\Flow\Object\DependencyInjection\DependencyProxy::indexNode(TYPO3\TYPO3CR\Domain\Model\Node, "live")
22 TYPO3\TYPO3CR\Search\Indexer\NodeIndexingManager_Original::TYPO3\TYPO3CR\Search\Indexer\{closure}()
21 TYPO3\TYPO3CR\Search\Indexer\NodeIndexingManager_Original::flushQueues("TYPO3\Flow\Persistence\Doctrine\PersistenceManager::allObjectsPersisted", "TYPO3\Flow\Persistence\Doctrine\PersistenceManager::allObjectsPersisted", "TYPO3\Flow\Persistence\Doctrine\PersistenceManager::allObjectsPersisted", "TYPO3\Flow\Persistence\Doctrine\PersistenceManager::allObjectsPersisted")
20 call_user_func_array(array|2|, array|4|)
19 TYPO3\Flow\SignalSlot\Dispatcher::dispatch("TYPO3\Flow\Persistence\Doctrine\PersistenceManager", "allObjectsPersisted", array|0|)
18 TYPO3\Flow\SignalSlot\SignalAspect_Original::forwardSignalToDispatcher(TYPO3\Flow\Aop\JoinPoint)
17 TYPO3\Flow\Aop\Advice\AbstractAdvice::invoke(TYPO3\Flow\Aop\JoinPoint)
16 TYPO3\Flow\Persistence\Doctrine\PersistenceManager::emitAllObjectsPersisted()
15 TYPO3\Flow\Persistence\Doctrine\PersistenceManager_Original::persistAll()
14 TYPO3\Flow\Package::TYPO3\Flow\{closure}(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response, TYPO3\Neos\Service\Controller\WorkspaceController, "TYPO3\Flow\Mvc\Dispatcher::afterControllerInvocation")
13 Closure::__invoke(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response, TYPO3\Neos\Service\Controller\WorkspaceController, "TYPO3\Flow\Mvc\Dispatcher::afterControllerInvocation")
12 call_user_func_array(array|2|, array|4|)
11 TYPO3\Flow\SignalSlot\Dispatcher::dispatch("TYPO3\Flow\Mvc\Dispatcher", "afterControllerInvocation", array|3|)
10 TYPO3\Flow\SignalSlot\SignalAspect_Original::forwardSignalToDispatcher(TYPO3\Flow\Aop\JoinPoint)
9 TYPO3\Flow\Aop\Advice\AbstractAdvice::invoke(TYPO3\Flow\Aop\JoinPoint)
8 TYPO3\Flow\Mvc\Dispatcher::emitAfterControllerInvocation(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response, TYPO3\Neos\Service\Controller\WorkspaceController)
7 TYPO3\Flow\Mvc\Dispatcher_Original::initiateDispatchLoop(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response)
6 TYPO3\Flow\Mvc\Dispatcher_Original::dispatch(TYPO3\Flow\Mvc\ActionRequest, TYPO3\Flow\Http\Response)
5 TYPO3\Flow\Mvc\DispatchComponent_Original::handle(TYPO3\Flow\Http\Component\ComponentContext)
4 TYPO3\Flow\Http\Component\ComponentChain_Original::handle(TYPO3\Flow\Http\Component\ComponentContext)
3 TYPO3\Flow\Http\Component\ComponentChain_Original::handle(TYPO3\Flow\Http\Component\ComponentContext)
2 TYPO3\Flow\Http\RequestHandler::handleRequest()
1 TYPO3\Flow\Core\Bootstrap::run()

HTTP REQUEST:
PUT /neos/service/workspaces-rpc/publish-nodes HTTP/1.1

Publishing without changing NodeTypes doesn't make problems...

ContentRepositoryAdaptor: dev-master Neos: 2.3.7 ES: Official Docker-Container (Tag: 2)

Nikdro commented 7 years ago

@dfeyer